3.15.1 JSB模式:
var hero = sp.SkeletonAnimation.createWithJsonFile(_self.res.anim.dd.spine_json, _self.res.anim.dd.spine_atlas, 0.18);
hero.anchorX = 0.5;
hero.anchorY = 0;
hero.setTimeScale(_self.roleAnimSpeed);
hero.setAnimation(0, "jump", false);
hero.setEndListener(function (animIndex) {
//这里代码是不执行的
trace("-------end---animIndex:"+animIndex)
if (animIndex == 1) {
hero.setAnimation(0, "run", true);
}
});
PS:cocos2dx板块貌似开发者很少去光顾,只好发到这里求关注了。
@panda @mingo 请问这里要怎么修改呢~ 自己看源码看晕了