# AS hitTest() working, but not good enough

**URL:** https://forum.kirupa.com/t/as-hittest-working-but-not-good-enough/187803
**Category:** flash
**Created:** [May 2, 2006, 2:06pm UTC](https://forum.kirupa.com/t/as-hittest-working-but-not-good-enough/187803 "2006-05-02T14:06:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pardot](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pardot](https://forum.kirupa.com/u/pardot)
#### Post date: [May 2, 2006, 2:06pm UTC](https://forum.kirupa.com/t/as-hittest-working-but-not-good-enough/187803/1 "2006-05-02T14:06:48Z")

</div>

Hi, I was programing a game in Flash MX. It is net game where two tanks are hunting each other down.  
I use the Flash MX hitTest() function to detect colisions between the tanks. They are moving in 8 directions and when they are moving UP-LEFT or UP-RIGHT or DOWN-LEFT or DOWN-RIGHT the hitTest() detects the colision even if they are not coliding. I think this is because the hitTest() use the bounds of the movie clip( if you have the circle the bounds of this circle are rectangle ).  
I was thinking, that if the hitTest() is buildin function, that it would do  
something more, than simply test the bounds of the two movie clips. :\*(

Please do anybody know some better way to detect colisions?
