Class cc.Spawn
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Spawn()
Spawn a new action immediately
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.Spawn.create(tempArray)
|
initOneTwo(action1, action2)
initializes the Spawn action with the 2 actions to spawn
|
|
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:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Method Detail
<static>
{cc.FiniteTimeAction}
cc.Spawn.create(tempArray)
// 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}
initOneTwo(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