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

When i removeChild spine animation then app down

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



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