Legomite Posted February 26, 2017 Share Posted February 26, 2017 I have a player built out of multiple sprites. It has one arm that's suppose to be behind the main sprite (the body) but it's in front of it. I tried doing this.player.setChildIndex(this.parts.armBackSide, 0); but it doesn't set the back arm behind the main sprite it's been added to. Can anyone help please..... Link to comment Share on other sites More sharing options...
samme Posted February 26, 2017 Share Posted February 26, 2017 You need to make the body a separate child sprite and move the arm behind that. Use a transparent image (same size as the body) for the main sprite. Legomite 1 Link to comment Share on other sites More sharing options...
stupot Posted February 27, 2017 Share Posted February 27, 2017 Your body is the root graphic, that cannot be changed, thus all the added children will appear in front of the body. I'd convert to a group (very simple), then you'll be free to re-order all your components however you want. Link to comment Share on other sites More sharing options...
Recommended Posts