Frame 1
Stage.showMenu = false;
stop();
Instance of Symbol 38 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + 1);
_root.loadPer = _currentframe + "%";
} else {
_root.gotoAndStop(4);
}
}
Frame 2
prevFrame();
Frame 3
nextFrame();
Instance of Symbol 52 MovieClip in Frame 3
onClipEvent (mouseDown) {
getURL ("http://www.mofunzone.com", "_blank");
}
Frame 4
stopAllSounds();
_root._quality = "HIGH";
Frame 5
prevFrame();
Frame 6
nextFrame();
Instance of Symbol 97 MovieClip in Frame 6
onClipEvent (keyDown) {
if ((Key.getAscii() == 67) || (Key.getAscii() == 99)) {
gotoAndStop (5);
}
}
Frame 7
function newBG(ref, frm) {
if (highGraphics) {
this["tiles" + ref].gotoAndStop(frm);
} else {
this["tiles" + ref].gotoAndStop(100 + frm);
}
this["tiles" + ref].bounds.gotoAndStop(frm);
}
function eAdvance(forth) {
if (forth) {
j = 1;
while (_root.maxEnemy >= j) {
if (1 < _root["e" + j]._currentframe) {
if (_root["e" + j].curTile == "R") {
_root["e" + j].curTile = "M";
} else if (_root["e" + j].curTile == "M") {
_root["e" + j].curTile = "L";
} else {
storeEnemy(j, _root["e" + j].startL);
}
}
j++;
}
k = 1;
while (4 >= k) {
if (_root["pick" + k].curTile == "R") {
_root["pick" + k].curTile = "M";
} else if (_root["pick" + k].curTile == "M") {
_root["pick" + k].curTile = "L";
}
k++;
}
a = 0;
while (a < maxstored) {
if (((0 < enemyIDs[a]) && (enemyPos[a] == (landmark + 2))) && (0 < _root.findFree("e", _root.maxEnemy))) {
_root["e" + _root.findFree("e", _root.maxEnemy)].startL = enemyPos[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].curTile = "R";
_root["e" + _root.findFree("e", _root.maxEnemy)].hp = enemyHPs[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].startX = enemyX[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].startT = "R";
_root["e" + _root.findFree("e", _root.maxEnemy)]._x = _root.tilesR._x + enemyX[a];
_root["e" + _root.findFree("e", _root.maxEnemy)]._xscale = 100;
_root["e" + _root.findFree("e", _root.maxEnemy)]._y = enemyY[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].gotoAndStop(enemyIDs[a]);
enemyIDs[a] = -1;
numstored--;
}
a++;
}
} else {
j = 1;
while (_root.maxEnemy >= j) {
if (1 < _root["e" + j]._currentframe) {
if (_root["e" + j].curTile == "L") {
_root["e" + j].curTile = "M";
} else if (_root["e" + j].curTile == "M") {
_root["e" + j].curTile = "R";
} else {
storeEnemy(j, _root["e" + j].startL);
}
}
j++;
}
j = 1;
while (4 >= j) {
if (_root["pick" + j].curTile == "L") {
_root["pick" + j].curTile = "M";
} else if (_root["pick" + j].curTile == "M") {
_root["pick" + j].curTile = "R";
}
j++;
}
a = 0;
while (a < maxstored) {
if (((0 < enemyIDs[a]) && (enemyPos[a] == (landmark - 2))) && (0 < _root.findFree("e", _root.maxEnemy))) {
_root["e" + _root.findFree("e", _root.maxEnemy)].startL = enemyPos[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].curTile = "L";
_root["e" + _root.findFree("e", _root.maxEnemy)].hp = enemyHPs[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].startX = enemyX[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].startT = "L";
_root["e" + _root.findFree("e", _root.maxEnemy)]._x = _root.tilesL._x + enemyX[a];
_root["e" + _root.findFree("e", _root.maxEnemy)]._xscale = 100;
_root["e" + _root.findFree("e", _root.maxEnemy)]._y = enemyY[a];
_root["e" + _root.findFree("e", _root.maxEnemy)].gotoAndStop(enemyIDs[a]);
enemyIDs[a] = -1;
numstored--;
}
a++;
}
}
}
function storeEnemy(id, place) {
if (_root["e" + id]._currentframe != 6) {
i = 0;
while ((maxstored + 1) >= i) {
if (1 >= enemyIDs[i]) {
enemyIDs[i] = _root["e" + id]._currentframe;
enemyPos[i] = place;
enemyX[i] = _root["e" + id].startX;
enemyY[i] = _root["e" + id]._y;
enemyHPs[i] = _root["e" + id].hp;
_root["e" + id].gotoAndStop(1);
numStored++;
maxStored++;
return(undefined);
}
i++;
}
}
}
function playerFire(weapID) {
if (weapID == 1) {
if ((player.arm._currentframe == 1) && (0 < _root.findFree("pro", _root.maxPro))) {
shotSound.attachSound("pistolEdit");
shotSound.start();
player.arm.gotoAndPlay(2);
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = player._x + (player._xscale / 2.6);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = player._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = player._xscale / 5;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = (player._y + player.arm._y) + 35;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = -1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(2);
}
} else if (weapID == 2) {
if (((0 < _root.ammoSG) && (player.arm._currentframe == 7)) && (0 < _root.findFree("pro", _root.maxPro))) {
shotSound.attachSound("shotgun");
shotSound.start();
if (!_root.allWeapons) {
_root.ammoSG--;
}
player.arm2.gotoAndPlay(3);
player.arm.gotoAndPlay(8);
i = 1;
while (4 >= i) {
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = player._x + (player._xscale / 1.4);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = player._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = player._xscale / 3.6;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = (player._y + player.arm._y) + 25;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = random(9) - 4;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = -1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(6);
}
i++;
}
}
} else if (((0 < _root.ammoRL) && (player.arm._currentframe == 17)) && (0 < _root.findFree("pro", _root.maxPro))) {
shotSound.attachSound("rocket");
shotSound.start();
if (!_root.allWeapons) {
_root.ammoRL--;
}
player.arm.gotoAndPlay(18);
player.arm2.gotoAndPlay(9);
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = player._x + (player._xscale / 2.6);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = player._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = player._xscale / 5;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = (player._y + player.arm._y) - 10;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = -1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(8);
}
_root.updateHUD();
}
function findFree(clipHandle, cap) {
i = 1;
while (cap >= i) {
if (_root[clipHandle + i]._currentframe == 1) {
return(i);
}
i++;
}
return(0);
}
function clearEnemies() {
i = 1;
while (_root.maxEnemy >= i) {
_root["e" + i].gotoAndStop(1);
i++;
}
}
function clearPros() {
i = 1;
while (_root.maxPro >= i) {
_root["pro" + i].gotoAndStop(1);
i++;
}
}
function pickUp(frm) {
if (frm == 2) {
if (60 < (_root.ammoSG + 10)) {
_root.ammoSG = 60;
} else {
_root.ammoSG = _root.ammoSG + 10;
}
} else if (frm == 3) {
if (10 < (_root.ammoRL + 1)) {
_root.ammoRL = 10;
} else {
_root.ammoRL = _root.ammoRL + 1;
}
} else if (frm == 4) {
if (_root.player.maxhp < (_root.player.hp + Math.round(_root.player.maxhp / 4))) {
_root.player.hp = _root.player.maxhp;
} else {
_root.player.hp = _root.player.hp + Math.round(_root.player.maxhp / 4);
}
_root.health.gotoAndStop(101 - Math.round((player.hp / player.maxhp) * 100));
} else if (frm == 5) {
_root.player.lives++;
} else if (frm == 6) {
if (!_root.haveSG) {
_root.haveSG = true;
_root.ammoSG = 30;
} else {
pickUp(2);
}
} else if (frm == 7) {
if (!_root.haveRL) {
_root.haveRL = true;
_root.ammoRL = 2;
} else {
pickUp(3);
}
}
_root.updateHUD();
}
function setHPs() {
inc = 0;
hpArray = new Array();
hpArray = [0, 0, 100, 80, 30, 120, 1, 60, 90, 120, 100];
while (0 < enemyIDs[inc]) {
enemyHPs[inc] = hpArray[enemyIDs[inc]];
inc++;
}
}
function updateHUD() {
if (_root.gunInd._currentframe == 2) {
_root.mainAmmo = _root.ammoSG;
} else if (_root.gunInd._currentframe == 3) {
_root.mainAmmo = _root.ammoRL;
}
if (gunInd._currentframe == 1) {
_root.ammo1.gotoAndStop(1);
_root.ammo2.gotoAndStop(101 - Math.round((_root.ammoSG / 60) * 100));
_root.ammo3.gotoAndStop(101 - Math.round((_root.ammoRL / 10) * 100));
} else if (gunInd._currentframe == 2) {
_root.ammo1.gotoAndStop(101 - Math.round((_root.mainAmmo / 60) * 100));
_root.ammo2.gotoAndStop(101 - Math.round((_root.ammoRL / 10) * 100));
_root.ammo3.gotoAndStop(1);
} else {
_root.ammo1.gotoAndStop(101 - Math.round((_root.mainAmmo / 10) * 100));
_root.ammo2.gotoAndStop(101 - Math.round((_root.ammoSG / 60) * 100));
_root.ammo3.gotoAndStop(1);
}
}
function dropPickup(xv, yv, tile) {
if (_root.findFree("pick", 4)) {
_root["pick" + _root.findFree("pick", 4)]._x = xv;
_root["pick" + _root.findFree("pick", 4)]._y = yv;
_root["pick" + _root.findFree("pick", 4)].curTile = tile;
do {
attempt = random(50) + 2;
} while (((((attempt >= 29) && (32 >= attempt)) && ((!haveRL) || (level == 1))) || (((attempt >= 20) && (28 >= attempt)) && (!haveSG))) || (((attempt == 42) || (attempt >= 48)) && (level == 1)));
_root["pick" + _root.findFree("pick", 4)].gotoAndStop(attempt);
}
}
function setLevel(lvl) {
_root.tilesL._x = _root.tilesL.startX;
_root.tilesM._x = _root.tilesM.startX;
_root.tilesR._x = _root.tilesR.startX;
_root.stageBanner.gotoAndPlay(7);
_root.staticBack.gotoAndStop(lvl);
_root.durat = 0;
_root.kills = 0;
_root.backLock = false;
_root.level = lvl;
player.curTile = "M";
_root.lvlBool = false;
landmark = 0;
if (lvl == 1) {
newBG("L", 2);
newBG("M", 3);
newBG("R", 4);
_root.player._x = 207;
_root.player._y = 180;
numStored = 16;
maxstored = 16;
e1.gotoAndStop(7);
e1._x = 500;
e1.startX = 200;
e1._y = 35;
e1.hp = 60;
e1.startL = 0;
e2.gotoAndStop(4);
e2._x = 1200;
e2.startX = 300;
e2._y = 362;
e2.hp = 30;
e2.startL = 1;
e3.gotoAndStop(1);
e4.gotoAndStop(1);
e5.gotoAndStop(1);
e6.gotoAndStop(1);
e7.gotoAndStop(1);
e8.gotoAndStop(1);
enemyIDs = [3, 4, 3, 5, 5, 3, 5, 4, 7, 4, 4, 7, 3, 3, 7, 4, 5, 3, 3, 5, 4];
enemyPos = [2, 3, 3, 4, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 10, 11, 11];
enemyX = [60, 130, 8, -242, -62, 60, -292, 32, 130, -292, 280, 160, -240, 160, 160, 140, -240, -40, 90, -120, 293];
enemyY = [245, 370, 180, 370, 370, 322, 360, 265, 35, 370, 360, 35, 360, 360, 35, 360, 360, 140, 90, 120, 360];
} else if (lvl == 2) {
lvlBool = false;
newBG("L", 22);
newBG("M", 23);
newBG("R", 24);
_root.player._x = 207;
_root.player._y = 333;
numStored = 22;
maxstored = 22;
e1.gotoAndStop(9);
e1._x = -120;
e1.startX = 180;
e1._y = 193;
e1.hp = 120;
e1.startL = -1;
e2.gotoAndStop(8);
e2._x = -310;
e2.startX = 25;
e2._y = 55;
e2.hp = 80;
e2.startL = -1;
e3.gotoAndStop(4);
e3._x = -370;
e3.startX = -33;
e3._y = 315;
e3.hp = 30;
e3.startL = -1;
e4.gotoAndStop(1);
e5.gotoAndStop(1);
e6.gotoAndStop(1);
e7.gotoAndStop(1);
e8.gotoAndStop(1);
enemyIDs = [8, 4, 7, 3, 3, 5, 7, 5, 9, 3, 4, 3, 7, 9, 5, 8, 7, 5, 3, 9, 4, 8];
enemyPos = [-3, -3, -2, -2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8];
enemyX = [128, 306, -84, -84, -192, 8, 260, -302, -242, 180, 3, 160, -100, -100, -302, -112, -242, -242, -142, 100, -122, 8];
enemyY = [50, 350, 120, 315, 255, 130, 35, 355, 197, 200, 355, 200, 35, 305, 355, 85, 35, 348, 210, 275, 250, 135];
} else if (lvl == 3) {
newBG("L", 34);
newBG("M", 35);
newBG("R", 36);
_root.player._x = 207;
_root.player._y = 333;
numStored = 26;
maxstored = 26;
e1.gotoAndStop(7);
e1._x = 1000;
e1.startX = 100;
e1._y = 35;
e1.hp = 60;
e.startL = 1;
e2.gotoAndStop(2);
e2._x = 850;
e2.startX = -50;
e2._y = 340;
e2.hp = 100;
e2.startL = 1;
e3.gotoAndStop(2);
e3._x = 1040;
e3.startX = 140;
e3._y = 340;
e3.hp = 100;
e3.startL = 1;
e4.gotoAndStop(5);
e4._x = 1105;
e4.startX = 205;
e4._y = 320;
e4.hp = 120;
e4.startL = 1;
e5.gotoAndStop(1);
e6.gotoAndStop(1);
e7.gotoAndStop(1);
e8.gotoAndStop(1);
enemyIDs = [7, 3, 9, 7, 2, 2, 9, 5, 7, 9, 3, 5, 4, 3, 7, 4, 2, 7, 5, 5, 3, 9, 4, 4, 3, 4];
enemyPos = [2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 10, 11, 11];
enemyX = [-300, 0, -200, -200, 0, -100, 145, -100, 215, -150, 70, 140, 260, 0, 150, 260, 100, 100, 150, -100, 200, -195, 10, 230, 0, 120];
enemyY = [35, 320, 347, 35, 160, 347, 325, 230, 35, 335, 233, 110, 360, 330, 35, 360, 359, 60, 359, 270, 355, 360, 362, 362, 260, 362];
} else if (lvl == 4) {
newBG("L", 49);
newBG("M", 50);
newBG("R", 51);
_root.player._x = 207;
_root.player._y = 333;
numStored = 21;
maxstored = 21;
e1.gotoAndStop(7);
e1._x = 900;
e1.startX = 0;
e1._y = 35;
e1.hp = 60;
e1.startL = 1;
e2.gotoAndStop(10);
e2._x = 1060;
e2.startX = 160;
e2._y = 333;
e2.hp = 120;
e2.startL = 1;
e3.gotoAndStop(9);
e3._x = 900;
e3.startX = 0;
e3._y = 356;
e3.hp = 120;
e3.startL = 1;
e4.gotoAndStop(1);
e5.gotoAndStop(1);
e6.gotoAndStop(1);
e7.gotoAndStop(1);
e8.gotoAndStop(1);
enemyIDs = [4, 3, 3, 10, 7, 7, 7, 2, 9, 4, 7, 9, 10, 10, 7, 2, 2, 3, 9, 8, 10];
enemyPos = [2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 8, 8, 8, 9, 9, 9, 10];
enemyX = [-40, 250, -200, 50, 170, 0, 240, -50, 120, 300, 0, 0, 175, 100, -220, -200, 200, -100, 0, 250, 140];
enemyY = [360, 355, 355, 310, 60, 60, 60, 355, 355, 362, 35, 355, 280, 330, 35, 355, 355, 300, 367, 185, 330];
} else if (lvl == 5) {
newBG("L", 63);
newBG("M", 64);
newBG("R", 65);
_root.player._x = 207;
_root.player._y = 333;
numStored = 6;
maxstored = 6;
e1.gotoAndStop(2);
e1._x = 1040;
e1.startX = 240;
e1._y = 355;
e1.hp = 100;
e1.startL = 1;
e2.gotoAndStop(1);
e3.gotoAndStop(1);
e4.gotoAndStop(1);
e5.gotoAndStop(1);
e6.gotoAndStop(1);
e7.gotoAndStop(1);
e8.gotoAndStop(1);
enemyIDs = [3, 9, 5, 7, 10, 4];
enemyPos = [2, 3, 4, 5, 6, 7];
enemyX = [-100, -200, 180, 0, -80, -244];
enemyY = [355, 250, 190, 35, 285, 358];
}
setHPs();
}
_root._quality = "HIGH";
if (!firstTime) {
highMechanics = true;
_root.savedQual = "MEDIUM";
highGraphics = true;
godMode = false;
allWeapons = false;
masterVol = 100;
firstTime = true;
}
if (!instantiated) {
bgMusic = new Sound();
score = 0;
backLock = false;
level = 1;
if (!_root.allWeapons) {
haveRL = false;
haveSG = false;
ammoSG = 0;
ammoRL = 0;
ammoP = 99;
}
enemyIDs = new Array();
enemyPos = new Array();
enemyHPs = new Array();
enemyX = new Array();
enemyY = new Array();
landmark = 0;
maxPro = 10;
maxScrap = 8;
maxEnemy = 10;
maxPick = 4;
anySound = new Sound();
shotSound = new Sound();
exploSound = new Sound();
exploSound.attachSound("blast");
exploSound1 = new Sound();
exploSound1.attachSound("rocket");
exploSound2 = new Sound();
exploSound2.attachSound("explode2");
exploSound3 = new Sound();
exploSound3.attachSound("explode3");
miscSound = new Sound();
lightShot = new Sound();
lightShot.attachSound("lightshot");
bigShot = new Sound();
bigShot.attachSound("bigshot");
heavyShot = new Sound();
heavyShot.attachSound("heavyshot");
laserSound = new Sound();
laserSound.attachSound("laser");
hitSound = new Sound();
hitSound.attachSound("hit");
mainAmmo = 99;
instantiated = true;
}
stopAllSounds();
bgMusic.attachSound("menu");
bgMusic.start(0, 9999);
_root._quality = "HIGH";
Frame 8
prevFrame();
Frame 9
nextFrame();
Instance of Symbol 146 MovieClip in Frame 9
onClipEvent (keyDown) {
if (Key.isDown(75) || (Key.isDown(107))) {
_root.gotoAndStop(13);
}
}
Frame 10
stopAllSounds();
_root._quality = "HIGH";
Frame 11
prevFrame();
Frame 12
nextFrame();
Instance of Symbol 156 MovieClip "staticBack" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 797 MovieClip "tilesR" in Frame 12
onClipEvent (load) {
id = "R";
startX = _x;
}
Instance of Symbol 797 MovieClip "tilesL" in Frame 12
onClipEvent (load) {
id = "L";
startX = _x;
}
Instance of Symbol 797 MovieClip "tilesM" in Frame 12
onClipEvent (load) {
id = "M";
startX = _x;
}
Instance of Symbol 831 MovieClip "player" in Frame 12
onClipEvent (enterFrame) {
if (_root.durat < 999999) {
_root.durat++;
}
if (Key.isDown(27)) {
_root.instantiated = false;
_root.gotoAndStop(4);
}
if (0 < hp) {
if (Key.isDown(49) && ((arm._currentframe == 7) || (arm._currentframe == 17))) {
arm.gotoAndStop(1);
arm2.gotoAndStop(1);
_root.gunInd.gotoAndStop(1);
_root.mainAmmo = 99;
_root.updateHUD();
} else if ((_root.haveSG && (Key.isDown(50))) && ((arm._currentframe == 1) || (arm._currentframe == 17))) {
arm.gotoAndStop(7);
arm2.gotoAndStop(2);
_root.gunInd.gotoAndStop(2);
_root.mainAmmo = _root.ammoSG;
_root.updateHUD();
} else if ((_root.haveRL && (Key.isDown(51))) && ((arm._currentframe == 1) || (arm._currentframe == 7))) {
arm.gotoAndStop(17);
arm2.gotoAndStop(8);
_root.gunInd.gotoAndStop(3);
_root.mainAmmo = _root.ammoRL;
_root.updateHUD();
}
if (Key.isDown(32) && (_root.wrapUp._currentframe == 1)) {
if (6 >= arm._currentframe) {
_root.playerFire(1);
} else if (16 >= arm._currentframe) {
_root.playerFire(2);
} else {
_root.playerFire(3);
}
}
if (Key.isDown(38)) {
if (updep == false) {
if ((legs.curAction == "stopped") || (legs.curAction == "walking")) {
ySpeed = -24;
legs.gotoAndPlay(46);
legs.curAction = "falling";
updep = true;
} else if (((legs.curAction == "falling") && (-10 < ySpeed)) && (booster._currentframe < 11)) {
ySpeed = -16;
booster.gotoAndPlay(11);
updep = true;
} else if (((legs.curAction == "crouched") || (legs.curAction == "crawling")) && (!_root["tiles" + curTile].hitTest(_x, _y - 100, true))) {
legs.gotoAndPlay(43);
updep = true;
}
}
} else {
updep = false;
}
if (Key.isDown(40) && ((legs.curAction == "stopped") || (legs.curAction == "walking"))) {
legs.gotoAndPlay(37);
} else if (Key.isDown(39)) {
_xscale = 100;
if (legs.curAction == "stopped") {
legs.gotoAndPlay(21);
} else if ((legs.curAction == "walking") || (legs.curAction == "falling")) {
locomote(-8, 0);
} else if (((!Key.isDown(40)) && (!_root["tiles" + curTile].bounds.hitTest(_x, _y - 100, true))) && (legs.curAction == "crawling")) {
legs.gotoAndPlay(42);
} else if (legs.curAction == "crouched") {
legs.gotoAndPlay(52);
} else if (legs.curAction == "crawling") {
locomote(-5, 0);
}
} else if (Key.isDown(37)) {
_xscale = -100;
if (legs.curAction == "stopped") {
legs.gotoAndPlay(21);
} else if ((legs.curAction == "walking") || (legs.curAction == "falling")) {
locomote(8, 0);
} else if (((!Key.isDown(40)) && (!_root["tiles" + curTile].bounds.hitTest(_x, _y - 100, true))) && (legs.curAction == "crawling")) {
legs.gotoAndPlay(42);
} else if (legs.curAction == "crouched") {
legs.gotoAndPlay(52);
} else if (legs.curAction == "crawling") {
locomote(5, 0);
}
} else if (((((legs.curAction != "crouching") && (legs.curAction != "crouched")) && (legs.curAction != "crawling")) && (legs.curAction != "stopped")) && (legs.curAction != "falling")) {
legs.gotoAndPlay(1);
} else if (legs.curAction == "crawling") {
legs.gotoAndPlay(42);
}
if (legs.curAction == "falling") {
ySpeed = ySpeed + 2;
booster.play();
if (0 < ySpeed) {
while (_root["tiles" + curTile].bounds.hitTest(_x, _y + ySpeed, true)) {
ySpeed--;
}
}
bonk = locomote(0, ySpeed);
if ((ySpeed < 0) && (!bonk)) {
ySpeed = 0;
}
if ((_root.tilesL.bounds.hitTest(_x, _y + 2, true) || (_root.tilesM.bounds.hitTest(_x, _y + 2, true))) || (_root.tilesR.bounds.hitTest(_x, _y + 2, true))) {
if ((legs._currentframe >= 46) && (51 >= legs._currentframe)) {
booster.gotoAndStop(1);
legs.gotoAndPlay(1);
}
}
} else if (!((_root.tilesL.bounds.hitTest(_x, _y + 2, true) || (_root.tilesM.bounds.hitTest(_x, _y + 2, true))) || (_root.tilesR.bounds.hitTest(_x, _y + 2, true)))) {
legs.gotoAndPlay(46);
booster.gotoAndStop(1);
ySpeed = 0;
} else {
ySpeed = 0;
booster.gotoAndStop(1);
}
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
} else {
my_color.setTransform(original);
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (0 < invinci) {
invinci--;
}
}
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
ySpeed = 0;
updep = false;
curTile = "M";
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
hp = 100;
maxhp = 100;
lives = 4;
}
Instance of Symbol 923 MovieClip "e1" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 1;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 953 MovieClip "scrap1" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap2" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap3" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap4" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap5" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap6" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap7" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 953 MovieClip "scrap8" in Frame 12
onClipEvent (load) {
function scatter(low, high) {
rotspeed = (random(10) - 5) * 3;
xSpeed = random(10) - 5;
ySpeed = (-random(10)) - 10;
lifetime = 60;
gotoAndStop(random(high - low) + low);
}
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
if (!locked) {
if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x, _y + yspeed, true)))) {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else if (_root.highMechanics && ((_root.tilesL.bounds.hitTest(_x + xspeed, _y + yspeed, true) || (_root.tilesM.bounds.hitTest(_x + xspeed, _y + yspeed, true))) || (_root.tilesR.bounds.hitTest(_x + xspeed, _y + yspeed, true)))) {
yspeed = yspeed * 0.5;
xspeed = xspeed * -0.5;
rotspeed = rotspeed * 0.6;
if (Math.abs(xspeed) < 1) {
xspeed = 0;
}
if (Math.abs(yspeed) < 1) {
yspeed = 0;
} else {
ySpeed = ySpeed + 3;
}
if (Math.abs(rotspeed) < 1) {
rotspeed = 0;
}
} else {
ySpeed = ySpeed + 3;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_rotation = (_rotation + rotspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
xspeed = 0;
yspeed = 0;
rotspeed = 0;
locked = true;
}
}
lifetime--;
if (0 >= lifetime) {
gotoAndStop (1);
} else if (10 >= lifetime) {
if ((lifeTime % 2) == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
}
Instance of Symbol 923 MovieClip "e2" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 2;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e3" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 3;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e4" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 4;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e5" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 5;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e6" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 6;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e7" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 7;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e8" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 8;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e9" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 9;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 923 MovieClip "e10" in Frame 12
onClipEvent (load) {
function colorFlash() {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
function takeDamage(amt) {
hp = hp - amt;
if (0 >= hp) {
ei.play();
}
}
gotoAndStop (1);
curTile = "M";
id = 10;
hp = 60;
justHit = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
onClipEvent (enterFrame) {
if (0 < justHit) {
justHit--;
if (0 >= justHit) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 1015 MovieClip "pro1" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro2" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro3" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro4" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro5" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro6" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro7" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro8" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro9" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1015 MovieClip "pro10" in Frame 12
onClipEvent (enterFrame) {
if ((_currentframe % 2) == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((_root.tilesL.bounds.hitTest(_x, _y, true) || (_root.tilesM.bounds.hitTest(_x, _y, true))) || (_root.tilesR.bounds.hitTest(_x, _y, true))) {
gotoAndStop(collideFrame);
} else if (_root.player.hitTest(_x, _y, true) && (owner >= 0)) {
_root.player.takeDamage(power);
gotoAndStop(collideFrame);
} else if (owner == -1) {
i = 1;
while (_root.maxEnemy >= i) {
if (_root["e" + i].hitTest(_x, _y, true)) {
_root["e" + i].colorFlash();
_root["e" + i].takeDamage(power);
gotoAndStop(collideFrame);
}
i++;
}
}
if (!this.hitTest(_root.staticBack)) {
gotoAndStop (1);
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 1029 MovieClip "health" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 1033 MovieClip "ammo2" in Frame 12
onClipEvent (load) {
gotoAndStop (101);
}
Instance of Symbol 1033 MovieClip "ammo1" in Frame 12
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1033 MovieClip "ammo3" in Frame 12
onClipEvent (load) {
gotoAndStop (101);
}
Instance of Symbol 1079 MovieClip "wrapUp" in Frame 12
onClipEvent (keyDown) {
if ((_currentframe == 30) && (Key.isDown(32))) {
play();
}
}
Frame 13
stopAllSounds();
bgMusic.attachSound("music1");
bgMusic.start(0, 9999);
setLevel(level);
_root._quality = _root.savedQual;
_root.updateHUD();
Frame 14
prevFrame();
Frame 15
nextFrame();
Frame 16
stopAllSounds();
_root._quality = "HIGH";
Frame 17
prevFrame();
Frame 18
nextFrame();
Frame 19
stopAllSounds();
Symbol 31 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 52 MovieClip Frame 65
_root.gotoAndStop(7);
Symbol 57 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 60 Button
on (release) {
gotoAndStop (4);
}
Symbol 63 Button
on (release) {
gotoAndStop (2);
}
Symbol 66 Button
on (release) {
gotoAndStop (3);
}
Symbol 70 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 73 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 78 Button
on (release) {
gotoAndStop (1);
}
Symbol 96 Button
on (release) {
if ((!_root.godmode) && (enteredCheat == "mofunzonerulesman")) {
_root.exploSound3.start();
_root.godmode = true;
} else if ((!_root.allWeapons) && (enteredCheat == "givemethestuffmo")) {
_root.exploSound3.start();
_root.allweapons = true;
_root.haveSG = true;
_root.haveRL = true;
_root.ammoSG = 60;
_root.ammoRL = 10;
}
}
Symbol 97 MovieClip Frame 1
stop();
Instance of Symbol 84 MovieClip in Symbol 97 MovieClip Frame 4
onClipEvent (load) {
if (_root.highMechanics) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if (_root._xmouse < 415) {
_root.highMechanics = false;
gotoAndStop (1);
} else {
_root.highMechanics = true;
gotoAndStop (2);
}
}
}
Instance of Symbol 89 MovieClip in Symbol 97 MovieClip Frame 4
onClipEvent (load) {
if (_root.savedQual == "LOW") {
gotoAndStop (1);
} else if (_root.savedQual == "MEDIUM") {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if (_root._xmouse < 360) {
_root._quality = "LOW";
gotoAndStop (1);
} else if (_root._xmouse < 485) {
_root._quality = "MEDIUM";
gotoAndStop (2);
} else {
_root._quality = "HIGH";
gotoAndStop (3);
}
_root.savedQual = _root._quality;
_root._quality = "HIGH";
}
}
Instance of Symbol 84 MovieClip in Symbol 97 MovieClip Frame 4
onClipEvent (load) {
if (_root.highGraphics) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if (_root._xmouse < 415) {
_root.highGraphics = false;
gotoAndStop (1);
} else {
_root.highGraphics = true;
gotoAndStop (2);
}
}
}
Instance of Symbol 91 MovieClip in Symbol 97 MovieClip Frame 4
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
activated = true;
}
}
onClipEvent (mouseUp) {
activated = false;
}
onClipEvent (enterFrame) {
if (activated && (0 < _root.masterVol)) {
_root.masterVol--;
_root.anySound.setVolume(_root.masterVol);
}
}
Instance of Symbol 91 MovieClip in Symbol 97 MovieClip Frame 4
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
activated = true;
}
}
onClipEvent (mouseUp) {
activated = false;
}
onClipEvent (enterFrame) {
if (activated && (_root.masterVol < 100)) {
_root.masterVol++;
_root.anySound.setVolume(_root.masterVol);
}
}
Symbol 146 MovieClip Frame 90
_root.anySound = new Sound();
Symbol 146 MovieClip Frame 988
_root.anySound.setVolume(Math.round(80 * (_root.masterVol / 100)));
Symbol 146 MovieClip Frame 989
_root.anySound.setVolume(Math.round(60 * (_root.masterVol / 100)));
Symbol 146 MovieClip Frame 990
_root.anySound.setVolume(Math.round(40 * (_root.masterVol / 100)));
Symbol 146 MovieClip Frame 991
_root.anySound.setVolume(Math.round(20 * (_root.masterVol / 100)));
Symbol 146 MovieClip Frame 992
_root.anySound.setVolume(0);
Symbol 146 MovieClip Frame 993
_root.anySound.setVolume(_root.masterVol);
Symbol 146 MovieClip Frame 1049
_root.gotoAndStop(13);
Symbol 154 MovieClip Frame 11
if (random(8) != 5) {
gotoAndPlay (1);
}
Symbol 223 MovieClip Frame 18
gotoAndStop (3);
Symbol 262 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 262 MovieClip Frame 4
if (_currentframe == 4) {
gotoAndStop (1);
}
Symbol 262 MovieClip Frame 16
_root.exploSound.start();
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = 517;
_root["scrap" + _root.findFree("scrap", 8)]._y = 85;
_root["scrap" + _root.findFree("scrap", 8)].scatter(29, 29);
}
Symbol 262 MovieClip Frame 21
_root.exploSound2.start();
Symbol 262 MovieClip Frame 26
_root.exploSound2.start();
Symbol 262 MovieClip Frame 31
_root.exploSound2.start();
Symbol 262 MovieClip Frame 36
_root.exploSound3.start();
Symbol 262 MovieClip Frame 41
_root.wrapUp.play();
i = 1;
while (5 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = 517;
_root["scrap" + _root.findFree("scrap", 8)]._y = 110;
_root["scrap" + _root.findFree("scrap", 8)].scatter(30, 34);
}
i++;
}
_root.newBG("M", 17);
Symbol 269 MovieClip Frame 2
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 269 MovieClip Frame 3
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 269 MovieClip Frame 4
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 269 MovieClip Frame 5
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 269 MovieClip Frame 6
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 269 MovieClip Frame 7
_root.miscSound.attachSound("elec");
_root.miscSound.start();
Symbol 271 MovieClip Frame 103
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("electricShot");
_root.miscSound.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _root.tilesM._x + 170;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -14;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 142;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 3.2;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(20);
}
Symbol 283 MovieClip Frame 6
if ((_currentframe == 6) && (0 < hp)) {
gotoAndStop (1);
}
Symbol 283 MovieClip Frame 7
_root.exploSound2.start();
Symbol 283 MovieClip Frame 12
stop();
Instance of Symbol 247 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, false)) {
_root.player.takeDamage(2);
}
}
Symbol 312 MovieClip Frame 39
if (this.hitTest(_root.staticBack)) {
_root.miscSound.attachSound("elec");
_root.miscSound.start();
}
Symbol 564 MovieClip Frame 8
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -75;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 410;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -4;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 200;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 18;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 11
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -30;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 395;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -18;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 160;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 8;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 17
if ((0 >= hp) && (_currentframe == 17)) {
gotoAndPlay (163);
} else if ((hp < 50) && (_currentframe == 17)) {
gotoAndPlay (1);
}
Symbol 564 MovieClip Frame 32
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -90;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 305;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 130;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 20;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 55
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -135;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 235;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 13;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 155;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 13;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 71
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -90;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 183;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 160;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 20;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 93
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -135;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 111;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 13;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 165;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 13;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 147
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -30;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 375;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -18;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 260;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 7;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 564 MovieClip Frame 162
gotoAndPlay (1);
Symbol 564 MovieClip Frame 163
_root.exploSound2.start();
Symbol 564 MovieClip Frame 168
_root.exploSound2.start();
Symbol 564 MovieClip Frame 178
_root.exploSound1.start();
Symbol 564 MovieClip Frame 189
_root.exploSound3.start();
Symbol 564 MovieClip Frame 194
_root.wrapUp.play();
stop();
Instance of Symbol 563 MovieClip in Symbol 564 MovieClip Frame 194
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 60) {
_alpha = (_alpha+1);
}
}
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 5
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 10
stop();
Symbol 606 MovieClip Frame 18
if (_currentframe == 18) {
gotoAndStop (1);
}
Symbol 606 MovieClip Frame 24
stop();
Symbol 615 MovieClip Frame 11
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 10
stop();
Instance of Symbol 606 MovieClip "door1" in Symbol 616 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (0.98 < Math.random())) {
play();
} else if (_currentframe == 10) {
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
i++;
}
if ((0 < hp) && (Math.random() < 0.02)) {
my_color.setTransform(original);
play();
} else if ((0 < hp) && (0.98 < Math.random())) {
if (((0 < _root.findFree("pro", _root.maxPro)) && (_currentframe == 10)) && (30 < timeSince)) {
_root.lightShot.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 140;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = Math.abs((_root.player._y - 100) / 30);
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
if (_parent.leftColumn) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = Math.abs((_root.player._x - 100) / 30) + 3;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 480;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = (-Math.abs((_root.player._x - 480) / 30)) - 3;
}
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(28);
}
}
}
justHit--;
timeSince++;
if (justHit < 0) {
my_color.setTransform(original);
}
if ((0 >= hp) && (_currentframe < 19)) {
my_color.setTransform(original);
gotoAndPlay (19);
}
if (((_currentframe == 24) && (_parent.door2._currentframe == 24)) && (_parent.door3._currentframe == 24)) {
_parent.play();
}
}
onClipEvent (load) {
hp = 110;
timeSince = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
Instance of Symbol 606 MovieClip "door2" in Symbol 616 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (0.98 < Math.random())) {
play();
} else if (_currentframe == 10) {
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
i++;
}
if ((0 < hp) && (Math.random() < 0.02)) {
my_color.setTransform(original);
play();
} else if ((0 < hp) && (0.98 < Math.random())) {
if (((0 < _root.findFree("pro", _root.maxPro)) && (_currentframe == 10)) && (30 < timeSince)) {
_root.lightShot.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 220;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = (_root.player._y - 220) / 30;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
if (_parent.leftColumn) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = Math.abs((_root.player._x - 100) / 30) + 3;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 480;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = (-Math.abs((_root.player._x - 480) / 30)) - 3;
}
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(28);
}
}
}
justHit--;
timeSince++;
if (justHit < 0) {
my_color.setTransform(original);
}
if ((0 >= hp) && (_currentframe < 19)) {
my_color.setTransform(original);
gotoAndPlay (19);
}
}
onClipEvent (load) {
hp = 110;
timeSince = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
Instance of Symbol 606 MovieClip "door3" in Symbol 616 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_currentframe == 1) && (0.98 < Math.random())) {
play();
} else if (_currentframe == 10) {
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
}
i++;
}
if ((0 < hp) && (Math.random() < 0.02)) {
my_color.setTransform(original);
play();
} else if ((0 < hp) && (0.98 < Math.random())) {
if (((0 < _root.findFree("pro", _root.maxPro)) && (_currentframe == 10)) && (30 < timeSince)) {
_root.lightShot.start();
timeSince = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 300;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = (_root.player._y - 300) / 30;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
if (_parent.leftColumn) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = Math.abs((_root.player._x - 100) / 30) + 3;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 480;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = (-Math.abs((_root.player._x - 480) / 30)) - 3;
}
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(28);
}
}
}
justHit--;
timeSince++;
if (justHit < 0) {
my_color.setTransform(original);
}
if ((0 >= hp) && (_currentframe < 19)) {
my_color.setTransform(original);
gotoAndPlay (19);
}
}
onClipEvent (load) {
hp = 110;
timeSince = 0;
my_color = new Color(this);
original = my_color.getTransform();
}
Symbol 616 MovieClip Frame 11
_root.exploSound.start();
Symbol 616 MovieClip Frame 20
stop();
_root.exploSound3.start();
if ((_parent.column1._currentframe == 20) && (_parent.column2._currentframe == 20)) {
_root.wrapUp.play();
}
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 3
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 410;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -16;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 290;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 653 MovieClip Frame 5
gotoAndStop (1);
Symbol 653 MovieClip Frame 14
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -40;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 410;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -18;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 200;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 15;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -55;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 410;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -15;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 200;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 18;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 653 MovieClip Frame 27
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.miscSound.attachSound("cannon");
_root.miscSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -20;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = 510;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -18;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 190;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 6;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
Symbol 653 MovieClip Frame 44
gotoAndStop (1);
Symbol 653 MovieClip Frame 57
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
Symbol 653 MovieClip Frame 60
if (this.hitTest(_root.player)) {
_root.player.takeDamage(10);
}
Symbol 653 MovieClip Frame 82
gotoAndStop (1);
Symbol 653 MovieClip Frame 83
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
Symbol 653 MovieClip Frame 90
gotoAndStop (1);
Symbol 653 MovieClip Frame 91
_root.exploSound2.start();
i = 1;
while (2 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = 410;
_root["scrap" + _root.findFree("scrap", 8)]._y = 240;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
Symbol 653 MovieClip Frame 96
_root.exploSound.start();
i = 1;
while (4 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = 410;
_root["scrap" + _root.findFree("scrap", 8)]._y = 250;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
Symbol 653 MovieClip Frame 101
_root.wrapUp.play();
stop();
Symbol 708 MovieClip Frame 1
stop();
Symbol 708 MovieClip Frame 21
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.exploSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = (_x - (_xscale / 2.8)) + 300;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = (-_xscale) / 3.5;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _y + 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(30);
}
Symbol 708 MovieClip Frame 27
gotoAndStop (1);
Symbol 708 MovieClip Frame 45
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
Symbol 708 MovieClip Frame 52
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = (_x - (_xscale / (2 + Math.random()))) + 300;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(33);
}
Symbol 708 MovieClip Frame 53
gotoAndStop (1);
Symbol 708 MovieClip Frame 57
_root.miscSound.attachSound("deepShot");
_root.miscSound.start();
Symbol 708 MovieClip Frame 68
if (0 < _root.findFree("e", _root.maxEnemy)) {
_root["e" + _root.findFree("e", _root.maxEnemy)]._x = (_x - (_xscale / 4)) + _parent._x;
_root["e" + _root.findFree("e", _root.maxEnemy)]._y = 360;
_root["e" + _root.findFree("e", _root.maxEnemy)].hp = 1;
_root["e" + _root.findFree("e", _root.maxEnemy)]._xscale = _xscale;
_root["e" + _root.findFree("e", _root.maxEnemy)].gotoAndStop(11);
}
gotoAndStop (1);
Symbol 708 MovieClip Frame 78
if (Math.random() < 0.2) {
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = -90;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = random(500) + 50;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 14;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 2;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(24);
}
gotoAndPlay(_currentframe - 2);
} else if (0.96 < Math.random()) {
} else {
gotoAndPlay(_currentframe - 2);
}
Symbol 708 MovieClip Frame 79
_x = ((-_xscale) + 20);
_xscale = (_xscale * -1);
countdown = countdown + 60;
Symbol 708 MovieClip Frame 88
gotoAndStop (1);
Symbol 708 MovieClip Frame 98
if (this.hitTest(_root.staticBack)) {
_x = (_x - (_xscale / 3));
gotoAndPlay(_currentframe - 1);
}
Symbol 708 MovieClip Frame 101
gotoAndPlay (78);
Symbol 708 MovieClip Frame 110
_root.gotoAndStop(16);
Instance of Symbol 223 MovieClip "bounds" in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 262 MovieClip in Symbol 797 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent.lights.active && (0 < hp)) {
i = 1;
while (_root.maxPro >= i) {
if (this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && ((_root["pro" + i]._currentframe % 2) == 0)) {
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
hp = hp - _root["pro" + i].power;
if (0 < hp) {
play();
} else {
_parent.gun.gotoAndStop(1);
gotoAndPlay (5);
}
}
i++;
}
}
}
onClipEvent (load) {
hp = 850;
}
Instance of Symbol 269 MovieClip "lights" in Symbol 797 MovieClip Frame 15
onClipEvent (load) {
active = false;
timeSince = 0;
stop();
}
onClipEvent (enterFrame) {
if (!active) {
if ((_root.tilesM._currentframe == 15) && (300 >= _root.tilesM._x)) {
_root.backLock = true;
active = true;
_parent.gun.play();
_root.tilesM.bounds.gotoAndStop(16);
_root.newBG("L", 14);
_root.clearEnemies();
}
} else {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.takeDamage(1);
}
timeSince++;
if ((60 < timeSince) && (0.96 < Math.random())) {
timeSince = 0;
gotoAndStop(random(7) + 1);
}
}
}
Instance of Symbol 271 MovieClip "gun" in Symbol 797 MovieClip Frame 15
onClipEvent (load) {
stop();
}
Instance of Symbol 251 MovieClip in Symbol 797 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.takeDamage(2);
}
}
Instance of Symbol 283 MovieClip in Symbol 797 MovieClip Frame 20
onClipEvent (load) {
stop();
if (!_root.lvlBool) {
hp = 80;
} else {
gotoAndStop (12);
}
}
onClipEvent (enterFrame) {
if (0 < hp) {
i = 1;
while (_root.maxPro >= i) {
if (this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && ((_root["pro" + i]._currentframe % 2) == 0)) {
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
play();
}
i++;
}
} else {
_root.lvlBool = true;
}
}
Instance of Symbol 291 MovieClip "ek1" in Symbol 797 MovieClip Frame 24
onClipEvent (load) {
if (_root.lvlBool) {
_parent.bounds.gotoAndStop(19);
_visible = false;
}
}
Instance of Symbol 564 MovieClip "e0" in Symbol 797 MovieClip Frame 32
onClipEvent (load) {
hp = 300;
stop();
}
onClipEvent (enterFrame) {
if (((_root.tilesM._currentframe == 32) && (!_root.backLock)) && (230 >= _root.tilesM._x)) {
_root.backLock = true;
my_color = new Color(this);
original = my_color.getTransform();
_parent.bounds.gotoAndStop(33);
_root.clearEnemies();
_parent.barrier.play();
play();
} else if (_root.backLock) {
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 251 MovieClip in Symbol 797 MovieClip Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.staticBack)) {
if (((!_root.lvlBool) && (0 < _root.findFree("pick", _root.maxPick))) && (0 < _xscale)) {
mem = _root.findFree("pick", _root.maxPick);
_root.dropPickUp(_parent._x + _x, (_parent._y + _y) - 15, _parent.id);
_root["pick" + mem].gotoAndStop(42);
delete mem;
_root.lvlBool = true;
}
}
}
Instance of Symbol 616 MovieClip "column2" in Symbol 797 MovieClip Frame 47
/* no clip actions */
Instance of Symbol 616 MovieClip "column1" in Symbol 797 MovieClip Frame 47
onClipEvent (enterFrame) {
if (((_root.tilesM._currentframe == 47) && (!_root.backLock)) && (270 >= _root.tilesM._x)) {
_root.backLock = true;
play();
_parent.column2.play();
_parent.bounds.gotoAndStop(48);
_root.clearEnemies();
}
}
onClipEvent (load) {
leftColumn = true;
}
Instance of Symbol 653 MovieClip in Symbol 797 MovieClip Frame 61
onClipEvent (enterFrame) {
if (_root.backLock) {
if (_currentframe == 1) {
if ((0 >= hp) && (_currentframe < 91)) {
gotoAndPlay (91);
} else if (this.hitTest(_root.player)) {
gotoAndPlay (83);
_root.player.takeDamage(10);
} else if (0.6 < Math.random()) {
gotoAndPlay (2);
} else if (0.6 < Math.random()) {
gotoAndPlay (45);
} else {
gotoAndPlay (6);
}
}
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
} else if (((_root.tilesM._currentframe == 61) && (!_root.backLock)) && (_root.tilesM._x < 269)) {
my_color = new Color(this);
original = my_color.getTransform();
_root.backLock = true;
_parent.bounds.gotoAndStop(62);
_root.newBG("L", 62);
_root.clearEnemies();
}
}
onClipEvent (load) {
hp = 200;
}
Instance of Symbol 708 MovieClip in Symbol 797 MovieClip Frame 72
onClipEvent (enterFrame) {
if (_root.backLock) {
countdown--;
if (_currentframe == 1) {
if ((0 >= hp) && (_currentframe < 102)) {
_root.clearPros();
_root.clearEnemies();
gotoAndPlay (102);
} else if ((((this.hitTest(_root.player) && (countdown < 0)) && (lastMove != 1)) || ((_xscale == 100) && ((_x + _parent._x) < _root.player._x))) || ((_xscale == -100) && (_root.player._x < (_x + _parent._x)))) {
countdown = 120;
lastMove = 1;
gotoAndPlay (69);
} else if ((countdown < 0) && (lastMove != 2)) {
countdown = 200;
lastMove = 2;
gotoAndPlay (89);
} else if ((0.6 < Math.random()) && (lastMove != 3)) {
lastMove = 3;
gotoAndPlay (2);
} else if ((0.6 < Math.random()) && (lastMove != 4)) {
lastMove = 4;
gotoAndPlay (28);
} else if (lastMove != 5) {
lastMove = 5;
gotoAndPlay (54);
}
}
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
} else if (((_root.tilesM._currentframe == 72) && (!_root.backLock)) && (_root.tilesM._x < 269)) {
my_color = new Color(this);
original = my_color.getTransform();
_root.backLock = true;
_parent.bounds.gotoAndStop(73);
_root.newBG("L", 73);
_root.clearEnemies();
}
}
onClipEvent (load) {
hp = 1000;
lastMove = 0;
countdown = 200;
}
Symbol 797 MovieClip Frame 101
gotoAndStop (113);
Instance of Symbol 262 MovieClip in Symbol 797 MovieClip Frame 115
onClipEvent (enterFrame) {
if (_parent.lights.active && (0 < hp)) {
i = 1;
while (_root.maxPro >= i) {
if (this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && ((_root["pro" + i]._currentframe % 2) == 0)) {
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
hp = hp - _root["pro" + i].power;
if (0 < hp) {
play();
} else {
_parent.gun.gotoAndStop(1);
gotoAndPlay (5);
}
}
i++;
}
}
}
onClipEvent (load) {
hp = 850;
}
Instance of Symbol 269 MovieClip "lights" in Symbol 797 MovieClip Frame 115
onClipEvent (load) {
active = false;
timeSince = 0;
stop();
}
onClipEvent (enterFrame) {
if (!active) {
if (((_root.tilesM._currentframe == 15) || (_root.tilesM._currentframe == 115)) && (300 >= _root.tilesM._x)) {
_root.backLock = true;
active = true;
_parent.gun.play();
_root.tilesM.bounds.gotoAndStop(16);
_root.newBG("L", 14);
_root.clearEnemies();
}
} else {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.takeDamage(1);
}
timeSince++;
if ((60 < timeSince) && (0.96 < Math.random())) {
timeSince = 0;
gotoAndStop(random(7) + 1);
}
}
}
Instance of Symbol 271 MovieClip "gun" in Symbol 797 MovieClip Frame 115
onClipEvent (load) {
stop();
}
Instance of Symbol 251 MovieClip in Symbol 797 MovieClip Frame 115
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.takeDamage(2);
}
}
Instance of Symbol 283 MovieClip in Symbol 797 MovieClip Frame 120
onClipEvent (load) {
stop();
if (!_root.lvlBool) {
hp = 80;
} else {
gotoAndStop (12);
}
}
onClipEvent (enterFrame) {
if (0 < hp) {
i = 1;
while (_root.maxPro >= i) {
if (this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && ((_root["pro" + i]._currentframe % 2) == 0)) {
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
play();
}
i++;
}
} else {
_root.lvlBool = true;
}
}
Instance of Symbol 291 MovieClip "ek1" in Symbol 797 MovieClip Frame 124
onClipEvent (load) {
if (_root.lvlBool) {
_parent.bounds.gotoAndStop(19);
_visible = false;
}
}
Instance of Symbol 564 MovieClip "e0" in Symbol 797 MovieClip Frame 132
onClipEvent (load) {
hp = 300;
stop();
}
onClipEvent (enterFrame) {
if (((_root.tilesM._currentframe == 132) && (!_root.backLock)) && (230 >= _root.tilesM._x)) {
_root.backLock = true;
my_color = new Color(this);
original = my_color.getTransform();
_parent.bounds.gotoAndStop(33);
_root.clearEnemies();
_parent.barrier.play();
play();
} else if (_root.backLock) {
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
}
}
Instance of Symbol 251 MovieClip in Symbol 797 MovieClip Frame 138
onClipEvent (enterFrame) {
if (this.hitTest(_root.staticBack)) {
if (((!_root.lvlBool) && (0 < _root.findFree("pick", _root.maxPick))) && (0 < _xscale)) {
mem = _root.findFree("pick", _root.maxPick);
_root.dropPickUp(_parent._x + _x, (_parent._y + _y) - 15, _parent.id);
_root["pick" + mem].gotoAndStop(42);
delete mem;
_root.lvlBool = true;
}
}
}
Instance of Symbol 616 MovieClip "column2" in Symbol 797 MovieClip Frame 147
/* no clip actions */
Instance of Symbol 616 MovieClip "column1" in Symbol 797 MovieClip Frame 147
onClipEvent (enterFrame) {
if (((_root.tilesM._currentframe == 147) && (!_root.backLock)) && (270 >= _root.tilesM._x)) {
_root.backLock = true;
play();
_parent.column2.play();
_parent.bounds.gotoAndStop(48);
_root.clearEnemies();
}
}
onClipEvent (load) {
leftColumn = true;
}
Instance of Symbol 653 MovieClip in Symbol 797 MovieClip Frame 161
onClipEvent (enterFrame) {
if (_root.backLock) {
if (_currentframe == 1) {
if ((0 >= hp) && (_currentframe < 91)) {
gotoAndPlay (91);
} else if (this.hitTest(_root.player)) {
gotoAndPlay (83);
_root.player.takeDamage(10);
} else if (0.6 < Math.random()) {
gotoAndPlay (2);
} else if (0.6 < Math.random()) {
gotoAndPlay (45);
} else {
gotoAndPlay (6);
}
}
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
} else if (((_root.tilesM._currentframe == 161) && (!_root.backLock)) && (_root.tilesM._x < 269)) {
my_color = new Color(this);
original = my_color.getTransform();
_root.backLock = true;
_parent.bounds.gotoAndStop(62);
_root.newBG("L", 62);
_root.clearEnemies();
}
}
onClipEvent (load) {
hp = 200;
}
Instance of Symbol 708 MovieClip in Symbol 797 MovieClip Frame 172
onClipEvent (enterFrame) {
if (_root.backLock) {
countdown--;
if (_currentframe == 1) {
if ((0 >= hp) && (_currentframe < 102)) {
_root.clearPros();
_root.clearEnemies();
gotoAndPlay (102);
} else if ((((this.hitTest(_root.player) && (countdown < 0)) && (lastMove != 1)) || ((_xscale == 100) && ((_x + _parent._x) < _root.player._x))) || ((_xscale == -100) && (_root.player._x < (_x + _parent._x)))) {
countdown = 120;
lastMove = 1;
gotoAndPlay (69);
} else if ((countdown < 0) && (lastMove != 2)) {
countdown = 200;
lastMove = 2;
gotoAndPlay (89);
} else if ((0.6 < Math.random()) && (lastMove != 3)) {
lastMove = 3;
gotoAndPlay (2);
} else if ((0.6 < Math.random()) && (lastMove != 4)) {
lastMove = 4;
gotoAndPlay (28);
} else if (lastMove != 5) {
lastMove = 5;
gotoAndPlay (54);
}
}
i = 1;
while (_root.maxPro >= i) {
if ((this.hitTest(_root["pro" + i]._x, _root["pro" + i]._y, true) && (0 >= _root["pro" + i].owner)) && ((_root["pro" + i]._currentframe % 2) == 0)) {
my_color.setTransform({rb:255, ra:255, ga:255, ba:0});
justHit = 2;
hp = hp - _root["pro" + i].power;
_root["pro" + i].gotoAndStop(_root["pro" + i].collideFrame);
}
i++;
}
justHit--;
if (justHit < 0) {
my_color.setTransform(original);
}
} else if (((_root.tilesM._currentframe == 172) && (!_root.backLock)) && (_root.tilesM._x < 269)) {
my_color = new Color(this);
original = my_color.getTransform();
_root.backLock = true;
_parent.bounds.gotoAndStop(73);
_root.newBG("L", 73);
_root.clearEnemies();
}
}
onClipEvent (load) {
hp = 1000;
lastMove = 0;
countdown = 200;
}
Symbol 801 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 7
if (_currentframe == 7) {
gotoAndStop (2);
}
Symbol 801 MovieClip Frame 14
if (_currentframe == 14) {
gotoAndStop (8);
}
Symbol 809 MovieClip Frame 1
curAction = "stopped";
_parent.torso._y = -120;
_parent.arm._y = -105;
_parent.arm2._y = -105;
Symbol 809 MovieClip Frame 3
_parent.arm._y = -104.2;
_parent.arm2._y = -104.2;
Symbol 809 MovieClip Frame 9
_parent.torso._y = -119;
_parent.arm._y = -103.5;
_parent.arm2._y = -103.5;
Symbol 809 MovieClip Frame 16
_parent.arm._y = -104.2;
_parent.arm2._y = -104.2;
Symbol 809 MovieClip Frame 19
_parent.torso._y = -120;
_parent.arm._y = -105;
_parent.arm2._y = -105;
Symbol 809 MovieClip Frame 20
if (_currentframe == 20) {
gotoAndPlay (1);
}
Symbol 809 MovieClip Frame 22
curAction = "walking";
Symbol 809 MovieClip Frame 36
if (_currentframe == 36) {
gotoAndPlay (23);
}
Symbol 809 MovieClip Frame 37
curAction = "crouching";
Symbol 809 MovieClip Frame 38
_parent.torso._y = -111;
_parent.arm._y = -99;
_parent.arm2._y = -99;
Symbol 809 MovieClip Frame 39
_parent.torso._y = -104;
_parent.arm._y = -90;
_parent.arm2._y = -90;
Symbol 809 MovieClip Frame 40
_parent.torso._y = -92;
_parent.torso._yscale = 95;
_parent.arm._y = -80;
_parent.arm2._y = -80;
curAction = "crouched";
Symbol 809 MovieClip Frame 42
if (Key.isDown(40) || (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x, _parent._y - 100, true))) {
curAction = "crouched";
gotoAndPlay(_currentframe - 1);
}
Symbol 809 MovieClip Frame 43
_parent.torso._y = -108;
_parent.torso._yscale = 100;
_parent.arm._y = -90;
_parent.arm2._y = -90;
curAction = "crouching";
Symbol 809 MovieClip Frame 44
_parent.torso._y = -113;
_parent.arm._y = -99;
_parent.arm2._y = -99;
Symbol 809 MovieClip Frame 45
if (_currentframe == 45) {
gotoAndPlay (1);
}
_parent.torso._y = -120;
_parent.arm._y = -105;
_parent.arm2._y = -105;
Symbol 809 MovieClip Frame 46
curAction = "falling";
_parent.torso._y = -120;
_parent.arm._y = -105;
_parent.arm2._y = -105;
Symbol 809 MovieClip Frame 51
if (_currentframe == 51) {
gotoAndPlay(_currentframe - 1);
}
Symbol 809 MovieClip Frame 52
curAction = "crawling";
Symbol 809 MovieClip Frame 67
if ((_currentframe == 67) && (Key.isDown(37) || (Key.isDown(39)))) {
gotoAndPlay (56);
} else if (_currentframe == 67) {
gotoAndPlay (42);
}
Symbol 815 MovieClip Frame 2
_root.miscSound.attachSound("ignite2");
_root.miscSound.start();
Symbol 815 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (5);
}
Symbol 815 MovieClip Frame 11
_root.miscSound.attachSound("ignite");
_root.miscSound.start();
Symbol 815 MovieClip Frame 20
if (_currentframe == 20) {
gotoAndPlay (14);
}
Symbol 826 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 826 MovieClip Frame 6
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 826 MovieClip Frame 16
if (_currentframe == 16) {
gotoAndStop (7);
}
Instance of Symbol 825 MovieClip in Symbol 826 MovieClip Frame 17
onClipEvent (enterFrame) {
if (0 < _root.player._xscale) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (load) {
if (0 < _root.player._xscale) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 826 MovieClip Frame 33
if (_currentframe == 33) {
gotoAndStop (17);
}
Symbol 831 MovieClip Frame 1
function takeDamage(amt) {
if (0 >= justHit) {
_root.hitSound.start();
if ((0 >= invinci) && (!_root.godMode)) {
if (0 < (hp - amt)) {
hp = hp - amt;
} else {
hp = 0;
}
_root.health.gotoAndStop(101 - Math.round((hp / maxhp) * 100));
colorFlash();
}
}
}
function locomote(incx, incy) {
if (!_root.backLock) {
if ((!_root["tiles" + _root.player.curTile].bounds.hitTest(_x - incx, _y + incy, true)) && (((!_root["tiles" + _root.player.curTile].bounds.hitTest(_x - incx, (_y + incy) - 100, true)) || (legs.curAction == "crouched")) || (legs.curAction == "crawling"))) {
_root.tilesL._x = _root.tilesL._x + incx;
_root.tilesM._x = _root.tilesM._x + incx;
_root.tilesR._x = _root.tilesR._x + incx;
i = 1;
while (_root.maxPro >= i) {
if (_root["pro" + i]._currentframe != 1) {
_root["pro" + i]._x = _root["pro" + i]._x + incx;
}
i++;
}
i = 1;
while (_root.maxScrap >= i) {
if (_root["scrap" + i]._currentframe != 1) {
_root["scrap" + i]._x = _root["scrap" + i]._x + incx;
}
i++;
}
i = 1;
while (_root.maxEnemy >= i) {
_root["e" + i]._x = _root["e" + i]._x + incx;
i++;
}
i = 1;
while (4 >= i) {
_root["pick" + i]._x = _root["pick" + i]._x + incx;
i++;
}
if (((!_root.tilesL.bounds.hitTest(_x, _y + incy, true)) && (!_root.tilesM.bounds.hitTest(_x, _y + incy, true))) && (!_root.tilesR.bounds.hitTest(_x, _y + incy, true))) {
_y = (_y + incy);
} else if (0 < ySpeed) {
locomote(0, incy - 2);
return(false);
}
tempTile = _root.player.curTile;
if (_root.highGraphics) {
subt = 0;
} else {
subt = 100;
}
if (525 < _root.tilesM._x) {
_root.newBG("R", _root.tilesM._currentframe - subt);
_root.newBG("M", _root.tilesL._currentframe - subt);
_root.newBG("L", (_root.tilesL._currentframe - subt) - 1);
_root.tilesL._x = _root.tilesL._x - 620;
_root.tilesM._x = _root.tilesM._x - 620;
_root.tilesR._x = _root.tilesR._x - 620;
_root.eAdvance(false);
_root.landmark--;
} else if (_root.tilesM._x < -100) {
_root.newBG("L", _root.tilesM._currentframe - subt);
_root.newBG("M", _root.tilesR._currentframe - subt);
_root.newBG("R", (_root.tilesR._currentframe - subt) + 1);
_root.tilesL._x = _root.tilesL._x + 620;
_root.tilesM._x = _root.tilesM._x + 620;
_root.tilesR._x = _root.tilesR._x + 620;
_root.eAdvance(true);
_root.landmark++;
} else {
_root.player.curTile = "M";
}
if (tempTile != _root.player.curTile) {
if (_root.highGraphics) {
_root.newBG("L", _root.tilesL._currentframe);
_root.newBG("M", _root.tilesM._currentframe);
_root.newBG("R", _root.tilesR._currentframe);
} else {
_root.newBG("L", _root.tilesL._currentframe - 100);
_root.newBG("M", _root.tilesM._currentframe - 100);
_root.newBG("R", _root.tilesR._currentframe - 100);
}
}
return(true);
}
} else if (!_root["tiles" + _root.player.curTile].bounds.hitTest(_x - incx, _y + incy, true)) {
_x = (_x - incx);
_y = (_y + incy);
return(true);
}
return(false);
}
stop();
Instance of Symbol 815 MovieClip "booster" in Symbol 831 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 831 MovieClip Frame 2
_root.exploSound3.start();
invinci = 80;
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(35, 35);
}
i = 1;
while (8 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _y - random(80);
_root["scrap" + _root.findFree("scrap", 8)].scatter(36, 41);
}
i++;
}
Symbol 831 MovieClip Frame 7
lives--;
if (lives < 0) {
stop();
_root.wrapUp.gotoAndPlay(56);
}
ready = false;
checkY = 0;
while ((!((_root.tilesL.bounds.hitTest(_x, checkY, true) || (_root.tilesM.bounds.hitTest(_x, checkY, true))) || (_root.tilesR.bounds.hitTest(_x, checkY, true)))) || (!ready)) {
if (!((_root.tilesL.bounds.hitTest(_x, checkY, true) || (_root.tilesM.bounds.hitTest(_x, checkY, true))) || (_root.tilesR.bounds.hitTest(_x, checkY, true)))) {
ready = true;
}
checkY = checkY + 5;
}
_y = (checkY - 5);
Symbol 831 MovieClip Frame 40
hp = maxhp;
_root.gunInd.gotoAndStop(1);
_root.mainAmmo = 99;
_root.health.gotoAndStop(101 - Math.round((hp / maxhp) * 100));
_root.updateHUD();
Instance of Symbol 835 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (11);
}
Symbol 838 MovieClip Frame 2
_root.exploSound2.start();
_root.score = _root.score + 200;
_root.kills++;
Symbol 838 MovieClip Frame 6
_root.exploSound2.start();
Symbol 838 MovieClip Frame 11
_root.exploSound2.start();
Symbol 838 MovieClip Frame 15
_root.exploSound.start();
_root.exploSound2.start();
i = 1;
while (6 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(30)) - 15;
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(2, 7);
}
i++;
}
Symbol 838 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 6
stop();
Symbol 855 MovieClip Frame 1
stop();
Instance of Symbol 850 MovieClip "gun" in Symbol 857 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Symbol 857 MovieClip Frame 2
_root.exploSound2.start();
_root.score = _root.score + 160;
_root.kills++;
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(30)) - 15;
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(8, 10);
}
i++;
}
Symbol 857 MovieClip Frame 7
_root.exploSound.start();
i = 1;
while (4 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(30)) - 15;
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(8, 12);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y - 30, _parent.curTile);
Symbol 857 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 863 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 6
if (0 < _root.findFree("pro", _root.maxPro)) {
_root.laserSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._parent._x;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._parent._y - 40;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(23);
}
Symbol 864 MovieClip Frame 2
_root.exploSound2.start();
_root.score = _root.score + 80;
_root.kills++;
i = 1;
while (5 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(30)) - 15;
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y - 15, _parent.curTile);
Symbol 864 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 870 MovieClip Frame 10
if (0 < _root.findFree("e", _root.maxEnemy)) {
_root["e" + _root.findFree("e", _root.maxEnemy)]._x = _parent._parent._x - (_parent._parent._xscale / 5);
_root["e" + _root.findFree("e", _root.maxEnemy)]._y = _parent._parent._y - 80;
_root["e" + _root.findFree("e", _root.maxEnemy)].hp = 1;
_root["e" + _root.findFree("e", _root.maxEnemy)].gotoAndStop(6);
}
Symbol 870 MovieClip Frame 13
gotoAndStop (1);
Instance of Symbol 870 MovieClip "gun" in Symbol 874 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 874 MovieClip Frame 2
_root.exploSound3.start();
_root.score = _root.score + 200;
_root.kills++;
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = ((_parent._x + random(30)) - 15) + (_parent._xscale / 4);
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 60;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
Symbol 874 MovieClip Frame 10
_root.exploSound.start();
i = 1;
while (4 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(30)) - 15;
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) - 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y - 30, _parent.curTile);
Symbol 874 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 876 MovieClip Frame 2
_root.exploSound2.start();
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(13, 13);
}
i++;
}
Symbol 876 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 884 MovieClip Frame 22
incs = 0;
if (0 < _root.findFree("pro", _root.maxPro)) {
tx = _parent._parent._x;
ty = _parent._parent._y;
hitP = false;
while ((incs < 100) && (!((_root.tilesL.bounds.hitTest(tx, ty, true) || (_root.tilesM.bounds.hitTest(tx, ty, true))) || (_root.tilesR.bounds.hitTest(tx, ty, true))))) {
if (0 < _parent._parent._xscale) {
tx = tx - (5 * (_parent.xSep / _parent.ySep));
} else {
tx = tx + (5 * (_parent.xSep / _parent.ySep));
}
ty = ty + 5;
if (_root.player.hitTest(tx, ty, true)) {
hitP = true;
}
incs++;
}
if (hitP) {
_root.player.takeDamage(24);
}
newhyp = Math.sqrt(Math.abs(Math.pow(ty - _parent._parent._y, 2) + Math.pow(tx - _parent._parent._x, 2)));
_root.laserSound.start();
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._parent._x;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = newhyp * 10;
if (_parent._parent._xscale == 100) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = _parent._rotation;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = (-_parent._rotation) + 180;
}
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._parent._y;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent._parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(12);
}
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = tx;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = -_parent._parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = ty;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent._parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(13);
}
Symbol 884 MovieClip Frame 25
gotoAndStop (1);
Instance of Symbol 884 MovieClip "gun" in Symbol 886 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 886 MovieClip Frame 2
_root.miscSound.attachSound("glass");
_root.miscSound.start();
_root.score = _root.score + 160;
_root.kills++;
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(14, 14);
}
i++;
}
Symbol 886 MovieClip Frame 17
_root.exploSound.start();
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(15, 17);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y, _parent.curTile);
Symbol 886 MovieClip Frame 22
_parent.gotoAndStop(1);
Instance of Symbol 247 MovieClip "gun" in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 891 MovieClip Frame 7
if (0 >= _parent._parent.hp) {
gotoAndPlay (24);
}
Symbol 891 MovieClip Frame 14
if (0 >= _parent._parent.hp) {
gotoAndPlay (22);
}
Symbol 891 MovieClip Frame 21
stop();
Instance of Symbol 251 MovieClip in Symbol 891 MovieClip Frame 21
onClipEvent (enterFrame) {
if ((_parent._parent._parent.hp < 30) && (0 < _parent._parent._parent.hp)) {
_parent._parent._parent.hp = _parent._parent._parent.hp + 5;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player._x = _root.player._x + (random(9) - 4);
_root.player.takeDamage(1);
}
}
Symbol 891 MovieClip Frame 30
gotoAndStop (1);
Symbol 893 MovieClip Frame 2
_root.score = _root.score + 140;
if (2 >= parts._currentframe) {
gotoAndPlay (17);
} else {
parts.play();
}
Symbol 893 MovieClip Frame 17
_root.exploSound.start();
_root.kills++;
i = 1;
while (2 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = ((_parent._x + random(30)) - 15) - (_parent._xscale / 4);
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) + 40;
_root["scrap" + _root.findFree("scrap", 8)].scatter(15, 16);
}
i++;
}
Symbol 893 MovieClip Frame 22
_root.exploSound2.start();
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = ((_parent._x + random(10)) + 10) - (_parent._xscale / 5);
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) + 45;
_root["scrap" + _root.findFree("scrap", 8)].scatter(18, 18);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y + 10, _parent.curTile);
Symbol 893 MovieClip Frame 27
_root.exploSound2.start();
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = ((_parent._x + random(10)) + 10) - (_parent._xscale / 5);
_root["scrap" + _root.findFree("scrap", 8)]._y = (_parent._y + random(30)) + 25;
_root["scrap" + _root.findFree("scrap", 8)].scatter(4, 7);
}
i++;
}
Symbol 893 MovieClip Frame 32
_parent.gotoAndStop(1);
Symbol 901 MovieClip Frame 1
stop();
Instance of Symbol 901 MovieClip "parts" in Symbol 902 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 902 MovieClip Frame 2
_root.exploSound2.start();
_root.score = _root.score + 190;
_root.kills++;
Symbol 902 MovieClip Frame 7
_root.exploSound2.start();
Symbol 902 MovieClip Frame 12
_root.exploSound2.start();
Symbol 902 MovieClip Frame 17
_root.exploSound.start();
i = 1;
while (6 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = (_parent._x + random(40)) - 20;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y - random(40);
_root["scrap" + _root.findFree("scrap", 8)].scatter(19, 23);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y - 20, _parent.curTile);
Symbol 902 MovieClip Frame 22
_parent.gotoAndStop(1);
Symbol 909 MovieClip Frame 6
if (0 < _root.findFree("pro", _root.maxPro)) {
if (this.hitTest(_root.staticBack)) {
_root.lightShot.start();
}
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._parent._x - (_parent._parent._xscale / 6);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = _parent._parent._xscale / -6;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._parent._y - 77;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = random(9) - 4;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent._parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(18);
}
Symbol 909 MovieClip Frame 10
gotoAndStop (1);
Symbol 909 MovieClip Frame 14
if (0 < _root.findFree("pro", _root.maxPro)) {
if (this.hitTest(_root.staticBack)) {
_root.lightShot.start();
}
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._parent._x - (_parent._parent._xscale / 6);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = _parent._parent._xscale / -6;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._parent._y - 50;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = random(9) - 4;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent._parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(18);
}
Symbol 909 MovieClip Frame 18
gotoAndStop (1);
Symbol 909 MovieClip Frame 30
gotoAndStop (1);
Symbol 913 MovieClip Frame 17
_root.exploSound2.start();
_root.score = _root.score + 250;
_root.kills++;
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x - (_parent._xscale / 3);
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(24, 24);
}
Symbol 913 MovieClip Frame 22
_root.exploSound3.start();
i = 1;
while (5 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(25, 28);
}
i++;
}
_root.dropPickup(_parent._x, _parent._y - 10, _parent.curTile);
Symbol 913 MovieClip Frame 27
_parent.gotoAndStop(1);
Symbol 922 MovieClip Frame 2
_root.exploSound2.start();
i = 1;
while (3 >= i) {
if (0 < _root.findFree("scrap", 8)) {
_root["scrap" + _root.findFree("scrap", 8)]._x = _parent._x;
_root["scrap" + _root.findFree("scrap", 8)]._y = _parent._y;
_root["scrap" + _root.findFree("scrap", 8)].scatter(13, 13);
}
i++;
}
Symbol 922 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 923 MovieClip Frame 2
maxhp = 60;
Instance of Symbol 838 MovieClip "ei" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - (_parent._xscale / 8), _parent._y + 10, true) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - (_parent._xscale / 8), _parent._y, true))) {
_parent._x = _parent._x - (_parent._xscale / 20);
} else {
_parent._xscale = _parent._xscale * -1;
}
timeSince++;
if (50 < timeSince) {
if ((((0 < _parent._xscale) && (_root.player._x < _parent._x)) || ((_parent._xscale < 0) && (_parent._x < _root.player._x))) && (0 < _root.findFree("pro", _root.maxPro))) {
timeSince = 0;
if (this.hitTest(_root.staticBack)) {
_root.heavyShot.start();
}
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._x - (_parent._xscale / 2);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = ((-_parent._xscale) / 100) * (Math.abs(_parent._x - _root.player._x) / 20);
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._y - 70;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(4);
}
}
}
}
onClipEvent (load) {
timeSince = 0;
stop();
}
Instance of Symbol 251 MovieClip in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root["tiles" + _parent.curTile].hitTest(_parent._x, 400, true)) {
if (_root.tilesR.hitTest(_parent._x, 400, true)) {
_parent.curTile = "R";
} else if (_root.tilesM.hitTest(_parent._x, 400, true)) {
_parent.curTile = "M";
} else {
_parent.curTile = "L";
}
}
}
Symbol 923 MovieClip Frame 3
maxhp = 60;
Instance of Symbol 857 MovieClip "ei" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (7 < random(10)) {
legs.play();
if ((0.85 < Math.random()) || ((_parent._x < _root.player._x) && (0.2 < Math.random()))) {
forth = false;
} else {
forth = true;
}
}
if (legs._currentframe != 1) {
if ((forth && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 45, _parent._y + 10, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 45, _parent._y, true))) {
_parent._x = _parent._x - 4;
} else if (((!forth) && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 45, _parent._y + 10, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 45, _parent._y, true))) {
_parent._x = _parent._x + 4;
}
}
timeSince++;
if (((_root.player._x < _parent._x) && (gun._currentframe == 1)) || ((_parent._x < _root.player._x) && (gun._currentframe == 6))) {
if ((32 < timeSince) && (0 < _root.findFree("pro", _root.maxPro))) {
timeSince = 0;
if (this.hitTest(_root.staticBack)) {
_root.lightShot.start();
}
if (gun._currentframe == 1) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._x - 30;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -12;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._x + 30;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = -_parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 12;
}
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._y - 70;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(10);
}
} else {
gun.play();
}
}
}
onClipEvent (load) {
timeSince = 0;
stop();
}
Symbol 923 MovieClip Frame 4
maxhp = 60;
Instance of Symbol 864 MovieClip "ei" in Symbol 923 MovieClip Frame 4
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
timeSince++;
if ((Math.abs(_root.player._x - _parent._x) < 70) && (gun._currentframe == 1)) {
if (40 < timeSince) {
timeSince = 0;
gun.play();
}
}
}
}
onClipEvent (load) {
timeSince = 0;
stop();
}
Symbol 923 MovieClip Frame 5
maxhp = 60;
Instance of Symbol 874 MovieClip "ei" in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
if (((0 < _parent._xscale) && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 20, _parent._y + 20, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 20, _parent._y, true))) {
_parent._x = _parent._x + 2;
} else if (((_parent._xscale < 0) && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 20, _parent._y + 20, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 20, _parent._y, true))) {
_parent._x = _parent._x - 2;
}
timeSince++;
if ((90 < timeSince) && (0.98 < Math.random())) {
if (0 < _root.findFree("e", _root.maxEnemy)) {
timeSince = 0;
_root.miscSound.attachSound("deepShot");
_root.miscSound.start();
gun.play();
}
}
}
}
onClipEvent (load) {
timeSince = 0;
stop();
}
Symbol 923 MovieClip Frame 6
maxhp = 1;
Instance of Symbol 876 MovieClip "ei" in Symbol 923 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x, _parent._y, true)) {
gotoAndStop (1);
}
if (0 < _parent.hp) {
countdown--;
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
if (2 < Math.abs(_parent._x - _root.player._x)) {
if ((_parent._xscale < 0) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 10, _parent._y, true))) {
_parent._x = _parent._x + 2;
} else if ((0 < _parent._xscale) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 10, _parent._y, true))) {
_parent._x = _parent._x - 2;
}
}
if (12 < Math.abs(_parent._y - (_root.player._y - 40))) {
if (((_root.player._y - 40) < _parent._y) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x, _parent._y - 2, true))) {
_parent._y = _parent._y - 2;
} else if ((_parent._y < (_root.player._y - 40)) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x, _parent._y + 2, true))) {
_parent._y = _parent._y + 2;
}
}
if (_root.player.hitTest(_parent._x, _parent._y, true)) {
_parent.takeDamage(99);
_root.player.takeDamage(18);
}
if (0 >= countdown) {
_parent.takeDamage(99);
}
}
}
onClipEvent (load) {
countdown = 400;
stop();
}
Symbol 923 MovieClip Frame 7
maxhp = 60;
Instance of Symbol 886 MovieClip "ei" in Symbol 923 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((0 < _parent.hp) && (gun._currentframe == 1)) {
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
if ((90 < (_parent._x - _root.player._x)) || (70 < (_root.player._x - _parent._x))) {
if ((!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 50, _parent._y - 30, true)) && (-1000 < displacement)) {
_parent._x = _parent._x - 5;
displacement = displacement - 5;
}
}
} else {
_parent._xscale = -100;
if ((70 < (_parent._x - _root.player._x)) || (90 < (_root.player._x - _parent._x))) {
if ((!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 50, _parent._y - 30, true)) && (displacement < 1000)) {
_parent._x = _parent._x + 5;
displacement = displacement + 5;
}
}
}
if ((_parent._y + 45) < _root.player._y) {
hyp = Math.sqrt(Math.abs(Math.pow((_parent._y - _root.player._y) + 45, 2) + Math.pow(_parent._x - _root.player._x, 2)));
_rotation = (-90 + (Math.asin(Math.abs(_root.player._x - _parent._x) / hyp) * 57.3));
}
if ((_rotation < -45) && (0.98 < Math.random())) {
xSep = Math.abs(_root.player._x - _parent._x);
ySep = Math.abs(_root.player._y - _parent._y);
gun.play();
}
}
}
onClipEvent (load) {
stop();
gun.stop();
displacement = 0;
}
Symbol 923 MovieClip Frame 8
maxhp = 60;
Instance of Symbol 893 MovieClip "ei" in Symbol 923 MovieClip Frame 8
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
if (Math.abs(_parent._x - _root.player._x) < 190) {
if (parts._currentframe == 1) {
countdown = -1;
parts.gotoAndPlay(2);
}
} else if (parts._currentframe == 21) {
parts.gotoAndPlay(22);
} else if (((parts._currentframe == 1) && (parts.gun._visible == false)) && (0.92 < Math.random())) {
parts.gun._visible = true;
countdown = 30;
}
if (countdown == 0) {
if (0 < _root.findFree("pro", _root.maxPro)) {
if (this.hitTest(_root.staticBack)) {
_root.miscSound.attachSound("electricShot");
_root.miscSound.start();
}
parts.gun._visible = false;
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _parent._x - (_parent._xscale / 2);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = ((-_parent._xscale) / 100) * (Math.abs((_parent._x - (_parent._xscale / 2)) - _root.player._x) / 20);
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = _parent._y + 70;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(14);
countdown = -1;
}
} else if (0 < countdown) {
countdown--;
}
}
}
onClipEvent (load) {
countdown = -1;
stop();
parts.stop();
}
Symbol 923 MovieClip Frame 9
maxhp = 60;
Instance of Symbol 902 MovieClip "ei" in Symbol 923 MovieClip Frame 9
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (parts._currentframe == 1) {
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
if (Math.abs(_root.player._x - _parent._x) < 90) {
_parent._xscale = _parent._xscale * -1;
parts.gotoAndPlay(2);
}
}
if (parts._currentframe != 1) {
if (((_parent._xscale < 0) && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 20, _parent._y + 20, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x + 20, _parent._y, true))) {
_parent._x = _parent._x + 1;
} else if (((0 < _parent._xscale) && (_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 20, _parent._y + 20, true))) && (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x - 20, _parent._y, true))) {
_parent._x = _parent._x - 1;
}
}
timeSince++;
if ((90 < timeSince) && (0.92 < Math.random())) {
if (((0 < _parent._xscale) && (_root.player._x < _parent._x)) || ((_parent._xscale < 0) && (_parent._x < _root.player._x))) {
if (0 < _root.findFree("pro", _root.maxPro)) {
timeSince = 0;
if (this.hitTest(_root.staticBack)) {
_root.lightShot.start();
}
i = 1;
while (3 >= i) {
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = (_parent._x + (_parent._xscale / 2.8)) - ((_parent._xscale / 3.5) * i);
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = _parent._xscale;
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = (_parent._xscale / -4) / (22 / (i * 3));
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = (_parent._y - 70) + (i * 10);
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = -18;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = _parent.id;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(16);
}
i++;
}
}
}
}
}
}
onClipEvent (load) {
timeSince = 0;
stop();
}
Symbol 923 MovieClip Frame 10
maxhp = 60;
Instance of Symbol 913 MovieClip "ei" in Symbol 923 MovieClip Frame 10
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (_root.player._x < _parent._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
counter++;
if ((parts._currentframe == 1) && (0.97 < Math.random())) {
parts.play();
}
if (((counter >= 4) || (_root.highMechanics)) && (parts._currentframe == 1)) {
counter = 0;
i = 1;
while (_root.maxPro >= i) {
if (((_root["pro" + i].owner == -1) && (((_root["pro" + i]._x < _parent._x) && (0 < _root["pro" + i].xspeed)) || ((_parent._x < _root["pro" + i]._x) && (_root["pro" + i].xspeed < 0)))) && (Math.abs(_parent._x - _root["pro" + i]._x) < 120)) {
if ((_parent._y - 30) < _root["pro" + i]._y) {
parts.gotoAndPlay(2);
} else if (_root["pro" + i]._y < (_parent._y - 50)) {
parts.gotoAndPlay(11);
} else {
parts.gotoAndPlay(19);
}
break;
}
i++;
}
}
}
}
onClipEvent (load) {
stop();
parts.stop();
counter = 0;
}
Symbol 923 MovieClip Frame 11
maxhp = 1;
Instance of Symbol 922 MovieClip "ei" in Symbol 923 MovieClip Frame 11
onClipEvent (enterFrame) {
if (0 < _parent.hp) {
if (this.hitTest(_root.staticBack)) {
_parent._x = _parent._x - (_parent._xscale / 20);
if (_root.player.hitTest(_parent._x, _parent._y - 20, false)) {
_parent.takeDamage(99);
_root.player.takeDamage(30);
}
} else {
_parent.takeDamage(99);
}
}
}
onClipEvent (load) {
_parent.hp = 1;
stop();
}
Symbol 923 MovieClip Frame 12
gotoAndStop (1);
Symbol 953 MovieClip Frame 1
locked = false;
Symbol 959 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 966 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 971 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 979 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 982 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 984 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 986 MovieClip Frame 6
_parent.gotoAndStop(1);
Instance of Symbol 989 MovieClip in Symbol 991 MovieClip Frame 2
onClipEvent (load) {
if (this.hitTest(_root.player._x, _root.player._y - 50, true)) {
_root.player.takeDamage(15);
}
}
Symbol 991 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 994 MovieClip Frame 6
_parent.gotoAndStop(1);
Instance of Symbol 1006 MovieClip in Symbol 1007 MovieClip Frame 2
onClipEvent (enterFrame) {
_alpha = (_alpha - 10);
if (this.hitTest(_root.player._x, _root.player._y - 80, true)) {
_root.player.takeDamage(3);
}
}
Symbol 1007 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 1009 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 1011 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 1014 MovieClip Frame 6
if ((0 < _parent._x) && (_parent._x < 600)) {
_parent._x = _parent._x - (_parent._xscale * 1.3);
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
} else {
_parent.gotoAndStop(1);
}
Symbol 1015 MovieClip Frame 2
power = 10;
collideFrame = 3;
Symbol 1015 MovieClip Frame 3
if (_currentframe == 3) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 4
power = 10;
collideFrame = 5;
Instance of Symbol 961 MovieClip in Symbol 1015 MovieClip Frame 4
onClipEvent (enterFrame) {
_rotation = (_rotation - ((_xscale / 100) * (Math.abs(_parent.xspeed) / 20)));
_parent.yspeed = _parent.yspeed + 0.25;
}
Symbol 1015 MovieClip Frame 5
if (_currentframe == 5) {
_root.exploSound2.start();
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 6
power = 12;
collideFrame = 7;
Symbol 1015 MovieClip Frame 7
if (_currentframe == 7) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 8
power = 90;
collideFrame = 9;
Instance of Symbol 974 MovieClip in Symbol 1015 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 29);
}
Instance of Symbol 974 MovieClip in Symbol 1015 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 22);
}
Instance of Symbol 974 MovieClip in Symbol 1015 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 14);
}
Instance of Symbol 974 MovieClip in Symbol 1015 MovieClip Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 15);
}
Symbol 1015 MovieClip Frame 9
if (_currentframe == 9) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 10
power = 10;
collideFrame = 11;
Symbol 1015 MovieClip Frame 11
if (_currentframe == 11) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 12
power = 3;
collideFrame = 12;
Symbol 1015 MovieClip Frame 14
power = 10;
collideFrame = 15;
Instance of Symbol 247 MovieClip in Symbol 1015 MovieClip Frame 14
onClipEvent (load) {
countdown = 20;
}
onClipEvent (enterFrame) {
countdown--;
if (0 >= countdown) {
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
_parent.gotoAndStop(15);
}
}
Symbol 1015 MovieClip Frame 15
if (_currentframe == 15) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 16
power = 12;
collideFrame = 17;
Instance of Symbol 993 MovieClip in Symbol 1015 MovieClip Frame 16
onClipEvent (enterFrame) {
_parent.ySpeed++;
_rotation = (_rotation + (_parent._xscale / 10));
}
Symbol 1015 MovieClip Frame 17
if (_currentframe == 17) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 18
power = 6;
collideFrame = 19;
Symbol 1015 MovieClip Frame 19
if (_currentframe == 19) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 20
power = 10;
collideFrame = 21;
Instance of Symbol 247 MovieClip in Symbol 1015 MovieClip Frame 20
onClipEvent (enterFrame) {
_parent.ySpeed = _parent.ySpeed - 0.2;
_parent._rotation = _parent._rotation + 0.4;
}
Symbol 1015 MovieClip Frame 21
if (_currentframe == 21) {
_root.miscSound.attachSound("jolt");
_root.miscSound.start();
xspeed = 0;
yspeed = 0;
_rotation = 0;
}
Symbol 1015 MovieClip Frame 24
power = 10;
collideFrame = 25;
Symbol 1015 MovieClip Frame 25
if (_currentframe == 25) {
_root.exploSound2.start();
xspeed = 0;
yspeed = 0;
if (330 < _y) {
if (0 < _root.findFree("pro", _root.maxPro)) {
_root["pro" + _root.findFree("pro", _root.maxPro)]._rotation = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)]._x = _x;
if (_x < _root.player._x) {
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = 14;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = -100;
} else {
_root["pro" + _root.findFree("pro", _root.maxPro)].xspeed = -14;
_root["pro" + _root.findFree("pro", _root.maxPro)]._xscale = 100;
}
_root["pro" + _root.findFree("pro", _root.maxPro)]._y = 345;
_root["pro" + _root.findFree("pro", _root.maxPro)].yspeed = 0;
_root["pro" + _root.findFree("pro", _root.maxPro)].owner = 1;
_root["pro" + _root.findFree("pro", _root.maxPro)].gotoAndStop(26);
}
}
}
Symbol 1015 MovieClip Frame 26
power = 21;
collideFrame = 27;
Symbol 1015 MovieClip Frame 27
if (_currentframe == 27) {
xspeed = 0;
yspeed = 0;
_rotation = 0;
}
Symbol 1015 MovieClip Frame 28
power = 10;
collideFrame = 29;
Symbol 1015 MovieClip Frame 29
if (_currentframe == 29) {
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 30
power = 15;
collideFrame = 31;
Symbol 1015 MovieClip Frame 31
if (_currentframe == 31) {
_root.exploSound2.start();
xspeed = 0;
yspeed = 0;
}
Symbol 1015 MovieClip Frame 32
nextFrame();
Instance of Symbol 1014 MovieClip in Symbol 1015 MovieClip Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, false)) {
_root.player.takeDamage(12);
}
}
Symbol 1024 MovieClip Frame 1
stop();
Instance of Symbol 1017 MovieClip in Symbol 1024 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((!this.hitTest(_root.staticBack)) || (19 >= _parent._currentframe)) {
_parent.gotoAndStop(1);
}
if (_root.player.hitTest(_parent._x, _parent._y, false)) {
_root.miscSound.attachSound("chime");
_root.miscSound.start();
if (_parent._currentframe >= 48) {
_root.pickUp(7);
} else if (_parent._currentframe >= 43) {
_root.pickUp(6);
} else if (_parent._currentframe == 42) {
_root.pickUp(5);
} else if (_parent._currentframe >= 33) {
_root.pickUp(4);
} else if (_parent._currentframe >= 29) {
_root.pickUp(3);
} else if (_parent._currentframe >= 20) {
_root.pickUp(2);
}
_parent.gotoAndStop(1);
} else if (!_root["tiles" + _parent.curTile].bounds.hitTest(_parent._x, _parent._y + 5, true)) {
_parent._y = _parent._y + 5;
}
}
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 13
gotoAndPlay((_root.level * 40) + 1);
Symbol 1056 MovieClip Frame 18
gotoAndStop (1);
Symbol 1056 MovieClip Frame 78
gotoAndPlay (15);
Symbol 1056 MovieClip Frame 118
gotoAndPlay (15);
Symbol 1056 MovieClip Frame 158
gotoAndPlay (15);
Symbol 1056 MovieClip Frame 196
gotoAndPlay (15);
Symbol 1056 MovieClip Frame 238
gotoAndPlay (15);
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 2
kills = "KILLS: " + _root.kills;
durat = ("DURATION: " + Math.round(_root.durat / 18)) + " seconds";
if (0 < (500 - Math.round(_root.durat / 18))) {
_root.score = _root.score + ((500 - Math.round(_root.durat / 18)) * 5);
}
_root.score = _root.score + (_root.kills * 10);
_root.score = _root.score + (_root.player.lives * 25);
_root.score = _root.score + (_root.level * 200);
_root.score = _root.score + _root.player.hp;
score = "SCORE: " + _root.score;
rank = "LIVES: " + _root.player.lives;
Symbol 1079 MovieClip Frame 30
stop();
Symbol 1079 MovieClip Frame 51
_root.level++;
_root.setLevel(_root.level);
Symbol 1079 MovieClip Frame 55
gotoAndStop (1);
Symbol 1079 MovieClip Frame 74
_root.gotoAndStop(19);
Symbol 1095 MovieClip Frame 11
if (random(8) != 5) {
gotoAndPlay (1);
}
Symbol 1110 MovieClip Frame 28
stop();
if (!_parent.walking) {
gotoAndPlay (4);
}
Symbol 1117 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 1121 Button
on (release) {
_root.instantiated = false;
_root.gotoAndStop(4);
}
Symbol 1123 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 1124 MovieClip Frame 19
stop();
Symbol 1125 MovieClip Frame 61
_root.exploSound3.start();
Symbol 1125 MovieClip Frame 86
walking = true;
walker.stop();
stop();
Symbol 1130 MovieClip Frame 9
stop();