Godot 4 a file to store many variable

Godot 4

can i have a separate file to store my variables? and if its so, how can i do it

What’s the use case and how many variables you need to store? A dictionary is usually sufficient.

Its called JSON, you can find many tutorials on it, on how to save/load data.

for exapmle i found that i can use Autoload to access to all my variables, whats the differetns if i use a JSON?

A lot, i ned to store notes, scales etc. its about music

If you use autoloads, then it can saves the data only when the game running and JSON allows to save data for the game, whenever you run it will saved.

1 Like

Oh but thats what i mean, i want to store variables to use them in other script just to have all in order

1 Like