Method | Description | |
---|---|---|
FlxAnim ( String name, int frames, float frameRate, System.Boolean looped ) : System |
Constructor.
|
|
destroy ( ) : void |
Clean up memory.
|
public FlxAnim ( String name, int frames, float frameRate, System.Boolean looped ) : System | ||
name | String | What this animation should be called (e.g. "run"). |
frames | int | An array of numbers indicating what frames to play in what order (e.g. 0, 1, 2, 3). |
frameRate | float | The speed in frames per second that the animation should play at (e.g. 40). |
looped | System.Boolean | Whether or not the animation is looped or just plays once |
return | System |