I using sp.Skeleton in cocos creator.
animation change is not smooth… TT
It can be problem spine version?
Spine animation is fine on Skeleton Viewer, just not smooth on cocos creator (in the web).
Help me please…
ex.
clickCharacter()
{
let spSkeleton = node.getComponent(sp.Skeleton);
spSkeleton.setAnimation(0, ‘lose’, false);
spSkeleton.addAnimation(0, ‘idle’, true, 0);
}
cocos creator version : 1.10.2
spine version : the latest version…? up 3.6
I just using example-cases/spineCtrl.
cc.Class({
extends: cc.Component,
editor: {
requireComponent: sp.Skeleton
},
properties: {
mixTime: 0.2
},
onLoad () {
var spine = this.spine = this.getComponent('sp.Skeleton');
this._setMix('walk', 'run');
this._setMix('run', 'jump');
this._setMix('walk', 'jump');
spine.setStartListener(trackEntry => {
var animationName = trackEntry.animation ? trackEntry.animation.name : "";
cc.log("[track %s][animation %s] start.", trackEntry.trackIndex, animationName);
});
This file has been truncated. show original
solved it self, it was a cocos creator bug.
Cocos creator upgrade to 2.0.5. (version 2.1 is better, but has some another bugs)