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

2014/2/8

How to go to next level using a button?

duckduckduck duckduckduck

2014/2/8

#
I'm working on this hidden object game and I can't seem to figure out how to add a button that will lead to the next level after all the items have been found already. Help?
danpost danpost

2014/2/8

#
Add a subclass of Actor called 'SearchableItems' and have all classes for items that need to be found extend this class. I presume that the items found will be removed from the world when found; so, the Button object can use 'getWorld().getObjects(SearchableItems.class).isEmpty()' to determine if all have been removed.
You need to login to post a reply.