Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: Component
Wraps FXGL's EffectComponent (com.almasb.fxgl.dsl.components.EffectComponent), a DSL Component that manages a set of active Effects on an Entity. Effects of the same concrete class override each other -- a newer one ends the previous one.
EffectComponent ()
Creates a new EffectComponent.
adopt (object Ajo)
Wraps an existing EffectComponent AussomJavaObject.
startEffect (object EffectObj)
Applies the given Effect to the owning Entity. If an effect of the same Java class is already active, the old one ends and the new one replaces it.
EffectObj is an Effect wrapper.this objectendEffect (object EffectObj)
Ends the given active effect (matched by Java class).
EffectObj is an Effect wrapper.this objectendAllEffects ()
Ends every active effect.
hasEffect (string ClassName)
Returns true if an effect of the given Java class is currently active.
ClassName is the fully qualified class name of the Effect subclass to check (e.g. "com.almasb.fxgl.dsl.effects.SlowTimeEffect").A bool.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.