I've been trying to get my game to transition into level2. But it won't I've tried adjusting my code but nothing works. The actor picks up 5 scrolls after that level1 is completed and should move into level 2. CODE BELOW
/**
*
*/
public void nextLevel()
{
if (scrollCollector > 5)
{
Greenfoot.setWorld(new Level2());
}
}

