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

2012/4/26

If you have multiple Worlds...

MrCohen MrCohen

2012/4/26

#
... How do you specify which World to load first? For example, I have a scenario that has a "WorldMap" World as well as an "TitlePage" World. I created the WorldMap first, and so it seems to default to opening that World first. I can setWorld() to the TitlePage World, but I figured there must be a cleaner way to have it just start the game in the TitlePage World. Any ideas?
nccb nccb

2012/4/26

#
Greenfoot creates the world which is the last one that you manually created, as long as it has a no-argument constructor. So if you right-click on TitlePage world, and select "new TitlePage()", that will be the one that it starts from in future (assuming you don't manually create a WorldMap world in the mean-time). This choice also carries on to the website when you export.
MrCohen MrCohen

2012/4/27

#
Thank you that answered my question perfectly :)
You need to login to post a reply.