You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 SpineContainer, containing 1 ship spine and 1 mask
1 SpineObject, a wave, with SpineContainer.depth+1
Result: Masking is somehow delayed.
Here is a gif of the bug:
Example Test Code
Please add my example code to labs.phaser.io - Spine. Like: SpineContainer with Mask
In this sample, the mask stops working (try commenting out the const coin line!):
FloodGames
changed the title
SpineContainer delayed masking
SpineContainer delayed masking, or not masking at all, with higher depth spine on top
Apr 13, 2021
The example I can "fix" with by not giving a depth to the mask. .setDepth(5)
Still, in the game I have:
UPDATE
If you put the coin first in the create - or with lower depth than the SpineContainer - it will mess up, this:
to:
Note that the coin is not related to the SpineContainer and its mask in any way. Somehow it visually destroys everything.
FloodGames
changed the title
SpineContainer delayed masking, or not masking at all, with higher depth spine on top
SpineContainer delayed masking, or not masking at all, with lower depth spine below
Apr 13, 2021
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Phaser Version: 3.54
Description
1 SpineContainer, containing 1 ship spine and 1 mask
1 SpineObject, a wave, with SpineContainer.depth+1
Result: Masking is somehow delayed.
Here is a gif of the bug:
Example Test Code
Please add my example code to labs.phaser.io - Spine. Like: SpineContainer with Mask
In this sample, the mask stops working (try commenting out the const coin line!):
The text was updated successfully, but these errors were encountered: