Question by
keithdanielson_unity · Jun 04, 2020 at 03:50 PM ·
2dlighting2d sprites2d-gameplay
How to get the amount of light shining on a sprite?,How to get the amount of light shining on a Sprite?
I have 2d Sprite-based enemies in my game which I want to be effected by the amount of light shining on them. (from a flashlight)
The flashlight is using the Light2d (Experimental) point light.
I could use a collision box, but I think it would be important for the enemies to take damage based on the light intensity at their location.
Any suggestions? I've been stuck on this most of the day and haven't found any working solutions.
Comment