How do I make a 10 second timer that starts over when my player collides with something?

I’m making a Spider-man game where theres a timer that counts down from 10 seconds, but i want the timer to start back at ten when spider-man touches a pumpkin bomb. can anyone help?

1 Like

player collision any → reset timer (put 100 in as value)
then delay a frame with a 0 second timer to start

4 Likes

can you give me a screenshot of that?

1 Like

You go to the triggers tab, put two timers one of 0 s and 100 s (as our friend said earlier) the collision is connected to 0 s which is connected to 100 s then in “out” you put what will happen next

nvm i got it working, but what about the label i cant get it to work

1 Like

what about a label? i want the label to count down then when he colides it starts back at 10

1 Like

Use a timer to make it so every second an expression runs, doing A-1, and the output sets A and the value of the label. Then, everytime it is equal to 0, set the expression back to 10, reset the timer, and set the label to 0 alpha.

1 Like

do you have an example of that in a game?

2 Likes


The timer value goes to a number that adds it to another number that goes to the value input on a Label. That way, the label counts the amount of time on the timer.

1 Like

Just put the number in the value of the label, write something in the label and test

1 Like

cheese
shrinkly shrek

2 Likes

What? Why did you post this.

Hey, it’s gettin’ a lot of attention! (At least for my standards anyway.)

1 Like

Has anyone solved your problem?

1 Like