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

2012/3/4

Odysseus Game Help

tallyaka tallyaka

2012/3/4

#
How do I make it so that you can only switch worlds once you have killed the cyclops? this is based off of this game that I'm making .
DonaldDuck DonaldDuck

2012/3/4

#
If I remember correctly, you can have this is your world:
 public void act()
{
    if(getObjects(cyclops.class).isEmpty()) { SWITCHWORLDS }
} 
tallyaka tallyaka

2012/3/4

#
Ok thanks! I wanted to put it in my actor so i fiddled with it a little, but thanks!
You need to login to post a reply.