Tables--are their values saved?
Tapcodia
Member Posts: 84
When the game quits, are the current values in the table saved and automatically retrieved when the game starts? I want to save data this way instead of saving a value to a key.
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
As said above, tables saved via the Save Table behavior, will automatically be loaded when the app is shut down and restarted. Though it is lost when the app is deleted and then reinstalled.
HOWEVER, when you save a table, any updates to the table between app versions will not update and override the saved table unless the app is uninstalled(thus losing all saved data) and reinstalling. Or you add in logic to update the table. (Except columns because new columns can't be added or removed.) So plan ahead.
EDIT: Scrap that, you mean changes to the table structure. I thought you meant changes to the data.
It turns out I was actually saving the table in several places so that would explain why the data is available each time the app is properly closed and re-opened.