once my character has been 'eaten' by a randomly floating enemy i want the game to end on a sort of game over screen, how can i do this?
thankyou in advance
//Changing worlds
public void gameOver()
{
Greenfoot.setWorld(new GameOverWorld());
}
//New actor by another actor specify x and y
public void gameOver()
{
getWorld().addObject(new GameOverActor(),x,y);
}
//New actor from a world, specify x and y
public void gameOver()
{
addObject(newGameOverActor(),x,y);
}