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

2019/3/19

Multiple worlds

Andrew0739 Andrew0739

2019/3/19

#
How could i save all the states of my main world, create a different one, lets call a battleWorld, do some stuff in it, and then go back to the main world without resetting everything (saving the progress). For example i have the main world where the player walks around, if the player comes in contact with some particular object then it will initiate battle and once the battle ends the world will continue running where it left off. Not too sure how to implement this. I was told that a possibility could be to create the new "battleWorld" and have it point to the original world, also not sure how this would work. Appreciate all help.
danpost danpost

2019/3/19

#
Andrew0739 wrote...
How could i save all the states of my main world, create a different one, lets call a battleWorld, do some stuff in it, and then go back to the main world without resetting everything (saving the progress). For example i have the main world where the player walks around, if the player comes in contact with some particular object then it will initiate battle and once the battle ends the world will continue running where it left off. Not too sure how to implement this. I was told that a possibility could be to create the new "battleWorld" and have it point to the original world, also not sure how this would work. Appreciate all help.
Please refer to my World Changing Demo scenario.
You need to login to post a reply.