This site requires JavaScript, please enable it in your browser!
Greenfoot back
Mpache02
Mpache02 wrote ...

2020/5/27

Movement keys

Mpache02 Mpache02

2020/5/27

#
I have created a new character and I want them to move left and right - I have another method to make it move up/down which is jump. The problem is the left or right keys are not responding as intended when the program is run. I am not sure why as I am not receiving an syntax error. if(Greenfoot.isKeyDown("left"))x -= 3; if(Greenfoot.isKeyDown("right"))x += 3;
danpost danpost

2020/5/27

#
Insufficient amount of code provided. Please provide, at minimum, the entire method.
You need to login to post a reply.