# Multiple instance hitTest

**URL:** https://forum.kirupa.com/t/multiple-instance-hittest/240301
**Category:** flash
**Created:** [October 1, 2007, 8:35pm UTC](https://forum.kirupa.com/t/multiple-instance-hittest/240301 "2007-10-01T20:35:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jackpopkins](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Jackpopkins](https://forum.kirupa.com/u/Jackpopkins)
#### Post date: [October 1, 2007, 8:35pm UTC](https://forum.kirupa.com/t/multiple-instance-hittest/240301/1 "2007-10-01T20:35:56Z")

</div>

Hi,  
Ive got an MC that, when you click, it fires a shot at your mouse, this is what ive got

```auto
onClipEvent (load) {
    _root.shot._visible = false;
    shotCounter = 0;
    maxshots = 1;
    depthCounter = 1;
}
onClipEvent (mouseDown) {
    if ((shotCounter<=maxshots)) {
        shotCounter++;
        _root.shot.duplicateMovieClip("shot"+depthCounter,depthCounter);
        _root["shot"+depthCounter]._visible = true;
        depthCounter++;
}
}

```

I want my shot to remove itself when it hits another MC, but this MC reproduces itself  
(this is the frame code for this MC)

```auto

x++;
    score=1+x;
    duplicateMovieClip(rock, "rock"+x, x);

```

It would be great to get some help for the hitTest here! Thanks!😊
