I'm using "ShadowLight" and "ShadowCaster but I do not know how to recognize when an object is in the shadows or in the "LIGHT", the only way that occurred to me was to create a sprite that came out of the light bulb and check for a collision, if there is a collision with a wall it stops and starts again and if there is a collision with another object that checks it.
WATCHhttps://i.imgur.com/zcffMWM.mp4
https://i.imgur.com/zcffMWM.gif [/img]