Forum rules - please read before posting.

Is it possible to preserve the state of game objects when changing scenes?

I was wondering, as the title says, if there is any easy way to save the state (meaning position/rotation/viability etc) of objects when leaving and returning to the same scene.

lets say I have an object that turns red once you interact with it.
and the player leaves the scene, when he returns to the same scene, the button will not be red.

so far, ive been setting various variables and my OnStart cutscene sets the objects to their correct state.

however as the game gets more complex this becomes more and more tedious.
So is there a way for me to achieve this? or is my current method the only way?

Thanks a lot, Benny.

Comments

  • I think what you're looking for is "RememberTransform" script. At least for object's rotation/position/scale. There's a lot of those "Remember* " scripts, like RememberHotspot (to remember if the hotspot  should be enabled/disabled).
  • aha! I knew there was a better way!

    Thanks a ton!!!
  • edited February 2018
    Please see the "Saving and loading overview" chapter of the Manual for a full rundown of how you can set up your game to save objects states automatically.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.