I'm using 3.5.1 and I'm trying to make the game end when all the apples have been collected. The code doesn't bring an error message, but when all the apples are gone, it doesn't end either. Please help- keeping in mind I know barely anything about this language so you might have to talk to me like I'm an idiot.
{
if(getObjects(SpaceApple.class).isEmpty())
{
Greenfoot.stop();
}
}

