Flashlight View Cone

by Takagi


Posted on July 31, 2006 at 6:18 PM



This example is something I whipped up in 10 minutes. I like the effect it makes. Very cool. This example shows how to draw a good flashlight effect for top-down games. Also, the get_max() script can be used for a view cone (which I personally use). My GML is a bit rusty, but here's my first example here. Hurray.


Kaz commented July 31, 2006 at 7:13 PM
Cool and simple to use.
melee-master commented July 31, 2006 at 11:23 PM
Nice example. Glad to see that someone actually has organized code.
Takagi commented July 31, 2006 at 11:42 PM
Cool and simple to use.
Quote
Thanks.
Nice example. Glad to see that someone actually has organized code.
Quote
You mean indents and comments right? [:p]
poultry commented August 01, 2006 at 4:56 PM
[:P]...
Alx commented August 01, 2006 at 5:08 PM
Simple easy and effective
Amarin commented August 01, 2006 at 5:51 PM
Awesome! Can I use this in Alyssa Valentine? I'm only asking since it's commercial.
Takagi commented August 01, 2006 at 7:08 PM
Awesome! Can I use this in Alyssa Valentine? I'm only asking since it's commercial.
Quote
Yeah, use it, but it may be a bit slow for your needs. Credit would be savvy.
Simple easy and effective
Quote
Thanks.
Mordi commented August 02, 2006 at 9:23 PM
"This example is something I whipped up in 10 minutes."

I've heard that one before. ;)

Kidding.

Its useful for tds'ers and platformers alike!
Amarin commented August 13, 2006 at 9:38 PM
Really? ZOMG thank you so much!
Pico commented October 01, 2006 at 4:10 PM
Simple easy and effective
Flea1991 commented December 08, 2006 at 6:40 PM
Very nice.

-Flea
DarkSoulcalibur commented December 17, 2006 at 1:13 AM
nice
Blanket commented February 24, 2007 at 1:30 AM
the flashlight isnt that bright. i dont like it that much and u cant even see the object if the flashlight is shined on it.
Crane-ium commented March 10, 2007 at 10:31 PM
nice example, and very simple to use. I likey. 9/10
omgaghost commented April 05, 2007 at 2:21 AM
Thank you so much!!! This is just what I was looking for!!! 9/10! useful.
omgaghost commented April 05, 2007 at 2:29 AM
and u cant even see the object if the flashlight is shined on it.

monk gyasto said that, And I actually needed that feature. I'm making a haunted house game and not being able to see something unless the flashlight is on it is a PERFECT feature