My score does not reset when i change back to the previous scene

jonvier89jonvier89 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!

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2014

    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

  • jonvier89jonvier89 Member, PRO Posts: 15
    perfect! thank you sooooo much!!!!!
  • justinbrett1975justinbrett1975 Member, PRO Posts: 6
    You could also in the first scene set a time of AFTER 0.01 seconds, set score to 0
Sign In or Register to comment.