Do not reset coin on restart

I want to make a game eith one time coin.

If coin picked , coin coin did not get back after restart game.

If you want something to be remembered when you restart the game (including exiting the game and starting it again), you’ll need to save that information to a file. When you start the game, load that file and check whether the coin has already been picked up.

How

Check out these articles for help: