# hitTest

**URL:** <https://forum.kirupa.com/t/hittest/116322>\
**Category:** Uncategorized\
**Created:** [July 16, 2004, 1:11pm UTC](https://forum.kirupa.com/t/hittest/116322 "2004-07-16T13:11:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max56](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/max56/32/465_2.png) [@max56](https://forum.kirupa.com/u/max56)\
**Post date:** [July 16, 2004, 1:11pm UTC](https://forum.kirupa.com/t/hittest/116322/1 "2004-07-16T13:11:53Z")

</div>

help. i’m trying to make a simple game, where ‘things’ fall from the sky and ‘hit’ a person running across the screen.

I have two movie clips. One is of the person and the other a simple shape.

Both are movie clips with some 10 -20 frames of animation. but the hitTest doesn’t work… what am I doing wrong?  
here’s my code:

onClipEvent (enterFrame) {  
if (\_root.bits\_mc, hitTest(\_root.bug\_mc)) {  
loadMovieNum(“splat.swf”, 0);

```
}

```

}

pleeese help.  
max
