Closed marchbold closed 8 years ago
Thanks for taking the time to create the sample! I'll probably look into it next week and get back to you as soon as it's fixed.
No problems, hope it helps identifying the issue. Let me know if anything isn't clear.
That should do it! Please give it a try and let me know if this fixes the problem for you.
Thanks! This has solved our issue.
I am experiencing an issue with a canvas mask tearing holes in other display objects when the object containing the mask is moved (e.g. outerSprite
contains maskedImage
(which uses a canvas mask) and unmaskedImage
, but holes corresponding to the shape of the edges of the canvas mask appear in unmaskedImage
when the outerSprite
is moved). It sounds related to this issue, but the fix you made on the 30th doesn't resolve the problem I'm seeing. Let me know if you need more details.
Hi Kevin, I'm sorry to hear about those problems! By all means, it would be great if you could open up a new issue with a small sample project that I can use to reproduce the problem! Thanks a lot in advance.
This is following on from the discussion on the forum: http://forum.starling-framework.org/topic/starling-20-masks-on-moving-objects
To replicate this issue I've taken the standard
samples/scaffold_mobile
project and changed theGame.as
to the code at this gist:https://gist.github.com/marchbold/8bcd636924cf0d02b2134323ad3e7b33
The change is basically to apply a circle Canvas mask to the bird image, place this object inside a container Sprite and moving the container sprite.
Both of these are required to replicate the issue, using a mask works fine, if you move the object directly but not when it's inside the container.
Let me know if you need any additional information.