Class cc.Animate

Class Summary
Constructor Attributes Constructor Name and Description
 
Animates a sprite given the name of an Animation

Method Summary

Class Detail

cc.Animate()
Animates a sprite given the name of an Animation

Method Detail

  • {cc.Animate} clone()
    returns a new clone of the action
    Returns:
    {cc.Animate}
  • <static> {cc.Animate} cc.Animate.create(animation)
    create the animate with animation
    // example
    // create the animation with animation
    var anim = cc.Animate.create(dance_grey);
    Parameters:
    {cc.Animation} animation
    Returns:
    {cc.Animate}
  • ctor(animation)
    Constructor of cc.Animate create the animate with animation
    // create the animation with animation
    var anim = new cc.Animate(dance_grey);
    Parameters:
    {cc.Animation} animation
  • {cc.Animation} getAnimation()
    Returns:
    {cc.Animation}
  • {Boolean} initWithAnimation(animation)
    Parameters:
    {cc.Animation} animation
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • setAnimation(animation)
    Parameters:
    {cc.Animation} animation
  • startWithTarget(target)
    Parameters:
    {cc.Sprite} target
  • stop()
    stop the action
  • update(time)
    Parameters:
    {Number} time