I want to create a game with coins but when you close the game he maintains the coins. How can i do it?
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
when the game restarts, have the value read and assign it to the bad that contains the number of coins
2 Likes