My score does not reset when i change back to the previous scene
jonvier89
Member, PRO Posts: 15
Whenever my hit box gets hit, it goes to the next scene.
When i press go back to the previous scene (try again button) it still has the same score that i did in the previous try.
I would like for the score to reset back to 0
How can i fix this problem, i would really appreciate some help!
Thank you!
When i press go back to the previous scene (try again button) it still has the same score that i did in the previous try.
I would like for the score to reset back to 0
How can i fix this problem, i would really appreciate some help!
Thank you!
Comments
Hi @jonvier89
First to say, make sure your score attribute is a game attribute. Then make a boolean attribute, let's call it Fail.
In your try again button, put:
Change attribute Fail to true
Change Scene previous scene
in an actor at the side of this pref. scene, put:
If attribute Fail is true
Change Attribute Score to 0.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps