Cocos Creator API

1.0.0

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

Action

Base class cc.Action for action classes.

Properties

TAG_INVALID Number static

Default Action tag.

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

Methods

clone ( ) Action

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

returns:

type: Action

isDone ( ) Boolean

return true if the action has finished.

returns:

type: Boolean

getTarget ( ) Node

get the target.

returns:

type: Node

setTarget
(
  • target
)

The action will modify the target properties.

name type description
target Node

getOriginalTarget ( ) Node

get the original target.

returns:

type: Node

getTag ( ) Number

get tag number.

returns:

type: Number

setTag
(
  • tag
)

set tag number.

name type description
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