# (Flash MX) Need help with a hitTest

**URL:** https://forum.kirupa.com/t/flash-mx-need-help-with-a-hittest/279360
**Category:** flash
**Created:** [January 13, 2009, 10:45pm UTC](https://forum.kirupa.com/t/flash-mx-need-help-with-a-hittest/279360 "2009-01-13T22:45:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Oboe\_Passion](https://avatars.discourse-cdn.com/v4/letter/o/97f17d/32.png) [@Oboe\_Passion](https://forum.kirupa.com/u/Oboe_Passion)
#### Post date: [January 13, 2009, 10:45pm UTC](https://forum.kirupa.com/t/flash-mx-need-help-with-a-hittest/279360/1 "2009-01-13T22:45:53Z")

</div>

I am making a mouse avoider game and I have a mc (cursor) that follows the mouse with a very small delay and I have a mc (lvl) which the cursor must navigate through. When I run a normal hitTest function it doesn’t discriminate between the parts with color/without color in my lvl mc. The player dies instantly. I have tried this,([http://www.kirupa.com/developer/actionscript/advanced\_collision.htm](http://www.kirupa.com/developer/actionscript/advanced_collision.htm)) it didn’t work at all. I do not understand the bitmapData.hitTest function but am aware that it could help. Any ideas on how to solve this?
