override Posted March 26, 2016 Share Posted March 26, 2016 Is it possible to add animations to a child sprite and if so how i have no idea where to start. Any help appreciated. this.bird = this.game.add.sprite(100, 245, 'bird'); this.bird.animations.add('jetpack'); this.bird.animations.play('jetpack', 15, true); this.bird.addChild(game.make.sprite(60, -40, 'shield')); Link to comment Share on other sites More sharing options...
Tom Atom Posted March 27, 2016 Share Posted March 27, 2016 Simply split last line: var child = game.make.sprite(60, -40, 'shield') child.animations.add .... this.bird.addChild(child); Link to comment Share on other sites More sharing options...
Recommended Posts