Class cc.Sequence
- Defined in: CCActionInterval.js
- Extends cc.ActionInterval
Constructor Attributes | Constructor Name and Description |
---|---|
Runs actions sequentially, one after another
|
Method Summary
Class Detail
cc.Sequence()
Runs actions sequentially, one after another
Method Detail
-
{cc.Sequence} clone()returns a new clone of the action
- Returns:
- {cc.Sequence}
-
{object} copy()to copy object with deep copy.
- Returns:
- {object}
-
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.Sequence}
-
ctor()Constructor
-
{Boolean} initWithTwoActions(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