Reset Game Issue
921creative
Member, PRO Posts: 140
I'm unable to get my game to reset when a button is pressed. I have an options screen with a "Reset Game" button. When the button is pressed, it pauses the game to overlay a "confirmation" screen with "Yes, Reset" and "Cancel" buttons. I may already have the answer--is it because the game is Paused at the time the user confirms the reset? It does go to the Initial Scene as it's supposed to, but all the saved attributes are still being loaded so I know the game isn't resetting.
Comments
When you want to reset the game, when they press yes you have to change ALL the attribute used for the game back to their original setting.
So if level was at 1 when the application started for the first time, you have to change it back to 1.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Let say you saved an integer in 3, when you reset you game it will go back to the number it was when you saved it because......... you saved it!
I think you can do what Brydon is saying, when touch is pressed change all the attributes you saved to their original setting, but in my opinion you should examine if you really wanted to save the attributes in the first place. cheers.
My question remains...what is the point of the Reset Game behavior? I understand Reset Scene. Does Reset Game reset all scene attributes? In that case maybe the behavior should be called Reset All Scenes.
Someone help me out here...so if, when doing a game reset, I save all the stored keys' attributes with their associated attributes' default values, will this officially reset the game for me?
Dear GameSalad, please give us an easier way to wipe out the stored keys! It seems like resetting the game should do this since keys get re-saved throughout the course of gameplay anyway.
@921creative - I see you posted this a few years ago. I'm just now getting into the "reset game" issue myself. I'm putting the finishing touches on my first game. Did you ever figure all this out? Can you give me some tips/advice here? Thanks.