Class ccs.MovementData
ccs.MovementData
- Defined in: CCDatas.js
Constructor Attributes | Constructor Name and Description |
---|---|
The movement data information of Cocos Armature.
|
Method Summary
Class Detail
ccs.MovementData()
The movement data information of Cocos Armature.
Field Detail
durationTo
Change to this movement will last durationTo frames. Use this effect can avoid too suddenly changing.
Example : current movement is "stand", we want to change to "run", then we fill durationTo frames before
change to "run" instead of changing to "run" directly.
durationTween
This is different from duration, durationTween contain tween effect.
duration is the raw time that the animation will last, it's the same with the time you edit in the Action Editor.
durationTween is the actual time you want this animation last.
Example : If we edit 10 frames in the flash, then duration is 10. When we set durationTween to 50, the movement will last 50 frames, the extra 40 frames will auto filled with tween effect
tweenEasing
Which tween easing effect the movement use
TWEEN_EASING_MAX : use the value from MovementData get from flash design panel
Method Detail
-
addMovementBoneData(movBoneData)add a movement bone data to dictionary
- Parameters:
- {ccs.MovementBoneData} movBoneData
-
{ccs.MovementBoneData} getMovementBoneData(boneName)add a movement bone data from dictionary by name
- Parameters:
- boneName
- Returns:
- {ccs.MovementBoneData}