AnimatedSprite
class AnimatedSprite(var slice: TextureSlice = Textures.white, var anchorX: Float = 0.0f, var anchorY: Float = 0.0f) : AnimationPlayer<TextureSlice>
Author
Colton Daily
Constructors
Link copied to clipboard
fun AnimatedSprite(slice: TextureSlice = Textures.white, anchorX: Float = 0.0f, anchorY: Float = 0.0f)
Functions
Link copied to clipboard
Play the specified animation an X number of times.
Play the specified animation for a duration.
Play a specified frame for a certain amount of frames.
Link copied to clipboard
Play the specified animation as a loop.
Link copied to clipboard
Play the specified animation one time.
Link copied to clipboard
fun registerState(anim: Animation<TextureSlice>, priority: Int, loop: Boolean = true, reason: () -> Boolean = { true })
Priority is represented by the deepest. The deepest has top priority while the shallowest has lowest.
Link copied to clipboard
Link copied to clipboard