I have 2 of images and want to switch to one when I press the Up arrow key and switch to another when I press the Down arrow key. Is there anyway to code for that?
To change the image, use the 'setImage' method in the Actor class.
To detect the keystrokes, use one of the methods in the 'Greenfoot' class.
Use appropriate conditions (in an 'if' statement) in the 'act' method, or a method it calls, to determine if image needs changed or not.