| Package | org.flixel.data |
| Class | public class FlxAnim |
| Property | Defined by | ||
|---|---|---|---|
| delay : Number
Seconds between frames (basically the framerate)
| FlxAnim | ||
| frames : Array
A list of frames stored as
uint objects
| FlxAnim | ||
| looped : Boolean
Whether or not the animation is looped
| FlxAnim | ||
| name : String
String name of the animation (e.g.
| FlxAnim | ||
| Method | Defined by | ||
|---|---|---|---|
|
FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)
Constructor
| FlxAnim | ||
| delay | property |
public var delay:NumberSeconds between frames (basically the framerate)
| frames | property |
public var frames:Array
A list of frames stored as uint objects
| looped | property |
public var looped:BooleanWhether or not the animation is looped
| name | property |
public var name:StringString name of the animation (e.g. "walk")
| FlxAnim | () | constructor |
public function FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)Constructor
ParametersName:String — What this animation should be called (e.g. "run")
|
|
Frames:Array — An array of numbers indicating what frames to play in what order (e.g. 1, 2, 3)
|
|
FrameRate:Number (default = 0) — The speed in frames per second that the animation should play at (e.g. 40)
|
|
Looped:Boolean (default = true) — Whether or not the animation is looped or just plays once
|