Frame 1
stop();
var savefile = SharedObject.getLocal("Stabika");
var canToggleQuality = true;
bytes = getBytesTotal();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
onEnterFrame = function () {
var _local2 = Math.round((_root.getBytesLoaded() / bytes) * 100);
var _local3 = _root.getBytesLoaded();
percentText = _local2 + "%";
_root.preLoader.gotoAndStop(_local2);
if (_root.percentText == "100%") {
_root.startButton._alpha = 100;
} else {
_root.startButton._alpha = 0;
}
if (Key.isDown(81)) {
if (canToggleQuality == true) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
}
if (Key.isDown(81)) {
canToggleQaulity = false;
} else {
canToggleQuality = true;
}
};
Instance of Symbol 66 MovieClip "cursor" in Frame 1
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 5
stop();
Frame 10
stop();
var savefile = SharedObject.getLocal("Stabika");
_root.unlocked = savefile.data.unlocks;
_root.godRank = savefile.data.godRankUnlock;
if (savefile.data.unlocks == undefined) {
_root.unlocked = 0;
_root.godRank = 0;
}
Frame 19
gotoAndPlay (81);
Frame 22
function playerControl(mc) {
if (jumpSound == true) {
if (bg.ground.hitTest(mc._x, mc._y + 20, true)) {
if (vel_y > 8) {
effect5.start(0, 1);
jumpSound = false;
}
}
}
if (((((((Key.isDown(40) && (canJump)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) && (moveSpeed == 0)) {
player.innerPlayer.gotoAndStop(40);
ducking = true;
}
mc._y = mc._y + (vel_y++);
canJump = _root.bg.ground.hitTest(mc._x, mc._y, true);
if (canJump) {
if ((springSpeed > 0) || (springSpeed < 0)) {
moveSpeed = springSpeed;
springSpeed = 0;
}
jumping = false;
}
if (((((((Key.isDown(32) || (Key.isDown(38))) && (canJump)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
if (skidding == true) {
skidding = false;
}
jumping = true;
jumpSound = true;
vel_y = -13;
mc._y = mc._y - 15;
hopperCounter = hopperCounter + 1;
}
if (vel_y >= 18) {
vel_y = 18;
}
while (_root.bg.ground.hitTest(mc._x, mc._y, true)) {
mc._y--;
vel_y = 0;
}
if (jumping == false) {
if (attacking == false) {
if (ducking == false) {
if (vel_y > 3) {
if (!bg.ground.hitTest(_root.player._x, _root.player._y + 10, true)) {
if (fallingAnimationSet == false) {
_root.player.innerPlayer.gotoAndStop(15);
_root.player.innerPlayer.jumpingPlayer.gotoAndPlay(45);
fallingAnimationSet = true;
}
}
}
}
}
}
mc._x = mc._x + masterSpeed;
if (!Key.isDown(37)) {
if ((moveSpeed > -1) && (moveSpeed < 0)) {
moveSpeed = 0;
}
movingLeft = false;
if (moveSpeed < 0) {
if (wallJumpSide == 0) {
moveSpeed = moveSpeed + 1;
} else if ((!wallJumpSide) == 0) {
if (moveSpeed < -8) {
moveSpeed = moveSpeed + 0.3;
}
}
}
}
if (!Key.isDown(39)) {
if ((moveSpeed > 0) && (moveSpeed < 1)) {
moveSpeed = 0;
}
movingRight = false;
if (moveSpeed > 0) {
if (wallJumpSide == 0) {
moveSpeed = moveSpeed - 1;
} else if ((!wallJumpSide) == 0) {
if (moveSpeed > 8) {
moveSpeed = moveSpeed - 0.3;
}
}
}
}
if ((((((Key.isDown(37) && (movingRight == false)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
if (wallJumpSide == 0) {
movingLeft = true;
moveSpeed = moveSpeed - 0.5;
if (onGliders == false) {
mc._xscale = -playerScale;
}
}
}
if ((((((Key.isDown(39) && (movingLeft == false)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
if (wallJumpSide == 0) {
movingRight = true;
moveSpeed = moveSpeed + 0.5;
mc._xscale = playerScale;
}
}
if ((((((((((masterSpeed < -7) && (skidding == false)) && (Key.isDown(39))) && (jumping == false)) && (!Key.isDown(37))) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
player.innerPlayer.gotoAndStop(25);
skidding = true;
}
if ((((((((((masterSpeed > 7) && (skidding == false)) && (Key.isDown(37))) && (jumping == false)) && (!Key.isDown(39))) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
player.innerPlayer.gotoAndStop(25);
skidding = true;
}
if (moveSpeed >= 17) {
moveSpeed = 17;
}
if (moveSpeed <= -17) {
moveSpeed = -17;
}
if (((((((((-1 <= moveSpeed) <= 1) && (jumping == false)) && (gotoRunning == false)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
if (Key.isDown(37) || (Key.isDown(39))) {
player.innerPlayer.gotoAndStop(5);
gotoRunning = true;
}
}
if (((((((((!Key.isDown(37)) && (!Key.isDown(39))) && (moveSpeed == 0)) && (jumping == false)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
player.innerPlayer.gotoAndStop(1);
gotoRunning = false;
}
if (((((((jumping == true) && (gotoJumping == false)) && (onGliders == false)) && (fallingFromGlider == false)) && (onRails == false)) && (attacking == false)) && (ducking == false)) {
gotoJumping = true;
_root.player.innerPlayer.gotoAndStop(15);
}
}
var holder1 = createEmptyMovieClip("holder1", getNextHighestDepth());
var voice1 = new Sound(holder1);
voice1.attachSound("VoiceA");
var holder2 = createEmptyMovieClip("holder2", getNextHighestDepth());
var voice2 = new Sound(holder2);
voice2.attachSound("VoiceB");
var holder3 = createEmptyMovieClip("holder3", getNextHighestDepth());
var voice3 = new Sound(holder3);
voice3.attachSound("VoiceC");
var holder4 = createEmptyMovieClip("holder4", getNextHighestDepth());
var voice4 = new Sound(holder4);
voice4.attachSound("VoiceD");
var holder5 = createEmptyMovieClip("holder5", getNextHighestDepth());
var voice5 = new Sound(holder5);
voice5.attachSound("VoiceE");
var effectHolder1 = createEmptyMovieClip("effectHolder1", getNextHighestDepth());
var effect1 = new Sound(effectHolder1);
effect1.attachSound("effectA");
var effectHolder2 = createEmptyMovieClip("effectHolder2", getNextHighestDepth());
var effect2 = new Sound(effectHolder2);
effect2.attachSound("effectB");
var effectHolder3 = createEmptyMovieClip("effectHolder3", getNextHighestDepth());
var effect3 = new Sound(effectHolder3);
effect3.attachSound("effectC");
effect3.setVolume(200);
var effectHolder5 = createEmptyMovieClip("effectHolder5", getNextHighestDepth());
var effect5 = new Sound(effectHolder1);
effect5.attachSound("effectE");
effect5.setVolume(70);
var effectHolder6 = createEmptyMovieClip("effectHolder6", getNextHighestDepth());
var effect6 = new Sound(effectHolder6);
effect6.attachSound("effectF");
var effectHolder7 = createEmptyMovieClip("effectHolder7", getNextHighestDepth());
var effect7 = new Sound(effectHolder7);
effect7.attachSound("effectG");
var effectHolder8 = createEmptyMovieClip("effectHolder8", getNextHighestDepth());
var effect8 = new Sound(effectHolder8);
effect8.attachSound("effectH");
effect8.setVolume(200);
var effectHolder9 = createEmptyMovieClip("effectHolder9", getNextHighestDepth());
var effect9 = new Sound(effectHolder9);
effect9.attachSound("effectI");
effect9.setVolume(200);
var effectHolder10 = createEmptyMovieClip("effectHolder10", getNextHighestDepth());
var effect10 = new Sound(effectHolder10);
effect10.attachSound("effectJ");
effect10.setVolume(60);
var effectHolder11 = createEmptyMovieClip("effectHolder11", getNextHighestDepth());
var effect11 = new Sound(effectHolder11);
effect11.attachSound("effectK");
effect11.setVolume(200);
var effectHolder12 = createEmptyMovieClip("effectHolder12", getNextHighestDepth());
var effect12 = new Sound(effectHolder12);
effect12.attachSound("effectL");
effect12.setVolume(200);
var effectHolder13 = createEmptyMovieClip("effectHolder13", getNextHighestDepth());
var effect13 = new Sound(effectHolder13);
effect13.attachSound("effectM");
effect13.setVolume(200);
var effectHolder14 = createEmptyMovieClip("effectHolder14", getNextHighestDepth());
var effect14 = new Sound(effectHolder14);
effect14.attachSound("effectN");
effect14.setVolume(200);
var effectHolder15 = createEmptyMovieClip("effectHolder15", getNextHighestDepth());
var effect15 = new Sound(effectHolder15);
effect15.attachSound("effectO");
effect15.setVolume(200);
var effectHolder16 = createEmptyMovieClip("effectHolder16", getNextHighestDepth());
var effect16 = new Sound(effectHolder16);
effect16.attachSound("effectP");
effect16.setVolume(100);
var kadeVoicetHolder1 = createEmptyMovieClip("kadeVoiceHolder1", getNextHighestDepth());
var kadeVoice1 = new Sound(kadeVoiceHolder1);
kadeVoice1.attachSound("kadeA");
kadeVoice1.setVolume(70);
var kadeVoicetHolder2 = createEmptyMovieClip("kadeVoiceHolder2", getNextHighestDepth());
var kadeVoice2 = new Sound(kadeVoiceHolder2);
kadeVoice2.attachSound("kadeB");
kadeVoice2.setVolume(80);
var kadeVoicetHolder3 = createEmptyMovieClip("kadeVoiceHolder3", getNextHighestDepth());
var kadeVoice3 = new Sound(kadeVoiceHolder3);
kadeVoice3.attachSound("kadeC");
kadeVoice3.setVolume(150);
var kadeVoicetHolder4 = createEmptyMovieClip("kadeVoiceHolder4", getNextHighestDepth());
var kadeVoice4 = new Sound(kadeVoiceHolder4);
kadeVoice4.attachSound("kadeD");
kadeVoice4.setVolume(200);
var kadeVoicetHolder5 = createEmptyMovieClip("kadeVoiceHolder5", getNextHighestDepth());
var kadeVoice5 = new Sound(kadeVoiceHolder5);
kadeVoice5.attachSound("kadeE");
kadeVoice5.setVolume(200);
var cinemaSpeechHolder1 = createEmptyMovieClip("cinemaSpeechHolder1", getNextHighestDepth());
var cinemaSpeech1 = new Sound(cinemaSpeechHolder1);
cinemaSpeech1.attachSound("cinemaSpeechA");
cinemaSpeech1.setVolume(200);
var cinemaSpeechHolder2 = createEmptyMovieClip("cinemaSpeechHolder2", getNextHighestDepth());
var cinemaSpeech2 = new Sound(cinemaSpeechHolder2);
cinemaSpeech2.attachSound("cinemaSpeechB");
cinemaSpeech2.setVolume(200);
var defianceMusicHolder1 = createEmptyMovieClip("defianceMusicHolder1", getNextHighestDepth());
var defianceMusic1 = new Sound(defianceMusicHolder1);
defianceMusic1.attachSound("DefianceMusicA");
defianceMusic1.setVolume(20);
defianceMusic1.start(0, 9999);
var invincible = false;
var invincibleSeconds = 1;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var gateEnemiesKilled = 0;
var attacking = false;
var playerScale = 100;
var vel_y = 0;
var health = 3;
var maxHealth = 3;
var expandHealthCounter = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var fallingAnimationSet = false;
var diverseAttacker = false;
var bladeAttackA = false;
var bladeAttackB = false;
var bladeAttackC = false;
var punchAttackA = false;
var punchAttackB = false;
var punchAttackC = false;
var lowKickAttack = false;
var lowBladeAttack = false;
var dropKickAttack = false;
var timeTravelerCount = 0;
var timeTraveler = false;
var grindMaster = false;
var grindMasterCount = 0;
var hopper = false;
var hopperCounter = 0;
var goodListener = false;
var goodListenerCount = 0;
var savedGoodListenerCount = 0;
var masterSpeed = 0;
var moveSpeed = 0;
var springSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var alert = false;
var onRails = false;
var dead = false;
var haveDied = false;
var wallJump = false;
var wallJumpCheck = false;
var wallJumpTime = 1;
var canToggleQuality = true;
var wallJumpSide = 0;
var wallJumpHeight = 14;
var wallJumpPush = 13;
var canWallJump = false;
var jumpSound = false;
var savedHealthCounters = expandHealthCounter;
var savedMaxHealth = maxHealth;
var totalEnemiesKilled = 0;
var savedEnemiesKilled = 0;
var level = 1;
var gameComplete = false;
var savedTime = 0;
var totalPlayTime = 0;
clearInterval(timePlayedIncrease);
clearInterval(wallJumps);
clearInterval(invincibleFunction);
timePlayedIncrease = setInterval(function () {
if ((dead == false) && (gameComplete == false)) {
totalPlayTime++;
}
}, 1000, 0);
wallJumps = setInterval(function () {
if (wallJump == true) {
wallJumpTime--;
}
}, 400, 0);
invincibleFunction = setInterval(function () {
if (invincible == true) {
invincibleSeconds--;
}
}, 1000, 0);
onEnterFrame = function () {
if (readyToView == true) {
_root.viewScores._y = 327;
}
if (gameComplete == false) {
if (delayTime > 0) {
delayTime--;
}
if (delayTime == 0) {
delayTime = -1;
play();
}
}
if (health <= 0) {
if (dead == false) {
haveDied = true;
dead = true;
gotoAndStop (80);
}
}
if (Key.isDown(32)) {
if (dead == true) {
voice1.stop();
voice2.stop();
voice3.stop();
voice4.stop();
voice5.stop();
gotoAndPlay((level * 2) + 25);
}
}
if (invincibleSeconds <= 0) {
invincible = false;
invincibleSeconds = 1;
}
if (Key.isDown(82)) {
health = 0;
}
if (expandHealthCounter == expandHealthTotal) {
if (maxHealth <= 7) {
maxHealth = maxHealth + 1;
health = maxHealth;
expandHealthCounter = 0;
}
}
masterSpeed = moveSpeed + springSpeed;
playerControl(player);
if ((vel_y == 0) && ((!wallJumpSide) == 0)) {
if (bg.ground.hitTest(player._x, player._y + 10, true)) {
player.innerPlayer.gotoAndStop(5);
wallJumpSide = 0;
}
}
if (jumping == true) {
if ((!Key.isDown(32)) && (!Key.isDown(38))) {
canWallJump = true;
}
}
if (Key.isDown(38)) {
canWallJump = false;
}
if ((onGliders == false) && (fallingFromGliders == false)) {
gliderAnimationSet = false;
}
if ((gliderAnimationSet == false) && (fallingFromGlider == true)) {
if (bg.ground.hitTest(player._x, player._y + 10, true)) {
player.innerPlayer.gliderPlayer.gotoAndPlay(86);
gliderAnimationSet = true;
}
}
if (diverseAttacker == false) {
if (bladeAttackA == true) {
if (bladeAttackB == true) {
if (bladeAttackC == true) {
if (punchAttackA == true) {
if (punchAttackB == true) {
if (punchAttackC == true) {
if (lowBladeAttack == true) {
if (lowKickAttack == true) {
if (dropKickAttack == true) {
diverseAttacker = true;
}
}
}
}
}
}
}
}
}
}
if (timeTraveler == false) {
if (timeTravelerCount >= 10) {
timeTraveler = true;
}
}
if (hopperCounter >= 80) {
hopper = true;
}
if (grindMasterCount >= 3) {
grindMaster = true;
}
if (savedGoodListenerCount >= 5) {
goodListener = true;
}
if (Key.isDown(81)) {
trace(_root._currentframe);
if (canToggleQuality == true) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
}
if (Key.isDown(81)) {
canToggleQuality = false;
} else {
canToggleQuality = true;
}
};
Frame 27
stop();
var delayTime = 40;
totalPlayTime = savedTime;
totalEnemiesKilled = savedEnemiesKilled;
maxHealth = savedMaxHealth;
health = maxHealth;
expandHealthCounter = savedHealthCounters;
level = 1;
invincible = false;
invincibleSeconds = 1;
goodListenerCount = 0;
var alert = false;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var playerScale = 100;
var vel_y = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var masterSpeed = 0;
var moveSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var wallJump = false;
var wallJumpCheck = false;
var canWallJump = false;
var miliseconds = 0;
Frame 28
dead = false;
stop();
Instance of Symbol 308 MovieClip "glider1" in Frame 28
onClipEvent (load) {
var used = false;
var onThisGlider = false;
var atGliderEnd = false;
}
onClipEvent (enterFrame) {
if ((((_root.onGliders == false) && (this.hitTest(_root.player))) && (_root.fallingFromGlider == false)) && (used == false)) {
_root.player._xscale = _root.playerScale;
_root.player.innerPlayer.gotoAndStop(20);
onThisGlider = true;
used = true;
gotoAndPlay (2);
_root.onGliders = true;
}
if (onThisGlider == true) {
_root.moveSpeed = 0;
if (_root.onGliders == true) {
_root.player._x = (this._x + this.innerGlider._x) + 20;
_root.player._y = (this._y + this.innerGlider._y) + 30;
if (atGliderEnd == true) {
_root.player.innerPlayer.gliderPlayer.gotoAndPlay(24);
atGliderEnd = false;
}
}
}
if (_root.onGliders == false) {
onThisGlider = false;
}
}
Instance of Symbol 336 MovieClip "blood" in Frame 28
onClipEvent (load) {
var startingX = _x;
var startingY = _y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 379 MovieClip "enemy1" in Frame 28
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 425 MovieClip in Frame 28
onClipEvent (enterFrame) {
pX = _root.player._x;
pY = _root.player._y - 75;
if (Math.abs(pX - _x) > 1) {
_x = (_x + ((pX - _x) / 5));
_root.backGround._x = _root.backGround._x + Math.round((pX - _x) / 4.8);
}
if (Math.abs(pY - _y) > 1) {
_y = (_y + ((pY - _y) / 5));
_root.backGround._y = _root.backGround._y + (Math.round((pY - _y) / 3) / 2);
}
}
Frame 29
stop();
var delayTime = 40;
totalPlayTime = savedTime;
totalEnemiesKilled = savedEnemiesKilled;
maxHealth = savedMaxHealth;
health = maxHealth;
expandHealthCounter = savedHealthCounters;
level = 2;
invincible = false;
invincibleSeconds = 1;
goodListenerCount = 0;
var trapCleared = false;
var trapAlert = false;
var alert = false;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var playerScale = 100;
var vel_y = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var masterSpeed = 0;
var moveSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var wallJump = false;
var wallJumpCheck = false;
var canWallJump = false;
var miliseconds = 0;
Frame 30
dead = false;
stop();
Instance of Symbol 308 MovieClip in Frame 30
onClipEvent (load) {
var used = false;
var onThisGlider = false;
var atGliderEnd = false;
}
onClipEvent (enterFrame) {
if ((((_root.onGliders == false) && (this.hitTest(_root.player))) && (_root.fallingFromGlider == false)) && (used == false)) {
_root.player._xscale = _root.playerScale;
_root.player.innerPlayer.gotoAndStop(20);
onThisGlider = true;
used = true;
gotoAndPlay (2);
_root.onGliders = true;
}
if (onThisGlider == true) {
_root.moveSpeed = 0;
if (_root.onGliders == true) {
_root.player._x = (this._x + this.innerGlider._x) + 20;
_root.player._y = (this._y + this.innerGlider._y) + 30;
if (atGliderEnd == true) {
_root.player.innerPlayer.gliderPlayer.gotoAndPlay(24);
atGliderEnd = false;
}
}
}
if (_root.onGliders == false) {
onThisGlider = false;
}
}
Instance of Symbol 450 MovieClip in Frame 30
onClipEvent (load) {
var used = false;
var onThisGlider = false;
var atGliderEnd = false;
}
onClipEvent (enterFrame) {
if ((((_root.onGliders == false) && (this.hitTest(_root.player))) && (_root.fallingFromGlider == false)) && (used == false)) {
_root.player._xscale = _root.playerScale;
_root.player.innerPlayer.gotoAndStop(20);
onThisGlider = true;
used = true;
gotoAndPlay (2);
_root.onGliders = true;
}
if (onThisGlider == true) {
_root.moveSpeed = 0;
if (_root.onGliders == true) {
_root.player._x = (this._x + this.innerGlider._x) + 20;
_root.player._y = (this._y + this.innerGlider._y) + 30;
if (atGliderEnd == true) {
_root.player.innerPlayer.gliderPlayer.gotoAndPlay(24);
atGliderEnd = false;
}
}
}
if (_root.onGliders == false) {
onThisGlider = false;
}
}
Instance of Symbol 336 MovieClip "blood" in Frame 30
onClipEvent (load) {
var startingX = _x;
var startingY = _y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 379 MovieClip "enemy5" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy3" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 600;
var maxRight = 1100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy2" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 600;
var maxRight = 1600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy4" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 600;
var maxRight = 600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy1" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 600;
var maxRight = 2100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy6" in Frame 30
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 450;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy7" in Frame 30
onClipEvent (load) {
var drop = 2;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 200;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy8" in Frame 30
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 425 MovieClip in Frame 30
onClipEvent (enterFrame) {
pX = _root.player._x;
pY = _root.player._y - 75;
if (Math.abs(pX - _x) > 1) {
_x = (_x + ((pX - _x) / 5));
_root.backGround._x = _root.backGround._x + Math.round((pX - _x) / 4.95);
}
if (Math.abs(pY - _y) > 1) {
_y = (_y + ((pY - _y) / 5));
_root.backGround._y = _root.backGround._y + (Math.round((pY - _y) / 3) / 2);
}
}
Frame 31
stop();
var delayTime = 40;
totalPlayTime = savedTime;
totalEnemiesKilled = savedEnemiesKilled;
maxHealth = savedMaxHealth;
health = maxHealth;
expandHealthCounter = savedHealthCounters;
level = 3;
var trapCleared = false;
var trapAlert = false;
invincible = false;
invincibleSeconds = 1;
goodListenerCount = 0;
var alert = false;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var playerScale = 100;
var vel_y = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var masterSpeed = 0;
var moveSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var wallJump = false;
var wallJumpCheck = false;
var canWallJump = false;
var miliseconds = 0;
Frame 32
effect11.stop();
effect12.stop();
effect13.stop();
effect14.stop();
_root.player._xscale = -playerScale;
dead = false;
stop();
Instance of Symbol 336 MovieClip "blood" in Frame 32
onClipEvent (load) {
var startingX = _x;
var startingY = _y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 379 MovieClip "enemy1" in Frame 32
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 150;
var maxRight = 300;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy3" in Frame 32
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy2" in Frame 32
onClipEvent (load) {
var drop = 2;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 600;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy4" in Frame 32
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy5" in Frame 32
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 400;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 425 MovieClip in Frame 32
onClipEvent (enterFrame) {
pX = _root.player._x;
pY = _root.player._y - 75;
if (Math.abs(pX - _x) > 1) {
_x = (_x + ((pX - _x) / 5));
_root.backGround._x = _root.backGround._x + Math.round((pX - _x) / 4.8);
}
if (Math.abs(pY - _y) > 1) {
_y = (_y + ((pY - _y) / 5));
_root.backGround._y = _root.backGround._y + (Math.round((pY - _y) / 3) / 2);
}
}
Frame 33
stop();
var delayTime = 40;
totalPlayTime = savedTime;
totalEnemiesKilled = savedEnemiesKilled;
maxHealth = savedMaxHealth;
health = maxHealth;
expandHealthCounter = savedHealthCounters;
level = 4;
invincible = false;
invincibleSeconds = 1;
goodListenerCount = 0;
var alert = false;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var playerScale = 100;
var vel_y = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var masterSpeed = 0;
var moveSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var wallJump = false;
var wallJumpCheck = false;
var canWallJump = false;
var miliseconds = 0;
Frame 34
_root.player._xscale = -playerScale;
dead = false;
stop();
Instance of Symbol 379 MovieClip "enemy1" in Frame 34
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 900;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy4" in Frame 34
onClipEvent (load) {
var drop = 2;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 200;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy3" in Frame 34
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy12" in Frame 34
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy11" in Frame 34
onClipEvent (load) {
var drop = 2;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 300;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy10" in Frame 34
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 350;
var maxRight = 300;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy9" in Frame 34
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 350;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy2" in Frame 34
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 200;
var maxRight = 250;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy5" in Frame 34
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 150;
var maxRight = 150;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy6" in Frame 34
onClipEvent (load) {
var drop = 3;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 200;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy7" in Frame 34
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 1100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy8" in Frame 34
onClipEvent (load) {
var drop = 3;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 800;
var maxRight = 250;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 336 MovieClip "blood" in Frame 34
onClipEvent (load) {
var startingX = _x;
var startingY = _y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 425 MovieClip in Frame 34
onClipEvent (enterFrame) {
pX = _root.player._x;
pY = _root.player._y - 75;
if (Math.abs(pX - _x) > 1) {
_x = (_x + ((pX - _x) / 5));
_root.backGround._x = _root.backGround._x + Math.round((pX - _x) / 4.8);
}
if (Math.abs(pY - _y) > 1) {
_y = (_y + ((pY - _y) / 5));
_root.backGround._y = _root.backGround._y + (Math.round((pY - _y) / 3) / 2);
}
}
Frame 35
stop();
var delayTime = 40;
totalPlayTime = savedTime;
totalEnemiesKilled = savedEnemiesKilled;
maxHealth = savedMaxHealth;
health = maxHealth;
expandHealthCounter = savedHealthCounters;
level = 5;
invincible = false;
invincibleSeconds = 1;
goodListenerCount = 0;
var alert = false;
var elevatorPosition = 0;
var pressedTotal = 0;
var elevatorWalls = false;
var playerScale = 100;
var vel_y = 0;
var expandHealthTotal = 5;
var jumping = false;
var ducking = false;
var thinking = false;
var gotoJumping = false;
var declineJump = false;
var endJump = false;
var springJump = false;
var reJump = false;
var gotoRunning = false;
var skidding = false;
var masterSpeed = 0;
var moveSpeed = 0;
var onGliders = false;
var fallingFromGlider = false;
var gliderAnimationSet = false;
var wallJump = false;
var wallJumpCheck = false;
var canWallJump = false;
var miliseconds = 0;
Frame 36
level = 5;
dead = false;
stop();
Instance of Symbol 336 MovieClip "blood" in Frame 36
onClipEvent (load) {
var startingX = _x;
var startingY = _y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 379 MovieClip "enemy1" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 800;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy5" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 800;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy11" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 800;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy3" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 900;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy7" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 700;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy9" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 700;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy15" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 800;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy13" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 1000;
var maxRight = 200;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy4" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 900;
var maxRight = 0;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy8" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 900;
var maxRight = 0;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy10" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 1000;
var maxRight = 0;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy14" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 900;
var maxRight = 0;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy2" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 500;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy6" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 500;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy12" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 800;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy16" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 500;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy17" in Frame 36
onClipEvent (load) {
var drop = 1;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 200;
var maxRight = 700;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy18" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 100;
var maxRight = 600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy19" in Frame 36
onClipEvent (load) {
var drop = 2;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 0;
var maxRight = 700;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy20" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy21" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy22" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 600;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy23" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 700;
var maxRight = 400;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy24" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 700;
var maxRight = 400;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy25" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 900;
var maxRight = 400;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy26" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 800;
var maxRight = 400;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy27" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 400;
var maxRight = 900;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy28" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 300;
var maxRight = 1000;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy29" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 1000;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 379 MovieClip "enemy30" in Frame 36
onClipEvent (load) {
var drop = 0;
var gateEnemiesKilledAddition = 0;
var startingX = 0;
var startingY = 0;
var startingX = _x;
var startingY = _y;
var moveSpeed = 0;
var playerOnLeft = false;
var playerOnRight = false;
var scale = 0;
var scale = _xscale;
var minLeft = 1000;
var maxRight = 100;
var moveMode = false;
var attackMode = false;
var thinking = false;
var waitTime = 0;
var returning = false;
var attacking = false;
var active = false;
var attack = 0;
var waitTimeVariable = 0;
waitTimeVariable = 26;
var waitTime = waitTimeVariable;
var startedReturning = false;
var movingAnimationSet = false;
var alertLocal = false;
var dead = false;
var health = 100;
var invincible = false;
var invincibleTimeVariable = 5;
var invincibleTime = invincibleTimeVariable;
}
onClipEvent (enterFrame) {
if (alertLocal == true) {
_root.alert = true;
}
if ((active == false) && (dead == false)) {
if (returning == false) {
if (alertLocal == true) {
_root.alert = false;
alertLocal = false;
}
}
}
if (invincible == true) {
invincibleTime--;
}
if (invincibleTime <= 0) {
invincible = false;
invincibleTime = invincibleTimeVariable;
}
if ((health <= 0) && (dead == false)) {
active = false;
alertLocal = false;
_root.alert = false;
attacking = false;
gotoAndPlay (94);
dead = true;
}
if ((dead == false) && (_root.elevatorWalls == false)) {
if ((thinking == true) && (waitTime > 0)) {
waitTime--;
}
if (waitTime == 0) {
thinking = false;
waitTime = waitTimeVariable;
}
if ((_root.player._y < (_y + 50)) && (_root.player._y > ((_y - _height) - 120))) {
if (Math.abs(_root.player._x - _x) < 480) {
active = true;
alertLocal = true;
} else {
active = false;
}
} else {
active = false;
}
if (_root.player._x > _x) {
playerOnRight = true;
playerOnLeft = false;
}
if (_root.player._x < _x) {
playerOnLeft = true;
playerOnRight = false;
}
if ((_x < (startingX - minLeft)) || (_x > (startingX + maxRight))) {
if (attackMode == true) {
attackMode = false;
}
if (moveMode == true) {
moveMode = false;
}
returning = true;
}
if (returning == true) {
_x = (_x + moveSpeed);
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
if (startingX > _x) {
moveSpeed++;
_xscale = (-scale);
}
if (startingX < _x) {
moveSpeed--;
_xscale = scale;
}
if (Math.abs(startingX - _x) < 50) {
returning = false;
moveMode = false;
active = false;
attackMode = false;
attacking = false;
playerOnLeft = false;
playerOnRight = false;
thinking = false;
gotoAndPlay (39);
}
}
if (returning == false) {
if (attackMode == false) {
if (playerOnLeft == true) {
_xscale = scale;
}
}
if (playerOnRight == true) {
_xscale = (-scale);
}
if (attackMode == true) {
if (_x < _root.player._x) {
if (_xscale == scale) {
_xscale = (-scale);
}
}
if (_x > _root.player._x) {
if (_xscale == (-scale)) {
_xscale = scale;
}
}
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) >= 80) {
moveMode = true;
} else {
moveMode = false;
}
}
if ((moveMode == true) && (returning == false)) {
if (thinking == false) {
if ((playerOnRight == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed++;
}
if ((playerOnLeft == true) && (returning == false)) {
if (movingAnimationSet == false) {
gotoAndPlay (17);
movingAnimationSet = true;
}
_x = (_x + moveSpeed);
moveSpeed--;
}
}
}
if (moveSpeed <= -9) {
moveSpeed = -9;
}
if (moveSpeed >= 9) {
moveSpeed = 9;
}
if (moveMode == false) {
movingAnimationSet = false;
if (returning == false) {
moveSpeed = 0;
}
}
if (active == true) {
if (Math.abs(_root.player._x - _x) < 80) {
attackMode = true;
} else {
attackMode = false;
}
}
if (returning == false) {
if (attackMode == true) {
if ((_root.jumping == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (73);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
if (((_root.jumping == false) && (_root.ducking == false)) && (thinking == false)) {
attack = int(Math.random() * 6);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (114);
}
if ((attack == 2) || (attack == 3)) {
gotoAndPlay (175);
}
if ((attack == 4) || (attack == 5)) {
gotoAndPlay (190);
}
attacking = true;
thinking = true;
}
if ((_root.ducking == true) && (thinking == false)) {
attack = int(Math.random() * 3);
if ((attack == 0) || (attack == 1)) {
gotoAndPlay (130);
}
if (attack == 2) {
gotoAndPlay (114);
}
attacking = true;
thinking = true;
}
}
}
}
}
Instance of Symbol 425 MovieClip in Frame 36
onClipEvent (enterFrame) {
pX = _root.player._x;
pY = _root.player._y - 75;
if (Math.abs(pX - _x) > 1) {
_x = (_x + ((pX - _x) / 5));
_root.backGround._x = _root.backGround._x + Math.round((pX - _x) / 4);
}
if (Math.abs(pY - _y) > 1) {
_y = (_y + ((pY - _y) / 5));
_root.backGround._y = _root.backGround._y + (Math.round((pY - _y) / 2) / 2.5);
}
}
Frame 37
play();
Frame 38
play();
Frame 76
play();
Frame 77
stop();
var rank = 0;
var canSubmit = false;
var readyToView = false;
gameComplete = true;
var killMultiplier = 0;
var noDeath = 0;
if (haveDied == false) {
bonusF.gotoAndStop(2);
noDeath = 3000;
}
var maxHealthBonus = 0;
if (maxHealth == 8) {
bonusE.gotoAndStop(2);
maxHealthBonus = 2000;
}
var diverseAttacks = 0;
if (diverseAttacker == true) {
bonusA.gotoAndStop(2);
diverseAttacks = 1000;
}
var timeTravelerBonus = 0;
if (timeTraveler == true) {
bonusH.gotoAndStop(2);
timeTravelerBonus = 1000;
}
var pacifist = 0;
if (totalEnemiesKilled == 0) {
bonusG.gotoAndStop(2);
pacifist = 15000;
}
var grindMasterBonus = 0;
if (grindMaster == true) {
bonusC.gotoAndStop(2);
grindMasterBonus = 1000;
}
var hopperBonus = 0;
if (hopper == true) {
bonusD.gotoAndStop(2);
hopperBonus = 1000;
}
var goodListenerBonus = 0;
if (goodListener == true) {
bonusB.gotoAndStop(2);
goodListenerBonus = 2500;
}
if (totalEnemiesKilled > 3) {
killMultiplier = killMultiplier + 1;
}
if (totalEnemiesKilled > 5) {
killMultiplier = killMultiplier + 1;
}
if (totalEnemiesKilled > 8) {
killMultiplier = killMultiplier + 1;
}
if (totalEnemiesKilled > 10) {
killMultiplier = killMultiplier + 1;
}
if (totalEnemiesKilled > 15) {
killMultiplier = killMultiplier + 2;
}
if (totalEnemiesKilled > 20) {
killMultiplier = killMultiplier + 2;
}
if (totalEnemiesKilled > 20) {
killMultiplier = killMultiplier + 2;
}
if (totalEnemiesKilled > 30) {
killMultiplier = killMultiplier + 3;
}
if (totalEnemiesKilled > 50) {
killMultiplier = killMultiplier + 4;
}
enemyKillBonus = 500 * killMultiplier;
finalScore = (((((((((10000 - (totalPlayTime * 10)) + enemyKillBonus) + noDeath) + maxHealthBonus) + diverseAttacks) + timeTraveler) + pacifist) + grindMasterBonus) + hopperBonus) + goodListenerBonus;
if (finalScore >= 25000) {
rank = 1;
}
if ((finalScore < 25000) && (finalScore >= 10000)) {
rank = 2;
}
if ((finalScore < 23000) && (finalScore >= 20000)) {
rank = 3;
}
if ((finalScore < 20000) && (finalScore >= 15000)) {
rank = 4;
}
if ((finalScore < 15000) && (finalScore >= 10000)) {
rank = 5;
}
if ((finalScore < 10000) && (finalScore >= 0)) {
rank = 6;
}
if (rank == 1) {
godRank = 1;
savefile.data.godRankUnlock = _root.godRank;
savefile.flush();
}
onEnterFrame = function () {
if (readyToView == true) {
viewScores._y = 326.3;
}
playersName = _root.playerName.text;
if (Key.isDown(81)) {
trace(_root._currentframe);
if (canToggleQuality == true) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
}
if (Key.isDown(81)) {
canToggleQuality = false;
} else {
canToggleQuality = true;
}
};
Instance of Symbol 496 MovieClip in Frame 77
onClipEvent (load) {
var soundPlayed = false;
var startingY = 0;
var vel_y = 0;
startingY = _y;
var inPosition = false;
_y = (_y - 1600);
}
onClipEvent (enterFrame) {
if (inPosition == true) {
_root.canSubmit = true;
}
if (inPosition == false) {
_root.canSubmit = false;
vel_y++;
if (_y < startingY) {
_y = (_y + vel_y);
}
}
if (_y >= startingY) {
_y = startingY;
inPosition = true;
}
if (vel_y >= 25) {
vel_y = 25;
}
if (inPosition == true) {
if (soundPlayed == false) {
_root.effect7.start(0, 1);
soundPlayed = true;
}
}
gotoAndStop(_root.rank);
}
Instance of Symbol 513 MovieClip in Frame 77
onClipEvent (enterFrame) {
if (this.hitTest(_root.cursor)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 518 MovieClip in Frame 77
onClipEvent (load) {
var soundPlayed = false;
var startingY = 0;
var vel_y = 0;
startingY = _y;
var inPosition = false;
_y = (_y - 600);
}
onClipEvent (enterFrame) {
if (inPosition == false) {
vel_y++;
if (_y < startingY) {
_y = (_y + vel_y);
}
}
if (_y >= startingY) {
_y = startingY;
inPosition = true;
}
if (vel_y >= 25) {
vel_y = 25;
}
if (inPosition == true) {
if (soundPlayed == false) {
_root.effect7.start(0, 1);
soundPlayed = true;
}
}
}
Instance of Symbol 520 MovieClip in Frame 77
onClipEvent (load) {
var soundPlayed = false;
var startingY = 0;
var vel_y = 0;
startingY = _y;
var inPosition = false;
_y = (_y - 800);
}
onClipEvent (enterFrame) {
if (inPosition == false) {
vel_y++;
if (_y < startingY) {
_y = (_y + vel_y);
}
}
if (_y >= startingY) {
_y = startingY;
inPosition = true;
}
if (vel_y >= 25) {
vel_y = 25;
}
if (inPosition == true) {
if (soundPlayed == false) {
_root.effect7.start(0, 1);
soundPlayed = true;
}
}
}
Instance of Symbol 522 MovieClip in Frame 77
onClipEvent (load) {
var soundPlayed = false;
var startingY = 0;
var vel_y = 0;
startingY = _y;
var inPosition = false;
_y = (_y - 1100);
}
onClipEvent (enterFrame) {
if (inPosition == false) {
vel_y++;
if (_y < startingY) {
_y = (_y + vel_y);
}
}
if (_y >= startingY) {
_y = startingY;
inPosition = true;
}
if (vel_y >= 25) {
vel_y = 25;
}
if (inPosition == true) {
if (soundPlayed == false) {
_root.effect7.start(0, 1);
soundPlayed = true;
}
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusA.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(2);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusB.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(3);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusC.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(4);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusD.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(5);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusE.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(6);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusF.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(7);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusG.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(8);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 561 MovieClip in Frame 77
onClipEvent (load) {
var reset = false;
}
onClipEvent (enterFrame) {
if (_root.bonusH.hitTest(_root.cursor.cursorPoint)) {
_root.cursor._alpha = 0;
reset = false;
this.gotoAndStop(9);
} else {
if (reset == false) {
_root.cursor._alpha = 100;
reset = true;
}
gotoAndStop (1);
}
}
Instance of Symbol 66 MovieClip "cursor" in Frame 77
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 78
play();
Frame 79
play();
Frame 80
stop();
_root.effect11.stop();
_root.effect12.stop();
_root.effect13.stop();
_root.effect14.stop();
Instance of Symbol 573 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
voice1.stop();
voice2.stop();
voice3.stop();
voice4.stop();
voice5.stop();
gotoAndPlay((level * 2) + 25);
}
}
Instance of Symbol 66 MovieClip "cursor" in Frame 80
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Instance of Symbol 581 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.godRank == 1) {
gotoAndStop (82);
}
}
Instance of Symbol 584 MovieClip in Frame 81
onClipEvent (enterFrame) {
if (_root.godRank == 1) {
gotoAndStop (82);
}
}
Instance of Symbol 66 MovieClip "cursor" in Frame 81
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 83
stopAllSounds();
var menuHolder1 = createEmptyMovieClip("menuHolder1", getNextHighestDepth());
var menuMusic1 = new Sound(menuHolder1);
menuMusic1.attachSound("menuMusicA");
menuMusic1.setVolume(100);
menuMusic1.start(0, 30);
Frame 116
var defianceMode = false;
stop();
Frame 136
stopAllSounds();
if (defianceMode == true) {
gotoAndPlay (20);
} else {
gotoAndPlay (2464);
}
Frame 161
stop();
Frame 162
stop();
Frame 163
stop();
Instance of Symbol 373 MovieClip in Frame 163
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.timeTravelerCount = _root.timeTravelerCount + 1;
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (82);
}
}
Frame 187
gotoAndPlay (116);
Frame 188
stop();
Instance of Symbol 643 MovieClip in Frame 188
onClipEvent (enterFrame) {
if (_root.unlocked == true) {
_x = -300;
}
}
Instance of Symbol 646 MovieClip in Frame 188
onClipEvent (load) {
if (_root.unlocked == 0) {
gotoAndStop (81);
} else {
gotoAndStop (82);
}
}
Frame 189
stopAllSounds();
Frame 2463
stopAllSounds();
menuMusic1.start(0, 30);
gotoAndStop (188);
Frame 2464
var adventureHolder1 = createEmptyMovieClip("adventureHolder1", getNextHighestDepth());
var adventureMusic1 = new Sound(adventureHolder1);
adventureMusic1.attachSound("adventureA");
_root.adventureMusic1.start(0, 99);
Frame 2465
var checkpoint = false;
Frame 2604
var pickedJumpButton = false;
var wrongKey = false;
var mash = 0;
var mashButton = false;
var mashButtonPicked = false;
var cantMash = false;
var mashComplete = true;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 2605
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 2634
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (2688);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (2635);
checking = false;
}
}
};
Frame 2687
gotoAndStop (4333);
Frame 2767
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 2768
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 2796
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (2837);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (2797);
checking = false;
}
}
};
Frame 2836
gotoAndStop (4333);
Frame 3175
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3176
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3205
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3260);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3206);
checking = false;
}
}
};
Frame 3259
gotoAndStop (4333);
Frame 3289
checkpoint = true;
Frame 3360
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3361
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3388
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3443);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3389);
checking = false;
}
}
};
Frame 3442
gotoAndStop (4333);
Frame 3485
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3486
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3513
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3558);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3514);
checking = false;
}
}
};
Frame 3557
gotoAndStop (4333);
Frame 3570
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3571
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3600
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3641);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3601);
checking = false;
}
}
};
Frame 3640
gotoAndStop (4333);
Frame 3723
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3724
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3753
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3784);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3754);
checking = false;
}
}
};
Frame 3783
gotoAndStop (4333);
Frame 3795
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3796
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 3825
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (3851);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (3826);
checking = false;
}
}
};
Frame 3850
gotoAndStop (4333);
Frame 3975
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 3976
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 4005
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (4052);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (4006);
checking = false;
}
}
};
Frame 4046
gotoAndStop (4333);
Frame 4138
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 4139
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 4168
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (4250);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (4169);
checking = false;
}
}
};
Frame 4249
gotoAndStop (4333);
Frame 4329
stopAllSounds();
Frame 4332
gotoAndPlay (20);
Frame 4333
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_root.checkpoint == false) {
gotoAndPlay (2465);
} else {
gotoAndPlay (3290);
}
}
};
Instance of Symbol 573 MovieClip in Frame 4333
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.checkpoint == false) {
gotoAndPlay (2465);
} else {
gotoAndPlay (3290);
}
}
}
Instance of Symbol 66 MovieClip "cursor" in Frame 4333
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 4476
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 4477
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 4505
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (4539);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (4506);
checking = false;
}
}
};
Frame 4538
gotoAndStop (5377);
Frame 4575
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 4576
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 4595
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (4634);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (4596);
checking = false;
}
}
};
Frame 4633
gotoAndStop (5377);
Frame 4931
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 4932
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 4949
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (4998);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (4950);
checking = false;
}
}
};
Frame 4997
gotoAndStop (5377);
Frame 5087
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 5088
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 5113
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (5148);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (5114);
checking = false;
}
}
};
Frame 5147
gotoAndStop (5377);
Frame 5376
gotoAndPlay (5380);
Frame 5377
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
stopAllSounds();
gotoAndPlay (4336);
}
};
Instance of Symbol 66 MovieClip "cursor" in Frame 5377
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 5381
stop();
Instance of Symbol 897 MovieClip in Frame 5381
onClipEvent (load) {
var startingY = 0;
var vel_y = 0;
startingY = _y;
var inPosition = false;
_y = (_y - 600);
}
onClipEvent (enterFrame) {
if (inPosition == false) {
vel_y++;
if (_y < startingY) {
_y = (_y + vel_y);
}
}
if (_y >= startingY) {
_y = startingY;
inPosition = true;
}
if (vel_y >= 25) {
vel_y = 25;
}
}
Frame 5385
stopAllSounds();
menuMusic1.start(0, 30);
gotoAndStop (188);
Frame 7475
var pickedJumpButton = false;
var wrongKey = false;
var mash = 0;
var mashButton = false;
var mashButtonPicked = false;
var cantMash = false;
var mashComplete = true;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 7476
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 7503
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (7540);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (7504);
checking = false;
}
}
};
Frame 7539
gotoAndPlay (8497);
Frame 7595
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 7596
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 7621
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (7654);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (7622);
checking = false;
}
}
};
Frame 7653
gotoAndPlay (8497);
Frame 7737
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 7738
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 7764
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (7824);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (7765);
checking = false;
}
}
};
Frame 7823
gotoAndPlay (8497);
Frame 7939
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 7940
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 7970
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (8020);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (7971);
checking = false;
}
}
};
Frame 8019
gotoAndPlay (8497);
Frame 8054
pickedJumpButton = false;
wrongKey = false;
onEnterFrame = function () {
if (pickedJumpButton == false) {
jumpRandom = int(Math.random() * 6);
pickedJumpButton = true;
}
if (jumpRandom == 0) {
jumpRandom0 = true;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 1) {
jumpRandom0 = false;
jumpRandom1 = true;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 2) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = true;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 3) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = true;
jumpRandom4 = false;
jumpRandom5 = false;
}
if (jumpRandom == 4) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = true;
jumpRandom5 = false;
}
if (jumpRandom == 5) {
jumpRandom0 = false;
jumpRandom1 = false;
jumpRandom2 = false;
jumpRandom3 = false;
jumpRandom4 = false;
jumpRandom5 = true;
}
};
Frame 8055
notDie = false;
buttonPressed = false;
checking = true;
onEnterFrame = function () {
if (buttonPressed == false) {
warning.gotoAndStop(jumpRandom + 2);
}
if (Key.isDown(65) && (!jumpRandom0)) {
wrongKey = true;
}
if (Key.isDown(83) && (!jumpRandom1)) {
wrongKey = true;
}
if (Key.isDown(68) && (!jumpRandom2)) {
wrongKey = true;
}
if (Key.isDown(37) && (!jumpRandom3)) {
wrongKey = true;
}
if (Key.isDown(38) && (!jumpRandom4)) {
wrongKey = true;
}
if (Key.isDown(39) && (!jumpRandom5)) {
wrongKey = true;
}
if (wrongKey == true) {
warning.gotoAndStop(1);
}
if ((jumpRandom == 0) && (wrongKey == false)) {
if (Key.isDown(65)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 1) && (wrongKey == false)) {
if (Key.isDown(83)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 2) && (wrongKey == false)) {
if (Key.isDown(68)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 3) && (wrongKey == false)) {
if (Key.isDown(37)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 4) && (wrongKey == false)) {
if (Key.isDown(38)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
if ((jumpRandom == 5) && (wrongKey == false)) {
if (Key.isDown(39)) {
notDie = true;
buttonPressed = true;
warning.gotoAndStop(1);
}
}
};
Frame 8083
onEnterFrame = function () {
if (checking == true) {
if (notDie == true) {
gotoAndPlay (8110);
checking = false;
pickedJumpButton = false;
} else {
gotoAndPlay (8084);
checking = false;
}
}
};
Frame 8109
gotoAndPlay (8497);
Frame 8122
var mashAnimated = false;
onEnterFrame = function () {
if (_root.mash > 9) {
_root.mashMeter.gotoAndStop(11);
} else {
_root.mashMeter.gotoAndStop(_root.mash);
}
_root.mashComplete = true;
if (_root.mashButtonPicked == false) {
_root.mashButton = int(Math.random() * 6);
_root.mashButtonPicked = true;
}
if (_root.mashButton == 0) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(1);
_root.mashAnimated = true;
}
if (!Key.isDown(65)) {
_root.cantMash = false;
}
if (Key.isDown(65) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
if (_root.mashButton == 1) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(7);
_root.mashAnimated = true;
}
if (!Key.isDown(83)) {
_root.cantMash = false;
}
if (Key.isDown(83) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
if (_root.mashButton == 2) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(13);
_root.mashAnimated = true;
}
if (!Key.isDown(68)) {
_root.cantMash = false;
}
if (Key.isDown(68) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
if (_root.mashButton == 3) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(19);
_root.mashAnimated = true;
}
if (!Key.isDown(37)) {
_root.cantMash = false;
}
if (Key.isDown(37) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
if (_root.mashButton == 4) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(25);
_root.mashAnimated = true;
}
if (!Key.isDown(38)) {
_root.cantMash = false;
}
if (Key.isDown(38) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
if (_root.mashButton == 5) {
if (_root.mashAnimated == false) {
_root.mashImage.gotoAndPlay(31);
_root.mashAnimated = true;
}
if (!Key.isDown(39)) {
_root.cantMash = false;
}
if (Key.isDown(39) && (_root.cantMash == false)) {
_root.mash = _root.mash + 2;
_root.cantMash = true;
}
}
};
Instance of Symbol 1045 MovieClip "mashMeter" in Frame 8122
onClipEvent (enterFrame) {
this.gotoAndStop(_root.mash);
}
Frame 8160
onEnterFrame = function () {
if (_root.mashComplete == true) {
if (_root.mash > 9) {
_root.mash = 0;
_root.mashButtonPicked = false;
_root.cantMash = false;
_root.mashComplete = false;
gotoAndPlay (8190);
} else {
_root.mash = 0;
_root.mashButtonPicked = false;
_root.cantMash = false;
_root.mashComplete = false;
gotoAndPlay (8161);
}
}
};
Frame 8189
gotoAndPlay (8497);
Frame 8264
finishMoveButtons = false;
onEnterFrame = function () {
if (finishMoveButtons == false) {
finishRandom1 = int(Math.random() * 4);
}
if (((finishRandom1 == 0) || 1) || 2) {
finishRandom2 = int(Math.random() * 3) + 3;
}
if (((finishRandom2 == 3) || 4) || 5) {
finishRandom3 = int(Math.random() * 3);
}
if (((finishRandom3 == 0) || 1) || 2) {
finishRandom4 = int(Math.random() * 3) + 3;
}
if (((finishRandom4 == 3) || 4) || 5) {
finishRandom5 = int(Math.random() * 3);
}
if (((finishRandom5 == 0) || 1) || 2) {
finishRandom6 = int(Math.random() * 3) + 3;
finishMoveButtons = true;
}
};
Frame 8265
stop();
finishHim = false;
finishMove1.gotoAndStop(finishRandom1 + 2);
finishMove2.gotoAndStop(finishRandom2 + 2);
finishMove3.gotoAndStop(finishRandom3 + 2);
finishMove4.gotoAndStop(finishRandom4 + 2);
finishMove5.gotoAndStop(finishRandom5 + 2);
finishMove6.gotoAndStop(finishRandom6 + 2);
onEnterFrame = function () {
if (finishHim == false) {
if (finishRandom1 == 0) {
if (Key.isDown(65)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (finishRandom1 == 1) {
if (Key.isDown(83)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (finishRandom1 == 2) {
if (Key.isDown(68)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (finishRandom1 == 3) {
if (Key.isDown(37)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (finishRandom1 == 4) {
if (Key.isDown(38)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (finishRandom1 == 5) {
if (Key.isDown(39)) {
finishMove1.gotoAndStop(1);
nextKey1 = true;
}
}
if (nextKey1 == true) {
if (finishRandom2 == 0) {
if (Key.isDown(65)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
if (finishRandom2 == 1) {
if (Key.isDown(83)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
if (finishRandom2 == 2) {
if (Key.isDown(68)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
if (finishRandom2 == 3) {
if (Key.isDown(37)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
if (finishRandom2 == 4) {
if (Key.isDown(38)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
if (finishRandom2 == 5) {
if (Key.isDown(39)) {
finishMove2.gotoAndStop(1);
nextKey2 = true;
}
}
}
if (nextKey2 == true) {
if (finishRandom3 == 0) {
if (Key.isDown(65)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
if (finishRandom3 == 1) {
if (Key.isDown(83)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
if (finishRandom3 == 2) {
if (Key.isDown(68)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
if (finishRandom3 == 3) {
if (Key.isDown(37)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
if (finishRandom3 == 4) {
if (Key.isDown(38)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
if (finishRandom3 == 5) {
if (Key.isDown(39)) {
finishMove3.gotoAndStop(1);
nextKey3 = true;
}
}
}
if (nextKey3 == true) {
if (finishRandom4 == 0) {
if (Key.isDown(65)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
if (finishRandom4 == 1) {
if (Key.isDown(83)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
if (finishRandom4 == 2) {
if (Key.isDown(68)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
if (finishRandom4 == 3) {
if (Key.isDown(37)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
if (finishRandom4 == 4) {
if (Key.isDown(38)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
if (finishRandom4 == 5) {
if (Key.isDown(39)) {
finishMove4.gotoAndStop(1);
nextKey4 = true;
}
}
}
if (nextKey4 == true) {
if (finishRandom5 == 0) {
if (Key.isDown(65)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (finishRandom5 == 1) {
if (Key.isDown(83)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (finishRandom5 == 2) {
if (Key.isDown(68)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (finishRandom5 == 3) {
if (Key.isDown(37)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (finishRandom5 == 4) {
if (Key.isDown(38)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (finishRandom5 == 5) {
if (Key.isDown(39)) {
finishMove5.gotoAndStop(1);
nextKey5 = true;
}
}
if (nextKey5 == true) {
finishHim = true;
gotoAndPlay (8266);
}
}
}
if (Key.isDown(81)) {
if (canToggleQuality == true) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
}
if (Key.isDown(81)) {
canToggleQaulity = false;
} else {
canToggleQuality = true;
}
};
Frame 8266
finishHim = false;
nextKey1 = false;
nextKey2 = false;
nextKey3 = false;
nextKey4 = false;
nextKey5 = false;
Frame 8495
stopAllSounds();
Frame 8496
gotoAndPlay (8498);
Frame 8497
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay (7192);
}
};
Instance of Symbol 66 MovieClip "cursor" in Frame 8497
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 8499
cinemaSpeech1.start(0, 1);
Frame 9471
cinemaSpeech2.start(0, 1);
Frame 9602
stopAllSounds();
Frame 9617
stop();
var creditsHolder1 = createEmptyMovieClip("creditsHolder1", getNextHighestDepth());
var creditsMusic1 = new Sound(creditsHolder1);
creditsMusic1.attachSound("creditsA");
_root.creditsMusic1.start(0, 99);
unlocked = 1;
savefile.data.unlocks = _root.unlocked;
savefile.flush();
Instance of Symbol 66 MovieClip "cursor" in Frame 9617
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Symbol 55 Button
on (release) {
_root.play();
}
Symbol 56 MovieClip Frame 100
stop();
Symbol 60 Button
on (release) {
getURL ("http://maxgames.com/", "_blank");
}
Symbol 1148 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 72 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 75 MovieClip Frame 60
stop();
Symbol 77 MovieClip Frame 200
_root.play();
Symbol 84 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 110
_root.play();
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
var oneHit = false;
var randomSound = 0;
}
onClipEvent (enterFrame) {
if (oneHit == false) {
if (this.hitTest(_root.enemy1) && (_root.enemy1.invincible == false)) {
if (_root.enemy1.health > 0) {
_root.enemy1.health = _root.enemy1.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy1.invincible = true;
}
}
if (this.hitTest(_root.enemy2) && (_root.enemy2.invincible == false)) {
if (_root.enemy2.health > 0) {
_root.enemy2.health = _root.enemy2.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy2.invincible = true;
}
}
if (this.hitTest(_root.enemy3) && (_root.enemy3.invincible == false)) {
if (_root.enemy3.health > 0) {
_root.enemy3.health = _root.enemy3.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy3.invincible = true;
}
}
if (this.hitTest(_root.enemy4) && (_root.enemy4.invincible == false)) {
if (_root.enemy4.health > 0) {
_root.enemy4.health = _root.enemy4.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy4.invincible = true;
}
}
if (this.hitTest(_root.enemy5) && (_root.enemy5.invincible == false)) {
if (_root.enemy5.health > 0) {
_root.enemy5.health = _root.enemy5.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy5.invincible = true;
}
}
if (this.hitTest(_root.enemy6) && (_root.enemy6.invincible == false)) {
if (_root.enemy6.health > 0) {
_root.enemy6.health = _root.enemy6.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy6.invincible = true;
}
}
if (this.hitTest(_root.enemy7) && (_root.enemy7.invincible == false)) {
if (_root.enemy7.health > 0) {
_root.enemy7.health = _root.enemy7.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy7.invincible = true;
}
}
if (this.hitTest(_root.enemy8) && (_root.enemy8.invincible == false)) {
if (_root.enemy8.health > 0) {
_root.enemy8.health = _root.enemy8.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy8.invincible = true;
}
}
if (this.hitTest(_root.enemy9) && (_root.enemy9.invincible == false)) {
if (_root.enemy9.health > 0) {
_root.enemy9.health = _root.enemy9.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy9.invincible = true;
}
}
if (this.hitTest(_root.enemy10) && (_root.enemy10.invincible == false)) {
if (_root.enemy10.health > 0) {
_root.enemy10.health = _root.enemy10.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy10.invincible = true;
}
}
if (this.hitTest(_root.enemy11) && (_root.enemy11.invincible == false)) {
if (_root.enemy11.health > 0) {
_root.enemy11.health = _root.enemy11.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy11.invincible = true;
}
}
if (this.hitTest(_root.enemy12) && (_root.enemy12.invincible == false)) {
if (_root.enemy12.health > 0) {
_root.enemy12.health = _root.enemy12.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy12.invincible = true;
}
}
if (this.hitTest(_root.enemy13) && (_root.enemy13.invincible == false)) {
if (_root.enemy13.health > 0) {
_root.enemy13.health = _root.enemy13.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy13.invincible = true;
}
}
if (this.hitTest(_root.enemy14) && (_root.enemy14.invincible == false)) {
if (_root.enemy14.health > 0) {
_root.enemy14.health = _root.enemy14.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy14.invincible = true;
}
}
if (this.hitTest(_root.enemy15) && (_root.enemy15.invincible == false)) {
if (_root.enemy15.health > 0) {
_root.enemy15.health = _root.enemy15.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy15.invincible = true;
}
}
if (this.hitTest(_root.enemy16) && (_root.enemy16.invincible == false)) {
if (_root.enemy16.health > 0) {
_root.enemy16.health = _root.enemy16.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy16.invincible = true;
}
}
if (_root.level == 5) {
if (this.hitTest(_root.enemy17) && (_root.enemy17.invincible == false)) {
if (_root.enemy17.health > 0) {
_root.enemy17.health = _root.enemy17.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy17.invincible = true;
}
}
if (this.hitTest(_root.enemy18) && (_root.enemy18.invincible == false)) {
if (_root.enemy18.health > 0) {
_root.enemy18.health = _root.enemy18.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy18.invincible = true;
}
}
if (this.hitTest(_root.enemy19) && (_root.enemy19.invincible == false)) {
if (_root.enemy19.health > 0) {
_root.enemy19.health = _root.enemy19.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy19.invincible = true;
}
}
if (this.hitTest(_root.enemy20) && (_root.enemy20.invincible == false)) {
if (_root.enemy20.health > 0) {
_root.enemy20.health = _root.enemy20.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy20.invincible = true;
}
}
if (this.hitTest(_root.enemy21) && (_root.enemy21.invincible == false)) {
if (_root.enemy21.health > 0) {
_root.enemy21.health = _root.enemy21.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy21.invincible = true;
}
}
if (this.hitTest(_root.enemy22) && (_root.enemy22.invincible == false)) {
if (_root.enemy22.health > 0) {
_root.enemy22.health = _root.enemy22.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy22.invincible = true;
}
}
if (this.hitTest(_root.enemy23) && (_root.enemy23.invincible == false)) {
if (_root.enemy23.health > 0) {
_root.enemy23.health = _root.enemy23.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy23.invincible = true;
}
}
if (this.hitTest(_root.enemy24) && (_root.enemy24.invincible == false)) {
if (_root.enemy24.health > 0) {
_root.enemy24.health = _root.enemy24.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy24.invincible = true;
}
}
if (this.hitTest(_root.enemy25) && (_root.enemy25.invincible == false)) {
if (_root.enemy25.health > 0) {
_root.enemy25.health = _root.enemy25.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy25.invincible = true;
}
}
if (this.hitTest(_root.enemy26) && (_root.enemy26.invincible == false)) {
if (_root.enemy26.health > 0) {
_root.enemy26.health = _root.enemy26.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy26.invincible = true;
}
}
if (this.hitTest(_root.enemy27) && (_root.enemy27.invincible == false)) {
if (_root.enemy27.health > 0) {
_root.enemy27.health = _root.enemy27.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy27.invincible = true;
}
}
if (this.hitTest(_root.enemy28) && (_root.enemy28.invincible == false)) {
if (_root.enemy28.health > 0) {
_root.enemy28.health = _root.enemy28.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy28.invincible = true;
}
}
if (this.hitTest(_root.enemy29) && (_root.enemy29.invincible == false)) {
if (_root.enemy29.health > 0) {
_root.enemy29.health = _root.enemy29.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy29.invincible = true;
}
}
if (this.hitTest(_root.enemy30) && (_root.enemy30.invincible == false)) {
if (_root.enemy30.health > 0) {
_root.enemy30.health = _root.enemy30.health - (20 + _parent._parent.extraDamage);
if (_parent._parent.oneTimeHit == true) {
oneHit = true;
}
if (_parent._parent.bladeAttack == true) {
_root.effect1.start(0, 1);
}
if (_parent._parent.normalAttack == true) {
randomSound = int(Math.random() * 2);
if (randomSound == 1) {
_root.effect7.start(0, 1);
} else {
_root.effect6.start(0, 1);
}
}
_root.enemy30.invincible = true;
}
}
}
}
}
Symbol 201 MovieClip Frame 1
attacking = false;
extraDamage = 0;
bladeAttack = false;
normalAttack = false;
_root.skidding = false;
_root.attacking = false;
stop();
Symbol 201 MovieClip Frame 3
comboTime = true;
normalAttack = true;
Symbol 201 MovieClip Frame 8
comboTime = false;
_root.punchAttackA = true;
if (combo == 0) {
gotoAndPlay (13);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (23);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (53);
}
Symbol 201 MovieClip Frame 13
normalAttack = true;
Symbol 201 MovieClip Frame 19
gotoAndStop (1);
Symbol 201 MovieClip Frame 23
comboTime = true;
normalAttack = true;
Symbol 201 MovieClip Frame 28
comboTime = false;
_root.punchAttackB = true;
if (combo == 0) {
gotoAndPlay (13);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (31);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (53);
}
Symbol 201 MovieClip Frame 31
comboTime = true;
normalAttack = true;
Symbol 201 MovieClip Frame 37
comboTime = false;
_root.punchAttackC = true;
if (combo == 0) {
gotoAndPlay (13);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (23);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (53);
}
Symbol 201 MovieClip Frame 50
gotoAndStop (1);
Symbol 201 MovieClip Frame 53
comboTime = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 63
comboTime = false;
if (combo == 0) {
gotoAndPlay (80);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (67);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (320);
}
Symbol 201 MovieClip Frame 67
comboTime = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 76
comboTime = false;
if (combo == 0) {
gotoAndPlay (43);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (23);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (53);
}
Symbol 201 MovieClip Frame 87
gotoAndStop (1);
Symbol 201 MovieClip Frame 91
comboTime = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 115
comboTime = false;
if (combo == 0) {
gotoAndPlay (121);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (141);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (153);
}
Symbol 201 MovieClip Frame 130
gotoAndStop (1);
Symbol 201 MovieClip Frame 141
comboTime = true;
Symbol 201 MovieClip Frame 147
comboTime = false;
if (combo == 0) {
gotoAndPlay (13);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (23);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (53);
}
Symbol 201 MovieClip Frame 153
_root.invincible = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 175
_root.bladeAttackC = true;
gotoAndPlay (350);
Symbol 201 MovieClip Frame 305
comboTime = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 316
comboTime = false;
_root.bladeAttackA = true;
if (combo == 0) {
gotoAndPlay (80);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (67);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (320);
}
Symbol 201 MovieClip Frame 320
comboTime = true;
extraDamage = 10;
bladeAttack = true;
Symbol 201 MovieClip Frame 344
comboTime = false;
_root.bladeAttackB = true;
if (combo == 0) {
gotoAndPlay (121);
}
if (combo == 1) {
combo = 0;
gotoAndPlay (141);
}
if (combo == 2) {
combo = 0;
gotoAndPlay (153);
}
Symbol 201 MovieClip Frame 363
gotoAndStop (1);
Symbol 202 MovieClip Frame 23
gotoAndPlay (9);
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 5
if (Key.isDown(32) || (Key.isDown(38))) {
_parent.gotoAndPlay(2);
} else {
_root.player.innerPlayer.gotoAndStop(5);
}
Symbol 204 MovieClip Frame 1
attacking = false;
Symbol 204 MovieClip Frame 7
stop();
onEnterFrame = function () {
if (attacking == false) {
if (_root.reJump == true) {
_root.reJump = false;
gotoAndPlay (1);
}
if ((_root.vel_y > 0) && (_root.declineJump == false)) {
_root.declineJump = true;
gotoAndPlay (8);
}
}
};
Symbol 204 MovieClip Frame 8
onEnterFrame = function () {
if (attacking == false) {
_root.declineJump = false;
if (_root.reJump == true) {
_root.reJump = false;
gotoAndPlay (1);
}
}
};
Symbol 204 MovieClip Frame 18
stop();
_root.endJump = false;
onEnterFrame = function () {
if (attacking == false) {
if (_root.reJump == true) {
_root.reJump = false;
gotoAndPlay (1);
}
}
};
Instance of Symbol 203 MovieClip in Symbol 204 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.bg.ground.hitTest(_root.player._x, _root.player._y + 50, true) && (_root.endJump == false)) {
this.gotoAndPlay(2);
_root.endJump = true;
}
}
Symbol 204 MovieClip Frame 26
normalAttack = true;
Symbol 204 MovieClip Frame 31
_root.dropKickAttack = true;
if (_root.bg.ground.hitTest(_root.player._x, _root.player._y + 50, true)) {
gotoAndPlay (36);
} else {
gotoAndPlay (30);
}
Symbol 204 MovieClip Frame 43
if (Key.isDown(37) || (Key.isDown(39))) {
_root.player.innerPlayer.gotoAndStop(5);
} else {
_root.player.innerPlayer.gotoAndStop(1);
}
Symbol 204 MovieClip Frame 51
_root.jumping = true;
gotoAndStop (18);
Symbol 205 MovieClip Frame 23
gotoAndPlay (1);
Symbol 205 MovieClip Frame 64
_root.fallingFromGlider = true;
_root.onGliders = false;
Symbol 205 MovieClip Frame 66
_root.gliderAnimationSet = false;
Symbol 205 MovieClip Frame 85
gotoAndPlay (65);
Symbol 205 MovieClip Frame 91
_root.effect3.stop();
Symbol 205 MovieClip Frame 104
stop();
_root.onRails = false;
_root.fallingFromGlider = false;
if (Key.isDown(37) || (Key.isDown(39))) {
_parent.gotoAndStop(5);
} else {
_parent.gotoAndStop(1);
}
Symbol 206 MovieClip Frame 1
_root.skidding = true;
Symbol 206 MovieClip Frame 10
Symbol 206 MovieClip Frame 21
_root.skidding = false;
_parent.gotoAndStop(5);
Symbol 207 MovieClip Frame 2
if (Key.isDown(83)) {
_root.player.innerPlayer.gotoAndStop(15);
_root.player.innerPlayer.jumpingPlayer.gotoAndPlay(25);
}
Symbol 207 MovieClip Frame 6
stop();
if (_root.vel_y > 4) {
gotoAndPlay (7);
} else {
gotoAndPlay (5);
}
if (Key.isDown(83)) {
if (_root.vel_y < 4) {
_root.player.innerPlayer.gotoAndStop(15);
_root.player.innerPlayer.jumpingPlayer.gotoAndPlay(25);
}
}
Symbol 207 MovieClip Frame 7
onEnterFrame = function () {
_root.declineJump = false;
if (_root.reJump == true) {
_root.reJump = false;
gotoAndPlay (1);
}
};
Symbol 207 MovieClip Frame 17
stop();
_root.endJump = false;
onEnterFrame = function () {
if (_root.reJump == true) {
_root.reJump = false;
gotoAndPlay (1);
}
};
Instance of Symbol 203 MovieClip in Symbol 207 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.bg.ground.hitTest(_root.player._x, _root.player._y + 50, true) && (_root.endJump == false)) {
this.gotoAndPlay(2);
_root.endJump = true;
}
}
Symbol 214 MovieClip Frame 7
_root.effect3.start(0, 10);
Symbol 214 MovieClip Frame 9
Symbol 214 MovieClip Frame 28
gotoAndPlay (8);
Symbol 216 MovieClip Frame 8
attacking = false;
Symbol 216 MovieClip Frame 9
duckingPosition = true;
bladeAttack = false;
normalAttack = false;
if (attacking == false) {
if (!Key.isDown(40)) {
gotoAndPlay (15);
}
if (Key.isDown(40)) {
gotoAndPlay (8);
}
}
Symbol 216 MovieClip Frame 15
duckingPosition = false;
Symbol 216 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 216 MovieClip Frame 25
extraDamage = 10;
normalAttack = true;
Symbol 216 MovieClip Frame 31
_root.lowKickAttack = true;
gotoAndPlay (35);
Symbol 216 MovieClip Frame 42
gotoAndPlay (8);
Symbol 216 MovieClip Frame 50
extraDamage = 10;
bladeAttack = true;
Symbol 216 MovieClip Frame 56
_root.lowBladeAttack = true;
gotoAndPlay (58);
Symbol 216 MovieClip Frame 68
gotoAndPlay (8);
Symbol 217 MovieClip Frame 1
stop();
_root.jumpSound = false;
_root.ducking = false;
_root.jumping = false;
_root.gotoJumping = false;
_root.declineJump = false;
_root.endJump = false;
_root.springJump = false;
_root.sliding = false;
_root.reJump = false;
_root.skidding = false;
_root.fallingAnimationSet = false;
Instance of Symbol 201 MovieClip "attackingPlayer" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
var attacking = false;
var combo = 0;
var comboTime = false;
var canCombo = true;
var extraDamage = 0;
var bladeAttack = false;
var normalAttack = false;
}
onClipEvent (enterFrame) {
if ((_root.moveSpeed > 2) || (_root.moveSpeed < -2)) {
_parent.gotoAndStop(5);
}
if (_root.vel_y < 4) {
if ((attacking == false) && (canCombo == true)) {
if (Key.isDown(65)) {
attacking = true;
_root.attacking = true;
gotoAndPlay (305);
}
if (Key.isDown(83)) {
attacking = true;
_root.attacking = true;
gotoAndPlay (2);
}
}
if ((comboTime == true) && (canCombo == true)) {
if (Key.isDown(83)) {
combo = 1;
}
if (Key.isDown(65)) {
combo = 2;
}
}
if ((!Key.isDown(65)) && (!Key.isDown(83))) {
canCombo = true;
} else {
canCombo = false;
}
}
}
Symbol 217 MovieClip Frame 5
stop();
_root.fallingFromGlider = false;
_root.onRails = false;
_root.jumping = false;
_root.gotoJumping = false;
_root.declineJump = false;
_root.endJump = false;
_root.springJump = false;
_root.sliding = false;
_root.reJump = false;
_root.fallingAnimationSet = false;
Symbol 217 MovieClip Frame 15
stop();
Instance of Symbol 204 MovieClip "jumpingPlayer" in Symbol 217 MovieClip Frame 15
onClipEvent (load) {
var oneTimeHit = true;
var attacking = false;
var combo = 0;
var comboTime = false;
var canCombo = true;
var extraDamage = 0;
var bladeAttack = false;
var normalAttack = false;
_root.fallingAnimationSet = false;
}
onClipEvent (enterFrame) {
if (_root.vel_y < 0) {
if (attacking == false) {
if (Key.isDown(83)) {
attacking = true;
gotoAndPlay (25);
}
}
}
}
Symbol 217 MovieClip Frame 20
stop();
Symbol 217 MovieClip Frame 25
stop();
Symbol 217 MovieClip Frame 30
stop();
Symbol 217 MovieClip Frame 35
stop();
Symbol 217 MovieClip Frame 40
_root.ducking = true;
Instance of Symbol 216 MovieClip in Symbol 217 MovieClip Frame 40
onClipEvent (load) {
var duckingPosition = false;
var attacking = false;
var combo = 0;
var comboTime = false;
var canCombo = true;
}
onClipEvent (enterFrame) {
if (duckingPosition == true) {
if ((attacking == false) && (canCombo == true)) {
if (Key.isDown(65)) {
attacking = true;
gotoAndPlay (50);
}
if (Key.isDown(83)) {
attacking = true;
gotoAndPlay (25);
}
}
if ((comboTime == true) && (canCombo == true)) {
if (Key.isDown(83)) {
combo = 1;
}
if (Key.isDown(65)) {
combo = 2;
}
}
if ((!Key.isDown(65)) && (!Key.isDown(83))) {
canCombo = true;
} else {
canCombo = false;
}
}
}
Symbol 223 MovieClip Frame 1
stop();
Instance of Symbol 229 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
var randomDisappear = 0;
var appearVariable = 60;
var appear = appearVariable;
var disappearVariable = 80;
var disappearNumber = 10;
var canSee = true;
var autoDisappearNumber = 160;
var autoDisappear = autoDisappearNumber;
}
onClipEvent (enterFrame) {
if (autoDisappear <= 0) {
canSee = false;
_alpha = 0;
}
if (canSee == true) {
autoDisappear--;
_parent.canHit = true;
randomDisappear = int(Math.random() * disappearVariable);
if (randomDisappear == disappearNumber) {
_alpha = 0;
canSee = false;
}
}
if (canSee == false) {
autoDisappear = autoDisappearNumber;
_parent.canHit = false;
appear--;
if (appear <= 0) {
_alpha = 100;
canSee = true;
appear = appearVariable;
}
}
}
Instance of Symbol 233 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
var canHit = false;
var hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x + 50, _root.player._y - 30, true) || (this.hitTest(_root.player._x - 50, _root.player._y - 30, true))) {
if (_root.attacking == false) {
if (hit == false) {
if (canHit == true) {
if (_root.invincible == false) {
_root.effect15.start(0, 1);
_root.health = _root.health - 1;
_root.invincible = true;
if ((_root.moveSpeed > 0) && (hit == false)) {
_root.moveSpeed = -40;
hit = true;
}
if ((_root.moveSpeed < 0) && (hit == false)) {
_root.moveSpeed = 40;
hit = true;
}
if ((_root.moveSpeed == 0) && (hit == false)) {
if (_root.player._xscale > 0) {
_root.moveSpeed = 40;
hit = true;
} else {
_root.moveSpeed = -40;
}
}
}
}
}
}
} else {
hit = false;
}
}
Instance of Symbol 236 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
var bonusAdded = false;
var started = false;
var startedSeconds = 0;
var verticalDistance = 0;
var verticalVolume = 0;
var horizontalVolume = 0;
clearInterval(setStarted);
setStarted = setInterval(function () {
if (started == true) {
startedSeconds--;
}
}, 1000, 0);
if (_root.level == 1) {
startedSeconds = 25;
}
if (_root.level == 2) {
startedSeconds = 30;
}
if (_root.level == 3) {
startedSeconds = 30;
}
if (_root.level == 4) {
startedSeconds = 40;
}
if (_root.level == 5) {
startedSeconds = 70;
}
}
onClipEvent (enterFrame) {
if (_root.level == 1) {
if (startedSeconds == 18) {
if (this.hitTest(_root.player) && (bonusAdded == false)) {
_root.goodListenerCount = _root.goodListenerCount + 1;
bonusAdded = true;
}
}
}
if (_root.level == 2) {
if (startedSeconds == 16) {
if (this.hitTest(_root.player) && (bonusAdded == false)) {
_root.goodListenerCount = _root.goodListenerCount + 1;
bonusAdded = true;
}
}
}
if (_root.level == 3) {
if (startedSeconds == 17) {
if (this.hitTest(_root.player) && (bonusAdded == false)) {
_root.goodListenerCount = _root.goodListenerCount + 1;
bonusAdded = true;
}
}
}
if (_root.level == 4) {
if (startedSeconds == 23) {
if (this.hitTest(_root.player) && (bonusAdded == false)) {
_root.goodListenerCount = _root.goodListenerCount + 1;
bonusAdded = true;
}
}
}
if (_root.level == 5) {
if (startedSeconds == 40) {
if (this.hitTest(_root.player) && (bonusAdded == false)) {
_root.goodListenerCount = _root.goodListenerCount + 1;
bonusAdded = true;
}
}
}
if (startedSeconds <= 0) {
if (_root.level == 1) {
startedSeconds = 25;
}
if (_root.level == 2) {
startedSeconds = 30;
}
if (_root.level == 3) {
startedSeconds = 30;
}
if (_root.level == 4) {
startedSeconds = 40;
}
if (_root.level == 5) {
startedSeconds = 70;
}
started = false;
}
if (this.hitTest(_root.player)) {
if (started == false) {
if (_root.level == 1) {
_root.voice1.start(0, 1);
}
if (_root.level == 2) {
_root.voice2.start(0, 1);
}
if (_root.level == 3) {
_root.voice3.start(0, 1);
}
if (_root.level == 4) {
_root.voice4.start(0, 1);
}
if (_root.level == 5) {
_root.voice5.start(0, 1);
}
started = true;
}
}
horizontalVolume = int(Math.abs(((_x + _parent._x) + _parent._parent._x) - _root.player._x) / 10);
if (horizontalVolume >= 100) {
horizontalVolume = 100;
}
if (horizontalVolume <= 0) {
horizontalVolume = 0;
}
verticalDistance = int(Math.abs(((_y - _root.player._y) + _parent._y) + _parent._parent._y));
if (verticalDistance > 300) {
verticalVolume = (verticalDistance - 300) / 10;
} else {
verticalVolume = 0;
}
if (verticalVolume >= 100) {
verticalVolume = 100;
}
if (verticalVolume <= 0) {
verticalVolume = 0;
}
volumeNumber = (100 - horizontalVolume) - verticalVolume;
if (volumeNumber <= 0) {
volumeNumber = 0;
}
if (_root.level == 1) {
_root.voice1.setVolume(volumeNumber);
}
if (_root.level == 2) {
_root.voice2.setVolume(volumeNumber);
}
if (_root.level == 3) {
_root.voice3.setVolume(volumeNumber);
}
if (_root.level == 4) {
_root.voice4.setVolume(volumeNumber);
}
if (_root.level == 5) {
_root.voice5.setVolume(volumeNumber);
}
}
Instance of Symbol 254 MovieClip "rail" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
var onThisRail = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_parent.endArea.touching == false) {
if ((_parent.directionLeft == false) && (_root.player._xscale == 100)) {
if ((((_root.moveSpeed > 3) || (_root.moveSpeed < -3)) && (_root.jumping == true)) && (_root.vel_y > 5)) {
onThisRail = true;
_root.player.innerPlayer.gotoAndStop(35);
_root.onRails = true;
}
}
if ((_parent.directionLeft == true) && (_root.player._xscale == -100)) {
if ((((_root.moveSpeed > 3) || (_root.moveSpeed < -3)) && (_root.jumping == true)) && (_root.vel_y > 5)) {
onThisRail = true;
_root.player.innerPlayer.gotoAndStop(35);
_root.onRails = true;
}
}
}
}
}
Instance of Symbol 256 MovieClip "railStart" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
var startingPositionX = 0;
var startingPositionY = 0;
var firstSetPosition = false;
var playerAnimationSet = false;
startingPositionX = this._x;
startingPositionY = this._y;
}
onClipEvent (enterFrame) {
if (_parent.rail.onThisRail == true) {
if (firstSetPosition == false) {
playerAnimationSet = false;
_x = ((_root.player._x - _root.bg._x) - _parent._x);
_y = (((_root.player._y - _root.bg._y) - _parent._y) + 10);
firstSetPosition = true;
}
_root.moveSpeed = _root.moveSpeed + 2;
_root.vel_y = 0;
_x = (_x + (((_parent.railEnd._x - startingPositionX) / 1000) * _root.moveSpeed));
_y = (_y + (((_parent.railEnd._y - startingPositionY) / 1000) * _root.moveSpeed));
_root.player._x = (_x + _root.bg._x) + _parent._x;
_root.player._y = ((_y + _root.bg._y) + _parent._y) - 11;
if (_x > (_parent.railEnd._x - 30)) {
if (playerAnimationSet == false) {
_root.player.innerPlayer.gotoAndStop(20);
_root.player.innerPlayer.gliderPlayer.gotoAndPlay(89);
playerAnimationSet = true;
}
_parent.rail.onThisRail = false;
_root.grindMasterCount = _root.grindMasterCount + 1;
firstSetPosition = false;
_x = startingPositionX;
_y = startingPositionY;
}
}
}
Instance of Symbol 256 MovieClip "railEnd" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
var startingPositionX = 0;
var startingPositionY = 0;
startingPositionX = this._x;
startingPositionY = this._y;
}
Instance of Symbol 257 MovieClip "endArea" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
var touching = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
touching = true;
} else {
touching = false;
}
}
Symbol 262 MovieClip Frame 1
stop();
Instance of Symbol 261 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if ((_root.health > 0) && (_root.health < 8)) {
_root.health = _root.maxHealth;
if (_root.maxHealth <= 7) {
_root.expandHealthCounter = _root.expandHealthCounter + 1;
}
_parent.gotoAndStop(2);
}
}
}
Symbol 262 MovieClip Frame 2
stop();
var clipSelect = 0;
clipSelect = int(Math.random() * 2);
if (clipSelect == 0) {
_root.kadeVoice4.start(0, 1);
} else {
_root.kadeVoice5.start(0, 1);
}
Instance of Symbol 274 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
var reset = false;
var thisRotation = 0;
var returnRotation = 0;
var onThis = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
thisRotation = thisRotation + 0.1;
returnRotation = 0;
_parent._rotation = _parent._rotation - thisRotation;
onThis = true;
reset = false;
} else {
thisRotation = 0;
onThis = false;
}
if ((onThis == false) && (_parent._rotation < 0)) {
returnRotation = returnRotation + 0.1;
_parent._rotation = _parent._rotation + returnRotation;
}
if (_parent._rotation <= -20) {
_parent._rotation = -20;
}
if ((_parent._rotation >= 0) && (reset == false)) {
returnRotation = 0;
thisRotation = 0;
reset = true;
}
}
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
var reset = false;
var thisRotation = 0;
var returnRotation = 0;
var onThis = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
thisRotation = thisRotation + 0.1;
returnRotation = 0;
_parent._rotation = _parent._rotation + thisRotation;
onThis = true;
reset = false;
} else {
thisRotation = 0;
}
onThis = false;
if ((onThis == false) && (_parent._rotation > 0)) {
returnRotation = returnRotation + 0.1;
_parent._rotation = _parent._rotation - returnRotation;
}
if (_parent._rotation >= 20) {
_parent._rotation = 20;
}
if ((_parent._rotation < 0) && (reset == false)) {
returnRotation = 0;
thisRotation = 0;
reset = true;
if ((_parent._rotation > -3) && (_parent._rotation <= 1)) {
_parent._rotation = 0;
}
}
}
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y - 5, true)) {
_root.health = 0;
}
}
Instance of Symbol 286 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.savedHealthCounters = _root.expandHealthCounter;
_root.savedMaxHealth = _root.maxHealth;
_root.savedTime = _root.totalPlayTime;
_root.savedEnemiesKilled = _root.totalEnemiesKilled;
_root.savedGoodListenerCount = _root.savedGoodListenerCount + _root.goodListenerCount;
_root.play();
}
}
Instance of Symbol 289 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x - 30, _root.player._y - 20, true)) {
_root.player._x = _root.player._x - _root.masterSpeed;
_root.player._x = _root.player._x + 1;
if (_root.canJump == true) {
_root.moveSpeed = 0;
}
}
}
Instance of Symbol 292 MovieClip in Symbol 293 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x + 30, _root.player._y - 20, true)) {
_root.player._x = _root.player._x - _root.masterSpeed;
_root.player._x = _root.player._x - 1;
if (_root.canWallJump == true) {
_root.moveSpeed = 0;
}
}
}
Instance of Symbol 295 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y - 75, true)) {
_root.vel_y = 5;
_root.player._y = _root.player._y + 5;
}
}
Instance of Symbol 298 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
startingY = _y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.wallJumpSide == 2) {
_root.springSpeed = 0;
_root.moveSpeed = 0;
}
if ((_root.wallJumpSide == 0) || (_root.wallJumpSide == 2)) {
if ((((Key.isDown(32) || (Key.isDown(38))) && (_root.jumping == true)) && (_root.canWallJump == true)) && (_root.vel_y > -6)) {
_root.player._xscale = -_root.playerScale;
_root.player.innerPlayer.wallJumpPlayer.gotoAndPlay(2);
_root.vel_y = -_root.wallJumpHeight;
_root.moveSpeed = -_root.wallJumpPush;
_root.wallJumpSide = 1;
_root.canWallJump = false;
}
}
}
}
Instance of Symbol 301 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
startingY = _y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.wallJumpSide == 1) {
_root.springSpeed = 0;
_root.moveSpeed = 0;
}
if ((_root.wallJumpSide == 0) || (_root.wallJumpSide == 1)) {
if ((((Key.isDown(32) || (Key.isDown(38))) && (_root.jumping == true)) && (_root.canWallJump == true)) && (_root.vel_y > -6)) {
_root.player._xscale = _root.playerScale;
_root.player.innerPlayer.gotoAndStop(30);
_root.player.innerPlayer.wallJumpPlayer.gotoAndPlay(2);
_root.vel_y = -_root.wallJumpHeight;
_root.moveSpeed = _root.wallJumpPush;
_root.wallJumpSide = 2;
_root.canWallJump = false;
}
}
}
}
Instance of Symbol 223 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -53;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.player.innerPlayer.gotoAndStop(15);
_root.wallJumpSide = 0;
_root.vel_y = -29;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 258 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (load) {
var directionLeft = false;
}
Instance of Symbol 293 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y + 40, true)) {
_root.player._x = _root.player._x - 6;
}
}
Symbol 308 MovieClip Frame 1
stop();
if (onThisGlider == true) {
play();
}
Symbol 308 MovieClip Frame 50
atGliderEnd = true;
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 16
gotoAndStop (1);
Symbol 336 MovieClip Frame 28
stop();
Symbol 336 MovieClip Frame 36
gotoAndStop (1);
Symbol 336 MovieClip Frame 52
gotoAndStop (1);
Instance of Symbol 352 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
var soundPicked = 0;
var attackingNow = false;
var bloodNumber = 0;
var picked = false;
var attackChance = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent.attacking == true) {
if (_root.attacking == false) {
if (this.hitTest(_root.player)) {
attackingNow = true;
}
}
if (_root.attacking == true) {
if (this.hitTest(_root.player.innerPlayer.attackingPlayer)) {
attackingNow = true;
}
}
if (attackingNow == true) {
if ((_root.invincible == false) && (_parent._parent.invincible == false)) {
if (_root.player.innerPlayer.attackingPlayer.attacking == true) {
attackChance = int(Math.random() * 4);
} else {
attackChance = 0;
}
if ((attackChance == 0) || (attackChance == 1)) {
_root.health = _root.health - 1;
soundPicked = int(Math.random() * 16);
if ((((((((((((soundPicked == 0) || (soundPicked == 1)) || (soundPicked == 2)) || (soundPicked == 3)) || (soundPicked == 4)) || (soundPicked == 5)) || (soundPicked == 6)) || (soundPicked == 7)) || (soundPicked == 8)) || (soundPicked == 9)) || (soundPicked == 10)) || (soundPicked == 11)) {
_root.kadeVoice1.start(0, 1);
}
if (((soundPicked == 12) || (soundPicked == 13)) || (soundPicked == 14)) {
_root.kadeVoice1.start(0, 1);
}
if (soundPicked == 15) {
_root.kadeVoice1.start(0, 1);
}
if (picked == false) {
bloodNumber = int(Math.random() * 3);
if (bloodNumber == 0) {
_root.blood._x = _root.player._x;
_root.blood._y = _root.player._y - 80;
_root.blood.gotoAndPlay(2);
}
if (bloodNumber == 1) {
_root.blood._x = _root.player._x;
_root.blood._y = _root.player._y - 80;
_root.blood.gotoAndPlay(20);
}
if (bloodNumber == 2) {
_root.blood._x = _root.player._x;
_root.blood._y = _root.player._y - 80;
_root.blood.gotoAndPlay(40);
}
_root.invincible = true;
}
}
}
attackingNow = false;
_parent._parent.attacking = false;
}
}
}
Symbol 354 MovieClip Frame 1
stop();
Instance of Symbol 348 MovieClip in Symbol 354 MovieClip Frame 1
onClipEvent (load) {
var sent = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.invincible == false) {
sent = false;
}
if ((_parent._parent.invincible == true) && (sent == false)) {
_parent.gotoAndPlay(2);
sent = true;
}
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
_root.effect8.start(0, 1);
Symbol 369 MovieClip Frame 12
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
_root.effect8.start(0, 1);
Symbol 373 MovieClip Frame 12
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
_root.effect8.start(0, 1);
Symbol 377 MovieClip Frame 12
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
stop();
Instance of Symbol 369 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 10);
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.timeTravelerCount = _root.timeTravelerCount + 1;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 378 MovieClip Frame 3
stop();
Instance of Symbol 373 MovieClip in Symbol 378 MovieClip Frame 3
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 10);
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 378 MovieClip Frame 4
stop();
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 4
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 10);
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 15;
_root.timeTravelerCount = _root.timeTravelerCount + 1;
_root.levelTime = _root.levelTime - 15;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 379 MovieClip Frame 1
stop();
Instance of Symbol 348 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
var sent = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.invincible == false) {
sent = false;
}
if ((_parent._parent.invincible == true) && (sent == false)) {
_parent.gotoAndPlay(2);
sent = true;
}
}
Symbol 379 MovieClip Frame 14
if (dead == false) {
gotoAndPlay (17);
}
Symbol 379 MovieClip Frame 34
if (dead == false) {
gotoAndPlay (17);
}
Symbol 379 MovieClip Frame 46
if (dead == false) {
gotoAndStop (1);
}
Symbol 379 MovieClip Frame 79
if (dead == false) {
gotoAndPlay (81);
}
Symbol 379 MovieClip Frame 88
if (dead == false) {
gotoAndStop (39);
}
Symbol 379 MovieClip Frame 95
_root.effect9.start(0, 1);
Symbol 379 MovieClip Frame 112
stop();
_root.gateEnemiesKilled = _root.gateEnemiesKilled + gateEnemiesKilledAddition;
_root.totalEnemiesKilled = _root.totalEnemiesKilled + 1;
if (drop == 1) {
dropBox.gotoAndStop(2);
}
if (drop == 2) {
dropBox.gotoAndStop(3);
}
if (drop == 3) {
dropBox.gotoAndStop(4);
}
Instance of Symbol 355 MovieClip in Symbol 379 MovieClip Frame 112
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 378 MovieClip "dropBox" in Symbol 379 MovieClip Frame 112
onClipEvent (load) {
var scale = 0;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (_parent._xscale < 0) {
_xscale = (-scale);
} else {
_xscale = scale;
}
}
Symbol 379 MovieClip Frame 119
if (dead == false) {
gotoAndPlay (123);
}
Symbol 379 MovieClip Frame 127
if (dead == false) {
gotoAndStop (39);
}
Symbol 379 MovieClip Frame 137
var attackPath = 0;
attackPath = int(Math.random() * 2);
Symbol 379 MovieClip Frame 138
if (dead == false) {
if (attackPath == 0) {
gotoAndPlay (141);
} else {
gotoAndPlay (151);
}
}
Symbol 379 MovieClip Frame 146
if (dead == false) {
gotoAndStop (39);
}
Symbol 379 MovieClip Frame 161
if (dead == false) {
gotoAndPlay (164);
}
Symbol 379 MovieClip Frame 171
if (dead == false) {
gotoAndStop (39);
}
Symbol 379 MovieClip Frame 186
var attackPath = 0;
attackPath = int(Math.random() * 3);
Symbol 379 MovieClip Frame 187
if (dead == false) {
if (attackPath == 0) {
gotoAndPlay (123);
} else {
waitTime = waitTime + 26;
gotoAndPlay (130);
}
}
Symbol 379 MovieClip Frame 202
var attackPath = 0;
attackPath = int(Math.random() * 3);
Symbol 379 MovieClip Frame 203
if (dead == false) {
if (attackPath == 0) {
gotoAndPlay (123);
} else {
waitTime = waitTime + 26;
gotoAndPlay (130);
}
}
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();
_root.effect16.start(0, 1);
Instance of Symbol 396 MovieClip in Symbol 397 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.alert == true) {
gotoAndStop (2);
}
if (_root.alert == false) {
gotoAndStop (1);
}
}
Symbol 403 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.maxHealth);
}
Symbol 411 MovieClip Frame 1
Instance of Symbol 391 MovieClip "healthExpand" in Symbol 411 MovieClip Frame 1
onClipEvent (load) {
var sent = false;
}
onClipEvent (enterFrame) {
if ((_root.maxHealth == 8) && (sent == false)) {
sent = true;
gotoAndStop (2);
}
}
Instance of Symbol 403 MovieClip in Symbol 411 MovieClip Frame 1
onClipEvent (load) {
var replenish = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(replenish);
if (_root.health == _root.maxHealth) {
replenish = 1;
}
if ((_root.health < _root.maxHealth) && (_root.health > 0)) {
if (replenish < 901) {
replenish = replenish + 1;
} else {
replenish = 1;
_root.health = _root.health + 1;
}
}
}
Instance of Symbol 409 MovieClip in Symbol 411 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health >= 1) {
this.gotoAndStop(_root.health);
} else {
this.gotoAndStop(9);
}
}
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 3
stop();
Instance of Symbol 418 MovieClip in Symbol 419 MovieClip Frame 3
onClipEvent (load) {
var counter = 0;
}
onClipEvent (enterFrame) {
counter++;
if (counter > 150) {
_root.trapCleared = false;
_root.trapAlert = false;
_parent.gotoAndStop(1);
}
}
Symbol 424 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 425 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 419 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.trapAlert == true) {
gotoAndStop (2);
}
if (_root.trapCleared == true) {
gotoAndStop (3);
}
if (_root.trapAlert == false) {
if (trapCleared == false) {
gotoAndStop (1);
}
}
}
Instance of Symbol 434 MovieClip "rail" in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
var onThisRail = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_parent.endArea.touching == false) {
if ((_parent.directionLeft == false) && (_root.player._xscale == 100)) {
if ((((_root.moveSpeed > 3) || (_root.moveSpeed < -3)) && (_root.jumping == true)) && (_root.vel_y > 5)) {
onThisRail = true;
_root.player.innerPlayer.gotoAndStop(35);
_root.onRails = true;
}
}
if ((_parent.directionLeft == true) && (_root.player._xscale == -100)) {
if ((((_root.moveSpeed > 3) || (_root.moveSpeed < -3)) && (_root.jumping == true)) && (_root.vel_y > 5)) {
onThisRail = true;
_root.player.innerPlayer.gotoAndStop(35);
_root.onRails = true;
}
}
}
}
}
Instance of Symbol 256 MovieClip "railStart" in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
var startingPositionX = 0;
var startingPositionY = 0;
var firstSetPosition = false;
var playerAnimationSet = false;
startingPositionX = this._x;
startingPositionY = this._y;
}
onClipEvent (enterFrame) {
if (_parent.rail.onThisRail == true) {
if (firstSetPosition == false) {
playerAnimationSet = false;
_x = ((_root.player._x - _root.bg._x) - _parent._x);
_y = (((_root.player._y - _root.bg._y) - _parent._y) + 10);
firstSetPosition = true;
}
_root.moveSpeed = _root.moveSpeed + 2;
_root.vel_y = 0;
_x = (_x + (((_parent.railEnd._x - startingPositionX) / 1000) * _root.moveSpeed));
_y = (_y + (((_parent.railEnd._y - startingPositionY) / 1000) * _root.moveSpeed));
_root.player._x = (_x + _root.bg._x) + _parent._x;
_root.player._y = ((_y + _root.bg._y) + _parent._y) - 11;
if (_x > (_parent.railEnd._x - 30)) {
if (playerAnimationSet == false) {
_root.player.innerPlayer.gotoAndStop(20);
_root.player.innerPlayer.gliderPlayer.gotoAndPlay(89);
playerAnimationSet = true;
}
_parent.rail.onThisRail = false;
firstSetPosition = false;
_root.grindMasterCount = _root.grindMasterCount + 1;
_x = startingPositionX;
_y = startingPositionY;
}
}
}
Instance of Symbol 256 MovieClip "railEnd" in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
var startingPositionX = 0;
var startingPositionY = 0;
startingPositionX = this._x;
startingPositionY = this._y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 257 MovieClip "endArea" in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
var touching = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
touching = true;
} else {
touching = false;
}
}
Symbol 439 MovieClip Frame 1
stop();
Instance of Symbol 437 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (load) {
var pressed = false;
var sent = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
pressed = true;
}
if ((pressed == true) && (sent == false)) {
_root.pressedTotal = _root.pressedTotal + 1;
_parent.gotoAndStop(2);
sent = true;
}
}
Symbol 439 MovieClip Frame 2
_root.effect10.start(0, 1);
stop();
Instance of Symbol 446 MovieClip in Symbol 447 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.attacking == false)) {
_root.health = 0;
}
}
Symbol 448 MovieClip Frame 1
stop();
Instance of Symbol 437 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
var pressed = false;
var sent = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.pressedTotal == 2) {
pressed = true;
}
}
if ((pressed == true) && (sent == false)) {
_root.pressedTotal = _root.pressedTotal + 1;
_parent.gotoAndStop(2);
sent = true;
}
}
Symbol 448 MovieClip Frame 2
_root.effect10.start(0, 1);
stop();
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = -17;
_root.player._xscale = -_root.playerScale;
_root.wallJumpSide = 1;
_root.vel_y = -22;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = 17;
_root.player._xscale = _root.playerScale;
_root.wallJumpSide = 2;
_root.vel_y = -22;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 430 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var startingY = 0;
startingY = _y;
var endingY = 0;
endingY = _y - _height;
var gateOpen = false;
var positionReset = false;
}
onClipEvent (enterFrame) {
if (gateOpen == false) {
if (_root.pressedTotal == 1) {
_y = (_y - 5);
}
if (_y < endingY) {
_y = endingY;
gateOpen = true;
}
}
if (_root.pressedTotal == 2) {
_y = startingY;
}
if (_root.pressedTotal == 3) {
gateOpen = false;
_y = (_y - 5);
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -31;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -27;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -32;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -38;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -35;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 435 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var directionLeft = false;
}
Instance of Symbol 439 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var specificButton = true;
}
Instance of Symbol 444 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var movingSound = false;
var backwardsSound = false;
var enemiesInPosition = false;
}
onClipEvent (enterFrame) {
if (_root.pressedTotal > 1) {
if (enemiesInPosition == false) {
_root.trapAlert = true;
_root.effect11.start(0, 1);
_root.effect11.setPan(-100);
_root.enemy1._y = _root.enemy1._y - 400;
_root.enemy2._y = _root.enemy2._y - 400;
_root.enemy3._y = _root.enemy3._y - 400;
_root.enemy4._y = _root.enemy4._y - 400;
enemiesInPosition = true;
}
if (_x < 1885) {
if (movingSound == false) {
_root.effect12.start(0, 99);
_root.effect12.setPan(-100);
movingSound = true;
}
_x = (_x + 4);
}
}
if (_x > 1885) {
_root.effect12.stop();
_root.effect13.start(0, 1);
_root.effect13.setPan(-100);
_x = 1885;
}
if (_root.pressedTotal == 3) {
if (backwardsSound == false) {
_root.trapAlert = false;
_root.trapCleared = true;
_root.effect14.start(0, 99);
_root.effect14.setPan(-100);
backwardsSound = true;
}
_x = (_x - 20);
}
if ((_x < -1900) && (_root.pressedTotal == 3)) {
_alpha = 0;
_root.effect12.stop();
_root.effect14.stop();
_root.pressedTotal = _root.pressedTotal + 1;
}
if (this.hitTest(_root.enemy1) && (_root.enemy1.invincible == false)) {
if (_root.enemy1.health > 0) {
_root.enemy1._x = _root.enemy1._x + 40;
}
_root.enemy1.health = 0;
_root.enemy1.invincible = true;
}
if (this.hitTest(_root.enemy2) && (_root.enemy2.invincible == false)) {
if (_root.enemy2.health > 0) {
_root.enemy2._x = _root.enemy2._x + 40;
}
_root.enemy2.health = 0;
_root.enemy2.invincible = true;
}
if (this.hitTest(_root.enemy3) && (_root.enemy3.invincible == false)) {
if (_root.enemy3.health > 0) {
_root.enemy3._x = _root.enemy3._x + 40;
}
_root.enemy3.health = 0;
_root.enemy3.invincible = true;
}
if (this.hitTest(_root.enemy4) && (_root.enemy4.invincible == false)) {
if (_root.enemy4.health > 0) {
_root.enemy4._x = _root.enemy4._x + 40;
}
_root.enemy4.health = 0;
_root.enemy4.invincible = true;
}
if (this.hitTest(_root.player._x - 20, _root.player._y - 30, true) && (_alpha == 100)) {
_root.health = 0;
}
}
Instance of Symbol 223 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -32;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 377 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 15;
_root.levelTime = _root.levelTime - 15;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 373 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.timeTravelerCount = _root.timeTravelerCount + 1;
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 373 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 450 MovieClip Frame 1
stop();
if (onThisGlider == true) {
play();
}
Symbol 450 MovieClip Frame 82
atGliderEnd = true;
stop();
Instance of Symbol 223 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -32;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -28;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -28;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -28;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 373 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 10);
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -26;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -28;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -27;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = 15;
_root.moveSpeed = 0;
_root.player._xscale = _root.playerScale;
_root.wallJumpSide = 2;
_root.vel_y = -22;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = 15;
_root.moveSpeed = 0;
_root.player._xscale = _root.playerScale;
_root.wallJumpSide = 2;
_root.vel_y = -22;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = -13;
_root.moveSpeed = 0;
_root.player._xscale = -_root.playerScale;
_root.wallJumpSide = 1;
_root.vel_y = -22;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.springSpeed = -14;
_root.moveSpeed = 0;
_root.player._xscale = -_root.playerScale;
_root.wallJumpSide = 1;
_root.vel_y = -18;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -29;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.vel_y > 3) {
if (_root.jumping == false) {
_root.jumping = true;
}
_root.wallJumpSide = 0;
_root.vel_y = -34;
_root.reJump = true;
_root.endJump = false;
_root.springJump = true;
_root.declineJump = false;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 373 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 373 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 373 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 373 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 10;
_root.levelTime = _root.levelTime - 10;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 468 MovieClip Frame 1
_root.elevatorWalls = false;
stop();
Instance of Symbol 437 MovieClip in Symbol 468 MovieClip Frame 1
onClipEvent (load) {
var ready = false;
var readyTime = 0;
}
onClipEvent (enterFrame) {
if (_root.alert == false) {
if (readyTime < 30) {
readyTime++;
}
}
if (readyTime >= 30) {
ready = true;
} else {
ready = false;
}
if (alert == true) {
readyTime = 0;
ready = false;
}
if ((_root.alert == false) && (ready == true)) {
if (((((((((this.hitTest(_root.player) && (_root.pressedTotal == 0)) || (this.hitTest(_root.player) && (_root.pressedTotal == 3))) || (this.hitTest(_root.player) && (_root.pressedTotal == 6))) || (this.hitTest(_root.player) && (_root.pressedTotal == 9))) || (this.hitTest(_root.player) && (_root.pressedTotal == 12))) || (this.hitTest(_root.player) && (_root.pressedTotal == 16))) || (this.hitTest(_root.player) && (_root.pressedTotal == 20))) || (this.hitTest(_root.player) && (_root.pressedTotal == 24))) || (this.hitTest(_root.player) && (_root.pressedTotal == 30))) {
_root.pressedTotal = _root.pressedTotal + 1;
_parent.gotoAndPlay(2);
}
}
}
Symbol 468 MovieClip Frame 2
_root.elevatorWalls = true;
Symbol 468 MovieClip Frame 182
gotoAndPlay (20);
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 2
_root.effect2.start(0, 1);
Symbol 474 MovieClip Frame 14
stop();
Symbol 474 MovieClip Frame 15
_root.effect2.start(0, 1);
Instance of Symbol 470 MovieClip in Symbol 475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.elevatorWalls == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 471 MovieClip in Symbol 475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.elevatorWalls == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 474 MovieClip in Symbol 475 MovieClip Frame 1
onClipEvent (load) {
var sent = false;
}
onClipEvent (enterFrame) {
if ((_root.elevatorWalls == true) && (sent == false)) {
gotoAndPlay (2);
sent = true;
}
if ((_root.elevatorWalls == false) && (sent == true)) {
gotoAndPlay (15);
sent = false;
}
}
Instance of Symbol 474 MovieClip in Symbol 475 MovieClip Frame 1
onClipEvent (load) {
var sent = false;
}
onClipEvent (enterFrame) {
if ((_root.elevatorWalls == true) && (sent == false)) {
gotoAndPlay (2);
sent = true;
}
if ((_root.elevatorWalls == false) && (sent == true)) {
gotoAndPlay (15);
sent = false;
}
}
Symbol 476 MovieClip Frame 1
stop();
Instance of Symbol 437 MovieClip in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
var pressed = false;
var sent = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.elevatorWalls == false) {
pressed = true;
}
}
if ((pressed == true) && (sent == false)) {
_root.pressedTotal = _root.pressedTotal + 1;
_parent.gotoAndStop(2);
sent = true;
}
}
Symbol 476 MovieClip Frame 2
_root.effect10.start(0, 1);
stop();
Instance of Symbol 475 MovieClip "elevator" in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.pressedTotal == 1) {
if (_root.elevatorPosition == 0) {
_y = (_y - 3);
if (_y <= 4473.3) {
_y = 4473.3;
_root.elevatorPosition = 1;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 4) {
if (_root.elevatorPosition == 1) {
_y = (_y - 3);
if (_y <= 3945.3) {
_y = 3945.3;
_root.elevatorPosition = 2;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 7) {
if (_root.elevatorPosition == 2) {
_y = (_y - 3);
if (_y <= 3417.3) {
_y = 3417.3;
_root.elevatorPosition = 3;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 10) {
if (_root.elevatorPosition == 3) {
_y = (_y - 3);
if (_y <= 2890.3) {
_y = 2890.3;
_root.elevatorPosition = 4;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 13) {
if (_root.elevatorPosition == 4) {
_y = (_y - 3);
if (_y <= 2363.3) {
_y = 2363.3;
_root.elevatorPosition = 5;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 17) {
if (_root.elevatorPosition == 5) {
_y = (_y - 3);
if (_y <= 1835.3) {
_y = 1835.3;
_root.elevatorPosition = 6;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 21) {
if (_root.elevatorPosition == 6) {
_y = (_y - 3);
if (_y <= 1307.4) {
_y = 1307.4;
_root.elevatorPosition = 7;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 25) {
if (_root.elevatorPosition == 7) {
_y = (_y - 3);
if (_y <= 780.5) {
_y = 780.5;
_root.elevatorPosition = 8;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
if (_root.pressedTotal == 31) {
if (_root.elevatorPosition == 8) {
_y = (_y - 3);
if (_y <= 464.6) {
_y = 464.6;
_root.elevatorPosition = 9;
_root.bg.ground.elevator.specialButton.gotoAndStop(1);
}
}
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Instance of Symbol 369 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
var animationSent = false;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (this.hitTest(_root.player) && (animationSent == false)) {
_root.totalPlayTime = _root.totalPlayTime - 5;
_root.levelTime = _root.levelTime - 5;
animationSent = true;
gotoAndPlay (2);
}
}
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 2
stop();
Symbol 496 MovieClip Frame 3
stop();
Symbol 496 MovieClip Frame 4
stop();
Symbol 496 MovieClip Frame 5
stop();
Symbol 496 MovieClip Frame 6
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 57
stop();
_root.readyToView = true;
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
Symbol 523 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.playersName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.finalScore;
__rankz_send__("MjYwMWolZSVhJW4lcw==", "TG9KSlV4SHI=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.submitButton.gotoAndPlay(2);
_root.submitButtonHidden._y = _root.submitButtonHidden._y + 400;
}
Symbol 526 Button
on (release) {
stopAllSounds();
if (defianceMode == true) {
gotoAndPlay (81);
} else {
gotoAndPlay (5386);
}
}
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 3
stop();
Symbol 561 MovieClip Frame 4
stop();
Symbol 561 MovieClip Frame 5
stop();
Symbol 561 MovieClip Frame 6
stop();
Symbol 561 MovieClip Frame 7
stop();
Symbol 561 MovieClip Frame 8
stop();
Symbol 561 MovieClip Frame 9
stop();
Symbol 562 Button
on (release) {
if (_root.readyToView == true) {
getURL ("http://rankz.armorbot.com/stabika3/", "_blank");
}
}
Symbol 576 Button
on (release) {
voice1.stop();
voice2.stop();
voice3.stop();
voice4.stop();
voice5.stop();
gotoAndPlay((level * 2) + 25);
}
Symbol 577 Button
on (release) {
gotoAndPlay (81);
}
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
stop();
Symbol 593 Button
on (release) {
getURL ("http://www.millzflickz.com/index.htm", "_blank");
}
Symbol 596 Button
on (release) {
gotoAndPlay (137);
}
Symbol 599 Button
on (release) {
play();
}
Symbol 602 Button
on (release) {
gotoAndStop (188);
}
Symbol 606 Button
on (press) {
_root.defianceMode = true;
play();
}
Symbol 609 Button
on (release) {
getURL ("http://rankz.armorbot.com/stabika3/", "_blank");
}
Symbol 611 Button
on (release) {
getURL ("http://maxgames.com/", "_blank");
}
Symbol 621 Button
on (release) {
play();
}
Symbol 622 Button
on (release) {
gotoAndPlay (164);
}
Symbol 627 Button
on (release) {
gotoAndPlay (161);
}
Symbol 633 Button
on (release) {
gotoAndPlay (162);
}
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
stop();
Symbol 647 Button
on (release) {
if (_root.unlocked == 1) {
stopAllSounds();
gotoAndPlay (4336);
}
}
Symbol 648 Button
on (release) {
if (_root.unlocked == 1) {
stopAllSounds();
gotoAndPlay (189);
}
}
Symbol 649 Button
on (press) {
gotoAndStop (116);
}
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
stop();
Symbol 748 MovieClip Frame 3
stop();
Symbol 748 MovieClip Frame 4
stop();
Symbol 748 MovieClip Frame 5
stop();
Symbol 748 MovieClip Frame 6
stop();
Symbol 748 MovieClip Frame 7
stop();
Symbol 781 MovieClip Frame 57
stop();
Symbol 821 Button
on (release) {
if (_root.checkpoint == false) {
gotoAndPlay (2465);
} else {
gotoAndPlay (3290);
}
}
Symbol 822 Button
on (press) {
gotoAndPlay (81);
}
Symbol 894 Button
on (release) {
stopAllSounds();
gotoAndPlay (4336);
}
Symbol 895 Button
on (release) {
stopAllSounds();
gotoAndPlay (81);
}
Symbol 897 MovieClip Frame 140
stop();
_root.play();
Symbol 1053 MovieClip Frame 6
gotoAndPlay (1);
Symbol 1053 MovieClip Frame 12
gotoAndPlay (7);
Symbol 1053 MovieClip Frame 18
gotoAndPlay (13);
Symbol 1053 MovieClip Frame 24
gotoAndPlay (19);
Symbol 1053 MovieClip Frame 30
gotoAndPlay (25);
Symbol 1053 MovieClip Frame 36
gotoAndPlay (31);
Symbol 1094 Button
on (release) {
gotoAndPlay (7192);
}
Symbol 1143 MovieClip Frame 1
stop();
Instance of Symbol 1143 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (load) {
var total = 0;
}
onClipEvent (enterFrame) {
if (total >= 4) {
gotoAndStop (2);
}
if (Key.isDown(76)) {
if (total < 1) {
total = total + 1;
}
}
if (Key.isDown(79)) {
if (total == 1) {
total = total + 1;
}
}
if (Key.isDown(86)) {
if (total == 2) {
total = total + 1;
}
}
if (Key.isDown(69)) {
if (total == 3) {
total = total + 1;
}
}
}
Symbol 1147 Button
on (press) {
savefile.data.unlocks = _root.unlocked;
savefile.flush();
gotoAndPlay (82);
}