I wrote some save code, to save my game. The varible already works however I cant get it to save the array. What do i need to change in order to make it work?
Hey!
Looks like you are missusing FileAccess.get_var() !
You cannot tell the method what variable you are extracting, it will just get the next variant.
Your code should works fine if you just remove the parameter from the get_var calls
If you want to know more about data processing, I recommend this amazing topic:
The thing with Godot is that there’s no only one solution, you had many solutions.
But before seeing these solutions, you must know what you want to save first.
I’ll help you defining how and where you can use these saved methods, and you decide what to use, deal? Deal.
Before actually starting coding something…
Define what you want to save first
Don’t say:
“I’m going to use [Format Name Here] to save my things”
This will probably over-complicate the process for you and your team. Decide …
Hope that helped!