Frame 1
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
Frame 2
gotoAndPlay (1);
Frame 152
stop();
Frame 822
stopAllSounds();
Frame 1153
stop();
_global.stagenumber = 1;
Mouse.hide();
Instance of Symbol 86 MovieClip in Frame 1153
onClipEvent (enterFrame) {
mousex = _root._xmouse;
mousey = _root._ymouse;
_root.aim._x = mousex;
_root.aim._y = mousey;
}
Instance of Symbol 99 MovieClip "player_mc" in Frame 1154
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 3;
accel = 10;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
trace(health);
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + (ySpeed * 1.1));
_x = (_x - (xSpeed * 1.1));
speed = -(speed * bounce);
health = health - (Math.abs(speed) * collideDamage);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
PlayerShot = new Sound(this);
PlayerShot.attachSound("gunshot");
PlayerShot.start(0, 1);
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 106 MovieClip "shot_mc" in Frame 1154
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 110 MovieClip "enemyshot_mc" in Frame 1154
onClipEvent (load) {
speed = 5;
damageMin = 10;
damageMax = 20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 118 MovieClip in Frame 1154
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1154
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1154
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 120 MovieClip in Frame 1154
onClipEvent (enterFrame) {
if (_root.player_mc.hitTest(this)) {
_root.gotoAndStop("stage2");
}
}
Frame 1155
_global.stagenumber = 2;
Instance of Symbol 106 MovieClip "shot_mc" in Frame 1156
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 110 MovieClip "enemyshot_mc" in Frame 1156
onClipEvent (load) {
speed = 5;
damageMin = 10;
damageMax = 15;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 99 MovieClip "player_mc" in Frame 1156
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 3;
accel = 10;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
trace(health);
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + (ySpeed * 1.1));
_x = (_x - (xSpeed * 1.1));
speed = -(speed * bounce);
health = health - (Math.abs(speed) * collideDamage);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
PlayerShot = new Sound(this);
PlayerShot.attachSound("gunshot");
PlayerShot.start(0, 1);
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1156
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 132 MovieClip in Frame 1156
onClipEvent (enterFrame) {
if (_root.player_mc.hitTest(this)) {
_root.gotoAndStop("stage3");
}
}
Frame 1157
_global.stagenumber = 3;
Instance of Symbol 106 MovieClip "shot_mc" in Frame 1158
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 110 MovieClip "enemyshot_mc" in Frame 1158
onClipEvent (load) {
speed = 5;
damageMin = 5;
damageMax = 10;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 99 MovieClip "player_mc" in Frame 1158
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 3;
accel = 10;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
trace(health);
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + (ySpeed * 1.1));
_x = (_x - (xSpeed * 1.1));
speed = -(speed * bounce);
health = health - (Math.abs(speed) * collideDamage);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
PlayerShot = new Sound(this);
PlayerShot.attachSound("gunshot");
PlayerShot.start(0, 1);
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1158
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 132 MovieClip in Frame 1158
onClipEvent (enterFrame) {
if (_root.player_mc.hitTest(this)) {
_root.gotoAndStop("stage4");
}
}
Frame 1159
_global.stagenumber = 4;
Instance of Symbol 106 MovieClip "shot_mc" in Frame 1160
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 110 MovieClip "enemyshot_mc" in Frame 1160
onClipEvent (load) {
speed = 5;
damageMin = 5;
damageMax = 10;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 99 MovieClip "player_mc" in Frame 1160
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 3;
accel = 10;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
trace(health);
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + (ySpeed * 1.1));
_x = (_x - (xSpeed * 1.1));
speed = -(speed * bounce);
health = health - (Math.abs(speed) * collideDamage);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
PlayerShot = new Sound(this);
PlayerShot.attachSound("gunshot");
PlayerShot.start(0, 1);
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack2)) {
_root.cover2._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack3)) {
_root.cover3._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
_root.cover6._alpha = 80;
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack5)) {
_root.cover5._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack)) {
_root.cover1._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack4)) {
_root.cover4._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack7)) {
_root.cover8._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack6)) {
_root.cover7._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1160
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 132 MovieClip in Frame 1160
onClipEvent (enterFrame) {
if (_root.player_mc.hitTest(this)) {
_root.gotoAndStop("stage5");
}
}
Frame 1161
_global.stagenumber = 5;
Frame 1162
_global.enemylose = 0;
Instance of Symbol 106 MovieClip "shot_mc" in Frame 1162
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 110 MovieClip "enemyshot_mc" in Frame 1162
onClipEvent (load) {
speed = 5;
damageMin = 8;
damageMax = 18;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 99 MovieClip "player_mc" in Frame 1162
onClipEvent (load) {
healthMax = 100;
speedMax = 15;
manuverSpeed = 3;
accel = 10;
decay = 0.2;
bounce = 10;
collideDamage = 0;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
trace(health);
this.playerhealth.gotoAndStop(health);
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + (ySpeed * 1.1));
_x = (_x - (xSpeed * 1.1));
speed = -(speed * bounce);
health = health - (Math.abs(speed) * collideDamage);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
PlayerShot = new Sound(this);
PlayerShot.attachSound("gunshot");
PlayerShot.start(0, 1);
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
_root.cover6._alpha = 80;
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack5)) {
_root.cover5._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
if (_root.player_mc.hitTest(_root.enemyattack)) {
_root.cover1._alpha = 80;
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
}
}
onClipEvent (enterFrame) {
if (health <= 0) {
stopAllSounds();
_root.gotoAndPlay("final");
_global.enemylose = 1;
trace(_global.enemylose);
this.gotoAndPlay("death");
death = true;
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 118 MovieClip in Frame 1162
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 86 MovieClip in Frame 1193
onClipEvent (enterFrame) {
mousex = _root._xmouse;
mousey = _root._ymouse;
_root.aim._x = mousex;
_root.aim._y = mousey;
}
Frame 1660
stop();
Symbol 14 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 21 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 24 MovieClip Frame 20
stop();
Symbol 25 Button
on (release) {
stopAllSounds();
gotoAndPlay (154);
}
Symbol 28 MovieClip Frame 20
stop();
Symbol 30 Button
on (release) {
gotoAndStop (153);
}
Symbol 33 MovieClip Frame 20
stop();
Symbol 35 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 38 Button
on (release) {
gotoAndStop (152);
}
Symbol 50 Button
on (release) {
gotoAndStop (1153);
}
Symbol 78 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 82 Button
on (release) {
stopAllSounds();
gotoAndStop ("play1");
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 101
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 25
stop();
if (_global.stagenumber == 1) {
_root.gotoAndStop("stage1");
} else if (_global.stagenumber == 2) {
_root.gotoAndStop("stage2");
} else if (_global.stagenumber == 3) {
_root.gotoAndStop("stage3");
} else if (_global.stagenumber == 4) {
_root.gotoAndStop("stage4");
} else if (_global.stagenumber == 5) {
_root.gotoAndStop("stage5");
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 7
stop();
this.removeMovieClip();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 7
stop();
Symbol 126 MovieClip Frame 20
stop();
Symbol 127 Button
on (release) {
gotoAndStop ("play2");
}
Symbol 133 Button
on (release) {
gotoAndStop ("play3");
}
Symbol 140 Button
on (release) {
gotoAndStop ("play4");
}
Symbol 147 Button
on (release) {
gotoAndStop ("play5");
}
Symbol 157 MovieClip Frame 109
stop();
Symbol 173 Button
on (release) {
stopAllSounds();
gotoAndPlay (4);
}
Symbol 174 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}