Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: AnimationBuilder
Wraps FXGL's AnimationBuilder.PropertyAnimationBuilder, the subbuilder returned by AnimationBuilder.animate(property). Pass any JavaFX WritableValue (DoubleProperty, IntegerProperty, StringProperty, ObjectProperty) and use from / to to set the start and end values. Useful for animating arbitrary observable properties such as a custom HUD value or a shape attribute that is not covered by translate / fade / scale / rotate.
PropertyAnimationBuilder ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing PropertyAnimationBuilder AussomJavaObject.
Ajo is an AussomJavaObject around the FXGL subbuilder.A new wrapper.from (Value)
Sets the start value for the animation. The supplied value must be assignable to the property's type.
Value is the start value (passed straight through to the underlying property).this objectto (Value)
Sets the end value for the animation.
Value is the end value.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.