• 2D
  • 2D Lighting and Cutout Animation Issue

Hello everyone. I am pretty new to Godot and I am working on a game which involves a cutout sprite and a 2D light with the mode set to mask. I want my character to be lit up but the light around it to fade to black. Setting it to mask achieves this result, but for some odd reason it makes each part of the cutout sprite look partially transparent. This really ruins the look I am trying to get. Any ideas on what might be causing this?

I resolved the issue after many attempts to find a workaround or a solution. When using a light map for the 2D light node, it must not contain any transparent pixel, and needs to be in only grayscale (white to black, no color). I had a white gradient fade out to transparent, which in turn made the sprites it interacted with have transparency for some reason. Fixed the light map and it works properly.