Class cc.RepeatForever
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Repeats an action for ever.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.RepeatForever.create(action)
Repeat the acton forever
|
initWithAction(action)
|
|
isDone()
|
|
reverse()
|
|
setInnerAction(action)
|
|
startWithTarget(target)
|
|
step(dt)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, initWithDuration, setAmplitudeRate
- 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, stop, update
Class Detail
cc.RepeatForever()
Repeats an action for ever.
To repeat the an action for a limited number of times use the Repeat action.
To repeat the an action for a limited number of times use the Repeat action.
Method Detail
<static>
{cc.RepeatForever}
cc.RepeatForever.create(action)
Repeat the acton forever
// example var repeat = cc.RepeatForever.create(cc.RotateBy.create(1.0, 360));
- Parameters:
- action
- Returns:
- {cc.RepeatForever}
{cc.ActionInterval}
getInnerAction()
- Returns:
- {cc.ActionInterval}
{Boolean}
initWithAction(action)
- Parameters:
- {cc.ActionInterval} action
- Returns:
- {Boolean}
{Boolean}
isDone()
- Returns:
- {Boolean}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
setInnerAction(action)
- Parameters:
- {cc.ActionInterval} action
startWithTarget(target)
- Parameters:
- {cc.Node} target
step(dt)
- Parameters:
- dt
- delta time in seconds