I want the game to change levels once all the blue balloons are gone. I have this but it doesn't work. How can I change to the next level?
public void nextLevel()
{
Object balloon = getIntersectingObjects(Balloon2.class);
if(balloon==null)
{
BalloonWorld world = (BalloonWorld)getWorld();
world.Level2();
}
}
