Basics
Guides
API Reference
Basics
Guides
API Reference
[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()).
IntervalSwitchComponent (bool InitValue = false, double IntervalSeconds = 0.0)
Creates a new IntervalSwitchComponent.
InitValue is the starting boolean value.IntervalSeconds is the toggle interval in seconds.adopt (object Ajo)
Wraps an existing IntervalSwitchComponent AussomJavaObject.
getValue ()
setValue (bool V)
valueProperty ()
Returns the underlying BooleanProperty.
getInterval ()
Returns the current interval Duration AJO.
setInterval (double Seconds)
Sets the toggle interval.
Seconds is the interval in seconds.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.