Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps FXGL's LocalTimer, a one-shot stopwatch built from Timer .newLocalTimer. capture records the current time; elapsed returns true once a given Duration has passed since the last capture. Useful for cool-down counters and frame-budget gating.
LocalTimer ()
Empty default constructor; populated by Timer.newLocalTimer.
capture ()
Records the current time as the reference point for the next elapsed call.
this objectelapsed (double Seconds)
Returns true if Seconds or more have passed since the last capture.
Seconds is the threshold in seconds.A bool.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.