Reset from previous screen

Hey guys, if I wanted to make a Reset Button from the previous screen would I do this : Make a boolean attribute, go to my restart button and have it say, when touch is pressed, gameReset = true and change scene to next scene. Then would I go to my actors and in them put all of the rules under gameReset = true?
Comments
(If you wanted to reset the level you're on, then you'd use the Reset Scene Behavior mid-scene, where you wanted.)
----------------------------------------------
http://davidgriffinapps.co.uk/
iPad: End of the Earth game coming soon to the iTunes App Store....
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
So sorry, can't help further with that; there has to be something not right with the Rules maybe but without seeing them I don't know what that might be.
PS as John wrote, don't forget to change you GameReset attribute back to false at the beginning of the level(s); although even without this, I can't see why it's not working as you want.... hopefully another member can shed more light....
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
OK, Have you an integer attribute that determines whether or not to the scene restarts; or a timer?
If its an integer attribute, you'd set it's value at 0 (default setting anyway). If the level allows the user progressive mistakes until a maximum amount is reached before restarting the level, then when a mistake is made - (this is all off the top of my head not knowing what type of game you're making or how it plays) - you'd put in the rules somewhere:
change attribute Maxmistakes to MaxMistakes +1
When MaxMistakes = 10
Restart Scene
and for going to the next scene, there surely must be an indicator of success like a timer or another integer count, so we'll add stuff:
When SuccessPoints = 5
Change Scene
Something along those lines: hope that helps out.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
And add to the 2nd bit of rule I suggested:
When SuccessPoints = 5
Change attribute LevelFish to true
Change Scene
-----
don't forget to add at the beginning of all levels:
Change LevelFinish to false
as well as resetting your other attributes like SuccessPoints and MaxMistakes (or whatever you've called them)
:-)
Edit: "LevelFish".... ha!! The wonder of predictive text! I like it, it's got a certain ring to it..... "levelfish......levelfish..... ;-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps