this is waht I ahve in the bullet:
this.onEnterFrame = function() {
_xscale += 5;
_yscale += 5;
deathtime -= 1;
_x -= 10;
if (deathtime<10) {
this.removeMovieClip();
}
if (_root.ground.hitTest(this._x, this._y-10, true)) {
this.removeMovieClip();
}
for(x=1;x<11;x++){
if (_root.["enemy"+x].hitTest(this._x, this._y-10, true)) {
_root.["enemy"+x].life -= 10;
deathtime = 0;
}
}
}
this is what I have on frame one (this is just to see in the spawn works):
if (Key.isDown(Key.SHIFT)) {
x++;
_root.attachMovie("enemy", "enemy"+x, x);
_root["enemy"+x]._x = _root.buddy._x;
_root["enemy"+x]._y = _root.buddy._y;
_root["enemy"+x].deathtime = life=100;
}
neither work