new Animation(parameters) → {Animation}
Defines an animation for a SpriteSheet.
Parameters:
| Name | Type | Description |
|---|---|---|
parameters |
Object | An object initializer that may contain the following parameters: name, startFrame, animationLength, frameRate. |
- Source:
Returns:
- Type
- Animation
Members
-
animationLength :number
-
Defines how many frames are in the animation.
Type:
- number
- Source:
-
frameRate :number
-
Defines the speed at which to playback the animation.
Type:
- number
- Source:
-
name :string
-
The name of the Animation. This is used to key animations.
Type:
- string
- Source:
-
startFrame :number
-
Defines the frame on which to start the animation.
Type:
- number
- Source: