Reset Timer?

I am wondering how to reset the timer behavior. Like if a timer starts and then when you press a button it resets, but if you don't press the button in time the game will pause.

Best Answer

  • nickname5862nickname5862 Posts: 51
    Accepted Answer

    I don't exactly understand what you mean with "the game will pause", but I think the best thing to do is to make an attribute called, I don't know "timer" or something?. Then, every 0 seconds, timer to timer + 0,1. If touch pressed (on the button), timer to 0.
    This is very easy, but I am wondering if I understand your question right. Anyway, comment me if not.

Sign In or Register to comment.