Class cc.Sequence
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Runs actions sequentially, one after another
|
Method Attributes | Method Name and Description |
---|---|
copy()
to copy object with deep copy.
|
|
<static> |
cc.Sequence.create(tempArray)
helper constructor to create an array of sequenceable actions
|
ctor()
Constructor
|
|
initOneTwo(actionOne, actionTwo)
initializes the action
|
|
reverse()
|
|
startWithTarget(target)
|
|
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:
- copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Method Detail
{object}
copy()
to copy object with deep copy.
- Returns:
- {object}
<static>
{cc.FiniteTimeAction}
cc.Sequence.create(tempArray)
helper constructor to create an array of sequenceable actions
// example // create sequence with actions var seq = cc.Sequence.create(act1, act2); // create sequence with array var seq = cc.Sequence.create(actArray);
- Parameters:
- {Array|cc.FiniteTimeAction} tempArray
- Returns:
- {cc.FiniteTimeAction}
ctor()
Constructor
{Boolean}
initOneTwo(actionOne, actionTwo)
initializes the action
- Parameters:
- {cc.FiniteTimeAction} actionOne
- {cc.FiniteTimeAction} actionTwo
- Returns:
- {Boolean}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
startWithTarget(target)
- Parameters:
- {cc.Node} target
stop()
stop the action
update(time)
- Parameters:
- {Number} time
- time in seconds