I have a project where, following the lighting demo capx, I have my top layer set to an opaque black, with "splotches" of light created with the Destination Out blend mode.
In my layout, I have the moon as a light source, and there's a building that stands between the player and the moon. Light from the moon (in the background) should not be able to penetrate the front of the building, right? What I want to do is make it so that light from the moon cannot shine on the front of the building.
I've tried tinkering with the idea of having multiple opaque layers, but that doesn't seem to work. I've been stuck on this issue for a while, and I'm not getting anywhere. Help and guidance would be greatly appreciated. Thank you.
EDIT: This is a 2D game, not top-down.