# \[Flash 8 CS2\] Trouble with laser collision box

**URL:** <https://forum.kirupa.com/t/flash-8-cs2-trouble-with-laser-collision-box/286927>\
**Category:** flash\
**Created:** [April 23, 2009, 2:25am UTC](https://forum.kirupa.com/t/flash-8-cs2-trouble-with-laser-collision-box/286927 "2009-04-23T02:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novora](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Novora](https://forum.kirupa.com/u/Novora)\
**Post date:** [April 23, 2009, 2:25am UTC](https://forum.kirupa.com/t/flash-8-cs2-trouble-with-laser-collision-box/286927/1 "2009-04-23T02:25:09Z")

</div>

Sorry, new at the forums… Novora here.

I have this very annoying problem with my laser collision box, for my flash game. The issue is hard to explain, but basically, i can hit enemies which are not even touching the laser, because the hit box extends larger as the laser becomes diagonal…

Can someone offer me a hand on how to make it so that enemies would get damaged only when they come into contact with the laser? I’m using the regular hit-test at this point in time, and i’m not sure how the pixel/vector hit test thing works…
