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.

Dark GDK / Controls Using W,A,S,D

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 1st Oct 2008 22:00
How do I use controls dbKeyState() to move the camera?

I know how to use the KeyState, what I need help with is positioning the camera.

A code snippet would be nice.

BTW, if you post here, please check back in case I have questions.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 1st Oct 2008 23:51 Edited at: 2nd Oct 2008 00:36
If you download Sparky's collision DLL, he provides a good example of this in the "Sliding Demo".

From the sound of your other posts, it seems you are attempting to create a First Person Shooter. But anyway, he provides a pretty efficient way to do this, and you are going to need to use his DLL anyway to do anything decent collision wise.

Plug it in the search, shouldn't be too hard to find. Just browse the "Sliding Demo" source code and you should see something like this:



www.Helios-Online.net
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 2nd Oct 2008 00:18 Edited at: 2nd Oct 2008 00:19


That should do it.

"When in doubt, C4."
-Jamie Hyneman, Mythbusters
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 2nd Oct 2008 00:36
Oh oops, just realized I commented those backwards.

www.Helios-Online.net

Login to post a reply

Server time is: 2024-11-25 03:50:11
Your offset time is: 2024-11-25 03:50:11