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

2012/4/17

Change auto created world

SPower SPower

2012/4/17

#
Hi all, I want another world to be created when the scenario starts, instead of the world there already is. Does somebody know how to do that? Thanks
nccb nccb

2012/4/17

#
By default, Greenfoot re-instantiates the last world that was manually created -- that is, it uses the world which was the last one which you right-clicked on and selected "new MyWorld()". As long as that world has a no-argument constructor, that is. Does that solve your problem?
SPower SPower

2012/4/17

#
O thanks! That solves it.
You need to login to post a reply.