Class cc.ActionInstant
- Defined in: CCActionInstant.js
- Extends cc.FiniteTimeAction
Constructor Attributes | Constructor Name and Description |
---|---|
Instant actions are immediate actions.
|
Method Summary
Class Detail
cc.ActionInstant()
Instant actions are immediate actions. They don't have a duration like.
the CCIntervalAction actions.
Method Detail
-
{cc.FiniteTimeAction} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.FiniteTimeAction}
-
{Boolean} isDone()return true if the action has finished.
- Returns:
- {Boolean}
-
{cc.Action} reverse()returns a reversed action.
For example:
- The action will be x coordinates of 0 move to 100.
- The reversed action will be x of 100 move to 0. - Will be rewritten- Returns:
- {cc.Action}
-
step(dt)called every frame with it's delta time.
DON'T override unless you know what you are doing.- Parameters:
- {Number} dt
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt