Jump to content

Send a child of a sprite behind that sprite


Legomite
 Share

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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