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
Method Detail
-
{cc.Spawn} clone()returns a new clone of the action
- Returns:
- {cc.Spawn}
-
// example var action = cc.Spawn.create(cc.JumpBy.create(2, cc.p(300, 0), 50, 4), cc.RotateBy.create(2, 720));
- Parameters:
- {Array|cc.FiniteTimeAction} tempArray
- Returns:
- {cc.FiniteTimeAction}
-
{Boolean} initWithTwoActions(action1, action2)initializes the Spawn action with the 2 actions to spawn
- Parameters:
- {cc.FiniteTimeAction} action1
- {cc.FiniteTimeAction} action2
- Returns:
- {Boolean}
-
{cc.FiniteTimeAction} reverse()
- Returns:
- {cc.FiniteTimeAction}
-
startWithTarget(target)
- Parameters:
- {cc.Node} target
-
stop()Stop the action
-
update(time)
- Parameters:
- {Number} time
- time in seconds