So I kind of feel like the manual is a bit lacking with regards to the persist behaviour, but I thought I would do some tests and see if this is something that I could use instead of my current system.
Anyway, I have chests that only spawn the first time a specific level is beaten and they hold an upgrade for the player. If the player has already beaten that level, the game goes straight to the next screen.
I thought I would have been able to add a persist state to the chest and have a boolean that lists if it's been opened or not, then check each time that level gets beaten.
It works as long as I leave the program running, but as soon as I close the program down and re-launch it, the chest reverts to its original state.
So I'm wondering, is there a way to make a persist instance save its state even after a program relaunch?