How to do timers or stop watch?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skydome

Hi I want to make it so pressing the right, left, up, down, attack, defense or jump button will start a countdown and during that countdown will check for more button combos. How do I start that countdown?

:bust_in_silhouette: Reply From: neoxid501

You can use a Timer node.
Relevant notes:

one_shot property - so it doesn’t loop
wait_time - how much time the timer waits for
time_left - you can use this variable, check if it’s greater than 0
finished() [signal] - alternatively wait for the signal to stop checking for inputs

Ok and how does waittime work? Like does the wait time show the countdown in seconds? If the wait time is 1 then it counts for 1 second?
And time_left is where the timer is currently right?

Skydome | 2019-05-24 10:21