Closed FloodGames closed 1 year ago
Updated with sample code.
1) please add to labs.phaser.io "SpineContainer with Mask" 2) please fix if possible
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.
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!):