Class cc.FiniteTimeAction
Extends
cc.Action.
Defined in: CCAction.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Base class actions that do have a finite time duration. |
Method Attributes | Method Name and Description |
---|---|
get duration in seconds of the action
|
|
reverse()
returns a reversed action
|
|
setDuration(duration)
set duration in seconds of the action
|
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, isDone, release, retain, setOriginalTarget, setTag, setTarget, startWithTarget, step, stop, update
Class Detail
cc.FiniteTimeAction()
Base class actions that do have a finite time duration.
Possible actions:
- An action with a duration of 0 seconds
- An action with a duration of 35.5 seconds
Method Detail
{Number}
getDuration()
get duration in seconds of the action
- Returns:
- {Number}
{Null}
reverse()
returns a reversed action
- Returns:
- {Null}
setDuration(duration)
set duration in seconds of the action
- Parameters:
- {Number} duration