Jump to content

SpriteBatch and masking?


Recommended Posts

I've got a DisplayObjectContainer with a bunch of sprites, some of which have masks. When checking out the new SpriteBatch it seems that it doesn't respect the masking of its children. Is this a known issue or am I missing something?


Here's a quick example demonstrating the issue:




The bunnies on the left are children of a DisplayObjectContainer while the maggots on the right are children of a SpriteBatch. A mask which clips half way down the stage is applied to both sets of sprites.


And the relevant JavaScript as a gist: https://gist.github.com/geoffb/8944694


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.

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.


  • Recently Browsing   0 members

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