I am making a asteroid game which can be found here :(Space Dodge ).
I am having a problem when trying to change the character image to a different image, I have this , for where I want to set the image after:
I have been trying this :
so it is meant to set the image and then stop the game , but it doesn't seem to work.
help please.
Hawx
public void stopped() { Actor Rocket = getOneIntersectingObject(Rocket.class); if (Rocket != null) Greenfoot.stop(); return; }
public void stopped() { Actor Rocket = getOneIntersectingObject(Rocket.class); if (Rocket != null) setImage("game Over.jpeg") Greenfoot.stop(); return; }