Discord
Login
Community
DARK THEME

Save File

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 .

https://microstudio.dev/i/HomineLudens/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

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community