ok so now i have this...
is there a way that i can specify the world and say if that world is empty then open level 3?
public void nextLevel()
{
if (getWorld().getObjects(Rock.class).isEmpty())
{
Greenfoot.setWorld(new Level2());
}
}
