i want to pop up image after actor car ereaed(game over) and after that , back to Start Menu
how can i do that?
if i put a code after or before return; , its error
private void gameOver()
{
Actor actor = getOneIntersectingObject(Mobil.class);
Actor actor2 = getOneIntersectingObject(Mobil2.class);
if(actor != null || actor2 != null || getWorld() != null && (this.atWorldEdge()))
{
//Greenfoot.playSound("gameover.wav");
getWorld().removeObject(this);
return;
}
}
