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

2014/2/8

How to go to next level after level one?

duckduckduck duckduckduck

2014/2/8

#
How to go to next level after level one?
danpost danpost

2014/2/8

#
That depends too much on what your scenario does and how you are doing the levels to answer without more information. Though, basically, you either reset the current level and adjust values to make it harder or create a new level (subclass of world) and make it active.
Osidy Osidy

2014/2/9

#
In my game, a truck delivers crates to a depot, the depot keeps track of how many it has obtained. Is there a way that after "x" crates, the world changes to a world with different obstacle layouts, and again and again few a few levels?
danpost danpost

2014/2/9

#
@Osidy, sure. After the incrementing of the number of crates delivered to the depot, put a check to see if 'x' crates have been delivered yet. If so set up a local World field and, depending on which class the current world is an instance of, create the next world and set it active.
You need to login to post a reply.