Cocos Creator API

1.0.0

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

EaseBounce

Extends ActionEase
Module: cc

cc.EaseBounce abstract class.

Methods

easing
(
  • easeObj
)
ActionInterval

Inherited from ActionInterval:

Implementation of ease motion.

name type description
easeObj Object

returns:

examples:

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

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

repeat
(
  • times
)
ActionInterval

Inherited from ActionInterval:

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

name type description
times Unknown

returns:

repeatForever ( ) ActionInterval

Inherited from ActionInterval:

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

returns:

getDuration ( ) Number

Inherited from FiniteTimeAction:

get duration of the action. (seconds).

returns:

type: Number

setDuration
(
  • duration
)

Inherited from FiniteTimeAction:

set duration of the action. (seconds).

name type description
duration Number

reverse ( ) Null

Inherited from FiniteTimeAction:

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:

type: Null

clone ( ) FiniteTimeAction

Inherited from FiniteTimeAction:

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

returns:

isDone ( ) Boolean

Inherited from Action:

return true if the action has finished.

returns:

type: Boolean

getTarget ( ) Node

Inherited from Action:

get the target.

returns:

type: Node

setTarget
(
  • target
)

Inherited from Action:

The action will modify the target properties.

name type description
target Node

getOriginalTarget ( ) Node

Inherited from Action:

get the original target.

returns:

type: Node

getTag ( ) Number

Inherited from Action:

get tag number.

returns:

type: Number

setTag
(
  • tag
)

Inherited from Action:

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