Lighting Effect

Hi all! I’m currently working on a horror game in 5.3 and could use a hand… I’m trying to create an effect as seen in the movie Lights Out. I need for an object to be visible in the dark and invisible when I shine a flashlight on it (or is lit by another light source) would anyone know how to create something like that? Thanks in advance!

Maybe you could simply make it emissive, give it an interface with a “lit” event, add a test on your torch light and if the object is hit : call “lit” → invisible. Set a timer. If not tested for 2s, disappear.
It’s interesting. Maybe I’ll make it my next asset for my english Youtube channel / Patreon. (look for "Jau Studio EN ")

1 Like

I’ve created a very basic project with this mechanic. I’ll make a video and put the project downloadable on my Patreon sometime this week. I will update this once it’s done.

1 Like

Brilliant! Looking forward to seeing it running!

Here is the video :

Hope it will help ! You can apply the same method with any light. If you plan to add a lot of them, maybe you could disable the overlap shape collisions when not on screen.

Here is my (young) patreon where you can find assets corresponding to videos (some paywalled)