file: IntervalSwitchComponent.aus

class: IntervalSwitchComponent

[19:7] extends: BooleanComponent

Wraps FXGL's IntervalSwitchComponent (com.almasb.fxgl.dsl.components.IntervalSwitchComponent), a BooleanComponent that flips its value every interval seconds. Useful for blinkers and timed toggles. Must be constructed inside a running FXGL game (uses FXGL.newLocalTimer()).

Methods