class flixel.animation.FlxAnimation extends FlxBaseAnimation
Available on all platforms
Just a helper structure for the FlxSprite animation system.
Instance Fields
Keeps track of the current frame of animation. * This is NOT an index into the tile sheet, but the frame number in the animation object.
function new(Parent:FlxAnimationController, Name:String, Frames:Array<Int>, ?FrameRate:Int = 0, ?Looped:Bool = true):Void
Name | What this animation should be called (e.g. "run") * |
Frames | An array of numbers indicating what frames to play in what order (e.g. 1, 2, 3) * |
FrameRate | The speed in frames per second that the animation should play at (e.g. 40) * |
Looped | Whether or not the animation is looped or just plays once |