hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Persistence between scenes

    Scheduled Pinned Locked Moved Help and Support
    2 Posts 2 Posters 10 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • autumnsworldA Offline
      autumnsworld
      last edited by

      I'm making my first game, and am trying to develop a super-simple top-down RPG for practice. My question is:

      Is there a way to have persistence between scenes? For example, preventing enemies from respawning and values resetting after moving into/out of a house that is a separate scene from the overworld.

      RobinsonXR 1 Reply Last reply Reply Quote 1
      • RobinsonXR Offline
        RobinsonX @autumnsworld
        last edited by

        @autumnsworld Yes! You are referring to the Modify Save File and Load from Save File behaviors. You can persist values in between plays using those behaviors.

        Modify Save File: Select a key (location) to save a value. You can also use this behavior to delete a key.

        Load from Save File: Select the key to load that value. If the key does not exist, it will output the default value.

        Let me know if you need more information.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post