Skip to main content

Advanced Timer

This node provides a high-precision timer with start, stop, pause, and reset functionality.

The Advanced Timer node is a versatile timing tool for animations, cooldowns, and game loops.

The Advanced Timer node counts time up or down. It offers precise control over playback and emits signals at specific intervals or upon completion.

Inputs

Configuration

DataDescription
DurationThe target time in milliseconds. Default: 1000.
LoopBoolean. If true, the timer restarts automatically when finished.

Actions

SignalDescription
StartStarts the timer.
StopStops the timer and resets to 0.
PausePauses the timer at current time.
ResumeResumes from paused state.
ResetResets time to 0 without starting.

Outputs

Status

DataDescription
Current TimeThe elapsed time in milliseconds.
ProgressNormalized progress (0 to 1).
Is RunningBoolean status.

Events

SignalDescription
FinishedTriggered when the timer reaches Duration.
TickTriggered every frame (or update interval) while running.

Usage

Cooldown

  1. Set Duration to 5000 (5 seconds).
  2. Trigger Start when an ability is used.
  3. Disable the ability button while Is Running is true.
  4. Re-enable when Finished triggers.

Progress Bar

  1. Connect Progress to a Slider or Animate To Value node to visualize time passing.

Detailed Behavior

  • Precision: Uses for high accuracy.
  • Ticker: Integrates with the application's main loop to ensure smooth updates.

Troubleshooting

  • Not Stopping: If Loop is true, Finished will trigger, but the timer will immediately restart. Use Stop to halt it completely.