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…
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;
}
}