Jump to content

How can i add an animation to a child sprite?


override
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...