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

    How can I have a player pick up a coin and collect it and save it?

    Scheduled Pinned Locked Moved Help and Support
    2 Posts 2 Posters 612 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.
    • H Offline
      Hayden
      last edited by

      I want to have a player to be able to have the coins picked up saved even if you leave the game. How can I do this?

      1 Reply Last reply Reply Quote 0
      • MurtazaM Online
        Murtaza Admin
        last edited by

        Our getting started guide has a section on picking up coins and adding it to a score.

        To make it save, also use the save behaviour and output the score to the save behaviour. This will save the value each time you pick up the coin.

        Then on the project start use the load behaviour to load the previously saved value and set the score and label to that loaded value.

        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