How can I have a player pick up a coin and collect it and save it?
-
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?
-
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.
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