Save File
How do you create a save file for the player to continue their progress at any time?
How do you create a save file for the player to continue their progress at any time?
I'm not sure but I think it saves automatically if the game is an app because getting cash will change variable which will auto save
You can save to storage .
As loginus already mentioned, use the storage.
A small example would be:
inventory = object
used_slots = 1
free_slots = 26
content = ["dirt"]
end
storage.set("inventory", inventory)
inventory.used_slots = 2
inventory.content += ["wood"]
inventory = storage.get("inventory")
print(inventory)
(This has a lot of bad practices, lol)
thank you so much