How can you make a game screen about when Y character to greater than 399, what is it when it's coming off the screen?
I was trying this way
public void playerDie()
{
int yValue = getY();
if (yValue >= 399)
{
Greenfoot.setWorld(new GameOver());
}
}
