My first little bit i'm having trouble with is at the end of a game, making a window for the final score to pop up onto, so that the game does not pause when the player dies. here's the code i'm using now
second problem!
as you play the game, sometimes enemies will spawn RIGHT next to you and kill you immediatly. not fun. so creating a method that checks if the player is in a certain range (prrooooobably the getObjectsinRange method, but i do not know how to use that) and spawn the enemies a few pixels away.
no code, because I have no idea how to do this.
public void eatply(Class clss)
{Actor actor = getOneObjectAtOffset(0,0,clss);
if (actor != null) {
getWorld().removeObject(actor);
Greenfoot.stop();
}
}

