Class cc.Animate
- Defined in: CCActionInterval.js
- Extends cc.ActionInterval
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}
-
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}
-
{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