@chadol1970 wrote:
I'm making a android app game with cocos2dx-js.
I have a issue user spine.
I try to play spine anmation, but, if i removeChild animation then app down.
why app down????
play:function()
{
this.spaceOpenSpine = new sp.SkeletonAnimation(res.spaceOpen_1_json, res.spaceOpen_1_atlas);
this.spaceOpenSpine.x = 0;
this.spaceOpenSpine.y = 0;
this.spaceOpenSpine.setAnimation(0, 'planet_effect_open', false);
this.spaceOpenSpine.setScale(1);
this.addChild(this.spaceOpenSpine);var self = this; this.spaceOpenSpine.setEndListener(function(traceIndex) { self.del(); });
},
del:function()
{
this.removeChild(this.spaceOpenSpine);
}
Posts: 1
Participants: 1