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:
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