Atlantis.SpriteAnimator Class
A SpriteAnimator is a class that is used to play sprite animations. A sprite has many animation that are stored in a dictionary[name] => spriteAnimation
Constructor
Atlantis.SpriteAnimator
()
Item Index
Methods
add
(
-
name
-
framesIndex
-
framerate
Add an animation to the animator.
checkForIDLEAnimation
()
getCurrentAnimation
()
initialize
(
-
animationWidth
-
animationHeight
-
textureWidth
-
textureHeight
Initialize the animator
play
(
-
animationName
Play an animation.
Parameters:
-
animationName
StringThe name of the animation to play.