Class createjs.SpriteSheet.Animation
Defined in: sprite_sheet.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A class representing a frame used by the createjs.SpriteSheet object.
|
Method Attributes | Method Name and Description |
---|---|
getFrame(frame)
Returns the frames of which this animation consists.
|
|
Returns the frames of which this animation consists.
|
|
getName()
Returns the name of this animation.
|
|
getNext()
Returns the next animation.
|
|
getSpeed()
Returns the speed of this animation.
|
|
setNext(next)
Sets the next animation.
|
|
setSpeed(speed)
Changes the speed of this animation.
|
Class Detail
createjs.SpriteSheet.Animation(name)
A class representing a frame used by the createjs.SpriteSheet object.
- Parameters:
- {string} name
Method Detail
{number}
getFrame(frame)
Returns the frames of which this animation consists.
- Parameters:
- frame
- Returns:
- {number}
{number}
getFrameLength()
Returns the frames of which this animation consists.
- Returns:
- {number}
{string}
getName()
Returns the name of this animation.
- Returns:
- {string}
{string}
getNext()
Returns the next animation.
- Returns:
- {string}
{number}
getSpeed()
Returns the speed of this animation.
- Returns:
- {number}
setNext(next)
Sets the next animation.
- Parameters:
- {string} next
setSpeed(speed)
Changes the speed of this animation.
- Parameters:
- {number} speed