Be a Supporter!

movement help

  • 244 Views
  • 3 Replies
New Topic Respond to this Topic
Bamchica
Bamchica
  • Member since: Oct. 18, 2008
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
movement help 2009-08-26 06:27:29 Reply

i want to know, i have the up, down, left, and right movement actions but i want to know the WASD version of it.
can anyone help me with it??????????

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to movement help 2009-08-26 07:10:16 Reply

change keycodes

Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to movement help 2009-08-26 08:38:13 Reply

instead of KEY.RIGHT use the ascii codes
because I think your a noob, here's a code explanation:

if KEY.isDown(87){
//do stuff
}
Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to movement help 2009-08-26 08:51:29 Reply

At 8/26/09 08:38 AM, robin1232 wrote: instead of KEY.RIGHT use the ascii codes
because I think your a noob, here's a code explanation:

if KEY.isDown(87){
//do stuff
}

Can you write the condition without brackets?

I clicked your MMORPG link thinking, what a douche. :P