reseting scene help with attributes

Pennez-GamesPennez-Games Member Posts: 107
edited July 2012 in Working with GS (Mac)
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

  • Pennez-GamesPennez-Games Member Posts: 107
    help would be appreciated. :D
  • BarrytheBraveBarrytheBrave Member Posts: 134
    Try to leave it more than an hour before bumping - there's generally less people on at this time of day.

    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.
  • gurechangurechan Member, PRO Posts: 211
    If you're using attributes to check for the control settings, you'll need to create a rule to reset all of these. The just using the reset scene attribute won't do it.
  • Pennez-GamesPennez-Games Member Posts: 107
    Try to leave it more than an hour before bumping - there's generally less people on at this time of day.

    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?
  • Pennez-GamesPennez-Games Member Posts: 107
    If you're using attributes to check for the control settings, you'll need to create a rule to reset all of these. The just using the reset scene attribute won't do it.
    i dont know how to reset them :(

  • BarrytheBraveBarrytheBrave Member Posts: 134
    edited July 2012
    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.
Sign In or Register to comment.