Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Time

Timer

Use Timer as a timer. Timer is in the Time category.

Input

NameData typeDescription
StarttriggerExecute to start the timer
PausetriggerExecute to pause the timer
ResumetriggerExecute to resume the timer
DurationNumber (Double)Duration time(seconds) of the timer

Output

NameData typeDescription
StartedtriggerExecute the next node when the timer starts
TicktriggerExecute the next node each frame
CompletedtriggerExecute the next node when the timer stops
Elapsed TimeDoubleThe number of seconds elapsed since the timer started
Progress%DoubleThe proportion of duration that has elapsed (0-100%)
RemainingDoubleThe number of seconds remaining until the timer is elapsed

Example

In this example, we use the percentage of time passed in the timer to change the color of sphere.