This site requires JavaScript, please enable it in your browser!
Greenfoot back
payner2013
payner2013 wrote ...

2013/11/13

done it but how can i do this...

payner2013 payner2013

2013/11/13

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