CharlesCraft50 Posted December 3, 2016 Share Posted December 3, 2016 I was trying to bring the sprite after the player, I don't want to use bringToTop function because it will bring on the top instead of just bringing it after the player. Example: the bottle is before the player, when the player get the bottle, it will get after like: sprite.getAfter(player); and when the player drop it, the bottle will back to its original position sorry for my english and thanks in advance! Link to comment Share on other sites More sharing options...
Tom Atom Posted December 4, 2016 Share Posted December 4, 2016 Hi, you can play with addAt when adding into group. Or later with get/setChildIndex of PIXI.DisplayObjectContainer. Also look at Group functions like: moveUp, moveDown, swap. Finnaly, you can play with Groups's "z" property and sort method. Link to comment Share on other sites More sharing options...
Recommended Posts