Saving / Loading Attribute For Unlocked / Locked Levels
In my game, I have 25 levels. I have created 25 boolean attributes all with the same name but different number for specific level. So, for example, I have it set so that when Level 1 is complete, change attribute Level_1_Complete to TRUE AND Save Attribute Level_1_Complete with key lvl1complete. Then in my menu system, my background has the Load Attribute, and my button for Level 2 is set to change image and unlock when Level_1_Complete is TRUE, so that unlocks.....etc....
1: Is that going to work for all of them with those Save and Load attributes, and with booleans? They will load back on for sure if user quits and returns? (i dont have a test device atm)
2: On my main menu there is a button to Reset Entire Game, how would I make sure all those Save Attributes (unlocked levels) get erased and reset?
3: Is this a efficient way of using them? As in, is there a better way than having 25 boolean attributes, or is it not that big of a deal? Like should i use one integer attribute and just change the number each time level is complete.
4: Would anything be messed up if they were to redo a already-completed level just for fun but they fail it?
JeffreyShimane sort of explained it here: http://gamesalad.com/forums/topic.php?id=7139
but i had other questions and would like more detail.
1: Is that going to work for all of them with those Save and Load attributes, and with booleans? They will load back on for sure if user quits and returns? (i dont have a test device atm)
2: On my main menu there is a button to Reset Entire Game, how would I make sure all those Save Attributes (unlocked levels) get erased and reset?
3: Is this a efficient way of using them? As in, is there a better way than having 25 boolean attributes, or is it not that big of a deal? Like should i use one integer attribute and just change the number each time level is complete.
4: Would anything be messed up if they were to redo a already-completed level just for fun but they fail it?
JeffreyShimane sort of explained it here: http://gamesalad.com/forums/topic.php?id=7139
but i had other questions and would like more detail.
Comments
There is a better way to do this. There is an excellent Video from tsb about this.
2.
After watching the video you know how. Just change the attribute. Only one value to change in the load- save attribute.
3. and 4.
Everything is explained in the video.
Say thank you to tshirtbooth
Thank you to tshirtbooth as well
best regards
PerfectAnswer