Jump to content

remove and add sprite to group with animation


Yashar
 Share

Recommended Posts

Check out this example for phaser2 to move all sprites of one group to another

https://github.com/photonstorm/phaser-examples/blob/master/examples/groups/move to another group.js

 

If you want to move a specific sprite then you can try group.add(child) and then remove that sprite from previous group, more info can be found here in the docs http://phaser.io/docs/2.6.2/Phaser.Group.html#add 

http://phaser.io/docs/2.6.2/Phaser.Group.html#remove

Hope this helps

Edited by Horizonicblue
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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