WrapMode Enum

Module: cc

Specifies how time is treated when it is outside of the keyframe range of an Animation.

Index

  • Default
  • Normal
  • Reverse
  • Loop
  • LoopReverse
  • PingPong
  • PingPongReverse

Details

Default

Reads the default wrap mode set higher up.

meta description
Type Number
Defined in cocos2d/animation/types.js:45
Normal

All iterations are played as specified.

meta description
Type Number
Defined in cocos2d/animation/types.js:52
Reverse

All iterations are played in the reverse direction from the way they are specified.

meta description
Type Number
Defined in cocos2d/animation/types.js:59
Loop

When time reaches the end of the animation, time will continue at the beginning.

meta description
Type Number
Defined in cocos2d/animation/types.js:66
LoopReverse

All iterations are played in the reverse direction from the way they are specified. And when time reaches the start of the animation, time will continue at the ending.

meta description
Type Number
Defined in cocos2d/animation/types.js:73
PingPong

Even iterations are played as specified, odd iterations are played in the reverse direction from the way they are specified.

meta description
Type Number
Defined in cocos2d/animation/types.js:81
PingPongReverse

Even iterations are played in the reverse direction from the way they are specified, odd iterations are played as specified.

meta description
Type Number
Defined in cocos2d/animation/types.js:89

results matching ""

    No results matching ""