class flixel.addons.tile.FlxTileAnimation implements IFlxDestroyable

Available on all platforms

Instance Fields

var delay:Float

Seconds between frames (basically the framerate)

var frameRate:Float

Animation frameRate - the speed in frames per second that the animation should play at.

var frames:Array<Int>

A list of frames stored as int objects

var framesData:Array<Dynamic>

An array of dynamic elements that let you add arbritary data to each frame

var looped:Bool

Whether or not the animation is looped

var name:String

String name of the animation (e.g. "walk")

function new(Name:String, Frames:Array<Int>, ?FrameRate:Float = 0, ?Looped:Bool = true, ?FramesData:Array<Dynamic> = null):Void

Constructor *

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 *

FramesData

An array of dynamic elements that let you add arbritary data to each frame

function destroy():Void

Clean up memory.