Saving a world?


(Caleb) #1

Hello Flash punk forum! I am new to flash punk and absolutely LOVE the framework. I have a quick question.

  • I create a new world
  • The player meets some condition which transports him to another world
  • Once the player has completed everything he/she needed to, it is transported back to the original world
  • How can I save the original world so that nothing has been changed or altered and it is not just a brand new world?

Thanks!


(Caleb) #2

Nevermind I figured it out, you just have to pass in the world to the transported world.


(Jacob Albano) #3

Yep, a World instance will keep its state even when not active. As long as it isn’t updating, everything should be exactly as you left it when you use it again.

Welcome to the forums!