How do I make the score reset when the player loses the game.

Hi, I am making a game and I have a score attribute set up. I have a problem though, when you lose the game I need the score to reset back to 0. I havent found any posts or videos on how to do this. Any help would be apprecited.
Thanks,
Aaron
Thanks,
Aaron
Comments
Your attribute for the score is an integer attribute, I guess. let's call this Score
Rule
When GameLose is false
When such and such happens in your game (whatever rule(s) you already have)
Change attribute Score to Score+10 -------or whatever added number you have
Otherwise
change attribute Score to 0
change attribute GameLose to false
Reset scene
That's basically it; hope you get it sorted.
---------------------------------------------
http://www.davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
When actor collides with car > change timer to 0 AND change score to 0 AND THEN change scene to 'lose'. You would also need to make it so the score only goes up when 'lose' = false, otherwise it will keep adding to the score on the lose scene.