logo 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
    2
    360
    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
      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
        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
        • First post
          Last post