Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Ogeeice |
Need help to create a save and load system to retrieve the players position
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Ogeeice |
Need help to create a save and load system to retrieve the players position
Reply From: | Zylann |
To save and load game states you should learn about the File
class: File — Godot Engine (3.1) documentation in English
Take variables from your nodes and write them to the file.
Then to load, read the file and set back the variables in your nodes.
The documentation even has an example of how to save games: Saving games — Godot Engine (3.1) documentation in English
And similar questions were answered already:
https://godotengine.org/qa/search?q=How+to+save