Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17119

Cannot render spine on web

$
0
0

@szewei wrote:

Hi, i m a newbie here, i m trying add a spine animation node on my layer and follow the way how js-test do, but i cannot c the node on the layer when renderMode is 0, then i change to renderMode to 1, it show but look very different from js-test, every part of skeleton like fall apart, is i missing something? because i run js-test with renderMode 0 it look very fine.

below: is the code i add,

var spineBoy = new sp.SkeletonAnimation('res/skeletons/spineboy.json', 'res/skeletons/spineboy.atlas');
spineBoy.setPosition(cc.p(size.width / 2, size.height / 2 - 150));
spineBoy.setAnimation(0, 'walk', true);
spineBoy.setMix('walk', 'jump', 0.2);
spineBoy.setMix('jump', 'walk', 0.4);
spineBoy.setAnimationListener(this, this.animationStateEvent);
this.addChild(spineBoy, 4);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17119

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>