Cocos Creator API

0.7.1

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

AnimationNode

Module: cc

The collection and instance of playing animations created by entity.animate.

Properties

curves AnimCurve

delay Number

The start delay which represents the number of seconds from an animation's start time to the start of the active interval.

repeatCount Number

The animation's iteration count property.

A real number greater than or equal to zero (including positive infinity) representing the number of times to repeat the animation node.

Values less than zero and NaN values are treated as the value 1.0 for the purpose of timing model calculations.

duration Number readOnly

The iteration duration of this animation in seconds. (length)

speed Number

The animation's playback speed. 1 is normal playback speed.

wrapMode WrapMode

Wrapping mode of the playing animation.

time Number

The current time of this animation in seconds.

isPlaying Boolean readOnly

Inherited from Playable:

Is playing or paused in play mode?

isPaused Boolean readOnly

Inherited from Playable:

Is currently paused? This can be true even if in edit mode(isPlaying == false).

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

update
(
  • deltaTime
)
private

name type description
deltaTime Unknown

onPlay ( ) private

Inherited from Playable:

onPause ( ) private

Inherited from Playable:

onResume ( ) private

Inherited from Playable:

onStop ( ) private

Inherited from Playable:

onError
(
  • errorCode
)
private

Inherited from Playable:

name type description
errorCode string

play ( )

Inherited from Playable:

Play this animation

stop ( )

Inherited from Playable:

Stop this animation

pause ( )

Inherited from Playable:

Pause this animation

resume ( )

Inherited from Playable:

Resume this animation

step ( )

Inherited from Playable:

Perform a single frame step.

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