i need help making a image witch says GAME OVER (witch i already have) come up when you get eaten, i'm new to this and i have no idea.
//if (gotEaten) World world = getWorld(); if (world != null) { world.removeObjects(world.getObjects(null));//remove all objects in the world; world.getBackground().drawImage(new GreenfootImage("gameOverImage.png"), 0, 0);//draw the game over onto the worlds background; Greenfoot.stop();//stop the game; }