reseting scene help with attributes
![Pennez-Games](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
i have gotten so when you click reset scene the coin amount and the timer and the lives go back to normal, but i cant seem to reset all the controlls, so after reset scene is pressed, none of my controlls work, my pause button, my jump button, my move left and right button, ect.. how can i fix this, please help! thanks
Comments
Your question isn't easy to answer because it will rely heavily on how you have coded your game. Are you aware that there is a gamesalad action called reset scene? if you add this action to your reset button then when pressed it will reset your current scene and it's attributes. Keep in mind that this will not reset game attributes just scene attributes, so if your HUD for example makes use of game attributes then you will also need to add actions to reset these when the button is pressed.
If you are having issues then it is likely that somewhere you've missed an attribute that needs to be reset to how it was when the scene first started.
Of course like I said this is all subjective without knowing anything about the way your game works, but it might point you in the right direction.
yes they are game attributes, how can i reset them?
You reset them with the change attribute action. If you have a list of game attributes that need resetting (to 0 for example) then on the button actor have rules that say:
"when touch is pressed
change attribute (insert game attribute here) to 0"
Do this for all game attributes.
This being said, resetting attributes is pretty fundamental gamesalad knowledge, so seeing as you're struggling at this point I'd suggest looking at the gamesalad cookbook and as many tutorials as you can before diving headfirst in to a complete game. With each tutorial you will gain more knowledge, and soon you'll be able to tackle these problems without trouble.