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

2017/12/14

The scenario stops when switching worlds?

Arakniode Arakniode

2017/12/14

#
So, pretty much what I wrote in the title. I checked and it is not any kind of error, for no console opens. The scenario I'm in is that I have a MenuWorld with a "Start" button, and when I press it, it takes me to the new World but also stops the game instantly. Any advice? Thank you in advance :)
Super_Hippo Super_Hippo

2017/12/14

#
There is no way to help you without seeing any code.
danpost danpost

2017/12/14

#
Super_Hippo wrote...
There is no way to help you without seeing any code.
Particular, all codes executed when changing worlds. That is, code around where you create and set a new world active; the constructor of the new world (and possibly its act method); and possibly the constructors of any actors that are created by the new world whose class has not been previously instantiated (an object was yet to be created from the class).
roonie01 roonie01

2017/12/15

#
do you possibly have a Greenfoot.stop(); some where in your code for the start button
You need to login to post a reply.