Class GLGE.AnimationVector
The AnimationVectors class allows you to specify the 2D Animation curves that define specific channels of animation within the engine.
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
addCurve(channel, curve)
Adds an Animation Curve to a channel
|
|
Sets the number of frames in the animation
|
|
removeCurve(channel)
Removes an Animation Curve form a channel
|
|
setFrames(value)
Sets the number of frames in the animation
|
Method Detail
addCurve(channel, curve)
Adds an Animation Curve to a channel
- Parameters:
- {String} channel
- The name of the curve to be added
- {GLGE.AnimationCurve} curve
- The animation curve to add
{number}
getFrames()
Sets the number of frames in the animation
- Returns:
- {number} The number of frames in the animation
removeCurve(channel)
Removes an Animation Curve form a channel
- Parameters:
- {String} channel
- The name of the curve to be removed
setFrames(value)
Sets the number of frames in the animation
- Parameters:
- {number} value
- The number of frames in the animation