A sprite animation player. More...
Public Member Functions | |
| integer | Create (integer sprite, integer animationID, integer frameID, integer unloadPolicy) |
| Creates a new animator. | |
| void | Remove (integer animator) |
| Removes an animator. | |
| void | SetAnimation (integer animator, integer sprite, integer animationID, integer frameID, boolean forceApply) |
| Sets the current animation and frame of an animator. | |
| void | Animate (integer animator) |
| Animates an animator. | |
| integer | GetSprite (integer animator) |
| Gets the sprite index of an animator. | |
| integer | GetCurrentAnimation (integer animator) |
| Gets the current animation value of an animator. | |
| integer | GetCurrentFrame (integer animator) |
| Gets the current animation value of an animator. | |
| hitbox | GetHitbox (integer animator, integer hitboxID=0) |
| Gets the hitbox of an animation and frame of an animator. | |
| integer | GetPrevAnimation (integer animator) |
| Gets the previous animation value of an animator. | |
| integer | GetAnimationSpeed (integer animator) |
| Gets the animation speed of an animator's current animation. | |
| integer | GetAnimationTimer (integer animator) |
| Gets the animation timer of an animator. | |
| integer | GetDuration (integer animator) |
| Gets the frame duration of an animator's current frame. | |
| integer | GetFrameCount (integer animator) |
| Gets the frame count of an animator's current animation. | |
| integer | GetLoopIndex (integer animator) |
| Gets the loop index of an animator's current animation. | |
| integer | GetRotationStyle (integer animator) |
| Gets the loop index of an animator's rotation style. | |
| void | SetSprite (integer animator, integer spriteID) |
| Sets the sprite index of an animator. | |
| void | SetCurrentAnimation (integer animator, integer animationID) |
| Sets the current animation of an animator. | |
| void | SetCurrentFrame (integer animator, integer frameID) |
| Sets the current frame of an animator. | |
| void | SetPrevAnimation (integer animator, integer prevAnimationID) |
| Sets the previous animation of an animator. | |
| void | SetAnimationSpeed (integer animator, integer speed) |
| Sets the animation speed of an animator. | |
| void | SetAnimationTimer (integer animator, integer timer) |
| Sets the animation timer of an animator. | |
| void | SetDuration (integer animator, integer duration) |
| Sets the frame duration of an animator. | |
| void | SetFrameCount (integer animator, integer frameCount) |
| Sets the frame count of an animator. | |
| void | SetLoopIndex (integer animator, integer loopIndex) |
| Sets the loop index of an animator. | |
| void | SetRotationStyle (integer animator, integer rotationStyle) |
| Sets the rotation style of an animator. | |
| void | AdjustCurrentAnimation (integer animator, integer amount) |
| Adjusts the current animation of an animator by an amount. | |
| void | AdjustCurrentFrame (integer animator, integer amount) |
| Adjusts the current frame of an animator by an amount. | |
| void | AdjustAnimationSpeed (integer animator, integer amount) |
| Adjusts the animation speed of an animator by an amount. | |
| void | AdjustAnimationTimer (integer animator, integer amount) |
| Adjusts the animation timer of an animator by an amount. | |
| void | AdjustDuration (integer animator, integer amount) |
| Adjusts the duration of an animator by an amount. | |
| void | AdjustFrameCount (integer animator, integer amount) |
| Adjusts the frame count of an animator by an amount. | |
| void | AdjustLoopIndex (integer animator, integer amount) |
| Adjusts the loop index of an animator by an amount. | |
A sprite animation player.
| void Animator.AdjustAnimationSpeed | ( | integer | animator, |
| integer | amount ) |
Adjusts the animation speed of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's animation speed. |
| void Animator.AdjustAnimationTimer | ( | integer | animator, |
| integer | amount ) |
Adjusts the animation timer of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's animation timer. |
| void Animator.AdjustCurrentAnimation | ( | integer | animator, |
| integer | amount ) |
Adjusts the current animation of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's animation ID. |
| void Animator.AdjustCurrentFrame | ( | integer | animator, |
| integer | amount ) |
Adjusts the current frame of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's frame ID. |
| void Animator.AdjustDuration | ( | integer | animator, |
| integer | amount ) |
Adjusts the duration of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's duration. |
| void Animator.AdjustFrameCount | ( | integer | animator, |
| integer | amount ) |
Adjusts the frame count of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's duration. |
| void Animator.AdjustLoopIndex | ( | integer | animator, |
| integer | amount ) |
Adjusts the loop index of an animator by an amount.
| animator | The animator index to change. |
| amount | The amount to adjust the animator's loop index. |
| void Animator.Animate | ( | integer | animator | ) |
Animates an animator.
| animator | The index of the animator. |
| integer Animator.Create | ( | integer | sprite, |
| integer | animationID, | ||
| integer | frameID, | ||
| integer | unloadPolicy ) |
Creates a new animator.
| sprite | The index of the sprite. |
| animationID | Which animation to use. |
| frameID | Which frame to use. |
| unloadPolicy | When to unload the animator. |
| integer Animator.GetAnimationSpeed | ( | integer | animator | ) |
Gets the animation speed of an animator's current animation.
| animator | The index of the animator. |
| integer Animator.GetAnimationTimer | ( | integer | animator | ) |
Gets the animation timer of an animator.
| animator | The index of the animator. |
| integer Animator.GetCurrentAnimation | ( | integer | animator | ) |
Gets the current animation value of an animator.
| animator | The index of the animator. |
| integer Animator.GetCurrentFrame | ( | integer | animator | ) |
Gets the current animation value of an animator.
| animator | The index of the animator. |
| integer Animator.GetDuration | ( | integer | animator | ) |
Gets the frame duration of an animator's current frame.
| animator | The index of the animator. |
| integer Animator.GetFrameCount | ( | integer | animator | ) |
Gets the frame count of an animator's current animation.
| animator | The index of the animator. |
| hitbox Animator.GetHitbox | ( | integer | animator, |
| integer | hitboxID = 0 ) |
Gets the hitbox of an animation and frame of an animator.
| animator | The index of the animator. |
| hitboxID | The index number of the hitbox. |
| integer Animator.GetLoopIndex | ( | integer | animator | ) |
Gets the loop index of an animator's current animation.
| animator | The index of the animator. |
| integer Animator.GetPrevAnimation | ( | integer | animator | ) |
Gets the previous animation value of an animator.
| animator | The index of the animator. |
| integer Animator.GetRotationStyle | ( | integer | animator | ) |
Gets the loop index of an animator's rotation style.
| animator | The index of the animator. |
| integer Animator.GetSprite | ( | integer | animator | ) |
Gets the sprite index of an animator.
| animator | The index of the animator. |
| void Animator.Remove | ( | integer | animator | ) |
Removes an animator.
| animator | The index of the animator. |
| void Animator.SetAnimation | ( | integer | animator, |
| integer | sprite, | ||
| integer | animationID, | ||
| integer | frameID, | ||
| boolean | forceApply ) |
Sets the current animation and frame of an animator.
| animator | The index of the animator. |
| sprite | The index of the sprite. |
| animationID | The animator's changed animation ID. |
| frameID | The animator's changed frame ID. |
| forceApply | Whether to force the animation to go back to the frame if the animation is the same as the current animation. |
| void Animator.SetAnimationSpeed | ( | integer | animator, |
| integer | speed ) |
Sets the animation speed of an animator.
| animator | The animator index to change. |
| speed | The animation speed. |
| void Animator.SetAnimationTimer | ( | integer | animator, |
| integer | timer ) |
Sets the animation timer of an animator.
| animator | The animator index to change. |
| timer | The animation timer. |
| void Animator.SetCurrentAnimation | ( | integer | animator, |
| integer | animationID ) |
Sets the current animation of an animator.
| animator | The animator index to change. |
| animationID | The animation ID. |
| void Animator.SetCurrentFrame | ( | integer | animator, |
| integer | frameID ) |
Sets the current frame of an animator.
| animator | The animator index to change. |
| frameID | The frame ID. |
| void Animator.SetDuration | ( | integer | animator, |
| integer | duration ) |
Sets the frame duration of an animator.
| animator | The animator index to change. |
| duration | The animator's changed duration. |
| void Animator.SetFrameCount | ( | integer | animator, |
| integer | frameCount ) |
Sets the frame count of an animator.
| animator | The animator index to change. |
| frameCount | The animator's changed frame count. |
| void Animator.SetLoopIndex | ( | integer | animator, |
| integer | loopIndex ) |
Sets the loop index of an animator.
| animator | The animator index to change. |
| loopIndex | The animator's changed loop index. |
| void Animator.SetPrevAnimation | ( | integer | animator, |
| integer | prevAnimationID ) |
Sets the previous animation of an animator.
| animator | The animator index to change. |
| prevAnimationID | The animation ID. |
| void Animator.SetRotationStyle | ( | integer | animator, |
| integer | rotationStyle ) |
Sets the rotation style of an animator.
| animator | The animator index to change. |
| rotationStyle | The animator's changed rotation style. |
| void Animator.SetSprite | ( | integer | animator, |
| integer | spriteID ) |
Sets the sprite index of an animator.
| animator | The animator index to change. |
| spriteID | The sprite ID. |