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

2015/9/24

Multiple Worlds

Collin Collin

2015/9/24

#
Hi again. I have multiple worlds which each resemble a Level of the game. I have no idea why, but when I click the "restart" button it generates the 3rd World, so the Player would start with Level 3, which makes no sense. Is there any way to always start with Level1? By the way, Level1 is called "Water", Level2 is "Water2" and so on.
Super_Hippo Super_Hippo

2015/9/24

#
Right-click on the 'Water' class and select 'new Water()'.
Collin Collin

2015/9/24

#
I know that, but I want it to be the first level when I click reset. It shouldn't matter what level I was before
Super_Hippo Super_Hippo

2015/9/24

#
Start the first level as described. Don't start the other levels like that. Implement code to get to the next world:
if (...)
{
    Greenfoot.setWorld(new Water2());
}
You need to login to post a reply.