# Line of Sight

**URL:** <https://forum.kirupa.com/t/line-of-sight/129164>\
**Category:** Uncategorized\
**Created:** [November 20, 2004, 6:03am UTC](https://forum.kirupa.com/t/line-of-sight/129164 "2004-11-20T06:03:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_D1](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Mike\_D1](https://forum.kirupa.com/u/Mike_D1)\
**Post date:** [November 20, 2004, 6:03am UTC](https://forum.kirupa.com/t/line-of-sight/129164/1 "2004-11-20T06:03:39Z")

</div>

Hi. I’m working on my second flash project, and I’ve run into a problem. I’m designing a bird’s-eye-view fps, but I’m having trouble identifying if the good guy can be “seen” by any bad guys, or if an object is blocking the bad guy’s line of sight. I searched the forum, and all I found was a pic to help explain what I want to do:

![](http://www.undeadninja.com/images/wall.jpg)  
I didn’t see any solutions here. Right now I can dynamically draw lines between the units, but all I’m doing is hit testing a bounding box, which is useless. Is there a way to determine the line of sight and if there is a visual obstruction efficiently?

Note: fla attached
