Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: AnimationBuilder
Wraps FXGL's AnimationBuilder.FadeAnimationBuilder, the subbuilder returned by AnimationBuilder.fade(entities) / fadeIn(entities) / fadeOut(entities). Use from / to to set the opacity endpoints, then build or buildAndPlay. fadeIn already configures from(0.0).to(1.0) and fadeOut already configures from(1.0).to(0.0); call from / to only when overriding those defaults.
FadeAnimationBuilder ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing FadeAnimationBuilder AussomJavaObject.
Ajo is an AussomJavaObject around the FXGL subbuilder.A new wrapper.from (double Start)
Sets the start opacity (0.0 - 1.0).
Start is the start opacity.this objectto (double End)
Sets the end opacity (0.0 - 1.0).
End is the end opacity.this objectbuild ()
Builds the Animation without playing it.
An Animation wrapper.buildAndPlay ()
Builds the Animation and starts it in the scene this builder was created with.
this objectbuildAndPlayIn (object SceneObj)
Builds the Animation and starts it in the supplied scene.
SceneObj is a Scene wrapper.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.