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

    Persistence between scenes

    Scheduled Pinned Locked Moved Help and Support
    2 Posts 2 Posters 244 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 2
      • 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post