Hi, i am looking to make it dark where the player is not looking in a top down. So only their line of sight is lit up, and everything else is dark. How do i achieve this?
Here are 2 options:
Create a rotating black sprite with a triangle cut out of it
Crate a new black layer set to Force Own Texture and put a triangle sprite on top of it with it's blend mode set to Destination out
Develop games in your browser. Powerful, performant & highly capable.
candyman201
if you don't want the player to be able to see past solid walls, it get slightly trickier.
see this thread from a few weeks ago for more suggestions:
https://www.construct.net/en/forum/construct-2/how-do-i-18/field-view-walls-143211?kws=lightmaskwalls