Yashar Posted April 24, 2021 Share Posted April 24, 2021 i need transfer sprite from group 1 to group 2 i do remove sprite from group1 and create it (add child) to group 2 how to set animation to it (transfer sprite from group1 to group2) Link to comment Share on other sites More sharing options...
Yashar Posted April 26, 2021 Author Share Posted April 26, 2021 If anyone knows. I will pay for it Link to comment Share on other sites More sharing options...
Horizonicblue Posted April 27, 2021 Share Posted April 27, 2021 (edited) 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 April 27, 2021 by Horizonicblue Link to comment Share on other sites More sharing options...
Recommended Posts