Topic was automatically imported from the old Question2Answer platform.
Asked By
thomasedwards
I’ve just got started with Godot, and I’m trying to work out how to ask this question.
I’m building a game that’s heavy on user interfaces. The player doesn’t have a node. Ideally I’d like to use multiple scenes to make it more manageable.
There’s data in the game that I’d like to store and make available. Things like a name the player has chosen, and things they’ve created.
Looking through the docs, I can’t workout how other people are doing this. This isn’t config options, and should be part of the save file: so I don’t think ConfigFile is suitable. All the examples and tutorials I’ve found so far tie the data to the object it’s created in. From a non-Godot programming world, what I want is a class that has a single instance throughout the game and that I can get to from any other class.
I feel like I’m not searching for the right terms, as I’m obviously not the first person to need to save player data that’s not attached to a node.