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 |
리턴 | System |
public FlxAnim(String name, int[] frames, float frameRate, Boolean looped)
{
Name = name;
Delay = 0;
if (frameRate > 0)
{
Delay = 1.0f / frameRate;
}
Frames = frames;
Looped = looped;
}