Ask coding questions

← Back to all posts
JS HELP Keydown
r3b0rn

Im making a game, its like a platformer and I want my character to move around everywhere using arrow keys. Can someone show me how to do this

Answered by ruiwenge2 [earned 5 cycles]
View Answer
Comments
hotnewtop
ruiwenge2

you can do this:

r3b0rn

@ruiwenge2 i will try it thanks

ruiwenge2

@r3b0rn btw i type elif instead of else if sorry. im used to python. but in javascript use else if.

r3b0rn

@ruiwenge2 i just changed it to if, but thanks!

ruiwenge2

@r3b0rn you're welcome!