0

How do you make the keys work?

I am currently working on a game, and I am struggling on how to make a physics engine. I need to know how to make things happen when keys are pressed. I made a test code so that if i press the up key, it prints five, but it keeps reporting an error. Help?

13th Mar 2019, 3:48 PM
Nana-Kojo Banafo Year 08
Nana-Kojo Banafo Year 08 - avatar
5 odpowiedzi
0
First of all what language are you use?
13th Mar 2019, 5:09 PM
Lighton
Lighton - avatar
0
I'm using web (HTML/CSS/JS)
19th Mar 2019, 8:15 AM
Nana-Kojo Banafo Year 08
Nana-Kojo Banafo Year 08 - avatar
0
Can you paste the code?
19th Mar 2019, 12:31 PM
Lighton
Lighton - avatar
19th Mar 2019, 3:43 PM
Nana-Kojo Banafo Year 08
Nana-Kojo Banafo Year 08 - avatar
0
There is anything called key.
19th Mar 2019, 3:50 PM
Lighton
Lighton - avatar