Hello. I recently uploaded my first Scenario (http://www.greenfoot.org/scenarios/12153) and I am trying to (in non-programming terms here) make it so that when all 15 hostages have been rescued, text appears similar to a game over screen. I have a score counter that functions so whenever the player "eats" the hostage = +1 score. This is my attempt which does not work :
Any help or nudges in the right direction would be greatly appreciated!
if (score==15)
{
VICTORY VICTORY = new VICTORY();
addObject(VICTORY,getWidth()/2,getHeight()/2);
Greenfoot.stop();
}

