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

2013/11/29

Creating Levels

JasonZhu JasonZhu

2013/11/29

#
Good afternoon, I am looking to create a game where there are levels. By saving the world, I've made separate maps for each level. How do I set the map to a different one each time the level is changed?
JetLennit JetLennit

2013/11/29

#
Put something like this where you want to change it. (should work)
Level level = new Level();
setWorld(level);
JasonZhu JasonZhu

2013/11/29

#
Thanks, was just checking if there was such thing as a setWorld method
Yogibaer Yogibaer

2013/12/2

#
See Scenario "PushyMultiLevel" as an example.
You need to login to post a reply.