Save System Problems when saving Arrays

Godot 4.2

I made a save system and everything is working except for the array. I’ve read through the docs and I’m still not really sure how to solve the problem. Also please know I’m a middle school student and have only been programing on and off for a few months so I need a lot of help understanding

What values do you get out of file.get_var what does inventory end up as? keep in mind get_var only takes a boolean true/false parameter, you should not be giving it values as an argument.

player_pos_x = file.get_var() # no value, use default for `allow_objects`

Make sure to paste code instead of screenshots

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.