When actor collides with other actor how to reset score?

CabacoCabaco Member Posts: 414
edited November -1 in Working with GS (Mac)
I have made a score up to the seconds, i.e. 00:00
And now when an actor collides with another I want to reset game.time back to 0. BUT HOW?

Comments

  • CabacoCabaco Member Posts: 414
    TITLE MISTAKE!
    ...How to reset time?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    The built in game.time attribute cant be set back. Make your own attribute called timed or somethign and every 1 second change timed to timed+1. Then when you want to reset the time change attribute timed to 0
  • CabacoCabaco Member Posts: 414
    So I change the timer showing attribute which is game.time in that huge expression, since my timer is showing? Do i do what was previously made but change game.time to my made attribute, game.timer?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yepp, everywhere theres game.time in those expression just replace with your made game.timed attribute
  • CabacoCabaco Member Posts: 414
    alright thanks it worked!
Sign In or Register to comment.