The0x539 wrote:1) make a dummy API that just returns an empty table, load it shared (as API.load does by default if memory serves), and use it as a table
or
2) use global variables, in a responsible fashion
Hey, I have two questions about the data class:
1. Where is this data stored? Is it inside the actual save files?
I ask this because sometimes, it seems like data stays in the slot even after I delete the save file, and it creates problems when testing.
2. When setting new values should they be set before your code, or inside onStart()? Where should I write this?
Code: Select all
if levelData:get("introDone") == nil then
levelData:set("introDone", 0)
levelData:save()
end
EDIT: The data is now permanently there after deleting my saves. How do I get rid of it?