#Help with saving and loading a variable
1 messages · Page 1 of 1 (latest)
https://docs.godotengine.org/en/stable/classes/class_fileaccess.html#class-fileaccess-method-get-var -- that is not how you call get_var
Godot Engine documentation
Inherits: RefCounted< Object Provides methods for file reading and writing operations. Description: This class can be used to permanently store data in the user device's file system and to read fro...
you need to actually assign its result to the variable you would like to have hold the result
(so: top_score = file.get_var() -- sorry, I didn't check which variable names you used, it's a lot of code to skim through!)
thank you very much :D