// var hero = new sp.SkeletonAnimation(“res/didi_left_side/spine.json”,“res/didi_left_side/spine.atlas”, 0.25);//不能用NEW 会崩溃
//var hero = new sp.SkeletonAnimation(“res/spineboy/spineboy-pro.skel”,“res/spineboy/spineboy-pro.atlas”, 0.25);
var hero =sp.SkeletonAnimation.createWithBinaryFile(“res/spineboy/spineboy-pro.skel”,“res/spineboy/spineboy-pro.atlas”, 0.25);//这个会崩溃,无法新建
// var hero = sp.SkeletonAnimation.createWithJsonFile(“res/didi_left_side/spine.json”,“res/didi_left_side/spine.atlas”, 0.25);//只有这个才不会崩溃
hero.anchorX = 0.5;
hero.anchorY = 0;
hero.setTimeScale(1);
hero.setAnimation(0, "run", true);
hero.x=400;
hero.y=300;
_self.addChild(hero);
spineboy.zip (198.0 KB)
请问,是本来就是有问题?还是我姿势不对?我个人觉得我不可能姿势不对。