# hitTest doesn't work the way i want - what else can i do?

**URL:** <https://forum.kirupa.com/t/hittest-doesnt-work-the-way-i-want-what-else-can-i-do/105389>\
**Category:** Uncategorized\
**Created:** [March 25, 2004, 5:12pm UTC](https://forum.kirupa.com/t/hittest-doesnt-work-the-way-i-want-what-else-can-i-do/105389 "2004-03-25T17:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icio](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/icio/32/484_2.png) [@icio](https://forum.kirupa.com/u/icio)\
**Post date:** [March 25, 2004, 5:12pm UTC](https://forum.kirupa.com/t/hittest-doesnt-work-the-way-i-want-what-else-can-i-do/105389/1 "2004-03-25T17:12:52Z")

</div>

i’m trying to make a flash game atm. ]  
what i need to do is check for a collision between one movie and another. the first movieclip is moved around the stage by the user and the second movieclip test for a collision.

the code i’m using atm is:  
if (movieclip1.hitTest(\_root.movieclip2)) {  
…  
}

but this does not work the way i want it to because the first movieclip on the stage can be rotated (it is rectangluar) and when this happens the hitTest gets it wrong, because not all of the area it tests hits for is occupied by the Mc, if you see what i mean.

any ideas:q: or am i going to have to push my maths to the max?

thanks.  
ca :puzzled:
