Page 1 of 1
How would I go about making a flashlight effect in Love2D?
Posted: Sun Aug 13, 2023 7:14 pm
by MaxGamz
I searched for forum posts relating to the subject and I found a user example of this however the love file doesn't seem to be working. I heard that it involves the use of shaders however I want to keep my project as simple as possible.
Re: How would I go about making a flashlight effect in Love2D?
Posted: Sun Aug 13, 2023 7:43 pm
by darkfrei
MaxGamz wrote: ↑Sun Aug 13, 2023 7:14 pm
I searched for forum posts relating to the subject and I found a user example of this however the love file doesn't seem to be working. I heard that it involves the use of shaders however I want to keep my project as simple as possible.
Like this?
viewtopic.php?p=244842#p244842
Re: How would I go about making a flashlight effect in Love2D?
Posted: Sun Aug 13, 2023 8:20 pm
by Xugro
I attached a simple example that works without shaders.
Thanks to SD.Chatane for the image (licensed under
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)).
Re: How would I go about making a flashlight effect in Love2D?
Posted: Sun Aug 13, 2023 8:25 pm
by MaxGamz
darkfrei wrote: ↑Sun Aug 13, 2023 7:43 pm
MaxGamz wrote: ↑Sun Aug 13, 2023 7:14 pm
I searched for forum posts relating to the subject and I found a user example of this however the love file doesn't seem to be working. I heard that it involves the use of shaders however I want to keep my project as simple as possible.
Like this?
viewtopic.php?p=244842#p244842
Somewhat but not really, I mean like a triangular ray that spreads out that illuminates the scenery
Re: How would I go about making a flashlight effect in Love2D?
Posted: Sun Aug 13, 2023 8:26 pm
by MaxGamz
Oh yeah that's very useful! it's basically what I am looking for
Re: How would I go about making a flashlight effect in Love2D?
Posted: Mon Aug 14, 2023 12:38 am
by knorke
This looks the same as Xugro's light but using stencils: