Save and load player posituon

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ogeeice

Need help to create a save and load system to retrieve the players position

:bust_in_silhouette: 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