Class cc.Spawn
- Defined in: CCActionInterval.js
- Extends cc.ActionInterval
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Spawn()
Spawn a new action immediately
|
Method Summary
Class Detail
cc.Spawn()
Spawn a new action immediately
Field Detail
Please use cc.spawn instead.
Create a spawn action which runs several actions in parallel.
- Deprecated:
-
since v3.0
Please use cc.spawn instead.
Method Detail
-
{cc.Spawn} clone()returns a new clone of the action
- Returns:
- {cc.Spawn}
-
ctor(tempArray)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
- Parameters:
- {Array|cc.FiniteTimeAction} tempArray
-
{Boolean} initWithTwoActions(action1, action2)initializes the Spawn action with the 2 actions to spawn
- Parameters:
- {cc.FiniteTimeAction} action1
- {cc.FiniteTimeAction} action2
- Returns:
- {Boolean}
-
{cc.Spawn} reverse()Returns a reversed action.
- Returns:
- {cc.Spawn}
-
startWithTarget(target)Start the action with target.
- Parameters:
- {cc.Node} target
-
stop()Stop the action
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt