+1 vote

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.

in Engine by (31 points)

1 Answer

0 votes
Best answer

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

by (1,036 points)
selected by

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.