Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

57 users online



keyboard

keyboard

Currently viewing this thread: 1 (0 members and 1 guests)


rs131

rs131

Neverside Newbie
Status: Offline!

keyboard

Hi, I'm making a simple game in AJAX which requires keyboard events to move around a person on a border. This person can move left, right, up, and down using the w,s,a,d keys on the keyboard. This person can also move diagonal any direction. I have this working fine the only problem is diagonal movement. I am looking to move a character diagonal for example: up/left by hitting BOTH w and a keys on the keyboard. I have never been able to make a keylistener that responses to 2 keys down at the same time even in java in the past. I am wondering if someone can suggest something to help me out with this.

Thanks.

___________________

Click here to email me!

Uruloki

Uruloki

God of Dynamic Web Site
Status: Offline!

q = w + a
e = w + d
z = s + a
c = s + d

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0152 seconds.