Topic was automatically imported from the old Question2Answer platform.
Asked By
InstelGames
Old Version
Published before Godot 3 was released.
Is It possible to add a script for a save system that would not be connected to a scene, and you could call the save function from any scene?
And to make it so when you reopen the game all of your progress would load?
ex: I finish a level, then you are sent back to the level select page. You close the app then reopen it and all of the levels you have completed would load?
It all boils down to saving variables in a file, and reading them back when the game starts (for example, in the first scene, or using an auto-load singleton).
What these variables do to your game is up to you: it can be a list of completed levels, high scores, or more detailed information using dictionaries and arrays.