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;