My 2d Lighting Is Not Working

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

Video Showcasing my issue here: 2020-06-22 19-02-04.mp4 - Google Drive


:bust_in_silhouette: Reply From: dustin
  1. if you want the player sprit e to not receive the light, you need to change the light mask of the sprite node. to do this you need to go to your sprites inspector, open the visibility tab, and change the light mask to any of the other boxes and deselect the first box(or you can just deselect all the boxes).

  2. to get shadows casted from your tilemap, you need to edit the tilemap and add an occlusion mask. this’ll make the light2d node know where to collide with the tilemap and cast a shadow.

i’ll answer any other questions you have!