Frame 1
pcent_loaded = (getBytesLoaded() / getBytesTotal()) * 100;
progBar._width = pcent_loaded * 7.2;
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndPlay (3);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (mouseUp) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Instance of Symbol 19 MovieClip in Frame 3
onClipEvent (load) {
var counter = 0;
}
onClipEvent (enterFrame) {
if (counter <= 200) {
counter++;
} else {
_root.nextFrame();
trace("hi");
}
}
onClipEvent (mouseUp) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Frame 4
_root.lives = 3;
_root.extraLifeSTAT = false;
_global.newLevel = "level1";
_root.codeBox = "enter level name";
_root.resultBad = "";
bgMusic = new Sound();
bgMusic.attachSound("theme.wav");
if (_root.instructions != true) {
_root.bgMusic.stop();
}
if ((_root.music == false) && (_root.instructions != true)) {
_root.bgMusic.start(0, 999);
}
if (musicInt != false) {
_root.bgMusic.start(0, 999);
_root.music = false;
musicInt = false;
}
_root.instructions = false;
stop();
Instance of Symbol 25 MovieClip "tailspin_mc" in Frame 4
onClipEvent (load) {
id = 1;
tracerID = 0;
}
onClipEvent (enterFrame) {
if (id <= 30) {
_root["enemy_mc" + ID].removeMovieClip();
id++;
}
if (tracerID <= 7) {
_root["tracer_mc" + tracerID].removeMovieClip();
tracerID++;
}
if (Key.isDown(13)) {
trace(_root.codeBox);
if (((_root.codeBox == "yeager") || (_root.codeBox == "Yeager")) || (_root.codeBox == "YEAGER")) {
_global.newLevel = "level1";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "pappy") || (_root.codeBox == "Pappy")) || (_root.codeBox == "PAPPY")) {
_global.newLevel = "level2";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "butch") || (_root.codeBox == "Butch")) || (_root.codeBox == "BUTCH")) {
_global.newLevel = "level3";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "foss") || (_root.codeBox == "Foss")) || (_root.codeBox == "FOSS")) {
_global.newLevel = "level4";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "ike") || (_root.codeBox == "Ike")) || (_root.codeBox == "IKE")) {
_global.newLevel = "level5";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "bud") || (_root.codeBox == "Bud")) || (_root.codeBox == "BUD")) {
_global.newLevel = "level6";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "buzz") || (_root.codeBox == "Buzz")) || (_root.codeBox == "BUZZ")) {
_global.newLevel = "level7";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "duncan") || (_root.codeBox == "Duncan")) || (_root.codeBox == "DUNCAN")) {
_global.newLevel = "level8";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "blackburn") || (_root.codeBox == "Blackburn")) || (_root.codeBox == "BLACKBURN")) {
_global.newLevel = "level9";
_root.gotoAndPlay("ready");
} else if (((_root.codeBox == "tex") || (_root.codeBox == "Tex")) || (_root.codeBox == "TEX")) {
_global.newLevel = "level10";
_root.gotoAndPlay("ready");
} else {
_global.newLevel = "level1";
_root.codeBox = "enter level name";
_root.resultBad = "Try Again";
}
}
}
Frame 5
_root.instructions = true;
stop();
Frame 6
_root.bgMusic.stop();
if (extraLifeSTAT == true) {
_root.extraLife._visible = true;
} else {
_root.extraLife._visible = false;
}
stop();
Instance of Symbol 94 MovieClip in Frame 6
onClipEvent (load) {
var count = 0;
tracerID = 0;
var id = 1;
var idMax = 30;
}
onClipEvent (enterFrame) {
if (count <= 75) {
count = count + 1;
} else {
_root.enemyCount = 0;
_root.gotoAndPlay(_global.newLevel);
}
if (id <= idMax) {
_root["enemy_mc" + ID].removeMovieClip();
_root["tracer_mc" + ID].removeMovieClip();
id++;
}
if (tracerID <= 5) {
_root["enemy_mc" + tracerID].removeMovieClip();
_root["tracer_mc" + tracerID].removeMovieClip();
tracerID++;
}
}
Frame 7
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.tracer.removeMovieClip();
_root.levelStat = "Level Name: Yeager";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 7
onClipEvent (load) {
_root.bgMusic.stop();
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 16) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.bossMusic.stop();
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level2";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 500;
_root["enemy_mc" + ID]._y = 1000;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 510;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 520;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 3)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 5)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 7)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 9)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 500;
_root["enemy_mc" + ID]._y = -250;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -30;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 12)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 15)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 107 MovieClip "tracer" in Frame 7
onClipEvent (load) {
this._x = -20;
this._y = -20;
}
onClipEvent (enterFrame) {
if (_root["enemy_mc" + ID].dead != true) {
if (_root["enemy_mc" + ID]._y <= 0) {
this._x = _root["enemy_mc" + ID]._x;
this._y = 7;
} else if (_root["enemy_mc" + ID]._y >= 509) {
this._x = _root["enemy_mc" + ID]._x;
this._y = 502;
} else if (_root["enemy_mc" + ID]._x <= 0) {
this._y = _root["enemy_mc" + ID]._y;
this._x = 7;
} else if (_root["enemy_mc" + ID]._x >= 700) {
this._y = _root["enemy_mc" + ID]._y;
this._x = 693;
} else {
this._x = -20;
this._y = -20;
}
} else {
this.removeMovieClip();
}
}
Instance of Symbol 121 MovieClip "trail" in Frame 7
onClipEvent (load) {
var windSpeed = 0.5;
_x = _root.player_mc._x;
_y = _root.player_mc._y;
_root.trail._x = -10;
_root.trail._y = 10;
}
onClipEvent (enterFrame) {
_x = (_x + windSpeed);
}
Instance of Symbol 122 MovieClip "enemyTrail" in Frame 7
onClipEvent (load) {
var windSpeed = 0.5;
_root.enemyTrail._x = -10;
_root.enemyTrail._y = 10;
}
onClipEvent (enterFrame) {
_x = (_x + windSpeed);
}
Instance of Symbol 128 MovieClip "shot_mc" in Frame 7
onClipEvent (load) {
speed = 15;
damageMin = 10;
damageMax = 15;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
_root.hitHolder.hitSND.start(0, 1);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
if ((((_x > 715) || (_x < -15)) || (_y > 524)) || (_y < -16)) {
this.removeMovieClip();
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
i = _root.enemyCount - 4;
while (i <= _root.enemyCount) {
if (_root["enemy_mc" + i].hitTest(this._x, this._y, true) && (_root["enemy_mc" + i].death != true)) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
Instance of Symbol 130 MovieClip "enemyShot_mc" in Frame 7
onClipEvent (load) {
hitSND = new Sound();
hitSND.attachSound("hit.wav");
speed = 12;
damageMin = 15;
damageMax = 20;
hit = false;
xSpeed = speed * Math.sin(_rotation * 0.017453);
ySpeed = speed * Math.cos(_rotation * 0.017453);
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
hitSND.start(0, 1);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.player_mc.hitTest(this._x, this._y, true) && (_root.player_mc.dying != true)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 132 MovieClip "player_mc" in Frame 7
onClipEvent (load) {
expCount = 0;
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
airplaneSND = new Sound();
airplaneSND.attachSound("airplane.wav");
airplaneSND.start(0, 999);
crashSND = new Sound();
crashSND.attachSound("crash.wav");
crashStart = false;
var forwardSPD = 2;
var reverseSPD = 0;
var maxForwardSPD = 6;
var minForwardSPD = 2;
var maxReverseSPD = 1;
var turnSPD = 3;
var qkTurnSPD = 5;
var tmpTurnSPD = 0;
var acc = 0.08;
var dec = 0.04;
var enemyDist = 0;
var healthMax = 100;
var health = healthMax;
var gunsOff = false;
var shotMax = 10;
var shotCount = 1;
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.trail);
smokeColor.setRGB(16777215);
pressKey = new Object();
key.addListener(pressKey);
pressKey.onKeyDown = function () {
if (key.getCode() == 70) {
fire = true;
}
};
pressKey.onKeyUp = function () {
fire = false;
shot = false;
};
swapDepths(100);
}
onClipEvent (enterFrame) {
if (_x > 715) {
_x = -15;
} else if (_x < -15) {
_x = 715;
}
if (_y > 524) {
_y = -16;
} else if (_y < -16) {
_y = 524;
}
if (!death) {
var xSPD = (forwardSPD * math.sin(_rotation * 0.017453));
var ySPD = (forwardSPD * math.cos(_rotation * 0.017453));
if (key.isDown(38)) {
if (forwardSPD <= maxForwardSPD) {
forwardSPD = forwardSPD + acc;
}
_x = (_x + xSPD);
_y = (_y - ySPD);
} else if (forwardSPD >= minForwardSPD) {
forwardSPD = forwardSPD - dec;
_x = (_x + xSPD);
_y = (_y - ySPD);
} else {
_x = (_x + xSPD);
_y = (_y - ySPD);
}
if (key.isDown(40)) {
tmpTurnSPD = qkTurnSPD;
} else {
tmpTurnSPD = turnSPD;
}
if (key.isDown(37)) {
_rotation = (_rotation - tmpTurnSPD);
} else if (key.isDown(39)) {
_rotation = (_rotation + tmpTurnSPD);
}
if (SMKcounter <= 2) {
SMKcounter++;
} else {
_root.trail.duplicateMovieClip("trail" + depthCounter, depthCounter + 50);
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
}
if (!dying) {
if ((fire == true) && (shot != true)) {
_root.cannonHolder.cannonSND.start(0, 1);
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
tipX = 10 * math.sin(this._rotation * 0.017453);
tipY = 10 * math.cos(this._rotation * 0.017453);
_root["shot_mc" + shotCount]._x = this._x + tipX;
_root["shot_mc" + shotCount]._y = this._y - tipY;
_root["shot_mc" + shotCount]._rotation = this._rotation;
shot = true;
}
}
if (health <= 0) {
health = 0;
airplaneSND.stop("airplane.wav");
if (crashStart != true) {
crashSND.start(0, 1);
crashStart = true;
}
if (expStart != true) {
if (expCount <= 5) {
expCount++;
} else {
expSND.start(0, 1);
expStart = true;
}
}
dying = true;
_rotation = (_rotation + 8);
swapDepths(-20000);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.8);
_yscale = (_yscale - 0.8);
_alpha = (_alpha - 0.5);
alphaCount++;
} else {
this.gotoAndPlay("death");
death = true;
if (dead != true) {
_root.lives = _root.lives - 1;
dead = true;
if (_root.lives >= 1) {
_root.continue_mc._visible = true;
} else {
_root.restart_mc._visible = true;
_root.deathLevelMC._visible = true;
_root.deathLevel = _root.levelStat;
}
_root.extraLifeSTAT = false;
} else if (Key.isDown(32)) {
if (_root.lives >= 1) {
_root.gotoAndPlay("ready");
_root.continue_mc._visible = false;
this.removeMovieClip();
} else {
_root.gotoAndPlay("intro");
this.removeMovieClip();
}
}
}
}
}
Instance of Symbol 134 MovieClip "cannonHolder" in Frame 7
onClipEvent (load) {
cannonSND = new Sound(_root.cannonHolder);
cannonSND.attachSound("cannon.wav");
}
Instance of Symbol 136 MovieClip "hitHolder" in Frame 7
onClipEvent (load) {
hitSND = new Sound(_root.hitHolder);
hitSND.attachSound("hit.wav");
}
Instance of Symbol 138 MovieClip "plane2" in Frame 7
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.15;
var maxSPD = 4;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 140 MovieClip "plane3" in Frame 7
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.15;
var maxSPD = 4;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 2) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 142 MovieClip "plane1" in Frame 7
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.12;
var maxSPD = 4;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
var scaleCount = 0;
var alphaCount = 0;
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 146 MovieClip "playerHealth" in Frame 7
onClipEvent (enterFrame) {
this._height = _root.player_mc.health / 2;
}
Instance of Symbol 150 MovieClip "bossHealth" in Frame 7
onClipEvent (load) {
_root.bossHealth._visible = false;
}
Frame 8
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Pappy";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 8
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 16) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level3";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 200;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1100;
_root["enemy_mc" + ID]._y = 220;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 950;
_root["enemy_mc" + ID]._y = 230;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 3)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 5)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 7)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 9)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = -500;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 500;
_root["enemy_mc" + ID]._y = -750;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -30;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 12)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = 400;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 250;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 15)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 370;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 162 MovieClip "plane1" in Frame 8
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.18;
var maxSPD = 4;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 164 MovieClip "plane2" in Frame 8
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.18;
var maxSPD = 5;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 166 MovieClip "plane3" in Frame 8
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.14;
var maxSPD = 5;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 150 MovieClip "bossHealth" in Frame 8
onClipEvent (load) {
_root.bossHealth._visible = false;
}
Frame 9
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Butch";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 9
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 20) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level4";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 0;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 3)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 0;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 140;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 280;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 420;
_root["enemy_mc" + ID].countMax = 250;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 7)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 765;
_root["enemy_mc" + ID]._y = 570;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 9)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 13)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 16)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 550;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 550;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = 550;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 19)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 350;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 171 MovieClip "plane2" in Frame 9
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.24;
var maxSPD = 6;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 173 MovieClip "plane1" in Frame 9
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.2;
var maxSPD = 5;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 175 MovieClip "plane3" in Frame 9
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.18;
var maxSPD = 8;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 150 MovieClip "bossHealth" in Frame 9
onClipEvent (load) {
_root.bossHealth._visible = false;
}
Frame 10
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Foss";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 10
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 19) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level5";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 709;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 100;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 100;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 50;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 650;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 6)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 0;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 509;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 8)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 11)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 14)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 200;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 500;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 18)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 180 MovieClip "plane1" in Frame 10
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.28;
var maxSPD = 6;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 182 MovieClip "plane2" in Frame 10
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.3;
var maxSPD = 7;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 184 MovieClip "plane3" in Frame 10
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.15;
var maxSPD = 7;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Frame 11
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Ike";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 11
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.plane4.death = true;
_root.plane4.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 23) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level6";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 0;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 50;
_root["enemy_mc" + ID]._y = 1000;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 650;
_root["enemy_mc" + ID]._y = 1000;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 50;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 650;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 8)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 250;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 450;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 180;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 10)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 90;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 14)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -150;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 17)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -150;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 659;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 21)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 400;
_root["enemy_mc" + ID].countMax = 40;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane4.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = 400;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth2._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 122 MovieClip "enemyTrail2" in Frame 11
onClipEvent (load) {
var windSpeed = 0.5;
_root.enemyTrail2._x = -10;
_root.enemyTrail2._y = 10;
}
onClipEvent (enterFrame) {
_x = (_x + windSpeed);
}
Instance of Symbol 189 MovieClip "plane1" in Frame 11
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.32;
var maxSPD = 7;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 191 MovieClip "plane2" in Frame 11
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.34;
var maxSPD = 8;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 193 MovieClip "plane3" in Frame 11
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.16;
var maxSPD = 8;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 193 MovieClip "plane4" in Frame 11
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.14;
var maxSPD = 8;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail2.duplicateMovieClip(("enemyTrail2" + depthCounter) + ID, depthCounter - 1050);
_root[("enemyTrail2" + depthCounter) + ID]._x = _x;
_root[("enemyTrail2" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth2.bossMeter2._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth2._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 194 MovieClip "bossHealth2" in Frame 11
onClipEvent (load) {
_root.bossHealth2._visible = false;
}
Frame 12
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Bud";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 12
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 23) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level7";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 130;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 150;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 355;
_root["enemy_mc" + ID].countMax = 110;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 609;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -150;
_root["enemy_mc" + ID]._y = -150;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = -150;
_root["enemy_mc" + ID].countMax = 110;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -150;
_root["enemy_mc" + ID]._y = 400;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 400;
_root["enemy_mc" + ID].countMax = 90;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 9)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 11)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -250;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 14)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -800;
_root["enemy_mc" + ID]._y = 609;
_root["enemy_mc" + ID].countMax = 275;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 659;
_root["enemy_mc" + ID].countMax = 250;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 17)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 160;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 140;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -350;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 1000;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 22)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = -100;
_root["enemy_mc" + ID].countMax = 20;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 199 MovieClip "plane1" in Frame 12
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.4;
var maxSPD = 8;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 201 MovieClip "plane3" in Frame 12
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.18;
var maxSPD = 9;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Instance of Symbol 203 MovieClip "plane2" in Frame 12
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.4;
var maxSPD = 8;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Frame 13
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Buzz";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 13
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 20) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level8";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 100;
_root["enemy_mc" + ID].countMax = 180;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 160;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 850;
_root["enemy_mc" + ID]._y = 405;
_root["enemy_mc" + ID].countMax = 140;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 3)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -250;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -150;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 135;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 6)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 909;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 8)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 200;
_root["enemy_mc" + ID].countMax = 250;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 300;
_root["enemy_mc" + ID].countMax = 225;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1200;
_root["enemy_mc" + ID]._y = 150;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1200;
_root["enemy_mc" + ID]._y = 350;
_root["enemy_mc" + ID].countMax = 175;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 12)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 0;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 825;
_root["enemy_mc" + ID].countMax = 225;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 700;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 15)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 160;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 709;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 800;
_root["enemy_mc" + ID]._y = 709;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 19)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 208 MovieClip "plane1" in Frame 13
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.42;
var maxSPD = 10;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 210 MovieClip "plane2" in Frame 13
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.42;
var maxSPD = 10;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 212 MovieClip "plane3" in Frame 13
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.2;
var maxSPD = 9;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Frame 14
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Duncan";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 14
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 21) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level9";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 300;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 115;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 300;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 85;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 70;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 200;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 90;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 6)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 115;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 750;
_root["enemy_mc" + ID].countMax = 105;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 95;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 650;
_root["enemy_mc" + ID].countMax = 85;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 10)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 280;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 850;
_root["enemy_mc" + ID].countMax = 270;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 260;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 13)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 700;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -100;
_root["enemy_mc" + ID]._y = 750;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 16)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 140;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 130;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 120;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 20)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 35;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 217 MovieClip "plane1" in Frame 14
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.44;
var maxSPD = 10;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 219 MovieClip "plane2" in Frame 14
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.24;
var maxSPD = 12;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 221 MovieClip "plane3" in Frame 14
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.22;
var maxSPD = 11;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Frame 15
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Blackburn";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 15
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 21) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.lives = _root.lives + 1;
_root.extraLifeSTAT = true;
_global.newLevel = "level10";
_root.gotoAndPlay("ready");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 145;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 100;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 140;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 135;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 6)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 8)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = 900;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -400;
_root["enemy_mc" + ID]._y = 1000;
_root["enemy_mc" + ID].countMax = 95;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1100;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 12)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 300;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = -400;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 0;
_root["enemy_mc" + ID]._y = 909;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 700;
_root["enemy_mc" + ID]._y = 909;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 16)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -300;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 300;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 295;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -400;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1100;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 145;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 20)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -500;
_root["enemy_mc" + ID].countMax = 25;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 226 MovieClip "plane1" in Frame 15
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.32;
var maxSPD = 14;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 228 MovieClip "plane2" in Frame 15
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.32;
var maxSPD = 14;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 230 MovieClip "plane3" in Frame 15
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.4;
var maxSPD = 14;
var shotCount = 1;
var shotMax = 5;
var refire = 0;
var refireInterval = 20;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Frame 16
_root.continue_mc._visible = false;
_root.restart_mc._visible = false;
_root.levelStat = "Level Name: Tex";
_root.deathLevelMC._visible = false;
stop();
Instance of Symbol 105 MovieClip "planeMaker" in Frame 16
onClipEvent (load) {
var tempDepth = 0;
_root.plane1.death = true;
_root.plane2.death = true;
_root.plane3.death = true;
_root.plane3.dead = true;
_root.deathCount = 0;
_root.enemyCount = 0;
}
onClipEvent (enterFrame) {
if (((_root.deathCount >= 22) && (_root.player_mc.dying != true)) && (_root.player_mc.death != true)) {
_root.player_mc.airplaneSND.stop();
_root.player_mc.removeMovieClip();
_root.plane1.removeMovieClip();
_root.plane2.removeMovieClip();
_root.plane3.removeMovieClip();
_root.gotoAndPlay("win");
}
if (stage1 != true) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = 100;
_root["enemy_mc" + ID].countMax = 150;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1000;
_root["enemy_mc" + ID]._y = 150;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 2000;
_root["enemy_mc" + ID]._y = 100;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 2100;
_root["enemy_mc" + ID]._y = 150;
_root["enemy_mc" + ID].countMax = 75;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage1 = true;
} else if ((stage2 != true) && (_root.deathCount >= 4)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -300;
_root["enemy_mc" + ID].countMax = 200;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 809;
_root["enemy_mc" + ID].countMax = 195;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -500;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 100;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 1200;
_root["enemy_mc" + ID]._y = 255;
_root["enemy_mc" + ID].countMax = 95;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage2 = true;
} else if ((stage3 != true) && (_root.deathCount >= 8)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 900;
_root["enemy_mc" + ID]._y = -200;
_root["enemy_mc" + ID].countMax = 45;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -200;
_root["enemy_mc" + ID]._y = 709;
_root["enemy_mc" + ID].countMax = 40;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage3 = true;
} else if ((stage4 != true) && (_root.deathCount >= 10)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 125;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 80;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 600;
_root["enemy_mc" + ID].countMax = 35;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage4 = true;
} else if ((stage5 != true) && (_root.deathCount >= 13)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 750;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 400;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = -50;
_root["enemy_mc" + ID]._y = 559;
_root["enemy_mc" + ID].countMax = 390;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane1.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = -50;
_root["enemy_mc" + ID].countMax = 380;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage5 = true;
} else if ((stage6 != true) && (_root.deathCount >= 16)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 400;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 50;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 450;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 45;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 500;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 40;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 550;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 35;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane2.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 600;
_root["enemy_mc" + ID]._y = 800;
_root["enemy_mc" + ID].countMax = 30;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
stage6 = true;
} else if ((stage7 != true) && (_root.deathCount >= 21)) {
_root.enemyCount++;
ID = _root.enemyCount;
_root.plane3.duplicateMovieClip("enemy_mc" + ID, 120 + ID);
_root["enemy_mc" + ID]._x = 350;
_root["enemy_mc" + ID]._y = 850;
_root["enemy_mc" + ID].countMax = 5;
_root["enemy_mc" + ID].ID = ID;
_root.tracer.duplicateMovieClip("tracer_mc" + ID, 350 + ID);
_root["tracer_mc" + ID].id = ID;
_root.bossHealth._visible = true;
if (_root.music == false) {
_root.cannonHolder.cannonSND.stop();
_root.hitHolder.hitSND.stop();
_root.bgMusic.start(0, 999);
}
stage7 = true;
}
}
Instance of Symbol 235 MovieClip "plane1" in Frame 16
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.36;
var maxSPD = 14;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 237 MovieClip "plane2" in Frame 16
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
health = 1;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.4;
var maxSPD = 14;
var timerX = _root.player_mc._x;
var timerY = _root.player_mc._y;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
if (count <= countMax) {
count++;
} else {
timerX = _root.player_mc._x;
timerY = _root.player_mc._y;
count = 0;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < timerX) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= timerX) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < timerY) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= timerY) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (health <= 0) {
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
expSND.start(0, 1);
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
this.removeMovieClip();
}
}
}
Instance of Symbol 239 MovieClip "plane3" in Frame 16
onClipEvent (load) {
expSND = new Sound();
expSND.attachSound("explosion.wav");
expStart = false;
var health = 100;
var speed = 0;
var xSpeed = 0;
var ySpeed = 0;
var acc = 0.6;
var maxSPD = 8;
var shotCount = 1;
var shotMax = 2;
var refire = 0;
var refireInterval = 30;
swapDepths(110 + id);
var SMKcounter = 0;
var depthCounter = 0;
var scaleCount = 0;
var alphaCount = 0;
smokeColor = new color(_root.enemyTrail);
smokeColor.setRGB(16777215);
trace(id);
}
onClipEvent (enterFrame) {
if (!death) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
theta = math.atan2(xSpeed * 0.017453, (-ySpeed) * 0.017453);
_rotation = (theta / 0.017453);
if ((_x < _root.player_mc._x) && (xSpeed < maxSPD)) {
xSpeed = xSpeed + acc;
} else if ((_x >= _root.player_mc._x) && (xSpeed > (-maxSPD))) {
xSpeed = xSpeed - acc;
}
if ((_y < _root.player_mc._y) && (ySpeed < maxSPD)) {
ySpeed = ySpeed + acc;
} else if ((_y >= _root.player_mc._y) && (ySpeed > (-maxSPD))) {
ySpeed = ySpeed - acc;
}
if (_root.player_mc.dying != true) {
enemyDist = Math.sqrt(((_root.player_mc._x - this._x) * (_root.player_mc._x - this._x)) + ((_root.player_mc._y - this._y) * (_root.player_mc._y - this._y)));
if ((enemyDist <= 25) && (this.death != true)) {
_root.player_mc.health = 0;
this.health = 0;
}
}
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((10 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
tipX = 15 * math.sin((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
tipY = 15 * math.cos((this.turret_mc._rotation * 0.017453) + (this._rotation * 0.017453));
_x = this._x + tipX;
_y = this._y - tipY;
_rotation = this.turret_mc._rotation + this._rotation;
}
}
}
if (dead != true) {
if (SMKcounter <= 3) {
SMKcounter++;
} else {
_root.enemyTrail.duplicateMovieClip(("enemyTrail" + depthCounter) + ID, depthCounter - 150);
_root[("enemyTrail" + depthCounter) + ID]._x = _x;
_root[("enemyTrail" + depthCounter) + ID]._y = _y;
depthCounter++;
if (depthCounter >= 10) {
depthCounter = 0;
}
SMKcounter = 0;
}
if (health > 90) {
smokeColor.setRGB(16777215);
} else if ((health > 80) && (health <= 90)) {
smokeColor.setRGB(15066597);
} else if ((health > 70) && (health <= 80)) {
smokeColor.setRGB(13421772);
} else if ((health > 60) && (health <= 70)) {
smokeColor.setRGB(11711154);
} else if ((health > 50) && (health <= 60)) {
smokeColor.setRGB(10066329);
} else if ((health > 40) && (health <= 50)) {
smokeColor.setRGB(8355711);
} else if ((health > 30) && (health <= 40)) {
smokeColor.setRGB(6710886);
} else if ((health > 20) && (health <= 30)) {
smokeColor.setRGB(5000268);
} else if ((health > 10) && (health <= 20)) {
smokeColor.setRGB(3355443);
} else if (health <= 10) {
smokeColor.setRGB(1644825);
}
_root.bossHealth.bossMeter._height = health / 2;
}
if (health <= 0) {
health = 0;
if (expStart != true) {
expSND.start(0, 1);
expStart = true;
}
death = true;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + 8);
swapDepths(-100 - id);
if (scaleCount <= 100) {
_xscale = (_xscale - 0.2);
_yscale = (_yscale - 0.2);
scaleCount++;
} else if (alphaCount <= 50) {
_xscale = (_xscale - 0.4);
_yscale = (_yscale - 0.4);
_alpha = (_alpha - 2);
alphaCount++;
} else {
death = true;
_root.bossHealth._visible = false;
this.removeMovieClip();
if (dead != true) {
_root.deathCount = _root.deathCount + 1;
dead = true;
}
}
}
}
Frame 17
mouse.show();
stop();
Instance of Symbol 25 MovieClip in Frame 17
onClipEvent (load) {
id = 1;
}
onClipEvent (enterFrame) {
if (id <= 20) {
_root["enemy_mc" + ID].removeMovieClip();
id++;
}
}
Symbol 17 MovieClip Frame 40
gotoAndPlay (1);
Symbol 36 Button
on (release) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Symbol 41 Button
on (release) {
trace(_root.codeBox);
gotoAndPlay (6);
}
Symbol 46 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("instructions");
}
Symbol 51 Button
on (release) {
if (_root.music != false) {
_root.bgMusic.start(0, 999);
_root.music = false;
} else {
_root.bgMusic.stop();
_root.music = true;
}
}
Symbol 54 Button
on (release) {
getURL ("http://www.ugotgames.com/", "_blank");
}
Symbol 60 Button
on (release) {
trace(_root.codeBox);
if (((_root.codeBox == "yeager") || (_root.codeBox == "Yeager")) || (_root.codeBox == "YEAGER")) {
_global.newLevel = "level1";
gotoAndPlay (6);
} else if (((_root.codeBox == "pappy") || (_root.codeBox == "Pappy")) || (_root.codeBox == "PAPPY")) {
_global.newLevel = "level2";
gotoAndPlay (6);
} else if (((_root.codeBox == "butch") || (_root.codeBox == "Butch")) || (_root.codeBox == "BUTCH")) {
_global.newLevel = "level3";
gotoAndPlay (6);
} else if (((_root.codeBox == "foss") || (_root.codeBox == "Foss")) || (_root.codeBox == "FOSS")) {
_global.newLevel = "level4";
gotoAndPlay (6);
} else if (((_root.codeBox == "ike") || (_root.codeBox == "Ike")) || (_root.codeBox == "IKE")) {
_global.newLevel = "level5";
gotoAndPlay (6);
} else if (((_root.codeBox == "bud") || (_root.codeBox == "Bud")) || (_root.codeBox == "BUD")) {
_global.newLevel = "level6";
gotoAndPlay (6);
} else if (((_root.codeBox == "buzz") || (_root.codeBox == "Buzz")) || (_root.codeBox == "BUZZ")) {
_global.newLevel = "level7";
gotoAndPlay (6);
} else if (((_root.codeBox == "duncan") || (_root.codeBox == "Duncan")) || (_root.codeBox == "DUNCAN")) {
_global.newLevel = "level8";
gotoAndPlay (6);
} else if (((_root.codeBox == "blackburn") || (_root.codeBox == "Blackburn")) || (_root.codeBox == "BLACKBURN")) {
_global.newLevel = "level9";
gotoAndPlay (6);
} else if (((_root.codeBox == "tex") || (_root.codeBox == "Tex")) || (_root.codeBox == "TEX")) {
_global.newLevel = "level10";
gotoAndPlay (6);
} else {
_global.newLevel = "level1";
_root.codeBox = "enter level name";
_root.resultBad = "Try Again";
}
}
Symbol 69 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("intro");
}
Symbol 121 MovieClip Frame 28
stop();
Symbol 122 MovieClip Frame 28
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 6
stop();
this.removeMovieClip();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 6
stop();
this.removeMovieClip();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Instance of Symbol 148 MovieClip "bossMeter" in Symbol 150 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 148 MovieClip "bossMeter2" in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Symbol 250 Button
on (release) {
_global.newLevel = "level1";
_root.gotoAndPlay("intro");
}
Symbol 255 Button
on (release) {
getURL ("http://www.ugotgames.com/", "_blank");
}