How can i save the unlock levels when i press game reset?
When you play a level and complete it, it unlocks the next level and changes the image. But when i press the game reset button it resets the unlocks back to the beginning how can i fix this?
Best Answer
-
tatiang Posts: 11,949
If you are using a Reset Game behavior for your game reset button, then this is certainly going to happen. Reset Game resets all actors and attributes back to their original values. You can either make your own reset button rules that do not use Reset Game, or you can save the attributes (such as game.highestUnlockedLevel) by using the Save Attribute and Load Attribute behaviors to store the data on the device itself.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
They can't really build in a "reset button" because how would they know what you want reset and not reset in every possible game scenario?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User