Help with game reset

Hi again,
In options scene of my game, I have a button that you can reset the game. But, when I click this, all levels unlocked before, continues unlocked.
How can I setup game reset with save/load attributes?
Thanks!
In options scene of my game, I have a button that you can reset the game. But, when I click this, all levels unlocked before, continues unlocked.
How can I setup game reset with save/load attributes?
Thanks!
Best Answers
-
EatingMyHat Posts: 1,246
Any attribute that you saved, need to be saved again with the 'reset' value, otherwise the old value will just get loaded next time that you will load the attribute.
Follow Eating My Hat on Facebook and the Blog
Check out my templates in the GS Marketplace or at the store
-
SlickZero Houston, TexasPosts: 2,870
You need to save the attribute changes to the locked levels when you hit the "reset game" button, and then have load attributes that tells the game to lock them back when it first starts up after the reset.
Answers