Type Function Object SpriteObject Library display.* Return value none Revision 2019.3459 Keywords sprite, setSequence See also display.newSprite()
Loads an animation sequence by name.
object:setSequence( [ sequenceName ] )
String. The name of the sequence you want to load (to be played). If not specified, the first frame in the currently loaded sequence will be shown instead.
After changing the sequence, the sprite will not play automatically — call object:play() to continue playing on the new sequence.
spriteObj:setSequence( "running_man" ) spriteObj:play()