Frame 1
_quality = "Medium";
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();
Mouse.show();
_root.clickStart.onPress = function () {
gotoAndStop (514);
_root.gunTypeVar = 2;
};
Frame 514
stop();
_quality = "Medium";
Mouse.show();
_root.editor = false;
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();
stopAllSounds();
gotoAndPlay (541);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.musicNumber = 2;
};
_root.button1.onReleaseOutside = function () {
_root.button1.prevFrame();
};
_root.button1.onPress = function () {
_root.button1.nextFrame();
};
_root.button2.onRelease = function () {
_root.button2.prevFrame();
stopAllSounds();
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 = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "sewer") {
gotoAndStop (518);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "shop") {
gotoAndStop (521);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "mountains") {
gotoAndStop (524);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "forest") {
gotoAndStop (527);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "beach") {
gotoAndStop (530);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "courtyard") {
gotoAndStop (533);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "castle") {
gotoAndStop (536);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} else if (_root.enterPassword.varPassword == "boss") {
stopAllSounds();
gotoAndStop (539);
_root.charType = _root.charTypeVar;
_root.gunType = _root.gunTypeVar;
_root.ammo = 25;
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
_root.musicNumber = 2;
} 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 88 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 91 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 88 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 91 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 110 MovieClip "enterPassword" in Frame 514
onClipEvent (load) {
_visible = false;
}
Frame 515
stopAllSounds();
if (_root.infiniteLives == true) {
_root.lives = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
_root.ammo = 25;
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
} else {
_root.ammo = 25;
}
Number(_root.lives);
_root.score = 0;
_root.health = 10;
_root.exitingLevel = false;
Instance of Symbol 113 MovieClip "yGunMC" in Frame 515
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y - 40;
}
Instance of Symbol 118 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 120 MovieClip "bulletHitTest" in Frame 515
onClipEvent (enterFrame) {
if (_root.isBulletShooting == true) {
this.gotoAndStop(1);
_y = (_y + (_root.bullet.bullet._rotation / 1.4));
this._visible = true;
if (_root.gunType == 1) {
this._visible = false;
}
} 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;
this._visible = false;
}
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 126 MovieClip in Frame 515
onClipEvent (enterFrame) {
if (_root.health == 10) {
this.gotoAndStop(1);
} else if (_root.health == 9) {
this.gotoAndStop(2);
} else if (_root.health == 8) {
this.gotoAndStop(3);
} else if (_root.health == 7) {
this.gotoAndStop(4);
} else if (_root.health == 6) {
this.gotoAndStop(5);
} else if (_root.health == 5) {
this.gotoAndStop(6);
} else if (_root.health == 4) {
this.gotoAndStop(7);
} else if (_root.health == 3) {
this.gotoAndStop(8);
} else if (_root.health == 2) {
this.gotoAndStop(9);
} else if (_root.health == 1) {
this.gotoAndStop(10);
} else if (_root.health == 0) {
this.gotoAndStop(11);
}
if (_root.health >= 10) {
_root.health = 10;
}
if (_root.health <= 0) {
_root.health = 0;
}
}
Instance of Symbol 149 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 >= 90) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 516
verticalLevel = false;
totalHorizontalPlatforms = 0;
totalVerticalPlatforms = 0;
currentLevel = 1;
stop();
_root.kills = 0;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 516
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 516
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 340 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 344 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 344 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 344 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 340 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 340 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 340 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 344 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 344 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 381 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 381 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 519
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 519
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 543 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 543 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 543 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 543 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 381 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 344 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 344 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 381 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 340 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 340 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 557 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 557 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 557 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 344 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 340 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 381 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 522
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 522
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 674 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 674 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 344 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 344 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 344 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 344 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 674 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 674 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 381 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 340 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 674 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 674 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 340 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 674 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 674 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 674 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 344 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 344 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 674 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 344 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 344 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 344 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 381 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 557 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 525
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 525
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 344 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 344 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 344 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 344 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 344 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 340 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 557 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 557 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 557 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 381 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 381 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 381 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 528
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 528
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 344 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 340 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 344 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 381 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 381 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 344 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 340 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 340 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 557 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 557 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 557 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 381 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 340 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 381 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 340 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 344 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 381 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 531
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 531
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 674 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 381 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 543 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 557 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 674 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 344 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 344 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 543 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 543 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 674 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 674 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 674 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 674 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 381 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 340 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 344 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 344 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 534
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 534
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 557 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 557 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 557 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 381 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 557 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 381 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 1014 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 1014 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 1014 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 1014 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 1014 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 1014 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 1014 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 1014 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 1014 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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
stopAllSounds();
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;
_root.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
Instance of Symbol 167 MovieClip "bottom" in Frame 537
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 293 MovieClip "player" in Frame 537
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 340 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 1101 MovieClip "enemy2" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy3" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy4" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy5" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy7" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy6" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy8" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy9" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy10" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 381 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 557 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 557 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 557 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 340 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 1101 MovieClip "enemy19" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1101 MovieClip "enemy20" in Frame 537
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 543 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 543 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 340 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
Key.removeListener(_root.musicListener);
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_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.musicMC.gotoAndStop(_root.musicNumber);
musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (_root.musicMC._currentframe == 2) {
_root.musicMC.gotoAndStop(3);
_root.musicNumber = 3;
} else if (_root.musicMC._currentframe == 3) {
_root.musicMC.gotoAndStop(2);
_root.musicNumber = 2;
}
}
};
Key.addListener(musicListener);
_root.bossDead = false;
_root.bossBegin = false;
_root.bossHealth = Number(10);
Instance of Symbol 1303 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) {
_root.isBulletShooting = false;
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 1303 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) {
_root.isBulletShooting = false;
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 1303 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) {
_root.isBulletShooting = false;
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 293 MovieClip "player" in Frame 539
onClipEvent (load) {
_quality = "Medium";
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;
running = true;
_root.runningVar = "Run";
_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");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
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 + 10, _y + 3, true) || (_root.ground["platform" + a].hitTest(_x - 10, _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 + 10, _y + 3, true) || (_root.ground["downPlatform" + v].hitTest(_x - 10, _y + 3, true))) && ((!_root.ground["downPlatform" + v].hitTest(_x + 10, _y, true)) || (!_root.ground["downPlatform" + v].hitTest(_x - 10, _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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if (_root.verticalLevel == true) {
c = 0;
while (c < 6) {
if (_root.ground["vPlatform" + c].hitTest(_x + 10, _y + 3, true) || (_root.ground["vPlatform" + c].hitTest(_x - 10, _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 + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _y - _height, true))) {
_x = (_x - speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_x = (_x + _root.ground["platform" + a].speed);
}
a++;
}
if (speed >= 2.6) {
speed = speed - 0.2;
}
}
if ((_root.ground.hitTest(_x - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _y - _height, true))) {
_x = (_x + speed);
a = 1;
while (a <= _root.totalHorizontalPlatforms) {
if (_root.ground["platform" + a].hitTest(this)) {
_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 + 10, _y + 3, true) && (!_root.ground.hitTest(_x + 15, _y + 5, true))) && (_xscale == -100)) {
if (((jump == false) && (grav == 0)) && (this.isWalking == true)) {
jump = true;
}
} else if ((_root.ground.hitTest(_x - 10, _y + 3, true) && (!_root.ground.hitTest(_x - 15, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == 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.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 1320 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 - 2;
}
}
Frame 540
stopAllSounds();
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
if (_root.lives <= 0) {
_root.prevFrame();
_root.lives = 5;
} else {
_root.prevFrame();
}
Key.removeListener(_root.musicListener);
Frame 541
_root.clickStart2.onPress = function () {
stopAllSounds();
gotoAndStop (515);
};
Frame 1363
stopAllSounds();
gotoAndStop (515);
Frame 1364
Mouse.show();
stopAllSounds();
_root.endBoss = false;
Key.removeListener(_root.musicListener);
Instance of Symbol 1395 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 1935 MovieClip "ground" in Frame 1942
onClipEvent (enterFrame) {
_y = 0;
this.groundMCDefault._visible = false;
}
Instance of Symbol 1937 MovieClip "items" in Frame 1942
onClipEvent (enterFrame) {
_y = 0;
this.itemsMCDefault._visible = false;
}
Instance of Symbol 1942 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 43 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 29 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 1972 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 1986 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 1972 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 1990 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 2000 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 2041 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 2041 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 2041 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 2045 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 2045 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 2052 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 2054 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 2056 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 2059 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 2061 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 2063 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 2077 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 2080 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 2083 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2083 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2086 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile + 12;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2086 MovieClip in Frame 1942
on (press) {
_root.currentTile = _root.currentTile - 12;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2090 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 2092 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 2098 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 2101 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 2083 MovieClip in Frame 1942
on (press) {
_root.currentBGTile = _root.currentBGTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2083 MovieClip in Frame 1942
on (press) {
_root.currentBGTile = _root.currentBGTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2083 MovieClip in Frame 1942
on (press) {
_root.currentBGColorTile = _root.currentBGColorTile - 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2083 MovieClip in Frame 1942
on (press) {
_root.currentBGColorTile = _root.currentBGColorTile + 1;
this.gotoAndStop(2);
}
on (release, releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 2109 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 2111 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 2113 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 2115 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 2117 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 2118 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 2120 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 2120 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 1990 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 2000 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 2123 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 2123 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 2123 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 2125 MovieClip "enemyType11" in Frame 1942
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Instance of Symbol 2125 MovieClip "enemyType12" in Frame 1942
onClipEvent (load) {
var isDead = false;
}
onClipEvent (enterFrame) {
if (_root.editor == false) {
if ((_x < 1500) && (_x > -1500)) {
this._visible = true;
} else {
this._visible = false;
}
}
}
Instance of Symbol 1986 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 2162 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;
running = true;
_root.runningVar = "Run";
_root.aimShoot = false;
_root.ammo = 25;
_root.kills = 0;
_root.score = 0;
_root.health = 10;
_root.scrollingLeft = true;
_root.scrollingRight = true;
this.gotoAndStop("jumping");
emptyChamber = new Sound();
emptyChamber.attachSound("emptyChamber");
shootingGunSound = new Sound();
shootingGunSound.attachSound("shootingGunSound");
shootingGunSound2 = new Sound();
shootingGunSound2.attachSound("shootingGunSound2");
}
onClipEvent (enterFrame) {
if (_root.exitingLevel == false) {
if (_root.editor == false) {
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
grav++;
}
if (grav >= 22) {
grav = 22;
}
if (_root.godMode == true) {
_root.health = 9;
}
if (_root.infiniteAmmo == true) {
_root.ammo = 99;
}
if (_root.infiniteLives == true) {
_root.lives = 9;
}
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 + 10, _y, true) || (_root.ground.hitTest(_x - 10, _y, true))) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x + 10, _y + 3, true)) && (!_root.ground.hitTest(_x - 10, _y + 3, true))) {
_root.isStanding = false;
} else {
_root.isStanding = true;
}
if ((_root.ground.hitTest(_x + 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x + 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x + 25, _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 - 25, _y - (_height / 2), true) || (_root.ground.hitTest(_x - 25, _y - (_height / 6), true))) || (_root.ground.hitTest(_x - 25, _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 + 10, _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 - 10, _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 = 45 + Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
} else if (_root.target._x < _x) {
_root.yGunPos = 45 - Math.round((((_root.yGunMC._ymouse / _root.yGunMC._xmouse) * 2) * Math.PI) * 7.2);
}
}
if (_root.yGunPos <= 1) {
_root.yGunPos = 1;
}
if (_root.yGunPos >= 90) {
_root.yGunPos = 90;
}
if (_root.ground.hitTest(_x + 10, (_y - _height) - 10, true) || (_root.ground.hitTest(_x - 10, (_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;
}
running = true;
_root.runningVar = "Run";
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);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
_x = (_x - speed);
if (_root.isStanding == true) {
if (_root.isShooting == false) {
this.gotoAndStop("moving");
}
} else if ((_root.jumping == true) && (_root.isShooting == false)) {
this.gotoAndStop("jumping");
} else {
this.gotoAndStop("shooting");
}
} else if ((((Key.isDown(40) || (Key.isDown(83))) && (_root.jumping == false)) && (_root.isShooting == false)) && (_root.isStanding == true)) {
this.gotoAndStop("ducking");
} else if (_root.isStanding == true) {
_root.jumping = false;
if (_root.isShooting == false) {
this.gotoAndStop("standing");
}
}
if (_root.isStanding == true) {
_root.jumping = false;
}
if (((Key.isDown(38) || (Key.isDown(87))) && (_root.jumping == false)) && (_root.isStanding == true)) {
grav = -jumpHeight;
_y = (_y - 4);
if (_root.isShooting == false) {
this.gotoAndStop("jumping");
}
_root.jumping = true;
}
if (_root.isHurt == true) {
this.gotoAndStop("hurt");
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.editor == false) {
if (_root.exitingLevel == true) {
} else if (isDead == false) {
if (_root.ammo > 0) {
if (_root.isShooting == false) {
if (_root.ground.hitTest(_x + 10, _y + 3, true) || (_root.ground.hitTest(_x - 10, _y + 3, true))) {
this.gotoAndStop("shoot");
} else {
this.gotoAndStop("shoot");
}
this.shooting.gotoAndPlay(1);
_root.gunTimer.gotoAndPlay(2);
if (_root.gunType == 1) {
shootingGunSound.start();
} else if (_root.gunType == 2) {
shootingGunSound2.start();
} else if (_root.gunType == 3) {
shootingGunSound2.start();
}
}
} else if (_root.ammo <= 0) {
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 2163 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 2164 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 2165 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 2166 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 2167 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 2169 MovieClip in Frame 1942
onClipEvent (enterFrame) {
if (_root.gridOn == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2183 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 = "Medium";
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 = 25;
_root.kills = 0;
_root.civKills = 0;
_root.score = 0;
_root.health = 10;
_root.player.isDead = false;
Instance of Symbol 2200 MovieClip "bottom" in Frame 1943
onClipEvent (enterFrame) {
_x = _root.player._x;
}
Instance of Symbol 2201 MovieClip "yGunMC" in Frame 1943
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y - 40;
}
Instance of Symbol 2205 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 2206 MovieClip "bulletHitTest" in Frame 1943
onClipEvent (enterFrame) {
if (_root.isBulletShooting == true) {
this.gotoAndStop(1);
_y = (_y + (_root.bullet.bullet._rotation / 1.4));
this._visible = true;
if (_root.gunType == 1) {
this._visible = false;
}
} 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;
this._visible = false;
}
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 126 MovieClip in Frame 1943
onClipEvent (enterFrame) {
if (_root.health == 10) {
this.gotoAndStop(1);
} else if (_root.health == 9) {
this.gotoAndStop(2);
} else if (_root.health == 8) {
this.gotoAndStop(3);
} else if (_root.health == 7) {
this.gotoAndStop(4);
} else if (_root.health == 6) {
this.gotoAndStop(5);
} else if (_root.health == 5) {
this.gotoAndStop(6);
} else if (_root.health == 4) {
this.gotoAndStop(7);
} else if (_root.health == 3) {
this.gotoAndStop(8);
} else if (_root.health == 2) {
this.gotoAndStop(9);
} else if (_root.health == 1) {
this.gotoAndStop(10);
} else if (_root.health == 0) {
this.gotoAndStop(11);
}
if (_root.health >= 10) {
_root.health = 10;
}
if (_root.health <= 0) {
_root.health = 0;
}
}
Instance of Symbol 2212 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 >= 90) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 1974
stop();
_root.gotoMenu.onRelease = function () {
_root.gunTypeVar = 2;
gotoAndStop (514);
};
Instance of Symbol 108 MovieClip "gotoMenu" in Frame 1974
on (release) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 15 MovieClip Frame 1
_parent.isWalking = true;
Symbol 15 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 15 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 15 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 15 MovieClip Frame 271
_parent.isWalking = false;
Symbol 15 MovieClip Frame 330
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 21 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip "flame" in Symbol 21 MovieClip Frame 2
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent._parent.isWalking = true;
_parent._parent.enemy.gotoAndPlay(270);
_parent.gotoAndStop(1);
}
}
Symbol 28 MovieClip Frame 24
stop();
Symbol 29 MovieClip [enemy2] Frame 1
stop();
Symbol 35 MovieClip Frame 1
_parent.jump = true;
_parent.isWalking = true;
Symbol 35 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 35 MovieClip Frame 120
_parent.jump = true;
Symbol 35 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 35 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
_parent.isWalking = true;
Symbol 42 MovieClip Frame 24
stop();
Symbol 43 MovieClip [enemy1] Frame 1
stop();
Symbol 48 MovieClip Frame 1
bar.stop();
Symbol 48 MovieClip Frame 100
bar.stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 110 MovieClip Frame 1
on (press) {
}
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip Frame 1
on (release) {
this.gotoAndStop(1);
_parent._visible = false;
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 114 MovieClip Frame 1
stop();
_root.isShooting = false;
Symbol 114 MovieClip Frame 2
_root.ammo = _root.ammo - 1;
_root.isShooting = true;
Symbol 117 MovieClip Frame 1
_root.isBulletShooting = false;
Symbol 117 MovieClip Frame 2
_root.isBulletShooting = true;
Symbol 117 MovieClip Frame 20
_root.isBulletShooting = false;
Symbol 120 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 139 MovieClip Frame 1
gotoAndStop(_root.charType);
Symbol 146 MovieClip Frame 1
var move = true;
Symbol 146 MovieClip Frame 2
var move = false;
Symbol 146 MovieClip Frame 8
gotoAndStop (1);
Symbol 149 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 120
_root.nextFrame();
Symbol 171 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 175 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 179 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 183 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 184 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 175 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Instance of Symbol 179 MovieClip in Symbol 184 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 197 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 199 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 203 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 205 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 205 MovieClip "gun" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 209 MovieClip Frame 1
_root.isHurt = false;
stop();
_root.damage = 1;
Symbol 209 MovieClip Frame 2
_root.isHurt = true;
_root.damage = 2;
_parent._alpha = 50;
Symbol 209 MovieClip Frame 12
_root.isHurt = false;
Symbol 209 MovieClip Frame 15
_parent._alpha = 100;
Symbol 209 MovieClip Frame 30
_parent._alpha = 50;
Symbol 209 MovieClip Frame 45
_parent._alpha = 100;
Symbol 209 MovieClip Frame 60
_parent._alpha = 50;
Symbol 209 MovieClip Frame 80
gotoAndStop (1);
_parent._alpha = 100;
Symbol 209 MovieClip Frame 81
stop();
Symbol 213 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 217 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 205 MovieClip "gun" in Symbol 218 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 226 MovieClip Frame 70
stop();
Symbol 234 MovieClip Frame 70
stop();
Symbol 241 MovieClip Frame 60
stop();
Symbol 242 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 246 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 250 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 252 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 254 MovieClip Frame 70
stop();
Symbol 258 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 262 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 266 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 272 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 273 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 276 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 280 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 284 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 285 MovieClip Frame 60
stop();
Symbol 286 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 267 MovieClip "feet" in Symbol 287 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 286 MovieClip "gun" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 287 MovieClip Frame 60
stop();
Symbol 291 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 4
_alpha = 100;
Symbol 293 MovieClip Frame 5
pipeSound = new Sound();
pipeSound.attachSound("pipeSound");
if (_root.exitingLevel == true) {
pipeSound.start();
}
Symbol 313 MovieClip Frame 36
gotoAndPlay (1);
Symbol 313 MovieClip Frame 40
stop();
_root.helpBox.gotoAndStop(2);
Symbol 329 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 329 MovieClip Frame 266
speed = 0;
goRight = false;
goLeft = false;
Symbol 329 MovieClip Frame 296
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 329 MovieClip Frame 561
speed = 0;
goRight = false;
goLeft = false;
Symbol 330 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 330 MovieClip Frame 71
speed = 0;
goRight = false;
goLeft = false;
Symbol 330 MovieClip Frame 101
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 330 MovieClip Frame 171
speed = 0;
goRight = false;
goLeft = false;
Instance of Symbol 313 MovieClip in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y + 40, true) && (this._currentframe <= 36)) {
this.gotoAndPlay(37);
}
}
Instance of Symbol 329 MovieClip "platform1" in Symbol 334 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 330 MovieClip "platform2" in Symbol 334 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 333 MovieClip "exitLevelMC" in Symbol 334 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 336 MovieClip Frame 1
_parent.jump = true;
_parent.isWalking = true;
Symbol 336 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 336 MovieClip Frame 120
_parent.jump = true;
Symbol 336 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 336 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
_parent.isWalking = true;
Symbol 338 MovieClip Frame 1
stop();
Instance of Symbol 337 MovieClip "flame" in Symbol 338 MovieClip Frame 2
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent._parent.isWalking = true;
_parent._parent.enemy.gotoAndPlay(270);
_parent.gotoAndStop(1);
}
}
Symbol 339 MovieClip Frame 24
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 1
_parent.isWalking = true;
Symbol 342 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 342 MovieClip Frame 180
_parent.flame._x = _parent._parent._x;
if ((_parent._x < 750) && (_parent._x > -30)) {
_parent.isWalking = false;
} else {
_parent.isWalking = true;
}
Symbol 342 MovieClip Frame 270
_parent.flame.gotoAndStop(1);
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 342 MovieClip Frame 271
_parent.isWalking = false;
Symbol 342 MovieClip Frame 330
gotoAndPlay (1);
_parent.isWalking = true;
Symbol 343 MovieClip Frame 24
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 351 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 3
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 400;
Symbol 359 MovieClip Frame 19
stop();
Symbol 360 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 364 MovieClip Frame 1
_parent.isShooting = true;
Symbol 364 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Instance of Symbol 362 MovieClip "missile" in Symbol 364 MovieClip Frame 11
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent.gotoAndPlay(101);
}
}
Symbol 364 MovieClip Frame 161
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 365 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 375 MovieClip Frame 32
stop();
Symbol 381 MovieClip Frame 1
stop();
Instance of Symbol 347 MovieClip "cannon" in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 351 MovieClip "aim" in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 352 MovieClip "shoot" in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 360 MovieClip "cannon" in Symbol 381 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 365 MovieClip "shoot" in Symbol 381 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 384 MovieClip in Symbol 385 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 2;
_root.score = _root.score + 100;
this.gotoAndStop(2);
}
}
Symbol 414 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
xPosition = _root.player._x;
yPosition = _root.player._y;
this.onEnterFrame = function () {
if (_currentframe == 2) {
_root.editor = true;
} else {
_root.editor = false;
}
};
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip Frame 2
on (release) {
this.gotoAndStop(1);
_parent.gotoAndStop(1);
_root.editor = false;
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(2);
}
Symbol 431 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 431 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 431 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 431 MovieClip Frame 37
_parent.insBonusAmmo._visible = true;
_root.pointsSound.start();
Symbol 431 MovieClip Frame 42
gotoAndPlay (37);
if (_parent.bonusAmmo < (_root.kills + 5)) {
_parent.bonusAmmo = _parent.bonusAmmo + 1;
} else {
gotoAndPlay (43);
}
Symbol 431 MovieClip Frame 102
stopAllSounds();
_root.ammo = _root.ammo + _parent.bonusAmmo;
_root.lives = _root.lives + _parent.bonusLives;
_root.exitingLevel = false;
_root.health = 10;
_root.gotoAndStop(_root._currentframe + 2);
Symbol 438 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 2
insTotalScore._visible = false;
insBonusLives._visible = false;
insBonusAmmo._visible = false;
totalScore = 0;
bonusLives = 0;
bonusAmmo = 0;
Instance of Symbol 431 MovieClip "gameOverTimer" in Symbol 438 MovieClip Frame 2
onClipEvent (load) {
this.soundCounter = 0;
}
Symbol 439 MovieClip Frame 1
timer = false;
Symbol 439 MovieClip Frame 120
timer = true;
stop();
Symbol 440 MovieClip Frame 1
timer = false;
Symbol 440 MovieClip Frame 120
timer = true;
stop();
Symbol 442 Button
on (release) {
stopAllSounds();
_root.nextFrame();
this.gotoAndStop(1);
}
Symbol 445 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("titleFrame2");
this.gotoAndStop(1);
}
Symbol 452 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip in Symbol 452 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.timer == true) {
stopAllSounds();
_root.nextFrame();
_parent.gotoAndStop(1);
}
}
Symbol 497 MovieClip Frame 1
speed = -1.5;
Symbol 497 MovieClip Frame 360
_y = 520;
Symbol 498 MovieClip Frame 1
speed = 1.5;
Symbol 498 MovieClip Frame 360
_y = -40;
Symbol 499 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 499 MovieClip Frame 191
speed = 0;
goRight = false;
goLeft = false;
Symbol 499 MovieClip Frame 221
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 499 MovieClip Frame 411
speed = 0;
goRight = false;
goLeft = false;
Symbol 500 MovieClip Frame 1
speed = 1.5;
goRight = true;
goLeft = false;
Symbol 500 MovieClip Frame 71
speed = 0;
goRight = false;
goLeft = false;
Symbol 500 MovieClip Frame 101
speed = -1.5;
goRight = false;
goLeft = true;
Symbol 500 MovieClip Frame 171
speed = 0;
goRight = false;
goLeft = false;
Symbol 503 MovieClip Frame 1
speed = -1.5;
Symbol 503 MovieClip Frame 151
speed = 0;
Symbol 503 MovieClip Frame 191
speed = 1.5;
Symbol 503 MovieClip Frame 341
speed = 0;
Instance of Symbol 497 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 497 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 497 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 497 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 498 MovieClip "downPlatform2" in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 498 MovieClip "downPlatform1" in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 499 MovieClip "platform1" in Symbol 506 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 500 MovieClip "platform2" in Symbol 506 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 503 MovieClip "downPlatform3" in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 505 MovieClip "exitLevelMC" in Symbol 506 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 513 MovieClip Frame 1
stop();
isDropped = 1;
Symbol 513 MovieClip Frame 2
isDropped = 2;
this.onEnterFrame = function () {
xValue = _parent._x;
yValue = _parent._y;
};
Symbol 513 MovieClip Frame 3
isDropped = 3;
helicopterBombSound = new Sound();
helicopterBombSound.attachSound("helicopterBombSound");
if ((_parent._x < 848) && (_parent._x > -128)) {
helicopterBombSound.start();
}
Symbol 513 MovieClip Frame 30
_parent.enemy.opener.gotoAndPlay(2);
Symbol 513 MovieClip Frame 40
_x = -18;
if ((_parent._currentframe == 4) || (_parent._currentframe == 5)) {
stop();
}
Symbol 517 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Instance of Symbol 518 MovieClip "opener" in Symbol 533 MovieClip Frame 1
onClipEvent (enterFrame) {
this.openerMC.gotoAndStop(_parent._currentframe);
}
Symbol 541 MovieClip Frame 22
stop();
Symbol 543 MovieClip Frame 1
stop();
Instance of Symbol 513 MovieClip "bomb" in Symbol 543 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 543 MovieClip Frame 4
_root.kills = _root.kills + 1;
_root.score = _root.score + 500;
Symbol 548 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 30
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip in Symbol 567 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 560 MovieClip in Symbol 567 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 560 MovieClip in Symbol 567 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 384 MovieClip in Symbol 567 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 566 MovieClip in Symbol 567 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.lives = _root.lives + 1;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Symbol 588 MovieClip Frame 1
stop();
Instance of Symbol 627 MovieClip "exitLevelMC" in Symbol 628 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 641 MovieClip Frame 32
stop();
Symbol 644 MovieClip Frame 1
stop();
action = random(2);
this.gotoAndStop(action + 2);
Symbol 645 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 32
stop();
Symbol 659 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 32
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip in Symbol 676 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 675 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 1;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 679 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 1
speed = -1.5;
Symbol 718 MovieClip Frame 151
speed = 0;
Symbol 718 MovieClip Frame 191
speed = 1.5;
Symbol 718 MovieClip Frame 341
speed = 0;
Symbol 719 MovieClip Frame 1
speed = 2;
goRight = true;
goLeft = false;
Symbol 719 MovieClip Frame 161
speed = 0;
goRight = false;
goLeft = false;
Symbol 719 MovieClip Frame 201
speed = -2;
goRight = false;
goLeft = true;
Symbol 719 MovieClip Frame 361
speed = 0;
goRight = false;
goLeft = false;
Symbol 720 MovieClip Frame 1
speed = 2;
goRight = true;
goLeft = false;
Symbol 720 MovieClip Frame 276
speed = 0;
goRight = false;
goLeft = false;
Symbol 720 MovieClip Frame 336
speed = -2;
goRight = false;
goLeft = true;
Symbol 720 MovieClip Frame 611
speed = 0;
goRight = false;
goLeft = false;
Symbol 721 MovieClip Frame 1
speed = -1.5;
Symbol 721 MovieClip Frame 61
speed = 0;
Symbol 721 MovieClip Frame 101
speed = 1.5;
Symbol 721 MovieClip Frame 161
speed = 0;
Instance of Symbol 718 MovieClip "vPlatform1" in Symbol 724 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 718 MovieClip "vPlatform2" in Symbol 724 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 718 MovieClip "vPlatform3" in Symbol 724 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 718 MovieClip "vPlatform5" in Symbol 724 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 719 MovieClip "platform1" in Symbol 724 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 719 MovieClip "platform3" in Symbol 724 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 720 MovieClip "platform2" in Symbol 724 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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_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;
if (_root.currentLevel == 1) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 3);
} else if ((_root.currentLevel == 2) || (_root.currentLevel == 3)) {
_root.backDrop._x = _root.backDrop._x - (this.speed / 2);
}
_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 < 18) {
_root["enemy" + c]._x = _root["enemy" + c]._x - speed;
c++;
}
}
}
}
Instance of Symbol 721 MovieClip "vPlatform4" in Symbol 724 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 723 MovieClip "exitLevelMC" in Symbol 724 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Instance of Symbol 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 727 MovieClip in Symbol 728 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 732 MovieClip Frame 1
stop();
isFalling = 1;
Symbol 732 MovieClip Frame 2
isFalling = 2;
Symbol 732 MovieClip Frame 22
stop();
isFalling = 3;
Symbol 732 MovieClip Frame 23
stop();
Instance of Symbol 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 732 MovieClip in Symbol 733 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 734 MovieClip Frame 1
stop();
Instance of Symbol 734 MovieClip in Symbol 735 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 566 MovieClip in Symbol 735 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 798 MovieClip "exitLevelMC" in Symbol 799 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 800 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip in Symbol 801 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 560 MovieClip in Symbol 801 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 800 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 3;
_root.score = _root.score + 150;
this.gotoAndStop(2);
}
}
Symbol 857 MovieClip Frame 1
speed = -1.5;
Symbol 857 MovieClip Frame 360
_y = 520;
Symbol 858 MovieClip Frame 1
speed = 1.5;
Symbol 858 MovieClip Frame 360
_y = -40;
Instance of Symbol 857 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 858 MovieClip "downPlatform2" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 858 MovieClip "downPlatform1" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 857 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(180);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 861 MovieClip in Symbol 870 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 864 MovieClip in Symbol 870 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 864 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 867 MovieClip in Symbol 870 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 864 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 861 MovieClip in Symbol 870 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 869 MovieClip "exitLevelMC" in Symbol 870 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Instance of Symbol 560 MovieClip in Symbol 871 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 560 MovieClip in Symbol 871 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 675 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 1;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 928 MovieClip Frame 1
speed = -1.5;
Symbol 928 MovieClip Frame 251
_y = (_y + 1000);
speed = 0;
Symbol 928 MovieClip Frame 311
_y = (_y - 1000);
speed = 0;
Symbol 928 MovieClip Frame 312
speed = 1.5;
Symbol 929 MovieClip Frame 1
speed = -1.5;
Symbol 929 MovieClip Frame 81
speed = 1.5;
Symbol 929 MovieClip Frame 161
_y = (_y + 1000);
speed = 0;
Symbol 929 MovieClip Frame 220
_y = (_y - 1000);
speed = 0;
Symbol 930 MovieClip Frame 1
speed = -1.5;
Symbol 930 MovieClip Frame 221
speed = 0;
_y = (_y + 1000);
Symbol 930 MovieClip Frame 280
speed = 0;
_y = (_y - 1000);
Symbol 930 MovieClip Frame 281
speed = 1.5;
Instance of Symbol 928 MovieClip "downPlatform2" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform1" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform3" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform4" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform6" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 930 MovieClip "downPlatform5" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform7" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 929 MovieClip "downPlatform8" in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
onClipEvent (load) {
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
Instance of Symbol 932 MovieClip "exitLevelMC" in Symbol 933 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 {
Key.removeListener(_root.musicListener);
_root.beatLevel.gotoAndStop(2);
}
}
}
Symbol 938 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 943 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 2
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 250;
Symbol 950 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 951 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 957 MovieClip Frame 19
stop();
Symbol 964 MovieClip Frame 19
stop();
Symbol 972 MovieClip Frame 19
stop();
Symbol 982 MovieClip Frame 19
stop();
Symbol 983 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 984 MovieClip Frame 19
stop();
Symbol 985 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 994 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 995 MovieClip Frame 1
_parent.isShooting = true;
Symbol 995 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Instance of Symbol 994 MovieClip in Symbol 995 MovieClip Frame 11
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent.gotoAndPlay(121);
}
}
Symbol 995 MovieClip Frame 181
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 996 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1000 MovieClip Frame 21
stop();
Symbol 1004 MovieClip Frame 21
stop();
Symbol 1008 MovieClip Frame 21
stop();
Symbol 1012 MovieClip Frame 21
stop();
Symbol 1013 MovieClip Frame 1
stop();
gotoAndStop(_parent.colorScheme);
Symbol 1014 MovieClip Frame 1
stop();
Instance of Symbol 951 MovieClip "cannon" in Symbol 1014 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 351 MovieClip "aim" in Symbol 1014 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 952 MovieClip "shoot" in Symbol 1014 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 985 MovieClip "cannon" in Symbol 1014 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 996 MovieClip "shoot" in Symbol 1014 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 800 MovieClip in Symbol 1015 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 3;
_root.score = _root.score + 150;
this.gotoAndStop(2);
}
}
Symbol 1092 MovieClip Frame 1
speed = -1.5;
Symbol 1092 MovieClip Frame 360
_y = 520;
Symbol 1093 MovieClip Frame 1
speed = 1.5;
Symbol 1093 MovieClip Frame 360
_y = -40;
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1093 MovieClip "downPlatform3" in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1093 MovieClip "downPlatform2" in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1093 MovieClip "downPlatform1" in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
_root.totalVerticalPlatforms = _root.totalVerticalPlatforms + 1;
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(121);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1092 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(241);
}
onClipEvent (enterFrame) {
this._y = this._y + this.speed;
}
Instance of Symbol 1095 MovieClip "exitLevelMC" in Symbol 1096 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 {
Key.removeListener(_root.musicListener);
stopAllSounds();
_root.exitingLevel = false;
_root.ammo = _root.ammo + (_root.kills + 5);
_root.gotoAndStop("levelName9");
}
}
}
Instance of Symbol 1099 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1099 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1099 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1099 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1099 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 1100 MovieClip "flame" in Symbol 1101 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 734 MovieClip in Symbol 1102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.health = _root.health + 4;
_root.score = _root.score + 250;
this.gotoAndStop(2);
}
}
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1290 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1290 MovieClip Frame 11
if (_root.bossHealth <= 0) {
_parent.gotoAndStop("finalHit");
play();
}
Symbol 1290 MovieClip Frame 31
if (_root.bossHealth > 0) {
stop();
}
Symbol 1290 MovieClip Frame 113
_root.bossHealth = 0;
_root.bossDead = true;
stop();
Symbol 1298 MovieClip Frame 29
gotoAndPlay (1);
Symbol 1298 MovieClip Frame 30
stop();
Symbol 1300 MovieClip Frame 1
stop();
Instance of Symbol 1298 MovieClip in Symbol 1300 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 - 2;
}
}
Instance of Symbol 1298 MovieClip in Symbol 1300 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 - 2;
}
}
Instance of Symbol 1298 MovieClip in Symbol 1300 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 - 2;
}
}
Symbol 1303 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 1290 MovieClip "dog2" in Symbol 1303 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 1303 MovieClip Frame 99
if (_root.bossHealth <= 0) {
gotoAndStop (41);
} else {
gotoAndPlay (1);
}
Instance of Symbol 1300 MovieClip in Symbol 1303 MovieClip Frame 100
onClipEvent (load) {
action = random(3);
this.gotoAndStop(action + 1);
}
Symbol 1303 MovieClip Frame 168
gotoAndPlay (1);
Instance of Symbol 560 MovieClip in Symbol 1303 MovieClip Frame 169
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.ammo = _root.ammo + 5;
_root.score = _root.score + 50;
this.gotoAndStop(2);
}
}
Symbol 1303 MovieClip Frame 237
gotoAndPlay (1);
Symbol 1305 MovieClip Frame 1
_root.bossBegin = false;
_root.bossBegin2 = false;
Symbol 1305 MovieClip Frame 240
stop();
_root.bossBegin = true;
_root.bossBegin2 = true;
Symbol 1313 MovieClip Frame 90
stop();
Symbol 1320 MovieClip Frame 1
action = random(630);
_x = (action + 30);
if (_root.bossBegin == false) {
gotoAndStop (150);
}
Symbol 1320 MovieClip Frame 150
this.onEnterFrame = function () {
if (_root.bossBegin == true) {
this.play();
} else {
stop();
}
};
Symbol 1323 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 61
stop();
_root.gotoAndPlay("cinematic2");
Symbol 1388 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 1389 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Symbol 1390 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 1389 MovieClip "gun" in Symbol 1391 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 1393 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 1389 MovieClip "gun" in Symbol 1394 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1421 MovieClip Frame 1
stop();
Symbol 1448 MovieClip Frame 1
stop();
Symbol 1934 MovieClip Frame 1
stop();
_root.exitPipe = 0;
Instance of Symbol 1893 MovieClip in Symbol 1934 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 1896 MovieClip in Symbol 1934 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 1898 MovieClip in Symbol 1934 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 1900 MovieClip in Symbol 1934 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 1934 MovieClip Frame 417
_root.exitPipe = 1;
Instance of Symbol 1926 MovieClip in Symbol 1934 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 1927 MovieClip in Symbol 1934 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 1928 MovieClip in Symbol 1934 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 1929 MovieClip in Symbol 1934 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 1930 MovieClip in Symbol 1934 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 1931 MovieClip in Symbol 1934 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 1932 MovieClip in Symbol 1934 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 1933 MovieClip in Symbol 1934 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 1934 MovieClip "groundMCDefault" in Symbol 1935 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 1936 MovieClip Frame 1
stop();
Instance of Symbol 1936 MovieClip "itemsMCDefault" in Symbol 1937 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 1939 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 1944 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1949 MovieClip Frame 1
stop();
Symbol 1949 MovieClip Frame 3
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 400;
Symbol 1951 MovieClip Frame 19
stop();
Symbol 1952 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1955 MovieClip Frame 1
_parent.isShooting = true;
Symbol 1955 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Instance of Symbol 1953 MovieClip in Symbol 1955 MovieClip Frame 11
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent.gotoAndPlay(101);
}
}
Symbol 1955 MovieClip Frame 161
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1956 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 1966 MovieClip Frame 32
stop();
Symbol 1972 MovieClip Frame 1
stop();
Instance of Symbol 1944 MovieClip "aim" in Symbol 1972 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1945 MovieClip "shoot" in Symbol 1972 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1952 MovieClip "cannon" in Symbol 1972 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1956 MovieClip "shoot" in Symbol 1972 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 1974 MovieClip Frame 32
stop();
Symbol 1978 MovieClip Frame 1
stop();
action = random(2);
this.gotoAndStop(action + 2);
Symbol 1979 MovieClip Frame 1
stop();
Symbol 1981 MovieClip Frame 32
stop();
Symbol 1982 MovieClip Frame 1
stop();
Symbol 1984 MovieClip Frame 32
stop();
Symbol 1985 MovieClip Frame 1
stop();
Symbol 1986 MovieClip Frame 1
stop();
Symbol 1988 MovieClip Frame 1
stop();
Symbol 1989 MovieClip Frame 30
stop();
Symbol 1990 MovieClip Frame 1
stop();
Symbol 1991 MovieClip Frame 1
stop();
isDropped = 1;
Symbol 1991 MovieClip Frame 2
isDropped = 2;
Symbol 1991 MovieClip Frame 3
isDropped = 3;
helicopterBombSound = new Sound();
helicopterBombSound.attachSound("helicopterBombSound");
if ((_parent._x < 848) && (_parent._x > -128)) {
helicopterBombSound.start();
}
Symbol 1991 MovieClip Frame 30
_parent.enemy.opener.gotoAndPlay(2);
Symbol 1991 MovieClip Frame 40
_x = -18;
if ((_parent._currentframe == 4) || (_parent._currentframe == 5)) {
stop();
}
Symbol 1992 MovieClip Frame 1
stop();
Symbol 1993 MovieClip Frame 1
stop();
Symbol 1998 MovieClip Frame 1
stop();
Instance of Symbol 1993 MovieClip "opener" in Symbol 1998 MovieClip Frame 1
onClipEvent (enterFrame) {
this.openerMC.gotoAndStop(_parent._currentframe);
}
Symbol 1999 MovieClip Frame 22
stop();
Symbol 2000 MovieClip Frame 1
stop();
Instance of Symbol 1991 MovieClip "bomb" in Symbol 2000 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 2000 MovieClip Frame 4
_root.kills = _root.kills + 1;
_root.score = _root.score + 500;
Symbol 2001 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 2002 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 2003 MovieClip Frame 1
stop();
Symbol 2003 MovieClip Frame 2
_parent.isDead = true;
_root.kills = _root.kills + 1;
_root.score = _root.score + 250;
Symbol 2006 MovieClip Frame 19
stop();
Symbol 2007 MovieClip Frame 19
stop();
Symbol 2011 MovieClip Frame 19
stop();
Symbol 2021 MovieClip Frame 19
stop();
Symbol 2022 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 2023 MovieClip Frame 19
stop();
Symbol 2024 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2029 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._parent.colorScheme);
Symbol 2030 MovieClip Frame 1
_parent.isShooting = true;
Symbol 2030 MovieClip Frame 10
if (_parent._parent.isDead == false) {
play();
} else {
stop();
}
Instance of Symbol 2029 MovieClip in Symbol 2030 MovieClip Frame 11
onClipEvent (enterFrame) {
coords = new Object();
coords.x = this._x;
coords.y = this._y;
this._parent.localToGlobal(coords);
if (_root.ground.hitTest(coords.x, coords.y, true)) {
_parent.gotoAndPlay(121);
}
}
Symbol 2030 MovieClip Frame 181
_parent.isShooting = false;
if (_parent._parent.isDead == false) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 2031 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2033 MovieClip Frame 21
stop();
Symbol 2035 MovieClip Frame 21
stop();
Symbol 2037 MovieClip Frame 21
stop();
Symbol 2039 MovieClip Frame 21
stop();
Symbol 2040 MovieClip Frame 1
stop();
gotoAndStop(_parent.colorScheme);
Symbol 2041 MovieClip Frame 1
stop();
Instance of Symbol 1944 MovieClip "aim" in Symbol 2041 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2004 MovieClip "shoot" in Symbol 2041 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 2024 MovieClip "cannon" in Symbol 2041 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2031 MovieClip "shoot" in Symbol 2041 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 2049 MovieClip Frame 1
stop();
Symbol 2076 MovieClip Frame 1
stop();
Instance of Symbol 1934 MovieClip "MC" in Symbol 2077 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Instance of Symbol 2076 MovieClip "MC" in Symbol 2077 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Instance of Symbol 1936 MovieClip "MC" in Symbol 2077 MovieClip Frame 3
onClipEvent (enterFrame) {
_root.overallTileNum = this._currentframe;
_root.totalTileNum = this._totalframes;
}
Symbol 2083 MovieClip Frame 1
stop();
Symbol 2086 MovieClip Frame 1
stop();
Symbol 2090 MovieClip Frame 1
stop();
Symbol 2092 MovieClip Frame 1
stop();
Symbol 2098 MovieClip Frame 1
stop();
Symbol 2101 MovieClip Frame 1
stop();
Symbol 2109 MovieClip Frame 1
stop();
Symbol 2111 MovieClip Frame 1
stop();
Symbol 2113 MovieClip Frame 1
stop();
Symbol 2115 MovieClip Frame 1
stop();
Symbol 2117 MovieClip Frame 1
stop();
Symbol 2118 MovieClip Frame 1
stop();
Symbol 2119 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2120 MovieClip Frame 1
stop();
Instance of Symbol 2119 MovieClip "cannon" in Symbol 2120 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1944 MovieClip "aim" in Symbol 2120 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1945 MovieClip "shoot" in Symbol 2120 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 1952 MovieClip "cannon" in Symbol 2120 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1956 MovieClip "shoot" in Symbol 2120 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Symbol 2121 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.colorScheme);
Symbol 2122 MovieClip Frame 1
stop();
gotoAndStop(_parent.rotateMC.rotation);
Symbol 2123 MovieClip Frame 1
stop();
Instance of Symbol 2122 MovieClip "cannon" in Symbol 2123 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 1944 MovieClip "aim" in Symbol 2123 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2004 MovieClip "shoot" in Symbol 2123 MovieClip Frame 1
onClipEvent (enterFrame) {
this.isShooting = false;
}
Instance of Symbol 2024 MovieClip "cannon" in Symbol 2123 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2031 MovieClip "shoot" in Symbol 2123 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent.rotateMC.rotation);
}
Instance of Symbol 2043 MovieClip in Symbol 2124 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 2043 MovieClip in Symbol 2124 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 2043 MovieClip in Symbol 2124 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 2043 MovieClip in Symbol 2124 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 2043 MovieClip in Symbol 2124 MovieClip Frame 1
onClipEvent (enterFrame) {
coords = new Object();
coords.x = _x;
coords.y = _y;
this._parent.localToGlobal(coords);
if (_root.player.hitTest(coords.x, coords.y, true) && (_root.damage == 1)) {
_root.damage = 2;
_root.player.damage.gotoAndPlay(2);
_root.health = _root.health - 1;
}
}
Instance of Symbol 2124 MovieClip "flame" in Symbol 2125 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 2128 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2132 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2133 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2134 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2136 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 2136 MovieClip "gun" in Symbol 2137 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2138 MovieClip Frame 1
_root.isHurt = false;
stop();
_root.damage = 1;
Symbol 2138 MovieClip Frame 2
_root.isHurt = true;
_root.damage = 2;
_parent._alpha = 50;
Symbol 2138 MovieClip Frame 12
_root.isHurt = false;
Symbol 2138 MovieClip Frame 15
_parent._alpha = 100;
Symbol 2138 MovieClip Frame 30
_parent._alpha = 50;
Symbol 2138 MovieClip Frame 45
_parent._alpha = 100;
Symbol 2138 MovieClip Frame 60
_parent._alpha = 50;
Symbol 2138 MovieClip Frame 80
gotoAndStop (1);
_parent._alpha = 100;
Symbol 2138 MovieClip Frame 81
stop();
Symbol 2139 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2140 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Instance of Symbol 2136 MovieClip "gun" in Symbol 2141 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2142 MovieClip Frame 70
stop();
Symbol 2143 MovieClip Frame 70
stop();
Symbol 2144 MovieClip Frame 60
stop();
Symbol 2145 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2146 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2147 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2149 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2150 MovieClip Frame 70
stop();
Symbol 2151 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2152 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2153 MovieClip Frame 1
stop();
Symbol 2153 MovieClip Frame 2
stop();
Symbol 2154 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2155 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2156 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2157 MovieClip Frame 1
stop();
gotoAndStop(_root.gunType);
Symbol 2158 MovieClip Frame 1
stop();
gotoAndStop(_root.charType);
Symbol 2159 MovieClip Frame 60
stop();
Symbol 2160 MovieClip Frame 1
stop();
this.gotoAndStop(_root.yGunPos);
Instance of Symbol 2153 MovieClip "feet" in Symbol 2161 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
_root.player.shooting.feet.gotoAndStop("standing");
} else if (Key.isDown(39) || (Key.isDown(37))) {
_root.player.shooting.feet.gotoAndStop("moving");
}
}
Instance of Symbol 2160 MovieClip "gun" in Symbol 2161 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yGunPos);
}
Symbol 2161 MovieClip Frame 60
stop();
Symbol 2162 MovieClip Frame 1
stop();
Symbol 2162 MovieClip Frame 4
_alpha = 100;
Symbol 2162 MovieClip Frame 5
pipeSound = new Sound();
pipeSound.attachSound("pipeSound");
if (_root.exitingLevel == true) {
pipeSound.start();
}
Symbol 2163 MovieClip Frame 1
stop();
Symbol 2164 MovieClip Frame 1
stop();
Symbol 2165 MovieClip Frame 1
stop();
Symbol 2166 MovieClip Frame 1
stop();
Symbol 2167 MovieClip Frame 1
stop();
Symbol 2183 MovieClip Frame 1
stop();
Symbol 2190 MovieClip Frame 1
stop();
Symbol 2192 MovieClip Frame 1
stop();
Symbol 2198 MovieClip Frame 1
stop();
Instance of Symbol 2190 MovieClip "slot1" in Symbol 2198 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 2190 MovieClip "slot2" in Symbol 2198 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 2190 MovieClip "slot3" in Symbol 2198 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 2190 MovieClip "slot4" in Symbol 2198 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 2190 MovieClip "slot5" in Symbol 2198 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 2192 MovieClip "playButton" in Symbol 2198 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 2202 MovieClip Frame 1
stop();
_root.isShooting = false;
Symbol 2202 MovieClip Frame 2
_root.ammo = _root.ammo - 1;
_root.isShooting = true;
Symbol 2204 MovieClip Frame 1
_root.isBulletShooting = false;
Symbol 2204 MovieClip Frame 2
_root.isBulletShooting = true;
Symbol 2204 MovieClip Frame 20
_root.isBulletShooting = false;
Symbol 2206 MovieClip Frame 1
stop();
Symbol 2212 MovieClip Frame 1
stop();