Mantain Coins After Restart

I want to create a game with coins but when you close the game he maintains the coins. How can i do it?

image
save the variable that contains the number of coins before exiting the game (or, better, if the game does it automatically at each step)

2 Likes

image

when the game restarts, have the value read and assign it to the bad that contains the number of coins

2 Likes