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.