createAnimation

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