How to avoid reseting the value of a variable after closing the game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MDordio
:warning: Old Version Published before Godot 3 was released.

I am doing a game where i want to have a variable that contains the top score of the player, but when i close the game the variable where the score is stored gets reset, is there away to avoid this?

i can provide the code if needed.

Thanks in advance.

:bust_in_silhouette: Reply From: rolfpancake

If I understand correctly you are talking about persistent data aka save games.
This could help: Saving games in Godot

yeah when i made the question i didnt really remembered about a “save the game” option i will look into in it, thanks.

MDordio | 2017-12-10 22:48