How to save a complete scene which can be loaded later?

famekraftsfamekrafts Member, BASIC Posts: 834
Can a whole scene be loaded as it was the last time without being reset? For example I drag and change position of few actors, I want them exactly as they were later on when I enter the scene again. Is it possible by using save attribute?

Comments

  • Slogghah_GamesSlogghah_Games Member Posts: 29
    It should be. But I wouldn't know how. Sorry :/
  • famekraftsfamekrafts Member, BASIC Posts: 834
    That's fine, no problem.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yes, you can save those attributes to a table and then load them back from the table when you need them again. You'll need a boolean (e.g. game.SceneReset) that triggers the loading and each actor will have a rule When attribute game.SceneReset is true (and possibly a timer set to after 0.1 seconds or so to allow for the table values to load), change attributes to the table versions.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • famekraftsfamekrafts Member, BASIC Posts: 834
    Thanks, will try it.
Sign In or Register to comment.