Why Light2D mask breaks the node position?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rguerreiro

Hello! I’ve recently started to test Godot and decided to build a small jigsaw puzzle game.

So my idea is to use the same image to create the pieces and using a sprite mask for it, but I’m having 2 issues with this approach:

For some reason, Godot can’t set the position of my nodes when it uses a Light2D, which I’m using to create the mask.

I have a working example using just the icon without the mask, but it doesn’t work with the mask.

Pieces are spread evenly without Light2D:

Pieces in the corner using the same script as before, the difference is that each piece has a Light2D in it:

Does anybody know what could cause this issue?

:bust_in_silhouette: Reply From: wesker69

These are my options for the CanvasShader on each player’s AnimatedSprite Node, it shows Light mode as normal but I change it to “light only” during runtime for slave players so that the master player(the player each client controls) doesn’t get affected by the light.