Reseting Timers

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

Lets say I have a timer, timer has a wait time of 1s, it is active and time_left != 0. I then assign a new value as wait time, lets say 2s. Does the timer starts counting to 0 from 2s or does it add those 2s to time_left from previous count.

:bust_in_silhouette: Reply From: PEIGNAULT Laurent

Hello,

If you assign a new value to the timer, the timer will count from 0 to the new value.
There is no reason for it to be otherwise unless you want to add previous value to the new one .

By quoting Mando: This is the way

Skipperro | 2021-01-13 19:53

Makes sence, had to ask. Sorry for late reply.

sokodjabuke | 2021-01-29 22:38