Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How Do You Make a First Person Shooter?

Author
Message
pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 1st Apr 2010 23:55
How do you make a first person shooter like Doom and Half-Life. Can someone post some code?

Thanks.
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 2nd Apr 2010 00:46
FPSC is made for first person shooters only.That`s why it`s called First Person Shooter Creator.If you want to make that kind of game, you can make it faster with it.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 2nd Apr 2010 01:02
hah, yeah, we're all gunna give you some code for half life and doom

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 2nd Apr 2010 01:08
I don't recall exactly where, but I saw the Quake3 source code posted somewhere a few years back.

Seriously though, according to your join date you've been around here since 2006. Why would you ask such a question? Perhaps you worded it wrong...

pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 2nd Apr 2010 01:51 Edited at: 2nd Apr 2010 01:57
I was wondering if you could give me some code or show me how to do it.

I already have some code that looks like this:



I just need the rest for an FPS.

Thanks.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Apr 2010 02:32
Right... Well, here is your next command:



Put that in your main loop and press f5 and you should have the basic first person shooter engine running

TheComet

pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 2nd Apr 2010 02:46 Edited at: 2nd Apr 2010 02:47
Great! Thanks!

Now I have this:



But I don't think I'm there yet in making my FPS. Any other suggestions? Preferably code that I can use?

Thanks again.
Jeff032
18
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 2nd Apr 2010 03:22
It's easier then you think, this is all the code you need:



(You need to enter values for the variables declared at the top)

pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 2nd Apr 2010 03:35
Thanks again. I really appreciate this.

This is what I now have:



But I ran into a problem. When I try to play the game, it doesn't work? If someone can give me some more code, I promise I won't ask anymore.

Thanks everyone for helping me.
Jaeg
20
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Indiana
Posted: 2nd Apr 2010 04:34
Why do I have the feeling this is an April Fools day shenanigan?

If you get mad and want to type something nasty about another person do this-Type what you want to say in the box then press ctrl-a and hit delete then type what you should say.
pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 2nd Apr 2010 04:47
cuz it is!!!

Couldn't resist asking the all time most annoying request on April Fools day!!!
Sepnon
16
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 2nd Apr 2010 04:49
o_m_g..

i just dont believe this.
haha
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 2nd Apr 2010 04:53
lol, you got me pdq. When I first read this post, I thought you were serious. I have been working on this. Trying to figure it all out. So I opened a project I have been working on and went to work.
Thanks to your April fools joke, my code is now working flawlessly.

Very funny.
pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 2nd Apr 2010 05:30
lol!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Apr 2010 12:10
Cool You got me for sure

TheComet

Login to post a reply

Server time is: 2026-07-26 21:12:27
Your offset time is: 2026-07-26 21:12:27