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

2011/9/14

World Start

Builderboy2005 Builderboy2005

2011/9/14

#
Is there any way to determine which world a scenario with multiple worlds will start in? I recently implemented multiple worlds into my Nightmare scenario to switch between the menu and the game, and it worked the first time i ran the scenario, but now when I run it, it jumps straight to the game.
davmac davmac

2011/9/15

#
It should be the last one you interactively created. So, right-click the first world and choose the constructor (it must have a constructor without parameters) to create a new instance of the world. After that, if you reset, it should create a new instance of that world. (If that doesn't work, let me know. As a workaround, you can probably force the issue by adding a dummy parameter to the constructors of all the other worlds).
Builderboy2005 Builderboy2005

2011/9/15

#
Any reason my scenario loaded to the proper world the first time I played it, but now will load to the opposite world?
davmac davmac

2011/9/15

#
Not sure - it probably shouldn't have done that (assuming you didn't actually instantiate the other world). Maybe a bug in the logic which decides which world was instantiated last; I'll check over the code when I get a chance.
You need to login to post a reply.