Class Index | File Index

Classes


Class cc.Animate


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Animates a sprite given the name of an Animation
Method Summary
Method Attributes Method Name and Description
<static>  
cc.Animate.create(animation)
create the animate with animation
 
 
initWithAnimation(animation)
 
 
setAnimation(animation)
 
 
stop()
stop the action
 
update(time)
Methods borrowed from class cc.ActionInterval:
getAmplitudeRate, getElapsed, initWithDuration, isDone, setAmplitudeRate, step
Methods borrowed from class cc.FiniteTimeAction:
getDuration, setDuration
Methods borrowed from class cc.Action:
copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Class Detail
cc.Animate()
Animates a sprite given the name of an Animation
Method Detail
<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}

{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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:50 GMT-0800 (PST)