Frame 1
gotoAndStop(_currentframe + 1);
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.domolo._x = 83 + ((_root.getBytesLoaded() / _root.getBytesTotal()) * 445);
} else {
_root.gotoAndStop(6);
}
}
Frame 2
stage.showmenu = false;
stop();
Frame 3
gotoAndStop(_currentframe - 1);
Instance of Symbol 98 MovieClip in Frame 4
onClipEvent (load) {
counter = 0;
stop();
Mouse.hide();
_root.setQuality = 3;
stopAllSounds();
_root.bgm = new Sound();
_root.bgm.attachSound("introMusic");
_root.bgm.start(0, 999);
}
onClipEvent (enterFrame) {
if (counter < 10) {
counter++;
}
if (4 >= _currentframe) {
if ((Key.isDown(KEY.RIGHT) && (3 < counter)) && (_currentframe < 4)) {
counter = 0;
nextFrame();
} else if ((Key.isDown(KEY.LEFT) && (3 < counter)) && (1 < _currentframe)) {
counter = 0;
prevFrame();
} else if (Key.isDown(KEY.SPACE) && (3 < counter)) {
counter = 0;
if (_currentframe == 1) {
gotoAndStop (5);
} else if (_currentframe == 2) {
Mouse.show();
gotoAndStop (7);
} else if (_currentframe == 3) {
gotoAndStop (9);
} else if (_currentframe == 4) {
gotoAndStop (8);
}
}
} else if (_currentframe == 5) {
if (Key.isDown(KEY.UP) && (2 < counter)) {
counter = 0;
skill.prevFrame();
} else if (Key.isDown(KEY.DOWN) && (2 < counter)) {
counter = 0;
skill.nextFrame();
} else if (Key.isDown(KEY.SPACE) && (2 < counter)) {
_root.difficulty = skill._currentframe;
counter = 0;
gotoAndStop (6);
}
} else if (_currentframe == 6) {
if (Key.isDown(KEY.RIGHT) && (2 < counter)) {
counter = 0;
char.nextFrame();
} else if (Key.isDown(KEY.LEFT) && (2 < counter)) {
counter = 0;
char.prevFrame();
} else if (Key.isDown(KEY.SPACE) && (2 < counter)) {
_root.character = char._currentframe;
counter = 0;
_root.gotoAndStop(10);
}
} else if (_currentframe == 7) {
if (Key.isDown(KEY.SHIFT) && (2 < counter)) {
counter = 0;
Mouse.hide();
gotoAndStop (2);
} else if (Key.isDown(KEY.SPACE) && (2 < counter)) {
counter = 0;
Mouse.hide();
gotoAndStop (2);
}
} else if (_currentframe == 8) {
if ((Key.isDown(KEY.SHIFT) || (Key.isDown(KEY.SPACE))) && (2 < counter)) {
counter = 0;
gotoAndStop (4);
}
} else if (_currentframe == 9) {
if (Key.isDown(KEY.DOWN) && (2 < counter)) {
counter = 0;
qs.nextFrame();
} else if (Key.isDown(KEY.UP) && (2 < counter)) {
counter = 0;
qs.prevFrame();
} else if (Key.isDown(KEY.SHIFT) && (2 < counter)) {
counter = 0;
gotoAndStop (2);
}
}
}
Frame 5
gotoAndStop(_currentframe + 1);
Frame 6
stop();
Frame 7
gotoAndStop(_currentframe - 1);
Instance of Symbol 167 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(115) || (Key.isDown(83))) {
_root.gotoAndPlay(12);
}
}
onClipEvent (load) {
stopAllSounds();
}
Frame 9
gotoAndStop(_currentframe + 1);
Frame 10
stop();
Frame 11
gotoAndStop(_currentframe - 1);
Frame 12
function findFreePro() {
i = 1;
while (6 >= i) {
if (_root["pro" + i]._currentframe == 1) {
return(i);
}
i++;
}
return(0);
}
function findFreeWP() {
i = 1;
while (6 >= i) {
if (_root["wp" + i]._currentframe == 1) {
return(i);
}
i++;
}
return(0);
}
function findFreeE() {
i = 1;
while (4 >= i) {
if (_root["e" + i]._currentframe == 1) {
return(i);
}
i++;
}
return(0);
}
function giveAmmo(id, amt) {
_root.ammo[id] = _root.ammo[id] + amt;
if (_root.maxAmmo[id] < _root.ammo[id]) {
_root.ammo[id] = _root.maxAmmo[id];
}
}
function giveHealth(amt) {
if ((_root.player.shield._visible == false) || (amt >= 0)) {
_root.hp = _root.hp + amt;
if (_root.maxhp < _root.hp) {
_root.hp = _root.maxhp;
} else if (_root.hp < 0) {
_root.hp = 0;
}
if ((0 >= amt) && (0 < hp)) {
_root.hud.hudHead.gotoAndPlay((((_root.player._currentframe - 1) * 17) + 14) - (Math.ceil((_root.hp / _root.maxhp) * 4) * 3));
_root.specA = _root.specA + Math.ceil(-amt);
} else if (0 >= hp) {
_root.hud.hudHead.gotoAndStop(((_root.player._currentframe - 1) * 17) + 13);
}
}
}
function hitEnemy(amt, id) {
if (0 < amt) {
_root.hudE.foc = id;
_root.hude.hudHeadE.gotoAndPlay(((_root["e" + id]._currentframe - 1) * 3) - 1);
}
_root["e" + id].hp = _root["e" + id].hp - amt;
_root["e" + id].splat.gotoAndPlay(1);
if (0 < _root["e" + id].hp) {
_root["e" + id].ei.gotoAndPlay(_root["e" + id].hurtFrame);
} else if (_root["e" + id].ei._currentframe < _root["e" + id].deathFrame) {
_root["e" + id].ei.gotoAndPlay(_root["e" + id].deathFrame);
}
}
function enemyCount() {
ecount = 0;
i = 1;
while (4 >= i) {
if (_root["e" + i]._currentframe != 1) {
ecount++;
}
i++;
}
return(ecount);
}
function clearEForce() {
i = 1;
while (60 >= i) {
eForce[i] = 0;
i++;
}
}
stopAllSounds();
_root.bgm = new Sound();
_root.bgm.attachSound("levelMusic");
_root.bgm.start(0, 999);
specA = 100;
specMax = 100;
lives = 3;
ammo = new Array();
ammo = [1, 0, 0, 0, 0];
maxAmmo = new Array();
maxAmmo = [1, 99, 99, 19, 9];
eForce = new Array();
eForce = [0];
Instance of Symbol 176 MovieClip "tilesR" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 177 MovieClip "tilesM" in Frame 12
onClipEvent (load) {
gotoAndStop (1);
startX = _x;
}
onClipEvent (enterFrame) {
if (_x < ((startX - _width) + 81)) {
_root.tilesL._x = _root.tilesL._x + (_width - 51);
_root.tilesL.nextFrame();
_root.tilesR._x = _root.tilesR._x + (_width - 51);
_root.tilesR.nextFrame();
_x = (_x + (_width - 51));
nextFrame();
}
}
Instance of Symbol 176 MovieClip "tilesL" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 279 MovieClip "e1" in Frame 12
onClipEvent (load) {
enu = 1;
gotoAndStop (1);
}
Instance of Symbol 313 MovieClip "player" in Frame 12
onClipEvent (load) {
curAction = "stopped";
invincibility = 0;
_root.weaponNum = 0;
_root.backLock = false;
gotoAndStop(_root.character);
hero.stop();
}
onClipEvent (enterFrame) {
swapDepths(Math.ceil(_y * 10) + 2);
if ((0 >= _root.hp) && (curAction != "dying")) {
curAction = "dying";
hero.gotoAndPlay(deathFrame);
}
if ((Key.isDown(KEY.UP) || (Key.isDown(KEY.DOWN))) && (curAction == "stopped")) {
curAction = "running";
hero.gotoAndPlay(2);
}
if (Key.isDown(KEY.SPACE) && (curAction == "stopped")) {
if (0 < _root.ammo[_root.weaponNum]) {
curAction = "attacking";
if (_root.weaponNum == 0) {
hero.gotoAndPlay(att0Frame);
} else if (_root.weaponNum == 1) {
hero.gotoAndPlay(att1Frame);
} else if (_root.weaponNum == 2) {
hero.gotoAndPlay(att2Frame);
} else if (_root.weaponNum == 3) {
hero.gotoAndPlay(att3Frame);
} else if (_root.weaponNum == 4) {
hero.gotoAndPlay(att4Frame);
}
}
} else if (Key.isDown(KEY.CONTROL) && ((curAction == "stopped") || (curAction == "running"))) {
curAction = "jumping";
hero.gotoAndPlay(jumpFrame);
} else if (Key.isDown(KEY.SHIFT) && ((curAction == "stopped") || (curAction == "running"))) {
if (_root.specA >= _root.specMax) {
_root.specA = 0;
curAction = "attacking";
hero.gotoAndPlay(specialFrame);
}
} else if (Key.isDown(KEY.RIGHT) && ((curAction == "stopped") || ((curAction == "running") && (_xscale < 0)))) {
curAction = "running";
_xscale = 100;
hero.gotoAndPlay(2);
} else if (Key.isDown(KEY.LEFT) && ((curAction == "stopped") || ((curAction == "running") && (0 < _xscale)))) {
curAction = "running";
_xscale = -100;
hero.gotoAndPlay(2);
} else if ((!(((Key.isDown(KEY.LEFT) || (Key.isDown(KEY.RIGHT))) || (Key.isDown(KEY.UP))) || (Key.isDown(KEY.DOWN)))) && (curAction == "running")) {
curAction = "stopped";
hero.gotoAndStop(1);
}
if ((((_currentframe == 1) && (14 < hero._currentframe)) && (22 >= hero._currentframe)) && (!Key.isDown(KEY.SPACE))) {
hero.gotoAndPlay(23);
}
if ((Key.isDown(KEY.UP) && (curAction == "running")) && (145 < _y)) {
_y = (_y - 8);
} else if ((Key.isDown(KEY.DOWN) && (curAction == "running")) && (_y < 280)) {
_y = (_y + 8);
}
if ((((curAction == "running") || (curAction == "jumping")) && (0 < _xscale)) && (Key.isDown(KEY.RIGHT))) {
if ((300 < _x) && (_root.backLock == false)) {
_root.tilesL._x = _root.tilesL._x - 7;
_root.tilesM._x = _root.tilesM._x - 7;
_root.tilesR._x = _root.tilesR._x - 7;
_root.totalProgress = _root.totalProgress + 7;
i = 1;
while (5 >= i) {
_root["neut" + i]._x = _root["neut" + i]._x - 7;
i++;
}
i = 1;
while (7 >= i) {
_root["wp" + i]._x = _root["wp" + i]._x - 7;
i++;
}
i = 1;
while (6 >= i) {
_root["pro" + i]._x = _root["pro" + i]._x - 7;
i++;
}
} else if (_x < 580) {
_x = (_x + 8);
}
} else if (((((curAction == "running") || (curAction == "jumping")) && (_xscale < 0)) && (Key.isDown(KEY.LEFT))) && (20 < _x)) {
_x = (_x - 8);
}
}
Instance of Symbol 361 MovieClip "hud" in Frame 12
onClipEvent (load) {
swapDepths(9999);
}
onClipEvent (enterFrame) {
ammoDisplay = (_root.ammo[_root.weaponNum] + "/") + _root.maxAmmo[_root.weaponNum];
}
Instance of Symbol 370 MovieClip "hude" in Frame 12
onClipEvent (enterFrame) {
if ((foc == 0) || ((0 < foc) && (0 >= _root["e" + foc].hp))) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (load) {
_visible = false;
foc = 0;
}
Instance of Symbol 418 MovieClip "pro1" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 418 MovieClip "pro2" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 418 MovieClip "pro3" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 418 MovieClip "pro4" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 418 MovieClip "pro5" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 418 MovieClip "pro6" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 427 MovieClip "wp1" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp2" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp3" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp4" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp5" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp6" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 427 MovieClip "wp7" in Frame 12
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_x < ((_width / 2) - 20)) {
_x = 200;
gotoAndStop (1);
}
}
Instance of Symbol 433 MovieClip "neut1" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 440 MovieClip "levelScripts" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (timeSince < 9999) {
timeSince++;
}
if (counter < 40) {
counter++;
} else {
counter = 0;
anyEnemies = false;
if (0 < _root.eForceN) {
i = 0;
while (i < _root.eForceN) {
if (0 < _root.eForce[i * 3]) {
anyEnemies = true;
}
if (((_root.eForce[(i * 3) + 1] >= _root.enemyCount()) && (_root.eForce[(i * 3) + 2] < timeSince)) && (0 < _root.eForce[i * 3])) {
if (0 < _root.findFreeE()) {
timeSince = 0;
if ((300 < _root.player._x) && (2 < random(10))) {
_root["e" + _root.findFreeE()]._x = -35 - (_root["e" + _root.findFreeE()]._width / 2);
} else {
_root["e" + _root.findFreeE()]._x = 635 + (_root["e" + _root.findFreeE()]._width / 2);
}
_root["e" + _root.findFreeE()]._y = random(150) + 200;
_root["e" + _root.findFreeE()].gotoAndStop(_root.eForce[i * 3]);
_root.eForce[i * 3] = 0;
}
}
i++;
}
if (anyEnemies == false) {
n = 1;
while (4 >= n) {
if (_root["e" + n]._currentframe != 1) {
anyEnemies = true;
}
n++;
}
if (anyEnemies == false) {
_root.backLock = false;
}
}
}
}
}
Instance of Symbol 441 MovieClip "e2" in Frame 12
onClipEvent (load) {
enu = 2;
gotoAndStop (1);
}
Instance of Symbol 442 MovieClip "e3" in Frame 12
onClipEvent (load) {
enu = 3;
gotoAndStop (1);
}
Instance of Symbol 443 MovieClip "e4" in Frame 12
onClipEvent (load) {
enu = 4;
gotoAndStop (1);
}
Instance of Symbol 444 MovieClip "neut2" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 444 MovieClip "neut3" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 444 MovieClip "neut4" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 444 MovieClip "neut5" in Frame 12
onClipEvent (load) {
stop();
}
Instance of Symbol 448 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.backLock == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 456 MovieClip "advice" in Frame 12
onClipEvent (load) {
stop();
swapDepths(99989);
}
Instance of Symbol 479 MovieClip "cinematics" in Frame 12
onClipEvent (load) {
gotoAndStop (1);
}
Frame 13
gotoAndStop(_currentframe + 1);
Frame 14
stop();
Frame 15
gotoAndStop(_currentframe - 1);
Symbol 17 MovieClip Frame 17
gotoAndPlay (5);
Symbol 95 MovieClip Frame 1
_root.setQuality = 1;
_quality = "LOW";
Symbol 95 MovieClip Frame 2
_root.setQuality = 2;
_quality = "MEDIUM";
Symbol 95 MovieClip Frame 3
_root.setQuality = 3;
_quality = "HIGH";
Instance of Symbol 39 MovieClip "skill" in Symbol 98 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 77 MovieClip "char" in Symbol 98 MovieClip Frame 6
onClipEvent (load) {
stop();
}
Instance of Symbol 95 MovieClip "qs" in Symbol 98 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_root.setQuality);
}
Symbol 167 MovieClip Frame 287
_root.gotoAndPlay(12);
Symbol 176 MovieClip Frame 3
gotoAndStop(_currentframe - 2);
Symbol 176 MovieClip Frame 6
gotoAndStop(_currentframe - 2);
Symbol 176 MovieClip Frame 9
gotoAndStop(_currentframe - 2);
Symbol 177 MovieClip Frame 3
gotoAndStop(_currentframe - 2);
Symbol 177 MovieClip Frame 6
gotoAndStop(_currentframe - 2);
Symbol 177 MovieClip Frame 9
gotoAndStop(_currentframe - 2);
Symbol 179 Button
on (keyPress "0") {
weaponNum = 0;
hud.equipped.gotoAndStop(1);
}
on (keyPress "1") {
if (0 < _root.ammo[1]) {
weaponNum = 1;
hud.equipped.gotoAndStop(2);
}
}
on (keyPress "2") {
if (0 < _root.ammo[2]) {
weaponNum = 2;
hud.equipped.gotoAndStop(3);
}
}
on (keyPress "3") {
if (0 < _root.ammo[3]) {
weaponNum = 3;
hud.equipped.gotoAndStop(4);
}
}
on (keyPress "4") {
if (0 < _root.ammo[4]) {
weaponNum = 4;
hud.equipped.gotoAndStop(5);
}
}
on (keyPress "<Home>") {
getURL ("www.thecerealkiller.com", "_blank");
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
_root.giveHealth(-2);
Symbol 195 MovieClip Frame 18
gotoAndStop (1);
Symbol 198 MovieClip Frame 18
if (_currentframe == 18) {
gotoAndPlay (10);
}
Symbol 198 MovieClip Frame 24
if (_currentframe == 24) {
gotoAndStop (1);
}
Symbol 198 MovieClip Frame 46
if ((3 < (5 - (Math.random() * _root.difficulty))) && (0 < _root.findFreeWP())) {
_root["wp" + _root.findFreeWP()]._x = _parent._x + (_parent._xscale / 1.2);
_root["wp" + _root.findFreeWP()]._y = _parent._y + 25;
_root["wp" + _root.findFreeWP()].swapDepths(Math.ceil((_parent._y - 20) * 10) + 4);
_root["wp" + _root.findFreeWP()].gotoAndStop(random(2) + 8);
}
_parent.gotoAndStop(1);
Symbol 207 MovieClip Frame 9
stop();
Symbol 221 MovieClip Frame 16
if (_currentframe == 16) {
gotoAndPlay (6);
}
Symbol 221 MovieClip Frame 24
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._x = _parent._x - (_parent._xscale / 2);
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].swapDepths((_root["pro" + _root.findFreePro()]._y * 9) + 1);
_root["pro" + _root.findFreePro()].gotoAndStop(4);
}
Symbol 221 MovieClip Frame 26
if (_currentframe == 26) {
gotoAndStop (1);
}
Symbol 221 MovieClip Frame 39
if (_currentframe == 39) {
gotoAndStop (1);
}
Symbol 221 MovieClip Frame 61
if ((4.5 < (5 - (Math.random() * _root.difficulty))) && (0 < _root.findFreeWP())) {
_root["wp" + _root.findFreeWP()]._x = _parent._x + (_parent._xscale / 1.2);
_root["wp" + _root.findFreeWP()]._y = _parent._y + 25;
_root["wp" + _root.findFreeWP()].swapDepths(Math.ceil((_parent._y - 20) * 10) + 4);
_root["wp" + _root.findFreeWP()].gotoAndStop(random(2) + 7);
}
_parent.gotoAndStop(1);
Symbol 238 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (4);
}
Instance of Symbol 234 MovieClip in Symbol 238 MovieClip Frame 16
onClipEvent (load) {
if (this.hitTest(_root.player) && (Math.abs(_parent._parent._y - _root.player._y) < 14)) {
_root.giveHealth(-5);
_root.ehitSound = new Sound();
_root.ehitSound.attachSound("strike");
_root.ehitSound.start();
}
}
Symbol 238 MovieClip Frame 21
if (_currentframe == 21) {
gotoAndStop (1);
}
Symbol 238 MovieClip Frame 26
if (_currentframe == 26) {
gotoAndStop (1);
}
Symbol 238 MovieClip Frame 47
if ((4 < (5 - (Math.random() * _root.difficulty))) && (0 < _root.findFreeWP())) {
_root["wp" + _root.findFreeWP()]._x = _parent._x + (_parent._xscale / 1.2);
_root["wp" + _root.findFreeWP()]._y = _parent._y + 40;
_root["wp" + _root.findFreeWP()].swapDepths(Math.ceil((_parent._y - 15) * 10) + 4);
_root["wp" + _root.findFreeWP()].gotoAndStop(random(4) + 7);
}
_parent.gotoAndStop(1);
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 3
if (Math.abs(_parent._parent._y - _root.player._y) < 40) {
_root.giveHealth(-3);
}
Symbol 253 MovieClip Frame 5
if (Math.abs(_parent._parent._y - _root.player._y) < 30) {
_root.giveHealth(-3);
}
Symbol 253 MovieClip Frame 7
if (Math.abs(_parent._parent._y - _root.player._y) < 30) {
_root.giveHealth(-3);
}
Symbol 253 MovieClip Frame 9
if (Math.abs(_parent._parent._y - _root.player._y) < 30) {
_root.giveHealth(-3);
}
Symbol 253 MovieClip Frame 11
if (Math.abs(_parent._parent._y - _root.player._y) < 30) {
_root.giveHealth(-3);
}
Symbol 253 MovieClip Frame 23
_parent.xSpeed = _parent._parent._xscale / 4;
shooting = false;
gotoAndStop (1);
Instance of Symbol 247 MovieClip in Symbol 278 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Instance of Symbol 248 MovieClip in Symbol 278 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Symbol 278 MovieClip Frame 2
gotoAndStop (1);
Symbol 278 MovieClip Frame 3
xSpeed = 0;
_root.levelScripts.l1.gotoAndPlay(79);
Instance of Symbol 247 MovieClip in Symbol 278 MovieClip Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Instance of Symbol 248 MovieClip in Symbol 278 MovieClip Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Instance of Symbol 247 MovieClip in Symbol 278 MovieClip Frame 25
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Instance of Symbol 248 MovieClip in Symbol 278 MovieClip Frame 25
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.xSpeed);
}
Symbol 278 MovieClip Frame 93
stop();
_root.hud._visible = false;
_root.hude._visible = false;
_root.tilesM.gotoAndStop(10);
_root.tilesL.gotoAndStop(10);
_root.tilesR.gotoAndStop(10);
_root.player.gotoAndStop(4);
_root.cinematics.gotoAndStop(2);
_root.wp1.gotoAndStop(1);
_root.wp2.gotoAndStop(1);
_root.wp3.gotoAndStop(1);
_root.wp4.gotoAndStop(1);
_root.wp5.gotoAndStop(1);
_root.wp6.gotoAndStop(1);
_root.wp7.gotoAndStop(1);
_root.pro1.gotoAndStop(1);
_root.pro2.gotoAndStop(1);
_root.pro3.gotoAndStop(1);
_root.pro4.gotoAndStop(1);
_root.pro5.gotoAndStop(1);
_root.pro6.gotoAndStop(1);
_root.e2.gotoAndStop(1);
_root.e3.gotoAndStop(1);
_root.e4.gotoAndStop(1);
_root.e1.gotoAndStop(1);
Symbol 279 MovieClip Frame 2
moveable = true;
hurtFrame = 19;
deathFrame = 25;
hp = 20 + (_root.difficulty * 5);
maxhp = 20 + (_root.difficulty * 5);
Instance of Symbol 198 MovieClip "ei" in Symbol 279 MovieClip Frame 2
onClipEvent (enterFrame) {
if (18 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-70 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -180) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 70) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
} else if (180 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
if (moving != true) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 207 MovieClip "splat" in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 279 MovieClip Frame 3
moveable = true;
hurtFrame = 27;
deathFrame = 40;
hp = 22 + (_root.difficulty * 8);
maxhp = 22 + (_root.difficulty * 5);
Instance of Symbol 221 MovieClip "ei" in Symbol 279 MovieClip Frame 3
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (16 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 1;
moving = true;
play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 1;
moving = true;
play();
}
if (moving != true) {
gotoAndStop (1);
}
if (((Math.random() < 0.02) && (40 < timeSince)) || (90 < timeSince)) {
timeSince = 0;
gotoAndPlay (17);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 279 MovieClip Frame 4
moveable = true;
hurtFrame = 22;
deathFrame = 27;
hp = 18 + (_root.difficulty * 10);
maxhp = 18 + (_root.difficulty * 5);
Instance of Symbol 238 MovieClip "ei" in Symbol 279 MovieClip Frame 4
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (10 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
if ((moving != true) && (this._currentframe != 11)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 279 MovieClip Frame 5
moveable = false;
hurtFrame = 1;
deathFrame = 1;
hp = 99;
maxhp = 99;
Instance of Symbol 246 MovieClip "ei" in Symbol 279 MovieClip Frame 5
onClipEvent (enterFrame) {
_x = (_x + 26);
if (this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) {
_root.player._xscale = -100;
if (_root.player._x < 570) {
_root.player._x = _root.player._x + (15 + _root.player.hp);
}
_root.giveHealth(-20);
}
if (770 < _x) {
_parent.gotoAndStop(1);
}
}
onClipEvent (load) {
_x = ((-_parent._x) * 2);
_parent._y = 200;
_parent._xscale = 100;
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
Symbol 279 MovieClip Frame 6
moveable = false;
hurtFrame = 1;
deathFrame = 3;
hp = 100 + (_root.difficulty * 20);
maxhp = 100 + (_root.difficulty * 20);
Instance of Symbol 278 MovieClip "ei" in Symbol 279 MovieClip Frame 6
onClipEvent (load) {
_parent._x = 650;
_parent._xscale = 100;
xSpeed = 25;
shooting = false;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - xSpeed;
if ((this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.player._xscale = -_parent._xscale;
if ((_root.player._x < 570) && (50 < _root.player._x)) {
_root.player._x = _root.player._x + ((15 + _root.player.hp) * (_parent._xscale / -100));
}
_root.giveHealth(-20);
}
i = 2;
while (4 >= i) {
if ((this.hitTest(_root["e" + i]) && (Math.abs(_parent._y - _root["e" + i]._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.hitEnemy(99, i);
_root["e" + i]._xscale = -_parent._xscale;
}
i++;
}
if ((((_parent._x < 200) && (-150 < _parent._x)) && (0.001 < Math.abs(xSpeed))) && (0 < _parent._xscale)) {
xSpeed = xSpeed - 1;
} else if ((((400 < _parent._x) && (_parent._x < 750)) && (0.001 < Math.abs(xSpeed))) && (_parent._xscale < 0)) {
xSpeed = xSpeed + 1;
} else if (0.001 >= Math.abs(xSpeed)) {
shooting = true;
gun.play();
}
if ((_parent._x < -320) && (0 < xSpeed)) {
_parent._xscale = -100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = -25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = -100;
_root["pro" + _root.findFreePro()]._x = -150;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
} else if ((780 < _parent._x) && (xSpeed < 0)) {
_parent._xscale = 100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = 25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = 100;
_root["pro" + _root.findFreePro()]._x = 850;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
}
Instance of Symbol 207 MovieClip "splat" in Symbol 279 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 296 MovieClip Frame 8
if ((((_currentframe == 8) && (Key.isDown(KEY.SPACE))) && (_root.weaponNum == 1)) && (0 < _root.ammo[1])) {
gotoAndPlay (56);
}
Symbol 296 MovieClip Frame 13
if (_currentframe == 13) {
gotoAndPlay (4);
}
Symbol 296 MovieClip Frame 15
stored = 3;
Symbol 296 MovieClip Frame 16
stored = 4;
Symbol 296 MovieClip Frame 17
stored = 5;
Symbol 296 MovieClip Frame 18
stored = 8;
Symbol 296 MovieClip Frame 19
stored = 10;
Symbol 296 MovieClip Frame 22
if (_currentframe == 22) {
gotoAndPlay (21);
}
Instance of Symbol 280 MovieClip in Symbol 296 MovieClip Frame 25
onClipEvent (load) {
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs((_root.player._y - _root["e" + i]._y) < 15))) && (0 < _root["e" + i].hp)) {
if (this.hitTest(_root["e" + i].ei.hitCore)) {
_root.hude.hudHeadE.gotoAndPlay(((_root["e" + i]._currentframe - 1) * 3) - 1);
_root["e" + i].hp = _root["e" + i].hp - _parent.stored;
_root.hudE.foc = i;
_root.hitSound = new Sound();
_root.hitSound.attachSound("strike");
_root.hitSound.start();
if (0 < _root["e" + i].hp) {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].hurtFrame);
} else {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].deathFrame);
}
}
}
i++;
}
}
Symbol 296 MovieClip Frame 30
_parent.curAction = "stopped";
if (_currentframe == 30) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 41
_parent.curAction = "stopped";
if (_currentframe == 41) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 47
_root.ammo[1] = _root.ammo[1] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(4, i);
}
}
i++;
}
Symbol 296 MovieClip Frame 51
if (((_currentframe == 51) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[1])) {
gotoAndPlay (46);
}
Symbol 296 MovieClip Frame 55
_parent.curAction = "stopped";
if (_currentframe == 55) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 58
_root.ammo[1] = _root.ammo[1] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(4, i);
}
}
i++;
}
Symbol 296 MovieClip Frame 63
if (_currentframe == 63) {
gotoAndPlay (8);
}
Symbol 296 MovieClip Frame 70
_root.ammo[2] = _root.ammo[2] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(3, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 33);
}
}
}
i++;
}
Symbol 296 MovieClip Frame 72
if (((_currentframe == 72) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[2])) {
gotoAndPlay (70);
}
Symbol 296 MovieClip Frame 78
_parent.curAction = "stopped";
if (_currentframe == 78) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 84
_root.ammo[3] = _root.ammo[3] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 18)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(13, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 12);
}
}
}
i++;
}
Symbol 296 MovieClip Frame 92
if ((_currentframe == 92) && ((!Key.isDown(KEY.SPACE)) || (0 >= _root.ammo[3]))) {
gotoAndPlay (97);
}
Symbol 296 MovieClip Frame 96
if (_currentframe == 96) {
gotoAndPlay (84);
}
Symbol 296 MovieClip Frame 101
_parent.curAction = "stopped";
if (_currentframe == 101) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 111
if (0 < _root.findFreePro()) {
_root.ammo[4] = _root.ammo[4] - 1;
_root["pro" + _root.findFreePro()]._x = _root.player._x + (_root.player._xscale / 2.7);
_root["pro" + _root.findFreePro()]._y = _root.player._y - 48;
_root["pro" + _root.findFreePro()]._xscale = _root.player._xscale;
_root["pro" + _root.findFreePro()].swapDepths((Math.ceil(_root["pro" + _root.findFreePro()]._y + 50) * 10) + 7);
_root["pro" + _root.findFreePro()].gotoAndStop(2);
}
Symbol 296 MovieClip Frame 121
if (((_currentframe == 121) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[4])) {
gotoAndPlay (111);
}
Symbol 296 MovieClip Frame 126
_parent.curAction = "stopped";
if (_currentframe == 126) {
gotoAndStop (1);
}
Symbol 296 MovieClip Frame 174
if (0 < _root.lives) {
_root.lives--;
}
Symbol 296 MovieClip Frame 187
_parent.shield.invin = 60;
_root.hp = _root.maxhp;
_root.giveHealth(0);
_parent.curAction = "stopped";
if (_currentframe == 187) {
gotoAndStop (1);
}
Instance of Symbol 293 MovieClip in Symbol 296 MovieClip Frame 191
onClipEvent (load) {
gotoAndPlay (4);
}
Symbol 296 MovieClip Frame 197
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._x = _root.player._x + (_root.player._xscale / 2.7);
_root["pro" + _root.findFreePro()]._y = _root.player._y + 48;
_root["pro" + _root.findFreePro()]._xscale = _root.player._xscale;
_root["pro" + _root.findFreePro()].swapDepths(Math.ceil((_root["pro" + _root.findFreePro()]._y - 31) * 10) + 7);
_root["pro" + _root.findFreePro()].gotoAndStop(5);
}
_parent.curAction = "stopped";
if (_currentframe == 197) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 4
if ((((_currentframe == 4) && (Key.isDown(KEY.SPACE))) && (_root.weaponNum == 1)) && (0 < _root.ammo[1])) {
gotoAndPlay (42);
}
Symbol 308 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (4);
}
Instance of Symbol 301 MovieClip in Symbol 308 MovieClip Frame 16
onClipEvent (load) {
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs((_root.player._y - _root["e" + i]._y) < 15))) && (0 < _root["e" + i].hp)) {
if (this.hitTest(_root["e" + i].ei.hitCore)) {
_root.hude.hudHeadE.gotoAndPlay(((_root["e" + i]._currentframe - 1) * 3) - 1);
_root.hitEnemy(10, i);
_root.hudE.foc = i;
_root.strikeSound = new Sound();
_root.strikeSound.attachSound("strike");
_root.strikeSound.start();
if (0 < _root["e" + i].hp) {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].hurtFrame);
} else {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].deathFrame);
}
}
}
i++;
}
}
Symbol 308 MovieClip Frame 21
_parent.curAction = "stopped";
if (_currentframe == 21) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 31
_parent.curAction = "stopped";
if (_currentframe == 31) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 35
_root.ammo[1] = _root.ammo[1] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(4, i);
}
}
i++;
}
Symbol 308 MovieClip Frame 38
if (((_currentframe == 38) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[1])) {
gotoAndPlay (35);
}
Symbol 308 MovieClip Frame 41
_parent.curAction = "stopped";
if (_currentframe == 41) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 45
_root.ammo[1] = _root.ammo[1] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(4, i);
}
}
i++;
}
Symbol 308 MovieClip Frame 48
if (_currentframe == 48) {
gotoAndPlay (4);
}
Symbol 308 MovieClip Frame 52
_root.ammo[2] = _root.ammo[2] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(3, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 33);
}
}
}
i++;
}
Symbol 308 MovieClip Frame 54
if (((_currentframe == 54) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[2])) {
gotoAndPlay (52);
}
Symbol 308 MovieClip Frame 57
_parent.curAction = "stopped";
if (_currentframe == 57) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 62
_root.ammo[3] = _root.ammo[3] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 18)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(13, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 12);
}
}
}
i++;
}
Symbol 308 MovieClip Frame 82
_parent.curAction = "stopped";
if (_currentframe == 82) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 114
if (0 < _root.lives) {
_root.lives--;
}
Symbol 308 MovieClip Frame 141
_parent.shield.invin = 60;
_root.hp = _root.maxhp;
_root.giveHealth(0);
_parent.curAction = "stopped";
if (_currentframe == 141) {
gotoAndStop (1);
}
Symbol 308 MovieClip Frame 151
temp = 0;
lowestYet = 9999;
if (0 < _root.findFreePro()) {
i = 1;
while (4 >= i) {
if ((_root["e" + i]._currentframe != 1) && ((Math.abs(_root["e" + i]._x - _root.player._x) + Math.abs(_root["e" + i]._y - _root.player._y)) < lowestYet)) {
lowestYet = Math.abs(_root["e" + i]._x - _root.player._x) + Math.abs(_root["e" + i]._y - _root.player._y);
temp = i;
}
i++;
}
if (0 < temp) {
_root["pro" + _root.findFreePro()]._x = _root["e" + temp]._x;
_root["pro" + _root.findFreePro()]._y = _root["e" + temp]._y;
_root["pro" + _root.findFreePro()]._xscale = 100;
_root["pro" + _root.findFreePro()].swapDepths(Math.ceil((_root["pro" + _root.findFreePro()]._y - 31) * 10) + 7);
_root["pro" + _root.findFreePro()].gotoAndStop(8);
}
delete lowestYet;
}
Symbol 308 MovieClip Frame 154
_root.hitEnemy(30, temp);
Symbol 308 MovieClip Frame 156
if (_currentframe == 156) {
_parent.curAction = "stopped";
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 6
if ((((_currentframe == 6) && (Key.isDown(KEY.SPACE))) && (_root.weaponNum == 1)) && (0 < _root.ammo[1])) {
gotoAndPlay (74);
}
Symbol 312 MovieClip Frame 14
if (_currentframe == 14) {
gotoAndPlay (6);
}
Instance of Symbol 309 MovieClip "NAMEGOESHERE" in Symbol 312 MovieClip Frame 21
onClipEvent (load) {
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs((_root.player._y - _root["e" + i]._y) < 15))) && (0 < _root["e" + i].hp)) {
if (this.hitTest(_root["e" + i].ei.hitCore)) {
_root.hude.hudHeadE.gotoAndPlay(((_root["e" + i]._currentframe - 1) * 3) - 1);
_root.hitEnemy(8, i);
_root.hudE.foc = i;
_root.hitSound = new Sound();
_root.hitSound.attachSound("strike");
_root.hitSound.start();
if (0 < _root["e" + i].hp) {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].hurtFrame);
} else {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].deathFrame);
}
}
}
i++;
}
}
Symbol 312 MovieClip Frame 26
_parent.curAction = "stopped";
if (_currentframe == 26) {
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 40
_parent.curAction = "standing";
Symbol 312 MovieClip Frame 50
_parent.curAction = "stopped";
if (_currentframe == 50) {
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 55
_root.ammo[1] = _root.ammo[1] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(4, i);
}
}
i++;
}
Symbol 312 MovieClip Frame 58
if (((_currentframe == 58) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[1])) {
gotoAndPlay (55);
}
Symbol 312 MovieClip Frame 62
_parent.curAction = "stopped";
if (_currentframe == 62) {
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 67
_root.ammo[2] = _root.ammo[2] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 12)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(3, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 33);
}
}
}
i++;
}
Symbol 312 MovieClip Frame 69
if (((_currentframe == 69) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[2])) {
gotoAndPlay (67);
}
Symbol 312 MovieClip Frame 73
_parent.curAction = "stopped";
if (_currentframe == 73) {
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 82
if (_currentframe == 82) {
gotoAndPlay (6);
}
Symbol 312 MovieClip Frame 88
_root.ammo[3] = _root.ammo[3] - 1;
i = 1;
while (4 >= i) {
if (((1 < _root["e" + i]._currentframe) && (Math.abs(_root.player._y - _root["e" + i]._y) < 18)) && (0 < _root["e" + i].hp)) {
if ((((_root.player._x - _root["e" + i]._x) < 0) && (0 < _root.player._xscale)) || ((0 < (_root.player._x - _root["e" + i]._x)) && (_root.player._xscale < 0))) {
_root.hitEnemy(13, i);
if (_root["e" + i].moveable == true) {
_root["e" + i]._x = _root["e" + i]._x + (_parent._xscale / 12);
}
}
}
i++;
}
Symbol 312 MovieClip Frame 93
if (((_currentframe == 93) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[3])) {
gotoAndPlay (88);
}
Symbol 312 MovieClip Frame 98
if (_currentframe == 98) {
_parent.curAction = "stopped";
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 107
if (0 < _root.findFreePro()) {
_root.ammo[4] = _root.ammo[4] - 1;
_root["pro" + _root.findFreePro()]._x = _root.player._x + (_root.player._xscale / 2.7);
_root["pro" + _root.findFreePro()]._y = _root.player._y - 48;
_root["pro" + _root.findFreePro()]._xscale = _root.player._xscale;
_root["pro" + _root.findFreePro()].swapDepths((Math.ceil(_root["pro" + _root.findFreePro()]._y + 50) * 10) + 7);
_root["pro" + _root.findFreePro()].gotoAndStop(2);
}
Symbol 312 MovieClip Frame 112
if (((_currentframe == 112) && (Key.isDown(KEY.SPACE))) && (0 < _root.ammo[4])) {
gotoAndPlay (104);
}
Symbol 312 MovieClip Frame 117
if (_currentframe == 117) {
_parent.curAction = "stopped";
gotoAndStop (1);
}
Symbol 312 MovieClip Frame 153
if (0 < _root.lives) {
_root.lives--;
}
Symbol 312 MovieClip Frame 162
if (_currentframe == 162) {
_parent.shield.invin = 60;
_root.hp = _root.maxhp;
_root.giveHealth(0);
_parent.curAction = "stopped";
gotoAndPlay (36);
}
Symbol 312 MovieClip Frame 172
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._x = _root.player._x + (_root.player._xscale / 2.7);
_root["pro" + _root.findFreePro()]._y = _root.player._y - 30;
_root["pro" + _root.findFreePro()]._xscale = _root.player._xscale;
_root["pro" + _root.findFreePro()].swapDepths(Math.ceil((_root["pro" + _root.findFreePro()]._y - 31) * 10) + 7);
_root["pro" + _root.findFreePro()].gotoAndStop(9);
}
Symbol 312 MovieClip Frame 180
if (_currentframe == 180) {
_parent.curAction = "stopped";
gotoAndStop (1);
}
Symbol 313 MovieClip Frame 1
_root.hp = 60;
_root.maxhp = 60;
att0Frame = 14;
jumpFrame = 31;
att1Frame = 42;
att2Frame = 65;
att3Frame = 79;
att4Frame = 102;
deathFrame = 127;
specialFrame = 188;
Instance of Symbol 300 MovieClip "shield" in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
invin = 60;
}
onClipEvent (enterFrame) {
if (0 < invin) {
_visible = true;
invin--;
} else {
_visible = false;
}
}
Symbol 313 MovieClip Frame 2
_root.hp = 60;
_root.maxhp = 60;
att0Frame = 11;
jumpFrame = 22;
att1Frame = 32;
att2Frame = 49;
att3Frame = 59;
att4Frame = 11;
deathFrame = 83;
specialFrame = 142;
Symbol 313 MovieClip Frame 3
_root.hp = 90;
_root.maxhp = 90;
att0Frame = 15;
jumpFrame = 27;
att1Frame = 51;
att2Frame = 63;
att3Frame = 83;
att4Frame = 99;
deathFrame = 118;
specialFrame = 163;
Symbol 338 MovieClip Frame 3
gotoAndStop (1);
Symbol 338 MovieClip Frame 6
gotoAndStop (4);
Symbol 338 MovieClip Frame 9
gotoAndStop (7);
Symbol 338 MovieClip Frame 12
gotoAndStop (10);
Symbol 338 MovieClip Frame 14
gotoAndStop(_currentframe - 1);
Symbol 338 MovieClip Frame 20
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 23
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 26
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 29
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 31
gotoAndStop(_currentframe - 1);
Symbol 338 MovieClip Frame 37
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 40
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 43
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 46
gotoAndStop(_currentframe - 2);
Symbol 338 MovieClip Frame 48
gotoAndStop(_currentframe - 1);
Instance of Symbol 316 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(101 - Math.ceil((_root.hp / _root.maxhp) * 100));
}
Instance of Symbol 320 MovieClip "specbar" in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.specMax < _root.specA) {
_root.specA = _root.specMax;
}
gotoAndStop(101 - Math.ceil((_root.specA / _root.specMax) * 100));
}
Instance of Symbol 338 MovieClip "hudHead" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop((_root.character - 1) * 17);
}
Instance of Symbol 342 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(101 - Math.ceil((_root.ammo[1] / _root.maxAmmo[1]) * 100));
}
onClipEvent (load) {
gotoAndStop (101);
}
Instance of Symbol 347 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.ceil((_root.ammo[2] / _root.maxAmmo[2]) * 100));
}
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 350 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.ceil((_root.ammo[3] / _root.maxAmmo[3]) * 100));
}
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 353 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.ceil((_root.ammo[4] / _root.maxAmmo[4]) * 100));
}
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 359 MovieClip "equipped" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (0 >= _root.ammo[_root.weaponNum]) {
i = 0;
while (4 >= i) {
if (0 < _root.ammo[i]) {
_root.weaponNum = i;
gotoAndStop(i + 1);
}
i++;
}
}
}
Symbol 369 MovieClip Frame 4
if (_currentframe == 4) {
gotoAndStop(_currentframe - 2);
}
Symbol 369 MovieClip Frame 7
if (_currentframe == 7) {
gotoAndStop(_currentframe - 2);
}
Symbol 369 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndStop(_currentframe - 2);
}
Symbol 369 MovieClip Frame 13
if (_currentframe == 13) {
gotoAndStop(_currentframe - 2);
}
Symbol 369 MovieClip Frame 16
if (_currentframe == 16) {
gotoAndStop(_currentframe - 2);
}
Instance of Symbol 364 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(101 - Math.floor((_root["e" + _parent.foc].hp / _root["e" + _parent.foc].maxhp) * 100));
}
Symbol 377 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 379 MovieClip Frame 77
_parent.gotoAndStop(1);
Instance of Symbol 293 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (4);
}
Symbol 397 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 399 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 408 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 417 MovieClip Frame 7
stop();
Instance of Symbol 373 MovieClip in Symbol 418 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent._xscale / 3);
if ((650 < _parent._x) || (_parent._x < -50)) {
_parent.gotoAndStop(1);
}
i = 1;
while (4 >= i) {
if (_root["e" + i].hitTest(_parent._x, _parent._y, true)) {
_root.hude.hudHeadE.gotoAndPlay(((_root["e" + i]._currentframe - 1) * 3) - 1);
_root["e" + i].hp = _root["e" + i].hp - 50;
_root.hudE.foc = i;
_root["e" + i]._x = _root["e" + i]._x + 8;
if (0 < _root["e" + i].hp) {
_root["e" + i].ei.gotoAndPlay(_root["e" + i].hurtFrame);
} else {
_root["e" + i]._x = _root["e" + i]._x + 16;
_root["e" + i].ei.gotoAndPlay(_root["e" + i].deathFrame);
}
_parent.nextFrame();
}
i++;
}
}
Instance of Symbol 379 MovieClip in Symbol 418 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (Math.abs(_root.player._y - _parent._y) < 12)) && (0.65 < Math.random())) {
_root.giveHealth(-1);
}
}
Instance of Symbol 380 MovieClip in Symbol 418 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent._xscale / 32);
if ((650 < _parent._x) || (_parent._x < -50)) {
_parent.gotoAndStop(1);
}
i = 1;
while (4 >= i) {
if (_root["e" + i].hitTest(_parent._x, _parent._y, true)) {
_parent.nextFrame();
}
i++;
}
}
Instance of Symbol 397 MovieClip in Symbol 418 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_currentframe < 10) {
i = 1;
while (4 >= i) {
if (this.hitTest(_root["e" + i])) {
_root.hitEnemy(5, i);
if (_root["e" + i].moveable == true) {
if (_parent._x < _root["e" + i]._x) {
_root["e" + i]._x = _root["e" + i]._x + 4;
_root["e" + i]._xscale = 100;
} else {
_root["e" + i]._x = _root["e" + i]._x - 4;
_root["e" + i]._xscale = -100;
}
}
}
i++;
}
}
}
Instance of Symbol 416 MovieClip in Symbol 418 MovieClip Frame 9
onClipEvent (enterFrame) {
counter++;
i = 1;
while (4 >= i) {
if (this.hitTest(_root["e" + i])) {
_root.hitEnemy(1, i);
}
i++;
}
if (100 < counter) {
_alpha = (_alpha - 4);
if (0 >= _alpha) {
_parent.gotoAndStop(1);
}
}
}
onClipEvent (load) {
counter = 0;
}
Symbol 423 MovieClip Frame 5
gotoAndPlay (1);
Symbol 424 MovieClip Frame 5
gotoAndPlay (1);
Symbol 425 MovieClip Frame 5
gotoAndPlay (1);
Symbol 426 MovieClip Frame 5
gotoAndPlay (1);
Symbol 427 MovieClip Frame 2
gotoAndStop (1);
Symbol 427 MovieClip Frame 3
gotoAndStop (1);
Symbol 427 MovieClip Frame 4
gotoAndStop (1);
Symbol 427 MovieClip Frame 5
gotoAndStop (1);
Symbol 427 MovieClip Frame 6
gotoAndStop (1);
Instance of Symbol 421 MovieClip in Symbol 427 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (Math.abs((_parent._y - 45) - _root.player._y) < 12)) {
_root.giveHealth(_root.maxhp / 8);
_parent.gotoAndStop(1);
}
}
Instance of Symbol 423 MovieClip in Symbol 427 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (Math.abs((_parent._y - 45) - _root.player._y) < 12)) {
_root.giveAmmo(1, Math.ceil(_root.maxAmmo[1] / 6));
_parent.gotoAndStop(1);
}
}
Instance of Symbol 424 MovieClip in Symbol 427 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (Math.abs((_parent._y - 45) - _root.player._y) < 12)) {
_root.giveAmmo(2, Math.ceil(_root.maxAmmo[2] / 5));
_parent.gotoAndStop(1);
}
}
Instance of Symbol 425 MovieClip in Symbol 427 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (Math.abs((_parent._y - 45) - _root.player._y) < 12)) {
_root.giveAmmo(3, Math.ceil(_root.maxAmmo[3] / 6));
_parent.gotoAndStop(1);
}
}
Instance of Symbol 426 MovieClip in Symbol 427 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (Math.abs((_parent._y - 45) - _root.player._y) < 12)) {
_root.giveAmmo(4, Math.ceil(_root.maxAmmo[4] / 5));
_parent.gotoAndStop(1);
}
}
Symbol 432 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 433 MovieClip Frame 2
swapDepths((_y * 10) + 5);
Instance of Symbol 430 MovieClip in Symbol 433 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_parent._currentframe % 2) == 0) {
if (_parent.hitCore.hitTest(_root.player) && (Math.abs(_root.player._y - _parent._y) < 20)) {
_parent._xscale = _root.player._xscale;
_parent.nextFrame();
} else {
i = 1;
while (4 >= i) {
if (_parent.hitCore.hitTest(_root["e" + i]) && (Math.abs(_root["e" + i]._y - _parent._y) < 20)) {
_parent._xscale = -_root["e" + i]._xscale;
_parent.nextFrame();
}
i++;
}
}
}
if (_parent._x < ((_width / 2) - 20)) {
_parent.gotoAndStop(1);
}
}
Symbol 439 MovieClip Frame 4
_root.advice.gotoAndStop(2);
Symbol 439 MovieClip Frame 6
if (_root.totalProgress < 100) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 7
_root.advice.gotoAndStop(3);
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 1;
_root.eForce = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
stop();
Symbol 439 MovieClip Frame 8
_root.advice.gotoAndStop(4);
delayer = 0;
Symbol 439 MovieClip Frame 10
delayer++;
if (delayer < 80) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 11
_root.advice.gotoAndStop(5);
delayer = 0;
Symbol 439 MovieClip Frame 13
delayer++;
if (delayer < 60) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 14
_root.advice.gotoAndStop(6);
delayer = 0;
Symbol 439 MovieClip Frame 16
delayer++;
if (delayer < 80) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 17
_root.advice.gotoAndStop(7);
delayer = 0;
Symbol 439 MovieClip Frame 19
delayer++;
if (delayer < 80) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 23
_root.advice.gotoAndStop(1);
delayer = 0;
_root.totalProgress = 0;
Symbol 439 MovieClip Frame 28
if (_root.totalProgress < 150) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 29
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 4;
_root.eForce = [3, 0, 1, 4, 0, 40, 4, 1, 41, 2, 2, 41];
stop();
Symbol 439 MovieClip Frame 31
if (_root.totalProgress < 230) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 32
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 3;
_root.eForce = [4, 2, 0, 3, 2, 0, 3, 2, 0];
stop();
Symbol 439 MovieClip Frame 34
if (_root.totalProgress < 390) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 35
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 3;
_root.eForce = [4, 0, 1, 2, 0, 40, 4, 0, 80];
stop();
Symbol 439 MovieClip Frame 37
if (_root.totalProgress < 520) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 38
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 4;
_root.eForce = [4, 1, 1, 4, 1, 10, 4, 1, 1, 4, 2, 30];
stop();
Symbol 439 MovieClip Frame 40
if (_root.totalProgress < 630) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 41
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 3;
_root.eForce = [2, 3, 1, 2, 3, 10, 2, 3, 0];
stop();
Symbol 439 MovieClip Frame 43
if (_root.totalProgress < 750) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 44
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 1;
_root.eForce = [5, 0, 0];
stop();
Symbol 439 MovieClip Frame 56
if (_root.totalProgress < 810) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 57
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 6;
_root.eForce = [3, 2, 1, 3, 1, 40, 4, 1, 41, 2, 2, 41, 4, 0, 0, 4, 1, 0];
stop();
Symbol 439 MovieClip Frame 59
if (_root.totalProgress < 950) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 60
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 5;
_root.eForce = [2, 2, 0, 2, 2, 0, 4, 4, 20, 4, 4, 20, 4, 4, 20];
stop();
Symbol 439 MovieClip Frame 62
if (_root.totalProgress < 1080) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 63
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 5;
_root.eForce = [2, 2, 0, 2, 2, 0, 2, 4, 20, 4, 2, 20, 4, 2, 20];
stop();
Symbol 439 MovieClip Frame 65
if (_root.totalProgress < 1200) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 66
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 4;
_root.eForce = [2, 4, 0, 4, 4, 0, 2, 4, 0, 4, 4, 0];
stop();
Symbol 439 MovieClip Frame 68
if (_root.totalProgress < 1300) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 69
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 2;
_root.eForce = [3, 2, 0, 3, 2, 0];
stop();
Symbol 439 MovieClip Frame 71
if (_root.totalProgress < 1600) {
gotoAndPlay(_currentframe - 1);
}
Symbol 439 MovieClip Frame 74
_root.clearEForce();
_root.backLock = true;
_root.allClear = false;
_root.eForceN = 2;
_root.eForce = [6, 4, 0, random(3) + 1, 4, 0];
Symbol 439 MovieClip Frame 76
if (_root.enemyCount() == 1) {
_root.eForce[3] = random(3) + 1;
}
gotoAndPlay(_currentframe - 1);
Symbol 439 MovieClip Frame 78
_root.clearEForce();
_root.eForceN = 0;
gotoAndPlay(_currentframe - 1);
Symbol 439 MovieClip Frame 80
_root.clearEForce();
_root.eForceN = 0;
gotoAndPlay(_currentframe - 1);
Symbol 441 MovieClip Frame 2
moveable = true;
hurtFrame = 19;
deathFrame = 25;
hp = 20 + (_root.difficulty * 5);
maxhp = 20 + (_root.difficulty * 5);
Instance of Symbol 198 MovieClip "ei" in Symbol 441 MovieClip Frame 2
onClipEvent (enterFrame) {
if (18 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-70 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -180) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 70) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
} else if (180 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
if (moving != true) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 207 MovieClip "splat" in Symbol 441 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 441 MovieClip Frame 3
moveable = true;
hurtFrame = 27;
deathFrame = 40;
hp = 22 + (_root.difficulty * 8);
maxhp = 22 + (_root.difficulty * 5);
Instance of Symbol 221 MovieClip "ei" in Symbol 441 MovieClip Frame 3
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (16 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 1;
moving = true;
play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 1;
moving = true;
play();
}
if (moving != true) {
gotoAndStop (1);
}
if (((Math.random() < 0.02) && (40 < timeSince)) || (90 < timeSince)) {
timeSince = 0;
gotoAndPlay (17);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 441 MovieClip Frame 4
moveable = true;
hurtFrame = 22;
deathFrame = 27;
hp = 18 + (_root.difficulty * 10);
maxhp = 18 + (_root.difficulty * 5);
Instance of Symbol 238 MovieClip "ei" in Symbol 441 MovieClip Frame 4
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (10 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
if ((moving != true) && (this._currentframe != 11)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 441 MovieClip Frame 5
moveable = false;
hurtFrame = 1;
deathFrame = 1;
hp = 99;
maxhp = 99;
Instance of Symbol 246 MovieClip "ei" in Symbol 441 MovieClip Frame 5
onClipEvent (enterFrame) {
_x = (_x + 26);
if (this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) {
_root.player._xscale = -100;
if (_root.player._x < 570) {
_root.player._x = _root.player._x + (15 + _root.player.hp);
}
_root.giveHealth(-20);
}
if (770 < _x) {
_parent.gotoAndStop(1);
}
}
onClipEvent (load) {
_x = ((-_parent._x) * 2);
_parent._y = 200;
_parent._xscale = 100;
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
Symbol 441 MovieClip Frame 6
moveable = false;
hurtFrame = 1;
deathFrame = 3;
hp = 100 + (_root.difficulty * 20);
maxhp = 100 + (_root.difficulty * 20);
Instance of Symbol 278 MovieClip "ei" in Symbol 441 MovieClip Frame 6
onClipEvent (load) {
_parent._x = 650;
_parent._xscale = 100;
xSpeed = 25;
shooting = false;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - xSpeed;
if ((this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.player._xscale = -_parent._xscale;
if ((_root.player._x < 570) && (50 < _root.player._x)) {
_root.player._x = _root.player._x + ((15 + _root.player.hp) * (_parent._xscale / -100));
}
_root.giveHealth(-20);
}
i = 2;
while (4 >= i) {
if ((this.hitTest(_root["e" + i]) && (Math.abs(_parent._y - _root["e" + i]._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.hitEnemy(99, i);
_root["e" + i]._xscale = -_parent._xscale;
}
i++;
}
if ((((_parent._x < 200) && (-150 < _parent._x)) && (0.001 < Math.abs(xSpeed))) && (0 < _parent._xscale)) {
xSpeed = xSpeed - 1;
} else if ((((400 < _parent._x) && (_parent._x < 750)) && (0.001 < Math.abs(xSpeed))) && (_parent._xscale < 0)) {
xSpeed = xSpeed + 1;
} else if (0.001 >= Math.abs(xSpeed)) {
shooting = true;
gun.play();
}
if ((_parent._x < -320) && (0 < xSpeed)) {
_parent._xscale = -100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = -25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = -100;
_root["pro" + _root.findFreePro()]._x = -150;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
} else if ((780 < _parent._x) && (xSpeed < 0)) {
_parent._xscale = 100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = 25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = 100;
_root["pro" + _root.findFreePro()]._x = 850;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
}
Instance of Symbol 207 MovieClip "splat" in Symbol 441 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 442 MovieClip Frame 2
moveable = true;
hurtFrame = 19;
deathFrame = 25;
hp = 20 + (_root.difficulty * 5);
maxhp = 20 + (_root.difficulty * 5);
Instance of Symbol 198 MovieClip "ei" in Symbol 442 MovieClip Frame 2
onClipEvent (enterFrame) {
if (18 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-70 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -180) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 70) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
} else if (180 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
if (moving != true) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 207 MovieClip "splat" in Symbol 442 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 442 MovieClip Frame 3
moveable = true;
hurtFrame = 27;
deathFrame = 40;
hp = 22 + (_root.difficulty * 8);
maxhp = 22 + (_root.difficulty * 5);
Instance of Symbol 221 MovieClip "ei" in Symbol 442 MovieClip Frame 3
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (16 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 1;
moving = true;
play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 1;
moving = true;
play();
}
if (moving != true) {
gotoAndStop (1);
}
if (((Math.random() < 0.02) && (40 < timeSince)) || (90 < timeSince)) {
timeSince = 0;
gotoAndPlay (17);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 442 MovieClip Frame 4
moveable = true;
hurtFrame = 22;
deathFrame = 27;
hp = 18 + (_root.difficulty * 10);
maxhp = 18 + (_root.difficulty * 5);
Instance of Symbol 238 MovieClip "ei" in Symbol 442 MovieClip Frame 4
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (10 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
if ((moving != true) && (this._currentframe != 11)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 442 MovieClip Frame 5
moveable = false;
hurtFrame = 1;
deathFrame = 1;
hp = 99;
maxhp = 99;
Instance of Symbol 246 MovieClip "ei" in Symbol 442 MovieClip Frame 5
onClipEvent (enterFrame) {
_x = (_x + 26);
if (this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) {
_root.player._xscale = -100;
if (_root.player._x < 570) {
_root.player._x = _root.player._x + (15 + _root.player.hp);
}
_root.giveHealth(-20);
}
if (770 < _x) {
_parent.gotoAndStop(1);
}
}
onClipEvent (load) {
_x = ((-_parent._x) * 2);
_parent._y = 200;
_parent._xscale = 100;
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
Symbol 442 MovieClip Frame 6
moveable = false;
hurtFrame = 1;
deathFrame = 3;
hp = 100 + (_root.difficulty * 20);
maxhp = 100 + (_root.difficulty * 20);
Instance of Symbol 278 MovieClip "ei" in Symbol 442 MovieClip Frame 6
onClipEvent (load) {
_parent._x = 650;
_parent._xscale = 100;
xSpeed = 25;
shooting = false;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - xSpeed;
if ((this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.player._xscale = -_parent._xscale;
if ((_root.player._x < 570) && (50 < _root.player._x)) {
_root.player._x = _root.player._x + ((15 + _root.player.hp) * (_parent._xscale / -100));
}
_root.giveHealth(-20);
}
i = 2;
while (4 >= i) {
if ((this.hitTest(_root["e" + i]) && (Math.abs(_parent._y - _root["e" + i]._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.hitEnemy(99, i);
_root["e" + i]._xscale = -_parent._xscale;
}
i++;
}
if ((((_parent._x < 200) && (-150 < _parent._x)) && (0.001 < Math.abs(xSpeed))) && (0 < _parent._xscale)) {
xSpeed = xSpeed - 1;
} else if ((((400 < _parent._x) && (_parent._x < 750)) && (0.001 < Math.abs(xSpeed))) && (_parent._xscale < 0)) {
xSpeed = xSpeed + 1;
} else if (0.001 >= Math.abs(xSpeed)) {
shooting = true;
gun.play();
}
if ((_parent._x < -320) && (0 < xSpeed)) {
_parent._xscale = -100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = -25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = -100;
_root["pro" + _root.findFreePro()]._x = -150;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
} else if ((780 < _parent._x) && (xSpeed < 0)) {
_parent._xscale = 100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = 25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = 100;
_root["pro" + _root.findFreePro()]._x = 850;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
}
Instance of Symbol 207 MovieClip "splat" in Symbol 442 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 443 MovieClip Frame 2
moveable = true;
hurtFrame = 19;
deathFrame = 25;
hp = 20 + (_root.difficulty * 5);
maxhp = 20 + (_root.difficulty * 5);
Instance of Symbol 198 MovieClip "ei" in Symbol 443 MovieClip Frame 2
onClipEvent (enterFrame) {
if (18 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-70 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -180) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 70) {
play();
_parent._x = _parent._x - (3 + (random(4) / 10));
moving = true;
} else if (180 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (3 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 3;
moving = true;
play();
} else if (Math.random() < 0.25) {
gunFlare.play();
}
if (moving != true) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 207 MovieClip "splat" in Symbol 443 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 443 MovieClip Frame 3
moveable = true;
hurtFrame = 27;
deathFrame = 40;
hp = 22 + (_root.difficulty * 8);
maxhp = 22 + (_root.difficulty * 5);
Instance of Symbol 221 MovieClip "ei" in Symbol 443 MovieClip Frame 3
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (16 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (1 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (1 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 1;
moving = true;
play();
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 1;
moving = true;
play();
}
if (moving != true) {
gotoAndStop (1);
}
if (((Math.random() < 0.02) && (40 < timeSince)) || (90 < timeSince)) {
timeSince = 0;
gotoAndPlay (17);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 443 MovieClip Frame 4
moveable = true;
hurtFrame = 22;
deathFrame = 27;
hp = 18 + (_root.difficulty * 10);
maxhp = 18 + (_root.difficulty * 5);
Instance of Symbol 238 MovieClip "ei" in Symbol 443 MovieClip Frame 4
onClipEvent (enterFrame) {
if (timeSince < 100) {
timeSince++;
}
if (10 >= _currentframe) {
_parent.swapDepths(Math.ceil(_parent._y * 10) + 8);
if ((moving == true) || (Math.random() < 0.1)) {
moving = false;
if (_parent._x >= _root.player._x) {
_parent._xscale = 100;
if (-40 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
} else if ((_root.player._x - _parent._x) < -50) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
}
} else {
_parent._xscale = -100;
if ((_root.player._x - _parent._x) < 40) {
play();
_parent._x = _parent._x - (5 + (random(4) / 10));
moving = true;
} else if (50 < (_root.player._x - _parent._x)) {
play();
_parent._x = _parent._x + (5 + (random(4) / 10));
moving = true;
}
}
if (_parent._y >= _root.player._y) {
if (_root.player._y < (_parent._y - 9)) {
_parent._y = _parent._y - 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
} else if ((_parent._y + 9) < _root.player._y) {
_parent._y = _parent._y + 5;
moving = true;
play();
} else if ((30 < timeSince) && (this.hitTest(_root.player))) {
timeSince = 0;
gotoAndPlay (11);
}
if ((moving != true) && (this._currentframe != 11)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (load) {
stop();
}
Symbol 443 MovieClip Frame 5
moveable = false;
hurtFrame = 1;
deathFrame = 1;
hp = 99;
maxhp = 99;
Instance of Symbol 246 MovieClip "ei" in Symbol 443 MovieClip Frame 5
onClipEvent (enterFrame) {
_x = (_x + 26);
if (this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) {
_root.player._xscale = -100;
if (_root.player._x < 570) {
_root.player._x = _root.player._x + (15 + _root.player.hp);
}
_root.giveHealth(-20);
}
if (770 < _x) {
_parent.gotoAndStop(1);
}
}
onClipEvent (load) {
_x = ((-_parent._x) * 2);
_parent._y = 200;
_parent._xscale = 100;
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
Symbol 443 MovieClip Frame 6
moveable = false;
hurtFrame = 1;
deathFrame = 3;
hp = 100 + (_root.difficulty * 20);
maxhp = 100 + (_root.difficulty * 20);
Instance of Symbol 278 MovieClip "ei" in Symbol 443 MovieClip Frame 6
onClipEvent (load) {
_parent._x = 650;
_parent._xscale = 100;
xSpeed = 25;
shooting = false;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - xSpeed;
if ((this.hitTest(_root.player) && (Math.abs(_parent._y - _root.player._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.player._xscale = -_parent._xscale;
if ((_root.player._x < 570) && (50 < _root.player._x)) {
_root.player._x = _root.player._x + ((15 + _root.player.hp) * (_parent._xscale / -100));
}
_root.giveHealth(-20);
}
i = 2;
while (4 >= i) {
if ((this.hitTest(_root["e" + i]) && (Math.abs(_parent._y - _root["e" + i]._y) < 30)) && (10 < Math.abs(xSpeed))) {
_root.hitEnemy(99, i);
_root["e" + i]._xscale = -_parent._xscale;
}
i++;
}
if ((((_parent._x < 200) && (-150 < _parent._x)) && (0.001 < Math.abs(xSpeed))) && (0 < _parent._xscale)) {
xSpeed = xSpeed - 1;
} else if ((((400 < _parent._x) && (_parent._x < 750)) && (0.001 < Math.abs(xSpeed))) && (_parent._xscale < 0)) {
xSpeed = xSpeed + 1;
} else if (0.001 >= Math.abs(xSpeed)) {
shooting = true;
gun.play();
}
if ((_parent._x < -320) && (0 < xSpeed)) {
_parent._xscale = -100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = -25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = -100;
_root["pro" + _root.findFreePro()]._x = -150;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
} else if ((780 < _parent._x) && (xSpeed < 0)) {
_parent._xscale = 100;
_parent._y = 200 + random(120);
_parent.swapDepths(Math.ceil((_parent._y - 20) * 10) + 8);
xSpeed = 25;
if (0 < _root.findFreePro()) {
_root["pro" + _root.findFreePro()]._xscale = 100;
_root["pro" + _root.findFreePro()]._x = 850;
_root["pro" + _root.findFreePro()]._y = _parent._y;
_root["pro" + _root.findFreePro()].gotoAndStop(7);
}
_root.driving = new Sound();
_root.driving.attachSound("driveby");
_root.driving.start();
}
}
Instance of Symbol 207 MovieClip "splat" in Symbol 443 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 444 MovieClip Frame 2
swapDepths((_y * 10) + 5);
Instance of Symbol 430 MovieClip in Symbol 444 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_parent._currentframe % 2) == 0) {
if (_parent.hitCore.hitTest(_root.player) && (Math.abs(_root.player._y - _parent._y) < 20)) {
_parent._xscale = _root.player._xscale;
_parent.nextFrame();
} else {
i = 1;
while (4 >= i) {
if (_parent.hitCore.hitTest(_root["e" + i]) && (Math.abs(_root["e" + i]._y - _parent._y) < 20)) {
_parent._xscale = -_root["e" + i]._xscale;
_parent.nextFrame();
}
i++;
}
}
}
if (_parent._x < ((_width / 2) - 20)) {
_parent.gotoAndStop(1);
}
}
Instance of Symbol 447 MovieClip in Symbol 448 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.levelScripts.l1.play();
}
Symbol 478 MovieClip Frame 119
stop();