Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: Texture
Wraps FXGL's AnimatedTexture (com.almasb.fxgl.texture.AnimatedTexture), the Texture subclass that drives a sprite-sheet animation through one or more AnimationChannels. Constructed from a default AnimationChannel; additional channels can be swapped in at runtime via playAnimationChannel / loopAnimationChannel for WALK / IDLE / ATTACK transitions. AnimatedTexture extends Texture, so every Texture method is still available — add the wrapper's .obj to a scene like any other Texture.
AnimatedTexture (ChannelObj = null)
Creates a new AnimatedTexture driven by the given default AnimationChannel.
ChannelObj is an AnimationChannel wrapper (or null for the adopt path).adopt (object Ajo)
Wraps an existing AnimatedTexture AussomJavaObject.
Ajo is an AussomJavaObject around an AnimatedTexture.A new wrapper.getAnimationChannel ()
Returns the currently-playing AnimationChannel AJO.
playAnimationChannel (object ChannelObj)
Plays the given AnimationChannel from start to end once. The animation stops on the last frame.
ChannelObj is an AnimationChannel wrapper.this objectplayAnimationChannelFrom (object ChannelObj, int StartFrame)
Plays the given AnimationChannel from StartFrame to end once.
ChannelObj is an AnimationChannel wrapper.StartFrame is the frame index to begin playback from.this objectloopNoOverride (object ChannelObj)
Loops the given AnimationChannel indefinitely. If the channel is already the current channel, the loop is a no-op (use loopAnimationChannel to override).
ChannelObj is an AnimationChannel wrapper.this objectloopAnimationChannel (object ChannelObj)
Loops the given AnimationChannel indefinitely, overriding any current playback.
ChannelObj is an AnimationChannel wrapper.this objectplay ()
Plays the current channel from start to end once.
this objectplayFrom (int StartFrame)
Plays the current channel from StartFrame to end once.
this objectplayReverse ()
Plays the current channel from end to start once.
this objectloop ()
Loops the current channel indefinitely.
this objectloopReverse ()
Loops the current channel in reverse indefinitely.
this objectstop ()
Stops the animation and resets to frame 0.
this objectsetOnCycleFinished (callback Cb)
Registers a callback that runs every time the animation finishes a cycle.
Cb is a callback with no arguments.this objectsetInterpolator (InterpolatorObj)
Sets the easing curve used by the underlying animation.
InterpolatorObj is an AussomJavaObject around an Interpolator (see fxgl.Interpolators).this objectonUpdate (double Tpf)
Drives the animation forward by Tpf seconds (normally the scene drives this automatically).
Tpf is the elapsed time in seconds.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.