# Array hitTest

**URL:** https://forum.kirupa.com/t/array-hittest/276498
**Category:** Uncategorized
**Created:** [November 28, 2008, 5:26pm UTC](https://forum.kirupa.com/t/array-hittest/276498 "2008-11-28T17:26:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sam\_vickery](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sam\_vickery](https://forum.kirupa.com/u/sam_vickery)
#### Post date: [November 28, 2008, 5:26pm UTC](https://forum.kirupa.com/t/array-hittest/276498/1 "2008-11-28T17:26:16Z")

</div>

I have made a simple start to a game where you are a circle and you have to dodge all the incoming homing missiles. I can add the missiles move them but I want to know if there is any way of making them disapear is they hit each other. here was my that i tried. This code is in the missile frame

```auto
for (var i = 0; i<_root.marray.length; i++) {
  m = _root.marray*;
  if (this.hitTest(m)) {
   removeMovieClip(this);
    }

```

but the problem was that it worked fine but becuase it was hitting itself it was removing it straight away. is there any way of stopping this from happening.

anyone

cheers
