Just a helper structure for the
FlxSprite animation system.
new(Parent:FlxAnimationController, Name:String, Frames:Array<Int>, FrameRate:Float = 0, Looped:Bool = true, FlipX:Bool = false, FlipY:Bool = false)
What this animation should be called (e.g.
An array of numbers indicating what frames to play in what order (e.g.
The speed in frames per second that the animation should play at (e.g.
Whether or not the animation is looped or just plays once.
Whether or not the frames of this animation are horizontally flipped.
Whether or not the frames of this animation are vertically flipped.
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.
Animation frameRate - the speed in frames per second that the animation should play at.
The custom loop point for this animation. This allows you to skip the first few frames of an animation when looping.
Starts this animation playback.
Whether to force this animation to restart.
Whether to play animation backwards or not.
The frame number in this animation you want to start from (