# Mass hitTest and area hitTests - Problems

**URL:** <https://forum.kirupa.com/t/mass-hittest-and-area-hittests-problems/178385>\
**Category:** Uncategorized\
**Created:** [February 10, 2006, 2:08am UTC](https://forum.kirupa.com/t/mass-hittest-and-area-hittests-problems/178385 "2006-02-10T02:08:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [February 10, 2006, 2:08am UTC](https://forum.kirupa.com/t/mass-hittest-and-area-hittests-problems/178385/1 "2006-02-10T02:08:14Z")

</div>

I’m trying to get this hitTest to work correctly… So far it seems to ignore the -25, and +25, and needs a direct hit to register.

I’m trying to figure out how to kill anything within the 25x25 explosion range…

I have two hitests, one counting down, and one counting up. In order to kill two targets if they are there. But I need to figure out a way to kill anything the missile hits…

```auto

for (e=0; e<_root.enemyNumber; e++) {
    if (_root["enemy"+e].hitTest(this._x-25, this._y, true) | _root["enemy"+e].hitTest(this._x+25, this._y, true)) {
        _root["enemy"+e].life -= 25;
    }
}

```
