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 / Glide function help?

Author
Message
guru of boredom
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: middle of no where
Posted: 4th Nov 2003 03:40
i was wondering if anyone had a function or subroutine that would let the camera continue moving in one direction but still look around when a certain button is pressed. i need it for a first person space combat game. i have tried alot but cant seem to get it to work. thanks

its not a bug its a ... a ... a extra feature!
P4 2.4 ghz 120 GB 256 mb GeForce4
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 4th Nov 2003 04:07
I would imagine that you would do something like this(not exact)

(look in source)

Am I an Idiot...or is everyone else just really smart?
guru of boredom
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: middle of no where
Posted: 4th Nov 2003 04:15
i am making a space flight sim thing so i guess what i had in mind was something that would take the camera x,y,and z angles a drift it in that direction at the current speed when you push "/" but still allow the camera to look around. i tried having an object drift and the camera follow it but couldnt get it to work but maybe thats because i have been coding for 13 hours straight. but thanks

its not a bug its a ... a ... a extra feature!
P4 2.4 ghz 120 GB 256 mb GeForce4
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Nov 2003 07:16
What Foonman305 said is basicaly it (and i mean basically, lol)

Just put that type of thing in and you should be able to do it...

If not, try something like:



Hope That Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-21 09:40:21
Your offset time is: 2025-05-21 09:40:21