I want to put a image in my game which says that you have won the game. I have already this code to complete the game:
public void completeLevel4()
{
if (this.score==7){
try
{
World world = (Level4) getWorld();
//further actions
Greenfoot.delay(200);
setImage("winning.png");
Greenfoot.setWorld(new Begin());
}catch (ClassCastException x) {}
}
}
The image I want to put in the game calls "winning.png".
