Frame 1
_quality = "Low";
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
remainingBytes = totalBytes - loadedBytes;
percentDone = int((loadedBytes / totalBytes) * 100);
bar.gotoAndStop(percentDone);
if (_framesloaded == _totalframes) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
gotoAndPlay (4);
Frame 4
_root.gunTypeVar = 2;
Frame 364
Mouse.show();
Stage.showMenu = false;
Frame 513
stop();
_root.clickStart.onPress = function () {
gotoAndStop (514);
};
Frame 514
stop();
_quality = "Low";
Mouse.show();
if (_root.infiniteLives == true) {
_root.lives = 9;
} else {
_root.lives = 5;
}
_root.onEnterFrame = function () {
if (_root.charTypeVar == undefined) {
_root.charTypeVar = 1;
}
if (_root.gunTypeVar == undefined) {
_root.gunTypeVar = 1;
}
_root.chooseCharMC.gotoAndStop(_root.charTypeVar);
if (_root.charTypeVar <= 0) {
_root.charTypeVar = _root.chooseCharMC._totalframes;
}
if (_root.charTypeVar > _root.chooseCharMC._totalframes) {
_root.charTypeVar = 1;
}
_root.chooseGunMC.gotoAndStop(_root.gunTypeVar);
if (_root.gunTypeVar <= 0) {
_root.gunTypeVar = _root.chooseGunMC._totalframes;
}
if (_root.gunTypeVar > _root.chooseGunMC._totalframes) {
_root.gunTypeVar = 1;
}
};
_root.button1.onRelease = function () {
_root.button1.prevFrame();
gotoAndPlay (541);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
};
_root.button1.onReleaseOutside = function () {
_root.button1.prevFrame();
};
_root.button1.onPress = function () {
_root.button1.nextFrame();
};
_root.button2.onRelease = function () {
_root.button2.prevFrame();
gotoAndStop (1942);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.gridOn = false;
};
_root.button2.onReleaseOutside = function () {
_root.button2.prevFrame();
};
_root.button2.onPress = function () {
_root.button2.nextFrame();
};
_root.button3.onRelease = function () {
_root.button3.prevFrame();
_root.enterPassword._visible = true;
_root.button4._visible = true;
};
_root.button3.onReleaseOutside = function () {
_root.button3.prevFrame();
};
_root.button3.onPress = function () {
_root.button3.nextFrame();
};
_root.enterpassword.button4.onRelease = function () {
_root.enterpassword.button4.prevFrame();
if (_root.enterPassword.varPassword == "lake") {
gotoAndStop (515);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "sewer") {
gotoAndStop (518);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "shop") {
gotoAndStop (521);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "mountains") {
gotoAndStop (524);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "forest") {
gotoAndStop (527);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "beach") {
gotoAndStop (530);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "courtyard") {
gotoAndStop (533);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "castle") {
gotoAndStop (536);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "boss") {
gotoAndStop (539);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 20;
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
} else if (_root.enterPassword.varPassword == "credits") {
gotoAndPlay (1944);
} else if (_root.enterPassword.varPassword == "godmario") {
if (_root.godMode != true) {
_root.godMode = true;
_root.enterPassword.varResponse = "God mode on";
} else {
_root.godMode = false;
_root.enterPassword.varResponse = "God mode off";
}
} else if (_root.enterPassword.varPassword == "duckhunt") {
if (_root.infiniteAmmo != true) {
_root.infiniteAmmo = true;
_root.enterPassword.varResponse = "Infinite ammo on";
} else {
_root.infiniteAmmo = false;
_root.enterPassword.varResponse = "Infinite ammo off";
}
} else if (_root.enterPassword.varPassword == "getalife") {
if (_root.infiniteLives != true) {
_root.infiniteLives = true;
_root.enterPassword.varResponse = "Infinite lives on";
_root.lives = 9;
} else {
_root.infiniteLives = false;
_root.enterPassword.varResponse = "Infinite lives off";
_root.lives = 5;
}
} else {
_root.enterPassword.varResponse = "Invalid password";
}
};
_root.enterpassword.button4.onReleaseOutside = function () {
_root.enterpassword.button4.prevFrame();
};
_root.enterpassword.button4.onPress = function () {
_root.enterpassword.button4.nextFrame();
};
Instance of Symbol 86 MovieClip in Frame 514
on (release) {
_root.charTypeVar = _root.charTypeVar + 1;
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Instance of Symbol 89 MovieClip in Frame 514
on (release) {
_root.charTypeVar = _root.charTypeVar - 1;
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.charTypeVar == 1) {
_root.characterText = "Mario";
} else if (_root.charTypeVar == 2) {
_root.characterText = "Luigi";
} else if (_root.charTypeVar == 3) {
_root.characterText = "Mr. T.";
}
}
Instance of Symbol 86 MovieClip in Frame 514
on (release) {
_root.gunTypeVar = _root.gunTypeVar + 1;
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Instance of Symbol 89 MovieClip in Frame 514
on (release) {
_root.gunTypeVar = _root.gunTypeVar - 1;
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.gunTypeVar == 1) {
_root.gunText = "Shotgun";
} else if (_root.gunTypeVar == 2) {
_root.gunText = "Zap Red";
} else if (_root.gunTypeVar == 3) {
_root.gunText = "Zap Gray";
}
}
Instance of Symbol 108 MovieClip "enterPassword" in Frame 514
onClipEvent (load) {
_visible = false;
}
Frame 515
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
_root.ammo = 20;
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
} else {
_root.ammo = 20;
}
Number(_root.lives);
_root.score = 0;
_root.health = 6;
_root.exitingLevel = false;
Instance of Symbol 110 MovieClip "yGunMC" in Frame 515
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y - 40;
}
Instance of Symbol 118 MovieClip in Frame 515
onClipEvent (enterFrame) {
if (_root.health == 6) {
this.gotoAndStop(1);
} else if (_root.health == 5) {
this.gotoAndStop(2);
} else if (_root.health == 4) {
this.gotoAndStop(3);
} else if (_root.health == 3) {
this.gotoAndStop(4);
} else if (_root.health == 2) {
this.gotoAndStop(5);
} else if (_root.health == 1) {
this.gotoAndStop(6);
} else if (_root.health == 0) {
this.gotoAndStop(7);
}
if (_root.health >= 6) {
_root.health = 6;
}
if (_root.health <= 0) {
_root.health = 0;
}
}
Instance of Symbol 132 MovieClip "bullet" in Frame 515
onClipEvent (enterFrame) {
if (_root.isShooting == false) {
_y = (_root.player._y - 30);
_xscale = _root.player._xscale;
this.bullet.gotoAndStop(1);
if (_xscale == 100) {
_x = _root.player._x;
}
if (_xscale == -100) {
_x = _root.player._x;
}
}
if (_root.isShooting == true) {
this.gotoAndStop(_root.yGunPos);
this.bullet.play();
}
}
Instance of Symbol 134 MovieClip "bulletHitTest" in Frame 515
onClipEvent (enterFrame) {
if (_root.isBulletShooting == true) {
this.gotoAndStop(1);
_y = (_y + (_root.bullet.bullet._rotation / 1.4));
} else {
this.gotoAndStop(2);
_y = (((_root.bullet.bullet.bullet._y + _root.player._y) - 40) + _root.bullet.bullet._rotation);
this.bullet.gotoAndStop(1);
_xscale = _root.player._xscale;
}
if (_xscale >= 1) {
_x = (_root.bullet.bullet.bullet._x + _root.player._x);
}
if (_xscale <= -1) {
_x = ((-_root.bullet.bullet.bullet._x) + _root.player._x);
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.isBulletShooting = false;
}
}
Instance of Symbol 143 MovieClip "target" in Frame 515
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
onClipEvent (mouseDown) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.yGunPos <= 1) {
this.gotoAndStop(2);
} else if (_root.yGunPos >= 50) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 516
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 1;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 516
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 516
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 3);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 3);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 321 MovieClip "enemy1" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy3" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy2" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy4" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy5" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy6" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy8" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy10" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy11" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy9" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy7" in Frame 516
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Frame 517
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 518
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 519
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 2;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 519
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 519
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 518 MovieClip "enemy12" in Frame 519
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy11" in Frame 519
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy10" in Frame 519
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy6" in Frame 519
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy1" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy3" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy2" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy4" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy5" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy7" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy8" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy9" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy16" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy14" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy15" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy13" in Frame 519
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Frame 520
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 521
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 522
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 3;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 522
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 522
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + speed;
_root.backDrop2._x = _root.backDrop2._x + speed;
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - speed;
_root.backDrop2._x = _root.backDrop2._x - speed;
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 645 MovieClip "enemy1" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy3" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy2" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy4" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy5" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy6" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 645 MovieClip "enemy7" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy8" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy9" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy10" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy11" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy12" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy13" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy15" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy16" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy14" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy17" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy18" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 645 MovieClip "enemy20" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy21" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy22" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy23" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy24" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy19" in Frame 522
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Frame 523
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 524
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 525
verticalLevel = true;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 4;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 525
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 525
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.icicles._x = _root.icicles._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 325 MovieClip "enemy1" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy4" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy5" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy3" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy2" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy3" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy6" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy7" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy8" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy10" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy11" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy12" in Frame 525
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Frame 526
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 527
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 528
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 5;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 528
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 528
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 325 MovieClip "enemy1" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy2" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy3" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy4" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy5" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy6" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy7" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy9" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy8" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy10" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy11" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy12" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy13" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy14" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy15" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy16" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy17" in Frame 528
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Frame 529
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 530
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 531
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 6;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 531
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 531
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 645 MovieClip "enemy1" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy2" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 518 MovieClip "enemy3" in Frame 531
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy4" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 645 MovieClip "enemy5" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy6" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy7" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy8" in Frame 531
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy13" in Frame 531
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 645 MovieClip "enemy12" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy11" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy10" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 645 MovieClip "enemy9" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= 25) {
if (_root["enemy" + a].bomb.hitTest(this) && (_root["enemy" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy16" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 321 MovieClip "enemy17" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 325 MovieClip "enemy14" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 325 MovieClip "enemy15" in Frame 531
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Frame 532
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 533
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 534
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 7;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 534
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 534
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 20) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 532 MovieClip "enemy1" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy3" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy7" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy5" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy13" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 361 MovieClip "enemy14" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy2" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy4" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy6" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy8" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy9" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy10" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy11" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy12" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 981 MovieClip "enemy15" in Frame 534
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y > _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y <= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Frame 535
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 536
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
Frame 537
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 8;
stop();
_root.kills = 0;
Instance of Symbol 165 MovieClip "bottom" in Frame 537
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 274 MovieClip "player" in Frame 537
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 321 MovieClip "enemy1" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy2" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy3" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy4" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy5" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy7" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy6" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy8" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy9" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy10" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "enemy11" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
Instance of Symbol 532 MovieClip "enemy12" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy14" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 532 MovieClip "enemy15" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy13" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy19" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1068 MovieClip "enemy20" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 518 MovieClip "enemy16" in Frame 537
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 518 MovieClip "enemy17" in Frame 537
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 321 MovieClip "enemy18" in Frame 537
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
} else {
this._visible = false;
}
}
Frame 538
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.gainLife1 = false;
_root.gainLife2 = false;
_root.gainLife3 = false;
_root.gainLife4 = false;
_root.gainLife5 = false;
if (_root.lives <= 0) {
_root.lives = 5;
_root.gotoAndStop(_currentframe - 2);
} else {
_root.gotoAndStop(_currentframe - 2);
}
Frame 539
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 9;
stop();
_root.kills = 0;
_root.bossDead = false;
_root.bossBegin = false;
_root.bossHealth = Number(10);
Instance of Symbol 1267 MovieClip "window1" in Frame 539
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.bossBegin == true) && (_root.bossBegin2 == true)) {
this.play();
_root.bossBegin2 = false;
}
if (this.dog2.hitTest(_root.bulletHitTest)) {
if (this.dog2._currentframe <= 10) {
this.dog2.gotoAndPlay("hit");
_root.bossHealth = _root.bossHealth - Number(1);
}
}
if ((((_root.bossHealth <= 0) && (_root.player.isDead == false)) && (_root.bossDead == true)) && (_root.endBoss != true)) {
_root.beatLevel.gotoAndPlay(2);
_root.endBoss = true;
}
}
Instance of Symbol 1267 MovieClip "window2" in Frame 539
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.bossBegin == true) && (_root.bossBegin2 == true)) {
this.play();
_root.bossBegin2 = false;
}
if (this.dog2.hitTest(_root.bulletHitTest)) {
if (this.dog2._currentframe <= 10) {
this.dog2.gotoAndPlay("hit");
_root.bossHealth = _root.bossHealth - Number(1);
}
}
if ((((_root.bossHealth <= 0) && (_root.player.isDead == false)) && (_root.bossDead == true)) && (_root.endBoss != true)) {
_root.beatLevel.gotoAndPlay(2);
_root.endBoss = true;
}
}
Instance of Symbol 1267 MovieClip "window3" in Frame 539
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.bossBegin == true) && (_root.bossBegin2 == true)) {
this.play();
_root.bossBegin2 = false;
}
if (this.dog2.hitTest(_root.bulletHitTest)) {
if (this.dog2._currentframe <= 10) {
this.dog2.gotoAndPlay("hit");
_root.bossHealth = _root.bossHealth - Number(1);
}
}
if ((((_root.bossHealth <= 0) && (_root.player.isDead == false)) && (_root.bossDead == true)) && (_root.endBoss != true)) {
_root.beatLevel.gotoAndPlay(2);
_root.endBoss = true;
}
}
Instance of Symbol 274 MovieClip "player" in Frame 539
onClipEvent (load) {
_quality = "High";
var scale = _xscale;
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var scale = _xscale;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.damage = 1;
_root.aimShoot = false;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 6;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
v = 1;
while (v <= _root.totalVerticalPlatforms) {
if ((_root.ground["downPlatform" + v].hitTest(_x, _y + 3, true) && (!_root.ground["downPlatform" + v].hitTest(_x, _y, true))) && (_root.ground["downPlatform" + v].speed > 0)) {
_root.player._y = _root.player._y + _root.ground["downPlatform" + v].speed;
_root.player.grav = 0;
}
v++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x, _y + 3, true)) {
if (_root.ground._y >= -96) {
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - _root.ground["vPlatform" + c].speed;
b++;
}
_root.ground._y = _root.ground._y - _root.ground["vPlatform" + c].speed;
_root.groundTop._y = _root.groundTop._y - _root.ground["vPlatform" + c].speed;
_root.icicles._y = _root.icicles._y - _root.ground["vPlatform" + c].speed;
_root.items._y = _root.items._y - _root.ground["vPlatform" + c].speed;
_root.bottom._y = _root.bottom._y - _root.ground["vPlatform" + c].speed;
}
}
c++;
}
if (_root.ground._y >= -96) {
_y = (_y - (grav / 2.5));
b = 0;
while (b < 25) {
_root["enemy" + b]._y = _root["enemy" + b]._y - (grav / 2.5);
b++;
}
_root.ground._y = _root.ground._y - (grav / 2.5);
_root.groundTop._y = _root.groundTop._y - (grav / 2.5);
_root.icicles._y = _root.icicles._y - (grav / 2.5);
_root.items._y = _root.items._y - (grav / 2.5);
_root.bottom._y = _root.bottom._y - (grav / 2.5);
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
if ((_root.ground.exitLevelMC.hitTest(_x, _y + 3, true) && (_root.player._x >= ((_root.ground.exitLevelMC._x - 9) + _root.ground._x))) && (_root.player._x <= ((_root.ground.exitLevelMC._x + 9) + _root.ground._x))) {
if (_root.exitingLevel == false) {
_root.yPosition = _y;
_root.exitingLevel = true;
}
}
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
shootingGunSound.start();
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
onClipEvent (enterFrame) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
}
if ((_root.health <= 0) && (isDead != true)) {
_root.health = 0;
_root.lives = _root.lives - 1;
isDead = true;
}
if (isDead == true) {
if (_root.lives > 0) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
_root.gameOver.gotoAndStop(2);
} else {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
if (_root.gameOver.gameOverTimer.timer == true) {
_root.gameOver.gotoAndStop(4);
} else {
_root.gameOver.gotoAndStop(3);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
_root.items._x = _root.items._x + speed;
_root.scrollingMC1._x = _root.scrollingMC1._x + speed;
_root.scrollingMC2._x = _root.scrollingMC2._x + speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x + speed;
b++;
}
}
}
if (_root.ground._x > ((-_root.ground._width) + 720)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.items._x = _root.items._x - speed;
_root.scrollingMC1._x = _root.scrollingMC1._x - speed;
_root.scrollingMC2._x = _root.scrollingMC2._x - speed;
b = 0;
while (b < 25) {
_root["enemy" + b]._x = _root["enemy" + b]._x - speed;
b++;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 1284 MovieClip in Frame 539
onClipEvent (enterFrame) {
if ((this.fireball.hitTest(_root.player) && (_root.damage == 1)) && (_root.bossHealth > 0)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Frame 540
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
if (_root.lives <= 0) {
_root.prevFrame();
_root.lives = 5;
} else {
_root.prevFrame();
}
Frame 541
_root.clickStart2.onPress = function () {
stopAllSounds();
gotoAndStop (515);
};
Frame 1363
stopAllSounds();
gotoAndStop (515);
Frame 1364
Mouse.show();
stopAllSounds();
_root.endBoss = false;
Instance of Symbol 1354 MovieClip in Frame 1417
/* no clip actions */
Frame 1941
stopAllSounds();
gotoAndPlay (1944);
Frame 1942
stop();
_quality = "High";
import._visible = true;
maxGround = 100;
maxEnemies = 30;
maxItems = 20;
scrollAmount = 0;
maxLevelWidth = 4000;
levelScrollAmount = 0;
editor = true;
if (currentBGTile == undefined) {
currentBGTile = 1;
}
exitButton.onRelease = function () {
gotoAndStop (514);
};
characterStart.gotoAndStop(_root.charTypeVar);
characterStart.gun.gotoAndStop(_root.gunTypeVar);
_root.onEnterFrame = function () {
_root.backDrop.gotoAndStop(currentBGTile);
if (currentBGTile <= 0) {
currentBGTile = 1;
} else if (_root.currentBGTile == 1) {
backgroundText.text = "None";
} else if (_root.currentBGTile == 2) {
backgroundText.text = "Lake";
} else if (_root.currentBGTile == 3) {
backgroundText.text = "7/11";
} else if (_root.currentBGTile == 4) {
backgroundText.text = "Mountain";
} else if (_root.currentBGTile == 5) {
backgroundText.text = "Forest";
} else if (_root.currentBGTile == 6) {
backgroundText.text = "Sewer";
} else if (_root.currentBGTile == 7) {
backgroundText.text = "Beach";
} else if (_root.currentBGTile == 8) {
backgroundText.text = "Courtyard";
} else if (_root.currentBGTile == 9) {
backgroundText.text = "Castle";
} else if (_root.currentBGTile == 10) {
backgroundText.text = "City";
} else if (_root.currentBGTile == 11) {
backgroundText.text = "Street";
} else if (_root.currentBGTile == 12) {
backgroundText.text = "Sewer 2";
} else if (_root.currentBGTile == 13) {
backgroundText.text = "Sewer 3";
} else if (_root.currentBGTile >= 14) {
currentBGTile = 13;
}
_root.bgColor.gotoAndStop(currentBGColorTile);
if (currentBGColorTile <= 0) {
currentBGColorTile = 1;
} else if (_root.currentBGColorTile == 1) {
backgroundColorText.text = "White";
} else if (_root.currentBGColorTile == 2) {
backgroundColorText.text = "Black";
} else if (_root.currentBGColorTile == 3) {
backgroundColorText.text = "Sky";
} else if (_root.currentBGColorTile == 4) {
backgroundColorText.text = "Dark Blue";
} else if (_root.currentBGColorTile == 5) {
backgroundColorText.text = "Sunset";
} else if (_root.currentBGColorTile == 6) {
backgroundColorText.text = "Sky Blue";
} else if (_root.currentBGColorTile == 7) {
backgroundColorText.text = "Grey";
} else if (_root.currentBGColorTile == 8) {
backgroundColorText.text = "Purple";
} else if (_root.currentBGColorTile == 9) {
backgroundColorText.text = "Green";
} else if (_root.currentBGColorTile == 10) {
backgroundColorText.text = "7/11";
} else if (_root.currentBGColorTile == 11) {
backgroundColorText.text = "Forest";
} else if (_root.currentBGColorTile == 12) {
backgroundColorText.text = "Beach";
} else if (_root.currentBGColorTile == 13) {
backgroundColorText.text = "Courtyard";
} else if (_root.currentBGColorTile == 14) {
backgroundColorText.text = "Lake";
} else if (_root.currentBGColorTile >= 15) {
currentBGColorTile = 14;
}
};
exportButton.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
status.text = "Code exported successfully.";
};
importButton.onRelease = function () {
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level imported.";
} else {
status.text = "Invalid code.";
}
};
playButton.onRelease = function () {
import.text = "";
import.text = import.text + (("characterStartX=" + _root.characterStart._x) + ";");
import.text = import.text + (("characterStartY=" + _root.characterStart._y) + ";");
import.text = import.text + (("scrollAmount=" + _root.scrollAmount) + ";");
import.text = import.text + (("groundWidth=" + _root.ground._width) + ";");
import.text = import.text + (("currentBGTile=" + _root.currentBGTile) + ";");
import.text = import.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
import.text = import.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
import.text = import.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
import.text = import.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
import.text = import.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
import.text = import.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
import.text = import.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
import.text = import.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
import.text = import.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
import.text = import.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
import.text = import.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
import.text = import.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
import.text = import.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
import.text = import.text + "currentTileNum=0;";
} else {
import.text = import.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
import.text = import.text + "currentTileNumRemoved=0;";
if (_root.currentEnemyNum == undefined) {
import.text = import.text + "currentEnemyNum=0;";
} else {
import.text = import.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
import.text = import.text + "currentEnemyNumRemoved=0;";
if (_root.currentItemNum == undefined) {
import.text = import.text + "currentItemNum=0;";
} else {
import.text = import.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
import.text = import.text + "currentItemNumRemoved=0;";
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._visible = false;
duplicateMovieClip (_root.playerCopy, "player", 0);
_root.player._x = characterStartX + scrollAmount;
_root.player._y = characterStartY + _root.player._height;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"] + scrollAmount;
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemyType" + [_root[("enemyVariable" + e) + "currentFrame"]], ["enemyMC" + e], e + g);
_root["enemyMC" + e]._x = _root[("enemyVariable" + e) + "x"] + scrollAmount;
_root["enemyMC" + e]._y = _root[("enemyVariable" + e) + "y"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip ("_root.itemType" + [_root[("itemVariable" + i) + "currentFrame"]], ["item" + i], (i + e) + g);
_root["item" + i]._x = _root[("itemVariable" + i) + "x"] + scrollAmount;
_root["item" + i]._y = _root[("itemVariable" + i) + "y"];
i++;
}
scrollAmount = 0;
gotoAndStop (1943);
};
saveLevel = SharedObject.getLocal("flashcookie");
saveButton.onRelease = function () {
saveLoadInterface.gotoAndStop(2);
saveLoadInterface.slot1.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
saveLevel.data.importVariable1 = export.text;
status.text = "Level 1 saved.";
saveLoadInterface.gotoAndStop(1);
};
saveLoadInterface.slot2.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
saveLevel.data.importVariable2 = export.text;
status.text = "Level 2 saved.";
saveLoadInterface.gotoAndStop(1);
};
saveLoadInterface.slot3.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
saveLevel.data.importVariable3 = export.text;
status.text = "Level 3 saved.";
saveLoadInterface.gotoAndStop(1);
};
saveLoadInterface.slot4.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
saveLevel.data.importVariable4 = export.text;
status.text = "Level 4 saved.";
saveLoadInterface.gotoAndStop(1);
};
saveLoadInterface.slot5.onRelease = function () {
export.text = "";
export.text = export.text + (("characterStartX=" + _root.characterStart._x) + ";");
export.text = export.text + (("characterStartY=" + _root.characterStart._y) + ";");
export.text = export.text + (("scrollAmount=" + _root.scrollAmount) + ";");
export.text = export.text + (("groundWidth=" + _root.ground._width) + ";");
export.text = export.text + (("currentBGTile=" + _root.currentBGTile) + ";");
export.text = export.text + (("currentBGColorTile=" + _root.currentBGColorTile) + ";");
g = 1;
while (g <= _root.currentTileNum) {
export.text = export.text + (((("groundVariable" + g) + "x=") + _root.ground["groundMC" + g]._x) + ";");
export.text = export.text + (((("groundVariable" + g) + "y=") + _root.ground["groundMC" + g]._y) + ";");
export.text = export.text + (((("groundVariable" + g) + "currentFrame=") + _root.ground["groundMC" + g].typeNum) + ";");
export.text = export.text + (((("groundVariable" + g) + "idNumber=") + _root.ground["groundMC" + g].idNumber) + ";");
g++;
}
e = 1;
while (e <= _root.currentEnemyNum) {
export.text = export.text + (((("enemyVariable" + e) + "x=") + _root["newEnemy" + e]._x) + ";");
export.text = export.text + (((("enemyVariable" + e) + "y=") + _root["newEnemy" + e]._y) + ";");
export.text = export.text + (((("enemyVariable" + e) + "currentFrame=") + _root["newEnemy" + e].typeNum) + ";");
export.text = export.text + (((("enemyVariable" + e) + "idNumber=") + _root["newEnemy" + e].idNumber) + ";");
e++;
}
i = 1;
while (i <= _root.currentItemNum) {
export.text = export.text + (((("itemVariable" + i) + "x=") + _root.items["itemsMC" + i]._x) + ";");
export.text = export.text + (((("itemVariable" + i) + "y=") + _root.items["itemsMC" + i]._y) + ";");
export.text = export.text + (((("itemVariable" + i) + "currentFrame=") + _root.items["itemsMC" + i].typeNum) + ";");
export.text = export.text + (((("itemVariable" + i) + "idNumber=") + _root.items["itemsMC" + i].idNumber) + ";");
i++;
}
if (_root.currentTileNum == undefined) {
export.text = export.text + "currentTileNum=0;";
} else {
export.text = export.text + (("currentTileNum=" + _root.currentTileNum) + ";");
}
if (_root.currentTileNumRemoved == undefined) {
export.text = export.text + "currentTileNumRemoved=0;";
} else {
export.text = export.text + (("currentTileNumRemoved=" + _root.currentTileNumRemoved) + ";");
}
if (_root.currentEnemyNum == undefined) {
export.text = export.text + "currentEnemyNum=0;";
} else {
export.text = export.text + (("currentEnemyNum=" + _root.currentEnemyNum) + ";");
}
if (_root.currentEnemyNumRemoved == undefined) {
export.text = export.text + "currentEnemyNumRemoved=0;";
} else {
export.text = export.text + (("currentEnemyNumRemoved=" + _root.currentEnemyNumRemoved) + ";");
}
if (_root.currentItemNum == undefined) {
export.text = export.text + "currentItemNum=0;";
} else {
export.text = export.text + (("currentItemNum=" + _root.currentItemNum) + ";");
}
if (_root.currentItemNumRemoved == undefined) {
export.text = export.text + "currentItemNumRemoved=0;";
} else {
export.text = export.text + (("currentItemNumRemoved=" + _root.currentItemNumRemoved) + ";");
}
saveLevel.data.importVariable5 = export.text;
status.text = "Level 5 saved.";
saveLoadInterface.gotoAndStop(1);
};
};
loadButton.onRelease = function () {
saveLoadInterface.gotoAndStop(2);
saveLoadInterface.slot1.onRelease = function () {
import.text = saveLevel.data.importVariable1;
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level 1 loaded.";
saveLoadInterface.gotoAndStop(1);
} else {
status.text = "Invalid code.";
}
};
saveLoadInterface.slot2.onRelease = function () {
import.text = saveLevel.data.importVariable2;
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level 2 loaded.";
saveLoadInterface.gotoAndStop(1);
} else {
status.text = "Invalid code.";
}
};
saveLoadInterface.slot3.onRelease = function () {
import.text = saveLevel.data.importVariable3;
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level 3 loaded.";
saveLoadInterface.gotoAndStop(1);
} else {
status.text = "Invalid code.";
}
};
saveLoadInterface.slot4.onRelease = function () {
import.text = saveLevel.data.importVariable4;
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level 4 loaded.";
saveLoadInterface.gotoAndStop(1);
} else {
status.text = "Invalid code.";
}
};
saveLoadInterface.slot5.onRelease = function () {
import.text = saveLevel.data.importVariable5;
if (import.text != "") {
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g + _root.currentTileNumRemoved);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["newEnemy" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e + _root.currentEnemyNumRemoved);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root.items["itemsMC" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i + _root.currentItemNumRemoved);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
status.text = "Level 5 loaded.";
saveLoadInterface.gotoAndStop(1);
} else {
status.text = "Invalid code.";
}
};
};
Instance of Symbol 1894 MovieClip "ground" in Frame 1942
onClipEvent (enterFrame) {
_y = 0;
this.groundMCDefault._visible = false;
}
Instance of Symbol 1896 MovieClip "items" in Frame 1942
onClipEvent (enterFrame) {
_y = 0;
this.itemsMCDefault._visible = false;
}
Instance of Symbol 1898 MovieClip "characterStart" in Frame 1942
onClipEvent (load) {
grid = 16;
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
startDrag ("");
_root.isDragging = true;
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 41 MovieClip [enemy1] "enemy2" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 2;
if (this._name == "enemy2") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 27 MovieClip [enemy2] "enemy3" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 3;
if (this._name == "enemy3") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 1929 MovieClip "enemy4" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 4;
if (this._name == "enemy4") {
_visible = false;
}
_x = (Math.round(_x / grid) * grid);
_y = ((Math.round(_y / grid) * grid) + 5.5);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
this.cannon.gotoAndStop(50);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = ((Math.round(_y / grid) * grid) + 5.5);
}
}
Instance of Symbol 1943 MovieClip "enemy1" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 1;
if (this._name == "enemy1") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 1929 MovieClip "enemy5" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 5;
if (this._name == "enemy5") {
_visible = false;
}
_x = (Math.round(_x / grid) * grid);
_y = ((Math.round(_y / grid) * grid) + 5.5);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
this.cannon.gotoAndStop(50);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = ((Math.round(_y / grid) * grid) + 5.5);
}
}
Instance of Symbol 1947 MovieClip "enemy6" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 6;
if (this._name == "enemy6") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 1957 MovieClip "enemy7" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 7;
if (this._name == "enemy7") {
_visible = false;
}
_x = ((Math.round(_x / grid) * grid) - 2);
_y = ((Math.round(_y / grid) * grid) - 4);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = ((Math.round(_x / grid) * grid) - 2);
_y = ((Math.round(_y / grid) * grid) - 4);
}
}
Instance of Symbol 1998 MovieClip "enemy8" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 8;
if (this._name == "enemy8") {
_visible = false;
}
_x = ((Math.round(_x / grid) * grid) - 1.2);
_y = ((Math.round(_y / grid) * grid) + 1.4);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = ((Math.round(_x / grid) * grid) - 1.2);
_y = ((Math.round(_y / grid) * grid) + 1.4);
}
}
Instance of Symbol 1998 MovieClip "enemy9" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 9;
if (this._name == "enemy9") {
_visible = false;
}
_x = ((Math.round(_x / grid) * grid) + 1.4);
_y = ((Math.round(_y / grid) * grid) - 1.2);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = ((Math.round(_x / grid) * grid) + 1.4);
_y = ((Math.round(_y / grid) * grid) - 1.2);
}
}
Instance of Symbol 1998 MovieClip "enemy10" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 10;
if (this._name == "enemy10") {
_visible = false;
}
_x = ((Math.round(_x / grid) * grid) - 1.4);
_y = ((Math.round(_y / grid) * grid) + 1.2);
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = ((Math.round(_x / grid) * grid) - 1.4);
_y = ((Math.round(_y / grid) * grid) + 1.2);
}
}
Instance of Symbol 2002 MovieClip "enemy11" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 11;
if (this._name == "enemy11") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 2002 MovieClip "enemy12" in Frame 1942
onClipEvent (load) {
grid = 16;
enemyType = 12;
if (this._name == "enemy12") {
_visible = false;
}
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 3) {
e = 0;
while (e < _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
h = 0;
while (h < _root.currentEnemyNum) {
if (h >= this.idNumber) {
_root["newEnemy" + (h + 1)].idNumber = _root["newEnemy" + (h + 1)].idNumber - 1;
_root["newEnemy" + (h + 1)]._name = ["newEnemy" + h];
}
h++;
}
}
e++;
}
_root.currentEnemyNum = _root.currentEnemyNum - 1;
_root.currentEnemyNumRemoved = _root.currentEnemyNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_root.isDragging = false;
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
}
}
Instance of Symbol 2009 MovieClip in Frame 1942
onClipEvent (load) {
_root.mode = 1;
_root.isDragging = false;
}
on (press) {
_root.mode = 1;
}
onClipEvent (enterFrame) {
if (_root.mode == 1) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
}
Instance of Symbol 2011 MovieClip in Frame 1942
on (press) {
if (!(_root.typeMode === 2)) {
_root.mode = 2;
}
}
onClipEvent (enterFrame) {
if (!(_root.typeMode === 2)) {
this._alpha = 100;
if (_root.mode == 2) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
} else {
this._alpha = 50;
if (_root.mode == 2) {
_root.mode = 1;
this.button.gotoAndStop(1);
}
}
}
Instance of Symbol 2013 MovieClip in Frame 1942
on (press) {
_root.mode = 3;
}
onClipEvent (enterFrame) {
if (_root.mode == 3) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
}
Instance of Symbol 2016 MovieClip in Frame 1942
onClipEvent (load) {
_root.typeMode = 1;
_root.isDragging = false;
}
on (press) {
_root.typeMode = 1;
}
onClipEvent (enterFrame) {
if (_root.typeMode == 1) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
}
Instance of Symbol 2018 MovieClip in Frame 1942
on (press) {
_root.typeMode = 2;
}
onClipEvent (enterFrame) {
if (_root.typeMode == 2) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
}
Instance of Symbol 2020 MovieClip in Frame 1942
on (press) {
_root.typeMode = 3;
}
onClipEvent (enterFrame) {
if (_root.typeMode == 3) {
this.button.gotoAndStop(2);
} else {
this.button.gotoAndStop(1);
}
}
Instance of Symbol 2034 MovieClip "tilesMC" in Frame 1942
onClipEvent (enterFrame) {
if (_root.typeMode == 1) {
this.gotoAndStop(1);
} else if (_root.typeMode == 2) {
this.gotoAndStop(2);
} else if (_root.typeMode == 3) {
this.gotoAndStop(3);
}
this.MC.gotoAndStop(_root.currentTile);
if (_root.currentTile <= 1) {
_root.currentTile = 1;
}
if (_root.currentTile >= this.MC._totalFrames) {
_root.currentTile = this.MC._totalFrames;
}
}
onClipEvent (enterFrame) {
e = 1;
while (e <= _root.currentEnemyNum) {
if (!_root["newEnemy" + e]) {
_root["newEnemy" + (e + 1)]._name = ["newEnemy" + e];
}
e++;
}
}
Instance of Symbol 2037 MovieClip "create" in Frame 1942
on (press) {
if (_root.typeMode == 1) {
_root.currentTileNum = _root.currentTileNum + 1;
if (_root.currentTileNum > _root.maxGround) {
_root.status.text = ("Max # of tiles reached. (" + _root.maxGround) + ")";
_root.currentTileNum = _root.maxGround;
} else {
_root.status.text = "Terrain created successfully.";
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + _root.currentTileNum], _root.currentTileNum + _root.currentTileNumRemoved);
_root.ground["groundMC" + _root.currentTileNum]._x = 320;
_root.ground["groundMC" + _root.currentTileNum]._y = 256;
_root.ground["groundMC" + _root.currentTileNum].typeNum = _root.currentTile;
_root.ground["groundMC" + _root.currentTileNum].idNumber = _root.currentTileNum;
_root.ground["groundMC" + _root.currentTileNum].gotoAndStop(_root.currentTile);
}
} else if (_root.typeMode == 2) {
_root.currentEnemyNum = _root.currentEnemyNum + 1;
if (_root.currentEnemyNum > _root.maxEnemies) {
_root.status.text = ("Max # of enemies reached. (" + _root.maxEnemies) + ")";
_root.currentEnemyNum = _root.maxEnemies;
} else {
_root.status.text = "Enemy created successfully.";
duplicateMovieClip ("_root.enemy" + _root.currentTile, ["newEnemy" + _root.currentEnemyNum], _root.currentEnemyNum + _root.currentEnemyNumRemoved);
_root["newEnemy" + _root.currentEnemyNum]._x = 320;
_root["newEnemy" + _root.currentEnemyNum]._y = 256;
_root["newEnemy" + _root.currentEnemyNum].typeNum = _root.currentTile;
_root["newEnemy" + _root.currentEnemyNum].idNumber = _root.currentEnemyNum;
}
} else if (_root.typeMode == 3) {
_root.currentItemNum = _root.currentItemNum + 1;
if (_root.currentItemNum > _root.maxItems) {
_root.status.text = ("Max # of items reached. (" + _root.maxItems) + ")";
_root.currentItemNum = _root.maxItems;
} else {
_root.status.text = "Item created successfully.";
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + _root.currentItemNum], _root.currentItemNum + _root.currentItemNumRemoved);
_root.items["itemsMC" + _root.currentItemNum]._x = 320;
_root.items["itemsMC" + _root.currentItemNum]._y = 256;
_root.items["itemsMC" + _root.currentItemNum].typeNum = _root.currentTile;
_root.items["itemsMC" + _root.currentItemNum].idNumber = _root.currentItemNum;
_root.items["itemsMC" + _root.currentItemNum].gotoAndStop(_root.currentTile);
}
}
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2043 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile + 12;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2043 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile - 12;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2047 MovieClip "exportButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2049 MovieClip "importButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2055 MovieClip "levelBar" in Frame 1942
onClipEvent (load) {
grid = _root.maxLevelWidth / 640;
_root.scrollAmount = Math.round(((this._x - 40) * grid) / 32) * 32;
}
onClipEvent (enterFrame) {
if (this._currentFrame == 2) {
this._x = _root._xmouse;
}
if (_x <= 40) {
_x = 40;
}
if (_x >= 680) {
_x = 680;
}
_root.scrollAmount = Math.round(((this._x - 40) * grid) / 32) * 32;
_root.increment = _root.scrollAmount - _root.currentXPos;
_root.currentXPos = _root.scrollAmount;
}
on (press) {
_root.isDragging = true;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
_root.isDragging = false;
}
Instance of Symbol 2058 MovieClip "playButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentBGTile = _root.currentBGTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentBGTile = _root.currentBGTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentBGColorTile = _root.currentBGColorTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2040 MovieClip in Frame 1942
on (press) {
_root.currentBGColorTile = _root.currentBGColorTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2066 MovieClip in Frame 1942
onClipEvent (load) {
press = false;
}
onClipEvent (enterFrame) {
if (press == false) {
if (_root.gridOn == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
}
on (press) {
press = true;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on (release, releaseOutside) {
if (_root.gridOn == true) {
_root.gridOn = false;
} else {
_root.gridOn = true;
}
press = false;
}
Instance of Symbol 2068 MovieClip "exitButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
a = 1;
while (a <= _root.currentEnemyNum) {
removeMovieClip(_root["newEnemy" + a]);
a++;
}
_root.currentEnemyNum = 0;
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
this.nextFrame();
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2070 MovieClip "loadButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
_root.saveLoadMode = 2;
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2072 MovieClip "saveButton" in Frame 1942
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
_root.saveLoadMode = 1;
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Instance of Symbol 2074 MovieClip "enemyType2" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var isDead = false;
var jumpHeight = 6;
}
onClipEvent (enterFrame) {
if (isDead == false) {
if ((_x <= -128) || (_x >= 848)) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
if (isDead == true) {
if ((_x <= -128) || (_x >= 848)) {
_visible = false;
} else {
_visible = true;
}
}
if (_root.editor == false) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if ((_x < 1500) && (_x > -1500)) {
grav = grav + 0.2;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this.jump == true) {
grav = -jumpHeight;
this.jump = false;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_root.player._x < this._x) && (this.isWalking == true)) {
_xscale = 100;
} else if ((_root.player._x > this._x) && (this.isWalking == true)) {
_xscale = -100;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_root.isBulletShooting = false;
}
}
}
}
Instance of Symbol 2075 MovieClip "enemyType3" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 10;
}
onClipEvent (enterFrame) {
if (isDead == false) {
if ((_x <= -128) || (_x >= 848)) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
if (isDead == true) {
if ((_x <= -128) || (_x >= 848)) {
_visible = false;
} else {
_visible = true;
}
}
if (_root.editor == false) {
if (this.isWalking == false) {
this.flame.gotoAndStop(2);
this.flame._x = this.flame._x - 10;
}
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
this.flame.gotoAndStop(1);
this.isWalking = true;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.enemy.gotoAndPlay(270);
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else {
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x - speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (this.isWalking == true) {
_x = (_x + speed);
if ((jump == false) && (grav == 0)) {
if (((_root.player._x + 50) < this._x) || ((_root.player._x - 50) > this._x)) {
jump = true;
}
}
}
}
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if ((_x < 848) && (_x > -128)) {
grav = grav + 0.5;
_y = (_y + grav);
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
stand = true;
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((jump == true) && (stand == true)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (((_root.player._x + 50) < this._x) && (this.isWalking == true)) {
_xscale = 100;
if ((_x < 750) && (_x > -30)) {
_x = (_x - 2);
}
} else if (((_root.player._x - 50) > this._x) && (this.isWalking == true)) {
_xscale = -100;
if ((_x < 750) && (_x > -30)) {
_x = (_x + 2);
}
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 200;
_root.isBulletShooting = false;
}
}
}
}
}
Instance of Symbol 2077 MovieClip "enemyType4" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (isDead == false) {
if ((_x <= -1500) || (_x >= 1500)) {
_visible = false;
} else {
_visible = true;
}
}
if (isDead == true) {
if ((_x <= -128) || (_x >= 848)) {
_visible = false;
} else {
_visible = true;
}
}
if (_root.editor == false) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 848) && (_x > -128)) {
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
}
}
}
Instance of Symbol 2077 MovieClip "enemyType5" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 1;
}
onClipEvent (enterFrame) {
if (isDead == false) {
if ((_x <= -1500) || (_x >= 1500)) {
_visible = false;
} else {
_visible = true;
}
}
if (isDead == true) {
if ((_x <= -128) || (_x >= 848)) {
_visible = false;
} else {
_visible = true;
}
}
if (_root.editor == false) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(101);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 848) && (_x > -128)) {
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon)) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
}
}
}
Instance of Symbol 1947 MovieClip "enemyType6" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 4;
var ex = 5;
var jump = false;
var stand = false;
var isDead = false;
var jumpHeight = 13;
_xscale = 100;
}
onClipEvent (enterFrame) {
if ((_x <= -128) || (_x >= 848)) {
_visible = false;
} else {
_visible = true;
}
if (_root.editor == false) {
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(1);
stand = true;
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
this.enemy.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + _width) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + _width) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + _width) + ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = 100;
jump = false;
}
}
if ((_root.ground.hitTest((_x - _width) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - _width) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - _width) - ex, _y - _height, true))) {
if (((jump == false) && (grav == 0)) && (isDead == false)) {
jump = true;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
if ((grav >= 0) && (isDead == false)) {
_xscale = -100;
jump = false;
}
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (((jump == true) && (stand == true)) && (isDead == false)) {
jump = false;
stand = false;
grav = -jumpHeight;
}
if (isDead == true) {
this.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
speed = speed - 0.05;
} else if (_xscale == -100) {
_x = (_x + speed);
speed = speed - 0.05;
}
if (speed <= 0) {
speed = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
speed = 0;
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
speed = 0;
}
} else {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if ((jump == false) && (grav == 0)) {
jump = true;
}
}
if ((_x < 960) && (_x > -240)) {
grav = grav + 0.5;
_y = (_y + grav);
if (_xscale == 100) {
_x = (_x - speed);
} else if (_xscale == -100) {
_x = (_x + speed);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 150;
_root.isBulletShooting = false;
}
}
}
}
}
Instance of Symbol 1957 MovieClip "enemyType7" in Frame 1942
onClipEvent (load) {
var grav = 0;
var bombGrav = 0;
var speed = 0;
var isDead = false;
var ex = 10;
var heightVar = this.enemy._height;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (this.bomb.isDropped == 1) {
this.bomb._y = 0;
bombGrav = 0;
this.bomb.gotoAndStop(2);
}
if (this.bomb.isDropped == 2) {
this.bomb.gotoAndStop(2);
bombGrav = bombGrav + 0.3;
this.bomb._y = this.bomb._y + bombGrav;
}
if ((_root.player.hitTest(this.bomb) && (_root.damage == 1)) && (this.bomb.isDropped == 2)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 3;
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (((this.bomb._y + this._y) > 540) && (this.bomb.isDropped == 2)) {
this.bomb.gotoAndPlay(3);
bombGrav = 0;
}
if (isDead == true) {
speed = 0;
if (this.enemy._rotation > 0.3) {
this.enemy._rotation = this.enemy._rotation - 0.5;
}
if (this.enemy._rotation < 0.3) {
this.enemy._rotation = this.enemy._rotation + 0.5;
}
if ((this.enemy._rotation <= 0.3) && (this.enemy._rotation >= -0.3)) {
this.enemy._rotation = 0;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 0.3;
_y = (_y + grav);
this.bomb._y = this.bomb._y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndStop(5);
}
if (_y >= 600) {
_y = 600;
grav = 0;
}
} else {
if (_root.ground.hitTest((_x + (_width / 2)) + ex, _y, true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - heightVar, true))) {
if (this.enemy._rotation >= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if (_root.ground.hitTest((_x - (_width / 2)) - ex, _y, true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - heightVar, true))) {
if (this.enemy._rotation <= 0) {
_x = (_x - speed);
this.bomb._x = this.bomb._x + speed;
}
}
if ((_x < 848) && (_x > -128)) {
_visible = true;
if ((!_root.ground.hitTest(_x, _y, true)) && (this.isWalking == true)) {
this.enemy.gotoAndPlay(1);
}
if (_root.player.hitTest(this.enemy) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
_x = (_x + speed);
this.enemy._rotation = speed * 5;
if ((_root.player._x + 30) < _x) {
speed = speed - 0.1;
} else if ((_root.player._x - 30) > _x) {
speed = speed + 0.1;
} else if ((_x >= (_root.player._x - 30)) && (_x <= (_root.player._x + 30))) {
if (_x >= (_root.player._x - 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed + 0.2;
}
}
if (_x <= (_root.player._x + 5)) {
if ((speed <= 0.1) && (speed >= -0.1)) {
speed = 0;
} else {
speed = speed - 0.2;
}
}
}
if (speed >= 2.5) {
speed = 2.5;
}
if (speed <= -2.5) {
speed = -2.5;
}
if (this._currentframe == 4) {
isDead = true;
}
if (_root.bulletHitTest.hitTest(this.enemy)) {
_root.isBulletShooting = false;
this.nextFrame();
this.enemy.nextFrame();
}
} else {
_visible = false;
}
}
}
}
Instance of Symbol 2080 MovieClip "enemyType8" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._x > _x) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._x <= _x) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 2080 MovieClip "enemyType9" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y > _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y <= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 2080 MovieClip "enemyType10" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var isDead = false;
var jumpHeight = 10;
var rotationVar = 50;
action = random(4);
this.colorScheme = action + 1;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this.shoot.aim) && (_root.damage == 1)) {
_root.damage = 2;
this.shoot.aim.gotoAndPlay(121);
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 2;
}
if (isDead == true) {
this.gotoAndStop(3);
} else if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
if (_root.player.hitTest(this.aim)) {
this.gotoAndStop(2);
} else if (this.shoot.isShooting == false) {
if (!_root.player.hitTest(this.aim)) {
this.rotateMC.rotation = this.rotateMC.rotation + rotationVar;
if (_root.player._y < _y) {
if (this.rotateMC.rotation >= 50) {
rotationVar = -1;
}
if (this.rotateMC.rotation <= 1) {
rotationVar = 1;
}
} else if (_root.player._y >= _y) {
if (this.rotateMC.rotation <= 50) {
rotationVar = 1;
}
if (this.rotateMC.rotation >= 100) {
rotationVar = -1;
}
}
}
if (this.rotateMC.rotation <= 1) {
this.rotateMC.rotation = 1;
}
if (this.rotateMC.rotation >= 100) {
this.rotateMC.rotation = 100;
}
}
if (_root.player.hitTest(this.cannon) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if (_root.bulletHitTest.hitTest(this.cannon) || (_root.bulletHitTest.hitTest(this.block))) {
_root.isBulletShooting = false;
this.block.nextFrame();
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 2082 MovieClip "enemyType11" in Frame 1942
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Instance of Symbol 2082 MovieClip "enemyType12" in Frame 1942
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this.flame) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Instance of Symbol 1943 MovieClip "enemyType1" in Frame 1942
onClipEvent (load) {
var grav = 0;
var speed = 2;
var ex = 5;
var dead = false;
action = random(3);
this.gotoAndStop(action + 1);
}
onClipEvent (enterFrame) {
if (dead == true) {
this.enemy.gotoAndStop(2);
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
} else if (_root.editor == false) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
grav = grav + 0.5;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 0.5);
grav = 0;
}
if (this._x < 760) {
this._x = this._x - speed;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x - speed);
speed = 2;
_xscale = 100;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
if (grav == 0) {
_x = (_x + speed);
speed = -2;
_xscale = -100;
}
}
if (_root.bulletHitTest.hitTest(this)) {
this.dead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score - 25;
_root.isBulletShooting = false;
}
a = 1;
while (a <= _root.currentEnemyNum) {
if (_root["enemyMC" + a].bomb.hitTest(this) && (_root["enemyMC" + a].bomb.isDropped == 2)) {
this.dead = true;
}
a++;
}
} else {
this._visible = false;
}
}
}
Instance of Symbol 2119 MovieClip "playerCopy" in Frame 1942
onClipEvent (load) {
var yCamera = 0;
var grav = 0;
var speed = 2.6;
var jumpHeight = 26;
var isDead = false;
var running = false;
var ex = 5;
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
_root.aimShoot = false;
_root.ammo = 20;
_root.kills = 0;
_root.score = 0;
_root.health = 6;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if (!_root.ground.hitTest(_x, _y + 3, true)) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_root.ground["platform" + a].platform = true;
} else {
_root.ground["platform" + a].platform = false;
}
a++;
}
_y = (_y + (grav / 2.5));
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
a = 0;
while (a < 5) {
if (_root.ground["platform" + a].hitTest(_x, _y + 3, true)) {
_x = (_x - _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if (_root.verticalLevel == true) {
if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x + 5, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!_root.ground.hitTest(_x - 5, _y + 5, true))) && (_xscale == 100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
}
}
if (_root.isBulletShooting == false) {
if (_root.target._x >= _x) {
_root.yGunPos = 25 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 25 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 50) {
_root.yGunPos = 50;
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
grav = 3;
}
if (isDead == true) {
} else {
if (_root._xmouse > _x) {
_xscale = 100;
} else if (_root._xmouse < _x) {
_xscale = -100;
}
if (_root.ammo <= 0) {
_root.ammo = 0;
}
if (Key.isToggled(16)) {
running = true;
_root.runningVar = "Run";
} else if (running == true) {
running = false;
_root.runningVar = "Walk";
}
if ((running == true) and (speed <= 5)) {
if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(65))) || (Key.isDown(68))) {
speed = speed + 0.1;
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
} else if (speed >= 2.6) {
speed = speed - 0.1;
}
if (speed <= 2.6) {
speed = 2.6;
var jumpHeight = 26;
}
if ((speed > 3.5) && (speed < 4.5)) {
var jumpHeight = 28;
}
if (speed >= 5) {
speed = 5;
var jumpHeight = 30;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_x = (_x + speed);
_xscale = 100;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
_xscale = -100;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (!_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop("ducking");
} else if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.ground.hitTest(_x, _y + 3, true)) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop("jumping");
_root.jumping = true;
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if ((_root.ammo > 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
if (_root.isShooting == false) {
this.gotoAndStop("shoot");
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
}
} else if ((_root.ammo <= 0) && (_root.ground.hitTest(_x, _y + 3, true))) {
emptyChamber.start();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.bottom.hitTest(_x, _y, true)) {
_root.health = 0;
grav = 0;
_y = _root.bottom._y;
}
if (_root.health <= 0) {
_root.health = 0;
isDead = true;
}
if (isDead == true) {
this.damage.gotoAndStop(81);
this.gotoAndStop("dead");
}
}
}
onClipEvent (enterFrame) {
if (_root.backDrop._x <= ((_root.backDrop._width / 3) * -1)) {
_root.backDrop._x = 0;
}
if (_root.backDrop._x >= (_root.backDrop._width / 3)) {
_root.backDrop._x = 0;
}
if (isDead == false) {
if (_root.editor == false) {
if (_root.ground._x < 0) {
if (((this._x < 330) and (key.isDown(37) || (key.isDown(65)))) && (_root.scrollingLeft == true)) {
_x = (_x + speed);
_root.backDrop._x = _root.backDrop._x + (speed / 2);
_root.ground._x = _root.ground._x + speed;
_root.groundTop._x = _root.groundTop._x + speed;
b = 1;
while (b <= _root.currentEnemyNum) {
_root["enemyMC" + b]._x = _root["enemyMC" + b]._x + speed;
b++;
}
c = 1;
while (c <= _root.currentItemNum) {
_root["item" + c]._x = _root["item" + c]._x + speed;
c++;
}
_root.levelScrollAmount = _root.levelScrollAmount + speed;
}
}
if (_root.ground._x > ((-_root.groundWidth) + 724)) {
if (((this._x > 390) and (key.isDown(39) || (key.isDown(68)))) && (_root.scrollingRight == true)) {
_x = (_x - speed);
_root.backDrop._x = _root.backDrop._x - (speed / 2);
_root.ground._x = _root.ground._x - speed;
_root.groundTop._x = _root.groundTop._x - speed;
d = 1;
while (d <= _root.currentEnemyNum) {
_root["enemyMC" + d]._x = _root["enemyMC" + d]._x - speed;
d++;
}
e = 1;
while (e <= _root.currentItemNum) {
_root["item" + e]._x = _root["item" + e]._x - speed;
e++;
}
_root.levelScrollAmount = _root.levelScrollAmount - speed;
}
}
}
if (_x <= (0 + (_width / 2))) {
_x = (_x + speed);
}
if (_x > (720 - (_width / 2))) {
_x = (_x - speed);
}
}
}
Instance of Symbol 2120 MovieClip "itemType5" in Frame 1942
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 2121 MovieClip "itemType1" in Frame 1942
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 1;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 2122 MovieClip "itemType2" in Frame 1942
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 2;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 2123 MovieClip "itemType3" in Frame 1942
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 3;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 2124 MovieClip "itemType4" in Frame 1942
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 4;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 2126 MovieClip in Frame 1942
onClipEvent (enterFrame) {
if (_root.gridOn == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2140 MovieClip in Frame 1942
on (press) {
this.nextFrame();
if ((_root.inputTileNum >= 1) and (_root.inputTileNum <= _root.tilesMC.MC._totalFrames)) {
_root.currentTile = Number(_root.inputTileNum);
}
}
on (release, releaseOutside) {
this.prevFrame();
}
Frame 1943
stop();
exitingLevel = false;
exitedLevel = false;
setDepths = 0;
_quality = "Low";
import._visible = false;
editor = false;
verticalLevel = false;
_root.onEnterFrame = function () {
if ((Key.isDown(81) || ((_root.player.isDead == true) && (_root.player.dead._currentframe == 70))) || (exitedLevel == true)) {
stopAllSounds();
_currentframe == "Editor";
loadingArray = import.text.split(";");
for (item in loadingArray) {
pair = loadingArray[item].split("=");
_root[pair[0]] = Number(pair[1]);
}
_root.ground._x = 0;
_root.items._x = 0;
removeMovieClip(_root.player);
_root.characterStart._visible = true;
_root.characterStart._x = characterStartX;
_root.characterStart._y = characterStartY;
_root.backDrop._x = 0;
g = maxGround;
while (g > 0) {
removeMovieClip(_root.ground["groundMC" + g]);
g--;
}
g = 1;
while (g <= _root.currentTileNum) {
duplicateMovieClip (_root.ground.groundMCDefault, ["groundMC" + g], g);
_root.ground["groundMC" + g]._x = _root[("groundVariable" + g) + "x"];
_root.ground["groundMC" + g]._y = _root[("groundVariable" + g) + "y"];
_root.ground["groundMC" + g].gotoAndStop(_root[("groundVariable" + g) + "currentFrame"]);
_root.ground["groundMC" + g].typeNum = _root[("groundVariable" + g) + "currentFrame"];
_root.ground["groundMC" + g].idNumber = _root[("groundVariable" + g) + "idNumber"];
g++;
}
e = maxEnemies;
while (e > 0) {
removeMovieClip(_root["enemyMC" + e]);
e--;
}
e = 1;
while (e <= _root.currentEnemyNum) {
duplicateMovieClip ("_root.enemy" + [_root[("enemyVariable" + e) + "currentFrame"]], ["newEnemy" + e], e);
_root["newEnemy" + e]._x = _root[("enemyVariable" + e) + "x"];
_root["newEnemy" + e]._y = _root[("enemyVariable" + e) + "y"];
_root["newEnemy" + e].typeNum = _root[("enemyVariable" + e) + "currentFrame"];
_root["newEnemy" + e].idNumber = _root[("enemyVariable" + e) + "idNumber"];
e++;
}
i = maxItems;
while (i > 0) {
removeMovieClip(_root["item" + i]);
i--;
}
i = 1;
while (i <= _root.currentItemNum) {
duplicateMovieClip (_root.items.itemsMCDefault, ["itemsMC" + i], i);
_root.items["itemsMC" + i]._x = _root[("itemVariable" + i) + "x"];
_root.items["itemsMC" + i]._y = _root[("itemVariable" + i) + "y"];
_root.items["itemsMC" + i].gotoAndStop(_root[("itemVariable" + i) + "currentFrame"]);
_root.items["itemsMC" + i].typeNum = _root[("itemVariable" + i) + "currentFrame"];
_root.items["itemsMC" + i].idNumber = _root[("itemVariable" + i) + "idNumber"];
i++;
}
_root.levelBar._x = 40;
_root.levelBar._x = _root.levelBar._x + (scrollAmount / (_root.maxLevelWidth / 640));
currentXPos = _root.scrollAmount;
increment = _root.scrollAmount - currentXPos;
gotoAndStop (1942);
Mouse.show();
}
};
_root.ammo = 20;
_root.kills = 0;
_root.civKills = 0;
_root.score = 0;
_root.health = 6;
_root.player.isDead = false;
Instance of Symbol 2157 MovieClip "bottom" in Frame 1943
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 2158 MovieClip "yGunMC" in Frame 1943
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y - 40;
}
Instance of Symbol 2159 MovieClip in Frame 1943
onClipEvent (enterFrame) {
if (_root.health == 6) {
this.gotoAndStop(1);
} else if (_root.health == 5) {
this.gotoAndStop(2);
} else if (_root.health == 4) {
this.gotoAndStop(3);
} else if (_root.health == 3) {
this.gotoAndStop(4);
} else if (_root.health == 2) {
this.gotoAndStop(5);
} else if (_root.health == 1) {
this.gotoAndStop(6);
} else if (_root.health == 0) {
this.gotoAndStop(7);
}
if (_root.health >= 6) {
_root.health = 6;
}
if (_root.health <= 0) {
_root.health = 0;
}
}
Instance of Symbol 2167 MovieClip "bullet" in Frame 1943
onClipEvent (enterFrame) {
if (_root.isShooting == false) {
_y = (_root.player._y - 30);
_xscale = _root.player._xscale;
this.bullet.gotoAndStop(1);
if (_xscale == 100) {
_x = _root.player._x;
}
if (_xscale == -100) {
_x = _root.player._x;
}
}
if (_root.isShooting == true) {
this.gotoAndStop(_root.yGunPos);
this.bullet.play();
}
}
Instance of Symbol 2168 MovieClip "bulletHitTest" in Frame 1943
onClipEvent (enterFrame) {
if (_root.isBulletShooting == true) {
this.gotoAndStop(1);
_y = (_y + (_root.bullet.bullet._rotation / 1.4));
} else {
this.gotoAndStop(2);
_y = (((_root.bullet.bullet.bullet._y + _root.player._y) - 40) + _root.bullet.bullet._rotation);
this.bullet.gotoAndStop(1);
_xscale = _root.player._xscale;
}
if (_xscale >= 1) {
_x = (_root.bullet.bullet.bullet._x + _root.player._x);
}
if (_xscale <= -1) {
_x = ((-_root.bullet.bullet.bullet._x) + _root.player._x);
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.isBulletShooting = false;
}
}
Instance of Symbol 2169 MovieClip "target" in Frame 1943
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
onClipEvent (mouseDown) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.yGunPos <= 1) {
this.gotoAndStop(2);
} else if (_root.yGunPos >= 50) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 1974
stop();
_root.gotoMenu.onRelease = function () {
_root.gunTypeVar = 2;
gotoAndStop (514);
};
Instance of Symbol 106 MovieClip "gotoMenu" in Frame 1974
on (release) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 13 MovieClip Frame 1
_parent.isWalking = true;
Symbol 13 MovieClip Frame 60
if ((_parent._x < 750) && (_parent._x > -30)) {
action = random(3);
if (action == 0) {
play();
} else if (action == 1) {
gotoAndPlay (120);
} else if (action == 2) {
gotoAndPlay (180);
}
} else {
gotoAndPlay (1);
}
Symbol 13 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 13 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 13 MovieClip Frame 271
_parent.isWalking = false;
Symbol 13 MovieClip Frame 330
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 19 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 24
stop();
Symbol 27 MovieClip [enemy2] Frame 1
stop();
Symbol 33 MovieClip Frame 1
_parent.jump = true;
_parent.isWalking = true;
Symbol 33 MovieClip Frame 60
action = random(3);
if (action == 0) {
_parent.jump = true;
} else if (action == 1) {
gotoAndPlay (120);
} else if (action == 2) {
gotoAndPlay (180);
}
Symbol 33 MovieClip Frame 120
_parent.jump = true;
Symbol 33 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 33 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
_parent.isWalking = true;
Symbol 40 MovieClip Frame 24
stop();
Symbol 41 MovieClip [enemy1] Frame 1
stop();
Symbol 46 MovieClip Frame 1
bar.stop();
Symbol 46 MovieClip Frame 100
bar.stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip in Symbol 108 MovieClip Frame 1
on (press) {
}
Instance of Symbol 106 MovieClip in Symbol 108 MovieClip Frame 1
on (release) {
this.gotoAndStop(1);
_parent._visible = false;
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 128 MovieClip Frame 1
stop();
_root.isShooting = false;
Symbol 128 MovieClip Frame 2
_root.ammo = _root.ammo - 1;
_root.isShooting = true;
Symbol 131 MovieClip Frame 1
_root.isBulletShooting = false;
Symbol 131 MovieClip Frame 2
_root.isBulletShooting = true;
Symbol 131 MovieClip Frame 20
_root.isBulletShooting = false;
Symbol 134 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
var move = true;
Symbol 140 MovieClip Frame 2
var move = false;
Symbol 140 MovieClip Frame 8
gotoAndStop (1);
Symbol 143 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
gotoAndStop(_root.charType);
Symbol 156 MovieClip Frame 120
_root.nextFrame();
Symbol 169 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 171 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 175 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 177 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 190 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 177 MovieClip "gun" in Symbol 191 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 195 MovieClip Frame 1
stop();
_root.damage = 1;
Symbol 195 MovieClip Frame 2
_root.damage = 2;
Symbol 195 MovieClip Frame 80
gotoAndStop (1);
Symbol 195 MovieClip Frame 81
stop();
Symbol 199 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 203 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 177 MovieClip "gun" in Symbol 204 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 212 MovieClip Frame 70
stop();
Symbol 220 MovieClip Frame 70
stop();
Symbol 227 MovieClip Frame 60
stop();
Symbol 228 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 232 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 236 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 238 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 240 MovieClip Frame 70
stop();
Symbol 244 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 248 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 253 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 258 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 259 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 262 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 266 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 270 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 271 MovieClip Frame 60
stop();
Symbol 272 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 249 MovieClip "feet" in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(65))) && (!Key.isDown(68))) {
_root.player.shooting.feet.gotoAndStop("standing");
} else if (((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(65))) || (Key.isDown(68))) {
_root.player.shooting.feet.gotoAndStop("moving");
}
}
Instance of Symbol 272 MovieClip "gun" in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 273 MovieClip Frame 60
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 36
gotoAndPlay (1);
Symbol 294 MovieClip Frame 40
stop();
_root.helpBox.gotoAndStop(2);
Symbol 310 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 310 MovieClip Frame 266
speed = 0;
goRight = false;
goLeft = false;
Symbol 310 MovieClip Frame 296
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 310 MovieClip Frame 561
speed = 0;
goRight = false;
goLeft = false;
Symbol 311 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 311 MovieClip Frame 71
speed = 0;
goRight = false;
goLeft = false;
Symbol 311 MovieClip Frame 101
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 311 MovieClip Frame 171
speed = 0;
goRight = false;
goLeft = false;
Instance of Symbol 294 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y + 40, true) && (this._currentframe <= 36)) {
this.gotoAndPlay(37);
}
}
Instance of Symbol 310 MovieClip "platform1" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 311 MovieClip "platform2" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 314 MovieClip "exitLevelMC" in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 317 MovieClip Frame 1
_parent.jump = true;
_parent.isWalking = true;
Symbol 317 MovieClip Frame 60
action = random(3);
if (action == 0) {
_parent.jump = true;
} else if (action == 1) {
gotoAndPlay (120);
} else if (action == 2) {
gotoAndPlay (180);
}
Symbol 317 MovieClip Frame 120
_parent.jump = true;
Symbol 317 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 317 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
_parent.isWalking = true;
Symbol 319 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 24
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
_parent.isWalking = true;
Symbol 323 MovieClip Frame 60
if ((_parent._x < 750) && (_parent._x > -30)) {
action = random(3);
if (action == 0) {
play();
} else if (action == 1) {
gotoAndPlay (120);
} else if (action == 2) {
gotoAndPlay (180);
}
} else {
gotoAndPlay (1);
}
Symbol 323 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 323 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 323 MovieClip Frame 271
_parent.isWalking = false;
Symbol 323 MovieClip Frame 330
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 324 MovieClip Frame 24
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 331 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 3
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 400;
Symbol 339 MovieClip Frame 19
stop();
Symbol 340 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 344 MovieClip Frame 1
_parent.isShooting = true;
Symbol 344 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Symbol 344 MovieClip Frame 161
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 345 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 355 MovieClip Frame 32
stop();
Symbol 361 MovieClip Frame 1
stop();
Instance of Symbol 328 MovieClip "cannon" in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 331 MovieClip "aim" in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 332 MovieClip "shoot" in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 340 MovieClip "cannon" in Symbol 361 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 345 MovieClip "shoot" in Symbol 361 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 364 MovieClip Frame 1
stop();
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 2;
_root.score = _root.score + 100;
this.gotoAndStop(2);
}
}
Symbol 402 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
xPosition = _root.player._x;
yPosition = _root.player._y;
this.onEnterFrame = function () {
if (_currentframe == 2) {
_root.player._x = xPosition;
_root.player._y = yPosition;
}
};
Instance of Symbol 402 MovieClip in Symbol 403 MovieClip Frame 2
on (release) {
this.gotoAndStop(1);
_parent.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 406 MovieClip Frame 1
_root.pointsSound = new Sound();
_root.pointsSound.attachSound("pointsSound");
_parent.insTotalScore._visible = true;
if (_parent.totalScore < _root.score) {
_parent.totalScore = _parent.totalScore + 25;
}
if (_parent.totalScore > _root.score) {
_parent.totalScore = _parent.totalScore - 25;
}
if (soundCounter == 0) {
_root.pointsSound.start();
soundCounter = 1;
} else if (soundCounter == 1) {
soundCounter = 2;
} else if (soundCounter == 2) {
soundCounter = 0;
}
Symbol 406 MovieClip Frame 2
gotoAndPlay (1);
if (_parent.totalScore < _root.score) {
_parent.totalScore = _parent.totalScore + 25;
} else if (_parent.totalScore > _root.score) {
_parent.totalScore = _parent.totalScore - 25;
} else {
gotoAndPlay (3);
}
Symbol 406 MovieClip Frame 22
_parent.insBonusLives._visible = true;
_root.pointsSound.start();
if ((_root.score >= 10000) && (_root.gainLife1 != true)) {
_parent.bonusLives = _parent.bonusLives + 1;
_root.gainLife1 = true;
}
if ((_root.score >= 20000) && (_root.gainLife2 != true)) {
_parent.bonusLives = _parent.bonusLives + 1;
_root.gainLife2 = true;
}
if ((_root.score >= 30000) && (_root.gainLife3 != true)) {
_parent.bonusLives = _parent.bonusLives + 1;
_root.gainLife3 = true;
}
if ((_root.score >= 40000) && (_root.gainLife4 != true)) {
_parent.bonusLives = _parent.bonusLives + 1;
_root.gainLife4 = true;
}
if ((_root.score >= 50000) && (_root.gainLife5 != true)) {
_parent.bonusLives = _parent.bonusLives + 1;
_root.gainLife5 = true;
}
Symbol 406 MovieClip Frame 37
_parent.insBonusAmmo._visible = true;
_root.pointsSound.start();
Symbol 406 MovieClip Frame 42
gotoAndPlay (37);
if (_parent.bonusAmmo < (_root.kills + 5)) {
_parent.bonusAmmo = _parent.bonusAmmo + 1;
} else {
gotoAndPlay (43);
}
Symbol 406 MovieClip Frame 102
stopAllSounds();
_root.ammo = _root.ammo + _parent.bonusAmmo;
_root.lives = _root.lives + _parent.bonusLives;
_root.exitingLevel = false;
_root.gotoAndStop(_root._currentframe + 2);
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
insTotalScore._visible = false;
insBonusLives._visible = false;
insBonusAmmo._visible = false;
totalScore = 0;
bonusLives = 0;
bonusAmmo = 0;
stopAllSounds();
Instance of Symbol 406 MovieClip "gameOverTimer" in Symbol 413 MovieClip Frame 2
onClipEvent (load) {
this.soundCounter = 0;
}
Symbol 414 MovieClip Frame 1
timer = false;
Symbol 414 MovieClip Frame 120
timer = true;
stop();
Symbol 415 MovieClip Frame 1
timer = false;
Symbol 415 MovieClip Frame 120
timer = true;
stop();
Symbol 417 Button
on (release) {
stopAllSounds();
_root.nextFrame();
this.gotoAndStop(1);
}
Symbol 420 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("titleFrame2");
this.gotoAndStop(1);
}
Symbol 427 MovieClip Frame 1
stop();
Instance of Symbol 414 MovieClip in Symbol 427 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.timer == true) {
stopAllSounds();
_root.nextFrame();
_parent.gotoAndStop(1);
}
}
Symbol 472 MovieClip Frame 1
speed = -1.5;
Symbol 472 MovieClip Frame 360
_y = 520;
Symbol 473 MovieClip Frame 1
speed = 1.5;
Symbol 473 MovieClip Frame 360
_y = -40;
Symbol 474 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 474 MovieClip Frame 191
speed = 0;
goRight = false;
goLeft = false;
Symbol 474 MovieClip Frame 221
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 474 MovieClip Frame 411
speed = 0;
goRight = false;
goLeft = false;
Symbol 475 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 475 MovieClip Frame 71
speed = 0;
goRight = false;
goLeft = false;
Symbol 475 MovieClip Frame 101
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 475 MovieClip Frame 171
speed = 0;
goRight = false;
goLeft = false;
Symbol 478 MovieClip Frame 1
speed = -1.5;
Symbol 478 MovieClip Frame 151
speed = 0;
Symbol 478 MovieClip Frame 191
speed = 1.5;
Symbol 478 MovieClip Frame 341
speed = 0;
Instance of Symbol 472 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 472 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 472 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 472 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 473 MovieClip "downPlatform2" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 473 MovieClip "downPlatform1" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 474 MovieClip "platform1" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 475 MovieClip "platform2" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 478 MovieClip "downPlatform3" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 480 MovieClip "exitLevelMC" in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 488 MovieClip Frame 1
stop();
isDropped = 1;
Symbol 488 MovieClip Frame 2
isDropped = 2;
xValue = _parent._x;
yValue = _parent._y;
Symbol 488 MovieClip Frame 3
isDropped = 3;
helicopterBombSound = new Sound();
helicopterBombSound.attachSound("helicopterBombSound");
if ((_parent._x < 848) && (_parent._x > -128)) {
helicopterBombSound.start();
}
Symbol 488 MovieClip Frame 30
_parent.enemy.opener.gotoAndPlay(2);
Symbol 488 MovieClip Frame 40
_x = -18;
if ((_parent._currentframe == 4) || (_parent._currentframe == 5)) {
stop();
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 1
stop();
Instance of Symbol 493 MovieClip "opener" in Symbol 508 MovieClip Frame 1
onClipEvent (enterFrame) {
this.openerMC.gotoAndStop(_parent._currentframe);
}
Symbol 516 MovieClip Frame 22
stop();
Symbol 518 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip "bomb" in Symbol 518 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.speed);
if (_root.ground.hitTest(this.xValue + _x, this.yValue + _y, true) && (this.isDropped == 2)) {
_parent.bombGrav = 0;
this.isDropped = 3;
this.gotoAndPlay(3);
}
}
Symbol 518 MovieClip Frame 4
_root.kills = _root.kills + 1;
_root.score = _root.score + 500;
Symbol 523 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 30
stop();
Symbol 532 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 1
stop();
Instance of Symbol 535 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 535 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 535 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 364 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 2;
_root.score = _root.score + 100;
this.gotoAndStop(2);
}
}
Instance of Symbol 540 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.lives = _root.lives + 1;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Instance of Symbol 598 MovieClip "exitLevelMC" in Symbol 599 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 612 MovieClip Frame 32
stop();
Symbol 615 MovieClip Frame 1
stop();
action = random(2);
this.gotoAndStop(action + 2);
Symbol 616 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 32
stop();
Symbol 630 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 32
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 1
stop();
Instance of Symbol 535 MovieClip in Symbol 647 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 1;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 686 MovieClip Frame 1
speed = -1.5;
Symbol 686 MovieClip Frame 151
speed = 0;
Symbol 686 MovieClip Frame 191
speed = 1.5;
Symbol 686 MovieClip Frame 341
speed = 0;
Symbol 687 MovieClip Frame 1
speed = 2;
goRight = true;
goLeft = false;
Symbol 687 MovieClip Frame 161
speed = 0;
goRight = false;
goLeft = false;
Symbol 687 MovieClip Frame 201
speed = -2;
goRight = false;
goLeft = true;
Symbol 687 MovieClip Frame 361
speed = 0;
goRight = false;
goLeft = false;
Symbol 688 MovieClip Frame 1
speed = 2;
goRight = true;
goLeft = false;
Symbol 688 MovieClip Frame 251
speed = 0;
goRight = false;
goLeft = false;
Symbol 688 MovieClip Frame 311
speed = -2;
goRight = false;
goLeft = true;
Symbol 688 MovieClip Frame 561
speed = 0;
goRight = false;
goLeft = false;
Symbol 689 MovieClip Frame 1
speed = -1.5;
Symbol 689 MovieClip Frame 61
speed = 0;
Symbol 689 MovieClip Frame 101
speed = 1.5;
Symbol 689 MovieClip Frame 161
speed = 0;
Instance of Symbol 686 MovieClip "vPlatform1" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 686 MovieClip "vPlatform2" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 686 MovieClip "vPlatform3" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 686 MovieClip "vPlatform5" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 687 MovieClip "platform1" in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 687 MovieClip "platform3" in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 688 MovieClip "platform2" in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
_root.totalHorizontalPlatforms = _root.totalHorizontalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this.platform == true) {
_root.player._x = _root.player._x + this.speed;
}
if ((this.platform == true) && (this.goLeft == true)) {
if (_root.player._x < 330) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - this.speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - this.speed;
b = 0;
while (b < 15) {
_root["enemy" + b]._x = _root["enemy" + b]._x - this.speed;
b++;
}
}
} else if ((this.platform == true) && (this.goRight == true)) {
if (_root.player._x > 390) {
_root.player._x = _root.player._x - this.speed;
_root.ground._x = _root.ground._x - this.speed;
_root.groundTop._x = _root.groundTop._x - speed;
_root.icicles._x = _root.icicles._x - speed;
_root.items._x = _root.items._x - speed;
c = 0;
while (c < 15) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 689 MovieClip "vPlatform4" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 691 MovieClip "exitLevelMC" in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 695 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Symbol 700 MovieClip Frame 1
stop();
isFalling = 1;
Symbol 700 MovieClip Frame 2
isFalling = 2;
Symbol 700 MovieClip Frame 22
stop();
isFalling = 3;
Symbol 700 MovieClip Frame 23
stop();
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (this.isFalling == 1)) {
this.play();
} else if ((_root.player.hitTest(this) && (!(this.isFalling === 1))) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
this.gotoAndStop(23);
}
if (this.isFalling == 3) {
grav++;
this._y = this._y + (grav / 1.5);
}
}
Symbol 702 MovieClip Frame 1
stop();
Instance of Symbol 702 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 4;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Instance of Symbol 540 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.lives = _root.lives + 1;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Instance of Symbol 766 MovieClip "exitLevelMC" in Symbol 767 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 768 MovieClip Frame 1
stop();
Instance of Symbol 535 MovieClip in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 535 MovieClip in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 768 MovieClip in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 3;
_root.score = _root.score + 150;
this.gotoAndStop(2);
}
}
Symbol 825 MovieClip Frame 1
speed = -1.5;
Symbol 825 MovieClip Frame 360
_y = 520;
Symbol 826 MovieClip Frame 1
speed = 1.5;
Symbol 826 MovieClip Frame 360
_y = -40;
Instance of Symbol 825 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 826 MovieClip "downPlatform2" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 826 MovieClip "downPlatform1" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 825 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 832 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 832 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 835 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 832 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 829 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 837 MovieClip "exitLevelMC" in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Instance of Symbol 535 MovieClip in Symbol 839 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 535 MovieClip in Symbol 839 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Instance of Symbol 646 MovieClip in Symbol 839 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 1;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 895 MovieClip Frame 1
speed = -1.5;
Symbol 895 MovieClip Frame 251
_y = (_y + 1000);
speed = 0;
Symbol 895 MovieClip Frame 311
_y = (_y - 1000);
speed = 0;
Symbol 895 MovieClip Frame 312
speed = 1.5;
Symbol 896 MovieClip Frame 1
speed = -1.5;
Symbol 896 MovieClip Frame 81
speed = 1.5;
Symbol 896 MovieClip Frame 161
_y = (_y + 1000);
speed = 0;
Symbol 896 MovieClip Frame 220
_y = (_y - 1000);
speed = 0;
Symbol 897 MovieClip Frame 1
speed = -1.5;
Symbol 897 MovieClip Frame 221
speed = 0;
_y = (_y + 1000);
Symbol 897 MovieClip Frame 280
speed = 0;
_y = (_y - 1000);
Symbol 897 MovieClip Frame 281
speed = 1.5;
Instance of Symbol 895 MovieClip "downPlatform2" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform1" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform3" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform4" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform6" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 897 MovieClip "downPlatform5" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform7" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 896 MovieClip "downPlatform8" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 899 MovieClip "exitLevelMC" in Symbol 900 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 905 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 910 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 2
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 250;
Symbol 917 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 918 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 924 MovieClip Frame 19
stop();
Symbol 931 MovieClip Frame 19
stop();
Symbol 939 MovieClip Frame 19
stop();
Symbol 949 MovieClip Frame 19
stop();
Symbol 950 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 951 MovieClip Frame 19
stop();
Symbol 952 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 961 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 962 MovieClip Frame 1
_parent.isShooting = true;
Symbol 962 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Symbol 962 MovieClip Frame 181
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 963 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 967 MovieClip Frame 21
stop();
Symbol 971 MovieClip Frame 21
stop();
Symbol 975 MovieClip Frame 21
stop();
Symbol 979 MovieClip Frame 21
stop();
Symbol 980 MovieClip Frame 1
stop();
gotoAndStop(_parent.colorScheme);
Symbol 981 MovieClip Frame 1
stop();
Instance of Symbol 918 MovieClip "cannon" in Symbol 981 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 331 MovieClip "aim" in Symbol 981 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 919 MovieClip "shoot" in Symbol 981 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 952 MovieClip "cannon" in Symbol 981 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 963 MovieClip "shoot" in Symbol 981 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 768 MovieClip in Symbol 982 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 3;
_root.score = _root.score + 150;
this.gotoAndStop(2);
}
}
Symbol 1059 MovieClip Frame 1
speed = -1.5;
Symbol 1059 MovieClip Frame 360
_y = 520;
Symbol 1060 MovieClip Frame 1
speed = 1.5;
Symbol 1060 MovieClip Frame 360
_y = -40;
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1060 MovieClip "downPlatform3" in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1060 MovieClip "downPlatform2" in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1060 MovieClip "downPlatform1" in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1059 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1062 MovieClip "exitLevelMC" in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.exitingLevel == true) && (_root.player.isDead == false)) {
_root.player.gotoAndStop("ducking");
_root.damage = 2;
if (_root.player._y < (_root.yPosition + 64)) {
_root.player._y = _root.player._y + 2;
} else {
stopAllSounds();
_root.exitingLevel = false;
_root.ammo = 20;
_root.gotoAndStop("levelName9");
}
}
}
Instance of Symbol 1067 MovieClip "flame" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 702 MovieClip in Symbol 1069 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 4;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Symbol 1254 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1254 MovieClip Frame 11
if (_root.bossHealth <= 0) {
_parent.gotoAndStop("finalHit");
play();
}
Symbol 1254 MovieClip Frame 31
if (_root.bossHealth > 0) {
stop();
}
Symbol 1254 MovieClip Frame 113
_root.bossHealth = 0;
_root.bossDead = true;
stop();
Symbol 1262 MovieClip Frame 29
gotoAndPlay (1);
Symbol 1262 MovieClip Frame 30
stop();
Symbol 1264 MovieClip Frame 1
stop();
Instance of Symbol 1262 MovieClip in Symbol 1264 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + 5);
if (this.hitTest(_root.player) && (_root.damage == 1)) {
_root.damage = 2;
this.gotoAndStop("missileHit");
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1262 MovieClip in Symbol 1264 MovieClip Frame 2
onClipEvent (enterFrame) {
_y = (_y + 5);
_x = (_x - 3.5);
if (this.hitTest(_root.player) && (_root.damage == 1)) {
_root.damage = 2;
this.gotoAndStop("missileHit");
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1262 MovieClip in Symbol 1264 MovieClip Frame 3
onClipEvent (enterFrame) {
_y = (_y + 5);
_x = (_x + 3.5);
if (this.hitTest(_root.player) && (_root.damage == 1)) {
_root.damage = 2;
this.gotoAndStop("missileHit");
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Symbol 1267 MovieClip Frame 30
if (_root.bossHealth > 0) {
action = random(3);
if (action == 0) {
_root.window1.gotoAndPlay("frameDog");
if (_root.ammo <= 10) {
action2 = random(10);
if (action2 == 0) {
_root.window2.gotoAndPlay("frameAmmo");
} else {
_root.window2.gotoAndPlay("frameMissile");
}
action3 = random(10);
if (action3 == 0) {
_root.window3.gotoAndPlay("frameAmmo");
} else {
_root.window3.gotoAndPlay("frameMissile");
}
} else {
_root.window2.gotoAndPlay("frameMissile");
_root.window3.gotoAndPlay("frameMissile");
}
} else if (action == 1) {
_root.window2.gotoAndPlay("frameDog");
if (_root.ammo <= 10) {
action2 = random(10);
if (action2 == 0) {
_root.window1.gotoAndPlay("frameAmmo");
} else {
_root.window1.gotoAndPlay("frameMissile");
}
action3 = random(10);
if (action3 == 0) {
_root.window3.gotoAndPlay("frameAmmo");
} else {
_root.window3.gotoAndPlay("frameMissile");
}
} else {
_root.window1.gotoAndPlay("frameMissile");
_root.window3.gotoAndPlay("frameMissile");
}
} else if (action == 2) {
_root.window3.gotoAndPlay("frameDog");
if (_root.ammo <= 10) {
action2 = random(10);
if (action2 == 0) {
_root.window1.gotoAndPlay("frameAmmo");
} else {
_root.window1.gotoAndPlay("frameMissile");
}
action3 = random(10);
if (action3 == 0) {
_root.window2.gotoAndPlay("frameAmmo");
} else {
_root.window2.gotoAndPlay("frameMissile");
}
} else {
_root.window1.gotoAndPlay("frameMissile");
_root.window2.gotoAndPlay("frameMissile");
}
}
} else {
stop();
}
Instance of Symbol 1254 MovieClip "dog2" in Symbol 1267 MovieClip Frame 41
onClipEvent (load) {
dogLaugh1 = new Sound();
dogLaugh1.attachSound("dogLaugh1");
dogLaugh2 = new Sound();
dogLaugh2.attachSound("dogLaugh2");
actionSound = random(2);
if (actionSound == 0) {
dogLaugh1.start();
} else if (actionSound == 1) {
dogLaugh2.start();
}
}
Symbol 1267 MovieClip Frame 99
if (_root.bossHealth <= 0) {
gotoAndStop (41);
} else {
gotoAndPlay (1);
}
Instance of Symbol 1264 MovieClip in Symbol 1267 MovieClip Frame 100
onClipEvent (load) {
action = random(3);
this.gotoAndStop(action + 1);
}
Symbol 1267 MovieClip Frame 168
gotoAndPlay (1);
Instance of Symbol 535 MovieClip in Symbol 1267 MovieClip Frame 169
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 1267 MovieClip Frame 237
gotoAndPlay (1);
Symbol 1269 MovieClip Frame 1
_root.bossBegin = false;
_root.bossBegin2 = false;
Symbol 1269 MovieClip Frame 240
stop();
_root.bossBegin = true;
_root.bossBegin2 = true;
Symbol 1277 MovieClip Frame 90
stop();
Symbol 1284 MovieClip Frame 1
action = random(630);
_x = (action + 30);
if (_root.bossBegin == false) {
gotoAndStop (150);
}
Symbol 1284 MovieClip Frame 150
this.onEnterFrame = function () {
if (_root.bossBegin == true) {
this.play();
} else {
stop();
}
};
Symbol 1285 MovieClip Frame 1
stop();
Symbol 1285 MovieClip Frame 61
stop();
_root.gotoAndPlay("cinematic2");
Symbol 1347 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 1348 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 1349 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 1348 MovieClip "gun" in Symbol 1350 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 1352 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 1348 MovieClip "gun" in Symbol 1353 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1380 MovieClip Frame 1
stop();
Symbol 1407 MovieClip Frame 1
stop();
Symbol 1893 MovieClip Frame 1
stop();
_root.exitPipe = 0;
Instance of Symbol 1852 MovieClip in Symbol 1893 MovieClip Frame 401
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1855 MovieClip in Symbol 1893 MovieClip Frame 402
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1857 MovieClip in Symbol 1893 MovieClip Frame 403
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1859 MovieClip in Symbol 1893 MovieClip Frame 404
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Symbol 1893 MovieClip Frame 417
_root.exitPipe = 1;
Instance of Symbol 1885 MovieClip in Symbol 1893 MovieClip Frame 417
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1886 MovieClip in Symbol 1893 MovieClip Frame 418
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1887 MovieClip in Symbol 1893 MovieClip Frame 419
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1888 MovieClip in Symbol 1893 MovieClip Frame 420
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1889 MovieClip in Symbol 1893 MovieClip Frame 421
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1890 MovieClip in Symbol 1893 MovieClip Frame 422
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1891 MovieClip in Symbol 1893 MovieClip Frame 423
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1892 MovieClip in Symbol 1893 MovieClip Frame 424
onClipEvent (enterFrame) {
if (_root.editor == false) {
if (_root.player.isDead == false) {
if (_root.player.hitTest((_parent._x + (_width / 2)) + _root.ground._x, (_parent._y + _y) - _root.player._height, true)) {
if (Key.isDown(40) || (Key.isDown(83))) {
_root.exitingLevel = true;
_root.player.gotoAndStop("ducking");
_root.setDepths = _root.setDepths + 1;
}
}
}
}
if (_root.exitingLevel == true) {
if (_root.setDepths == 1) {
_root.ground.swapDepths(_root.player);
_root.setDepths = 2;
}
if (_root.player._y < (_parent._y + _root.player._height)) {
_root.player._y = _root.player._y + 2;
_root.damage = 2;
} else {
_root.player.swapDepths(_root.ground);
_root.exitedLevel = true;
}
}
}
Instance of Symbol 1893 MovieClip "groundMCDefault" in Symbol 1894 MovieClip Frame 1
onClipEvent (load) {
grid = 32;
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
if (((_x + _root.ground._x) <= 848) && ((_x + _root.ground._x) >= -128)) {
_visible = true;
} else {
_visible = false;
}
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 2) {
if (_root.typeMode == 1) {
this.gotoAndStop(_root.currentTile);
typeNum = _root.currentTile;
}
} else if (_root.mode == 3) {
g = 0;
while (g < _root.currentTileNum) {
if (!_root.ground["groundMC" + g]) {
h = 0;
while (h < _root.currentTileNum) {
if (h >= this.idNumber) {
_root.ground["groundMC" + (h + 1)].idNumber = _root.ground["groundMC" + (h + 1)].idNumber - 1;
_root.ground["groundMC" + (h + 1)]._name = ["groundMC" + h];
}
h++;
}
}
g++;
}
_root.currentTileNum = _root.currentTileNum - 1;
_root.currentTileNumRemoved = _root.currentTileNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
_root.isDragging = false;
}
}
Symbol 1895 MovieClip Frame 1
stop();
Instance of Symbol 1895 MovieClip "itemsMCDefault" in Symbol 1896 MovieClip Frame 1
onClipEvent (load) {
grid = 32;
}
onClipEvent (enterFrame) {
_x = (_x - _root.increment);
}
on (press) {
if (_root.editor == true) {
if (_root.mode == 1) {
tile = _root.currentTile;
startDrag ("");
_root.isDragging = true;
} else if (_root.mode == 2) {
if (_root.typeMode == 3) {
this.gotoAndStop(_root.currentTile);
typeNum = _root.currentTile;
}
} else if (_root.mode == 3) {
i = 0;
while (i < _root.currentItemNum) {
if (!_root.items["itemsMC" + i]) {
h = 0;
while (h < _root.currentItemNum) {
if (h >= this.idNumber) {
_root.items["itemsMC" + (h + 1)].idNumber = _root.items["itemsMC" + (h + 1)].idNumber - 1;
_root.items["itemsMC" + (h + 1)]._name = ["itemsMC" + h];
}
h++;
}
}
i++;
}
_root.currentItemNum = _root.currentItemNum - 1;
_root.currentItemNumRemoved = _root.currentItemNumRemoved + 1;
removeMovieClip(this);
}
}
}
on (release, releaseOutside) {
if (_root.editor == true) {
stopDrag();
_x = (Math.round(_x / grid) * grid);
_y = (Math.round(_y / grid) * grid);
_root.isDragging = false;
}
}
Symbol 1897 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 1901 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1906 MovieClip Frame 1
stop();
Symbol 1906 MovieClip Frame 3
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 400;
Symbol 1908 MovieClip Frame 19
stop();
Symbol 1909 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1912 MovieClip Frame 1
_parent.isShooting = true;
Symbol 1912 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Symbol 1912 MovieClip Frame 161
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1913 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1923 MovieClip Frame 32
stop();
Symbol 1929 MovieClip Frame 1
stop();
Instance of Symbol 1901 MovieClip "aim" in Symbol 1929 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1902 MovieClip "shoot" in Symbol 1929 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1909 MovieClip "cannon" in Symbol 1929 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1913 MovieClip "shoot" in Symbol 1929 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 1931 MovieClip Frame 32
stop();
Symbol 1935 MovieClip Frame 1
stop();
action = random(2);
this.gotoAndStop(action + 2);
Symbol 1936 MovieClip Frame 1
stop();
Symbol 1938 MovieClip Frame 32
stop();
Symbol 1939 MovieClip Frame 1
stop();
Symbol 1941 MovieClip Frame 32
stop();
Symbol 1942 MovieClip Frame 1
stop();
Symbol 1943 MovieClip Frame 1
stop();
Symbol 1945 MovieClip Frame 1
stop();
Symbol 1946 MovieClip Frame 30
stop();
Symbol 1947 MovieClip Frame 1
stop();
Symbol 1948 MovieClip Frame 1
stop();
isDropped = 1;
Symbol 1948 MovieClip Frame 2
isDropped = 2;
Symbol 1948 MovieClip Frame 3
isDropped = 3;
helicopterBombSound = new Sound();
helicopterBombSound.attachSound("helicopterBombSound");
if ((_parent._x < 848) && (_parent._x > -128)) {
helicopterBombSound.start();
}
Symbol 1948 MovieClip Frame 30
_parent.enemy.opener.gotoAndPlay(2);
Symbol 1948 MovieClip Frame 40
_x = -18;
if ((_parent._currentframe == 4) || (_parent._currentframe == 5)) {
stop();
}
Symbol 1949 MovieClip Frame 1
stop();
Symbol 1950 MovieClip Frame 1
stop();
Symbol 1955 MovieClip Frame 1
stop();
Instance of Symbol 1950 MovieClip "opener" in Symbol 1955 MovieClip Frame 1
onClipEvent (enterFrame) {
this.openerMC.gotoAndStop(_parent._currentframe);
}
Symbol 1956 MovieClip Frame 22
stop();
Symbol 1957 MovieClip Frame 1
stop();
Instance of Symbol 1948 MovieClip "bomb" in Symbol 1957 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.speed);
if (_root.ground.hitTest(_parent._x + _x, _parent._y + _y, true) && (this.isDropped == 2)) {
_parent.bombGrav = 0;
this.isDropped = 3;
this.gotoAndPlay(3);
}
}
Symbol 1957 MovieClip Frame 4
_root.kills = _root.kills + 1;
_root.score = _root.score + 500;
Symbol 1958 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 1959 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 1960 MovieClip Frame 1
stop();
Symbol 1960 MovieClip Frame 2
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 250;
Symbol 1963 MovieClip Frame 19
stop();
Symbol 1964 MovieClip Frame 19
stop();
Symbol 1968 MovieClip Frame 19
stop();
Symbol 1978 MovieClip Frame 19
stop();
Symbol 1979 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 1980 MovieClip Frame 19
stop();
Symbol 1981 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1986 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 1987 MovieClip Frame 1
_parent.isShooting = true;
Symbol 1987 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Symbol 1987 MovieClip Frame 181
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1988 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1990 MovieClip Frame 21
stop();
Symbol 1992 MovieClip Frame 21
stop();
Symbol 1994 MovieClip Frame 21
stop();
Symbol 1996 MovieClip Frame 21
stop();
Symbol 1997 MovieClip Frame 1
stop();
gotoAndStop(_parent.colorScheme);
Symbol 1998 MovieClip Frame 1
stop();
Instance of Symbol 1901 MovieClip "aim" in Symbol 1998 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1961 MovieClip "shoot" in Symbol 1998 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1981 MovieClip "cannon" in Symbol 1998 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1988 MovieClip "shoot" in Symbol 1998 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 2006 MovieClip Frame 1
stop();
Symbol 2033 MovieClip Frame 1
stop();
Instance of Symbol 1893 MovieClip "MC" in Symbol 2034 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Instance of Symbol 2033 MovieClip "MC" in Symbol 2034 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Instance of Symbol 1895 MovieClip "MC" in Symbol 2034 MovieClip Frame 3
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Symbol 2040 MovieClip Frame 1
stop();
Symbol 2043 MovieClip Frame 1
stop();
Symbol 2047 MovieClip Frame 1
stop();
Symbol 2049 MovieClip Frame 1
stop();
Symbol 2055 MovieClip Frame 1
stop();
Symbol 2058 MovieClip Frame 1
stop();
Symbol 2066 MovieClip Frame 1
stop();
Symbol 2068 MovieClip Frame 1
stop();
Symbol 2070 MovieClip Frame 1
stop();
Symbol 2072 MovieClip Frame 1
stop();
Symbol 2074 MovieClip Frame 1
stop();
Symbol 2075 MovieClip Frame 1
stop();
Symbol 2076 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2077 MovieClip Frame 1
stop();
Instance of Symbol 2076 MovieClip "cannon" in Symbol 2077 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1901 MovieClip "aim" in Symbol 2077 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1902 MovieClip "shoot" in Symbol 2077 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1909 MovieClip "cannon" in Symbol 2077 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1913 MovieClip "shoot" in Symbol 2077 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 2078 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 2079 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2080 MovieClip Frame 1
stop();
Instance of Symbol 2079 MovieClip "cannon" in Symbol 2080 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1901 MovieClip "aim" in Symbol 2080 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1961 MovieClip "shoot" in Symbol 2080 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1981 MovieClip "cannon" in Symbol 2080 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1988 MovieClip "shoot" in Symbol 2080 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2081 MovieClip "flame" in Symbol 2082 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 2083 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2084 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2085 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2087 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 2091 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 2087 MovieClip "gun" in Symbol 2092 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2093 MovieClip Frame 1
stop();
_root.damage = 1;
Symbol 2093 MovieClip Frame 2
_root.damage = 2;
Symbol 2093 MovieClip Frame 80
gotoAndStop (1);
Symbol 2093 MovieClip Frame 81
stop();
Symbol 2094 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2095 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 2087 MovieClip "gun" in Symbol 2096 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2097 MovieClip Frame 70
stop();
Symbol 2098 MovieClip Frame 70
stop();
Symbol 2099 MovieClip Frame 60
stop();
Symbol 2100 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2101 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2102 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2104 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2105 MovieClip Frame 70
stop();
Symbol 2106 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2107 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2108 MovieClip Frame 1
stop();
Symbol 2108 MovieClip Frame 2
stop();
Symbol 2109 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2110 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2111 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2112 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2113 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2114 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2115 MovieClip Frame 60
stop();
Symbol 2116 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 2108 MovieClip "feet" in Symbol 2118 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(65))) && (!Key.isDown(68))) {
_root.player.shooting.feet.gotoAndStop("standing");
} else if (((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(65))) || (Key.isDown(68))) {
_root.player.shooting.feet.gotoAndStop("moving");
}
}
Instance of Symbol 2116 MovieClip "gun" in Symbol 2118 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2118 MovieClip Frame 60
stop();
Symbol 2119 MovieClip Frame 1
stop();
Symbol 2120 MovieClip Frame 1
stop();
Symbol 2121 MovieClip Frame 1
stop();
Symbol 2122 MovieClip Frame 1
stop();
Symbol 2123 MovieClip Frame 1
stop();
Symbol 2124 MovieClip Frame 1
stop();
Symbol 2140 MovieClip Frame 1
stop();
Symbol 2147 MovieClip Frame 1
stop();
Symbol 2149 MovieClip Frame 1
stop();
Symbol 2155 MovieClip Frame 1
stop();
Instance of Symbol 2147 MovieClip "slot1" in Symbol 2155 MovieClip Frame 2
on (rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
}
}
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(3);
}
}
on (release, releaseOutside, rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 2147 MovieClip "slot2" in Symbol 2155 MovieClip Frame 2
on (rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
}
}
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(3);
}
}
on (release, releaseOutside, rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 2147 MovieClip "slot3" in Symbol 2155 MovieClip Frame 2
on (rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
}
}
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(3);
}
}
on (release, releaseOutside, rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 2147 MovieClip "slot4" in Symbol 2155 MovieClip Frame 2
on (rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
}
}
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(3);
}
}
on (release, releaseOutside, rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 2147 MovieClip "slot5" in Symbol 2155 MovieClip Frame 2
on (rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
}
}
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(3);
}
}
on (release, releaseOutside, rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 2149 MovieClip "playButton" in Symbol 2155 MovieClip Frame 2
on (press) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on (release, releaseOutside) {
this.prevFrame();
}
on (release) {
_parent.gotoAndStop(1);
}
Symbol 2159 MovieClip Frame 1
stop();
Symbol 2164 MovieClip Frame 1
stop();
_root.isShooting = false;
Symbol 2164 MovieClip Frame 2
_root.ammo = _root.ammo - 1;
_root.isShooting = true;
Symbol 2166 MovieClip Frame 1
_root.isBulletShooting = false;
Symbol 2166 MovieClip Frame 2
_root.isBulletShooting = true;
Symbol 2166 MovieClip Frame 20
_root.isBulletShooting = false;
Symbol 2168 MovieClip Frame 1
stop();
Symbol 2169 MovieClip Frame 1
stop();