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:47 |
Normal
All iterations are played as specified.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/animation/types.js:54 |
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:61 |
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:68 |
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:75 |
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:83 |
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:91 |