- Home /
Is it possible (how?) to hide a light effect with a 2D sprite?
Hello Friends,
I have quite a simple setup, no scripts or anything: - A 2D Sprite (a Door) - A Spotlight with the default Small Flare effect
Spotlight is at Z -1, door is at 1 but the light is still fully visible although it should be hidden behind the door.
What I'd like to achieve is an light-in-camera effect when the (2D!) door opens (simple sprite animation) - sadly, I can't make that door block the light in the first place.
Now I'm thinking about controlling the light through a script as well (turning on and getting brighter throughout the animation, but I'm really interested how it's possible to achieve this without fiddling with the animation timings by hand.
Thanks a lot!
I'm not sure if this is the issue but if your spotlight is at -1 and your door is at 1 then your spotlight is in front of your door rather than behind it.