GameMaker: Studio

GameMaker: Studio

View Stats:
kpopBIGfan Jan 21, 2015 @ 7:43pm
Line Of Sight
Does anyone know of a code for line of site such as in left 4k dead where everything is dark but what your facing
< >
Showing 1-4 of 4 comments
Blind Jan 22, 2015 @ 12:17pm 
Those two things aren't related also I'm not sure if you mean actual Left 4 Dead or a possible fan game called Left 4k Dead which uses the effect.

In 2D line of sight is typically done by raytracing and lighting/flashlights done with shaders.
kpopBIGfan Jan 22, 2015 @ 2:01pm 
like in left 4k dead by notch
Joff Jan 30, 2015 @ 9:09am 
Take a look at this: http://ncase.me/sight-and-light/ It is a very interesting article on 2D lighting and covers the math behind it, You should be able to adapt the logic and write it in GML
Thew Jan 30, 2015 @ 1:46pm 
Originally posted by Joff:
Take a look at this: http://ncase.me/sight-and-light/ It is a very interesting article on 2D lighting and covers the math behind it, You should be able to adapt the logic and write it in GML

That's a fantastic article. Thanks for sharing!
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 21, 2015 @ 7:43pm
Posts: 4