createAnimation
fun TextureAtlas.createAnimation(prefix: String, action: AnimationBuilder<TextureSlice>.() -> Unit): Animation<TextureSlice>
Create an animation from a prefix of the names of the sprites in a TextureAtlas using an AnimationBuilder to specify the frame index orders and times.
Parameters
prefix
the prefix to use to create the animation
action
the AnimationBuilder callback to build the animation