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 Discussion / FPS game code

Author
Message
dazzling dazzla
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: here
Posted: 15th Mar 2005 18:08
Can someone help me improve on this early code cos i want to make a crude fps and need help with stuff like the mouse movement affecting the cameras angle. I tried messing a around with this a bit but the results werent very, err, good. Heres the code so far (please note that ive mentioned how crude it is!)

the answer to all lives questions is...
... meh!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Mar 2005 20:20 Edited at: 25th Nov 2005 02:21
Try This:

That should do for camera movement, except you're going to need to add some gravity. Then shooting, enimies, levels, etc...

dazzling dazzla
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: here
Posted: 15th Mar 2005 21:20
Thank you mate this is very helpful as before i tried to use a different system and at first it worked but once it started moving one way it went real fast and was hard to stop the camera rotation. when i tweaked it the screen shook!

the answer to all lives questions is...
... meh!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Mar 2005 21:45 Edited at: 15th Mar 2005 21:45
No, problem

I wrote that code about a year ago and its probably the most useful code I have ever writting, you can use it in almost any 3d project by just adjusting it a little .

Edit: If you need help with anything else, just ask.

Login to post a reply

Server time is: 2025-05-23 18:51:12
Your offset time is: 2025-05-23 18:51:12