Sign in to follow this  

Render Depth

Recommended Posts

Is it possible to set a z-index or depth on images or sprites?  I have an issue where I am dynamically generating sprites and they are overlaying on top of other things I don't want them to.  Using sendToBack or bringToTop isn't an option due to I still need stuff as background and always on top.  Right now i'm calling sendToBack and bringToTop on my background and foreground objects every time I create my new sprites.  It would be nice if I could just do this.background.zIndex = 0, this.scoreText.zIndex = 100, and make everything else zIndex of like 50.

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.