# Masks for light source

**URL:** <https://forum.kirupa.com/t/masks-for-light-source/301277>\
**Category:** flash\
**Created:** [December 6, 2009, 7:24pm UTC](https://forum.kirupa.com/t/masks-for-light-source/301277 "2009-12-06T19:24:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShaneHeres](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@ShaneHeres](https://forum.kirupa.com/u/ShaneHeres)\
**Post date:** [December 6, 2009, 7:24pm UTC](https://forum.kirupa.com/t/masks-for-light-source/301277/1 "2009-12-06T19:24:08Z")

</div>

Hey kirupa,

I’m using shapes drawn to sprites to try and get a fog of war effect.

Basically, I have a large black rectangle that goes over the screen as darkness, and I need to have multiple towers that have vision fields that would cancel out the darkness.

I’m using masks too, but I can’t get the right effect. Any suggestions?
