qc.Sprite.playAnimation

Prototype

  • void playAnimation(string animationName, float speed, bool loop)

Paramters

Paramter Type Description
animationName string Animation name
speed float play speed. 1 : no acceleration
loop bool Whether to play in loop.

Description

Play an animation.

Example

    sprite.playAnimation('attack');