# hitTest

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 2:33pm UTC](https://forum.kirupa.com/t/hittest/57829/2 "2004-07-16T14:33:58Z")

</div>

```auto

onClipEvent(enterFrame) {
     if(_root.bits_mc.hitTest(_root.bug_mc)) {
     loadMovieNum("splat.swf", 0);
     }
}

```
