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 / WASD Keyboard imput?

Author
Message
Oman
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location:
Posted: 24th Feb 2008 06:08
Hey guyes,

im looking to make the camera move on the X and Z axis using the W,A,S,D keys.

whats the code i need?

thx
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 24th Feb 2008 17:36
Here is an example using DBP that should be easy to translate into GDK

http://forum.thegamecreators.com/xt/view_code.php?i=1238

Codger

p.s. I found it in the code snippets forum using a simple search filter "wasd"

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 24th Feb 2008 22:45
Here is a function you can place in your main loop to control player using WASD and mouse movement



Codger

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Oman
16
Years of Service
User Offline
Joined: 23rd Feb 2008
Location:
Posted: 25th Feb 2008 13:58
thx a ton man, i got it to work. =)

Login to post a reply

Server time is: 2024-11-20 03:34:44
Your offset time is: 2024-11-20 03:34:44