Cocos Creator API

1.3.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

ActionEase

Base class for Easing actions.

easing
(
  • easeObj
)
ActionInterval

Implementation of ease motion.

easeObj Object

:

action.easeing(cc.easeIn(3.0));

action.easeing(cc.easeIn(3.0));

repeat
(
  • times
)
ActionInterval

Repeats an action a number of times. To repeat an action forever use the CCRepeatForever action.

times Unknown

repeatForever ( ) ActionInterval

Repeats an action for ever.
To repeat the an action for a limited number of times use the Repeat action.

getDuration ( ) Number

get duration of the action. (seconds).

:

: Number

setDuration
(
  • duration
)

set duration of the action. (seconds).

duration Number

reverse ( ) Null

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

:

: Null

clone ( ) FiniteTimeAction

to copy object with deep copy. returns a clone of action.

isDone ( ) Boolean

return true if the action has finished.

:

getTarget ( ) Node

get the target.

:

: Node

setTarget
(
  • target
)

The action will modify the target properties.

target Node

getOriginalTarget ( ) Node

get the original target.

:

: Node

getTag ( ) Number

get tag number.

:

: Number

setTag
(
  • tag
)

set tag number.

tag Number

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index