How can i save the unlock levels when i press game reset?

reginald.bernardinreginald.bernardin Member Posts: 346
edited April 2012 in Working with GS (Mac)
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

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    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

  • reginald.bernardinreginald.bernardin Member Posts: 346
    hey thanks, but would game salad be aware of this and make like a button or attribute that could fix this. it's a great programs i didn't know you had to do all that..thanks and take care
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @reginald.bernardin In my opinion, there is nothing to fix. If you want to reset EVERYTHING, you use Reset Game, which is a very handy behavior. If you want to reset mostly everything, you can use Reset Scene (which resets actor positions but not attributes) and then use Change Attribute behaviors to change anything else that needs resetting.

    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

  • reginald.bernardinreginald.bernardin Member Posts: 346
    ya ur right
Sign In or Register to comment.