coin saving in a game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By THE HELIX
 Hi i would like to know how i can save the amount of coins the player received in a level.when the player plays the level again; the coins he received in this level should be added to the coins he collected before. 
 The coins amount should be saved when the player enters or exits the game.
    and  " Could you help me in writting down the coin's gd and the nodes required in this procedure ? "

This link may help you.

tam0705 | 2018-12-14 06:52

Why is everything in code format?

SIsilicon | 2018-12-14 12:20

:bust_in_silhouette: Reply From: rojekabc

I don’t know what you exactly understand by coin in your game. But in my point of view this is just a variable in your scripts. The value of it you may hold in user-space file, if it is enough, or you may hold via API on some server and load to your variable from it.