Frame 1
Set("/:level", 1);
Set("/:life", 3);
Set("/:score", 0);
Set("/:power", 99);
Set("/:displayPower", /:power);
Set("/:RightLimit", 230);
Set("/:LeftLimit", -223);
Set("/:ghostRightLimit", 265);
Set("/:ghostLeftLimit", -250);
Set("/:topLimit", -130);
Set("/:bottomLimit", 141);
Set("/:monstersToKill", 0);
Set("/:koTime", 0);
Set("/:recoverTime", 0);
Set("/:charStatus", "standRight");
Set("/:charHealth", "normal");
Set("/:vertMove", "none");
Set("/:charX", -16);
Set("/:charY", -13);
Set("/:charSpeed", 3);
Set("/:charSpeedBoost", 2);
Set("/:blueGhostSpeed", 1.1);
Set("/:whiteGhostSpeed", 1.3);
Set("/:meatDogSpeed", 2.5);
Set("/:berserkerSpeed", 1.8);
Set("/:nickyTaraSpeed", 1.4);
Set("/:phearsSpeed", 0.75);
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (enterFrame) {
loadedMovieBytes = /:getBytesLoaded();
totalMovieBytes = /:getBytesTotal();
Set("/:percentageLoaded", int((loadedMovieBytes / totalMovieBytes) * 100));
gotoAndStop(/:percentageLoaded);
if (/:percentageLoaded == 100) {
tellTarget ("../") {
gotoAndPlay ("fadeDown");
};
}
}
Frame 5
stop();
Frame 14
gotoAndPlay ("title");
Frame 20
Set("/:level", 1);
Set("/:life", 3);
Set("/:charX", -16);
Set("/:charY", -13);
Set("/:charHealth", "normal");
Set("/:charStatus", "standRight");
Set("/:monstersToKill", 0);
Frame 27
stop();
Frame 32
gotoAndPlay ("levelSetup");
Frame 33
tellTarget ("tombScreen") {
gotoAndStop(/:level);
};
Frame 36
stop();
Instance of Symbol 105 MovieClip in Frame 36
onClipEvent (load) {
graceTime = getTimer() + 750;
}
onClipEvent (keyUp) {
if (graceTime < getTimer()) {
if (Key.getCode() == 32) {
tellTarget ("../") {
play();
};
gotoAndStop ("standRight");
}
}
}
Frame 39
gotoAndPlay ("game");
Frame 46
tellTarget ("game") {
gotoAndStop(/:level);
};
Frame 49
stop();
Frame 55
/:level++;
Set("/:power", 99);
Set("/:monstersToKill", 0);
Set("/:charStatus", "standRight");
Set("/:charHealth", "normal");
Set("/:charX", -16);
Set("/:charY", -13);
Set("/:vertMove", "none");
gotoAndPlay ("levelSetUp");
Frame 59
stop();
Frame 68
gotoAndPlay ("title");
Frame 83
stopAllSounds();
Frame 95
stop();
Frame 96
stopAllSounds();
gotoAndPlay ("title");
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 4
gotoAndStop (1);
Symbol 27 MovieClip Frame 29
gotoAndStop (1);
Symbol 27 MovieClip Frame 44
gotoAndStop (1);
Symbol 27 MovieClip Frame 53
gotoAndStop (1);
Symbol 27 MovieClip Frame 64
gotoAndStop (1);
Symbol 27 MovieClip Frame 71
gotoAndStop (1);
Symbol 27 MovieClip Frame 77
gotoAndStop (1);
Symbol 27 MovieClip Frame 84
gotoAndStop (1);
Symbol 27 MovieClip Frame 96
gotoAndStop (1);
Symbol 27 MovieClip Frame 104
gotoAndStop (1);
Symbol 27 MovieClip Frame 113
pick = random(3);
if (pick == 1) {
gotoAndPlay ("t1");
} else if (pick == 2) {
gotoAndPlay ("t2");
} else {
gotoAndPlay ("t3");
}
Symbol 27 MovieClip Frame 120
gotoAndStop (1);
Symbol 27 MovieClip Frame 127
gotoAndStop (1);
Symbol 27 MovieClip Frame 131
gotoAndStop (1);
Symbol 45 MovieClip Frame 1
pick = random(20) + 2;
gotoAndPlay(pick);
Instance of Symbol 53 MovieClip "hitbox" in Symbol 54 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest("../../char/hitbox") == true) {
Set("../../char:bump", true);
}
}
Instance of Symbol 53 MovieClip "hitbox" in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest("../../../char/hitbox") == true) {
tellTarget ("/sfx") {
gotoAndPlay ("pickUp");
};
Set("/:power", 99);
tellTarget ("../../../lightEffect") {
gotoAndStop ("normal");
};
setProperty("../../../boyEyes", _x , -376);
tellTarget ("../../") {
gotoAndStop (3);
};
}
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 94 MovieClip Frame 1
panelNum = 1;
Symbol 94 MovieClip Frame 151
panelNum++;
trace(panelNum);
if (5 < panelNum) {
panelNum = 1;
}
tellTarget ("panel") {
gotoAndStop(../:panelNum);
};
Symbol 94 MovieClip Frame 156
gotoAndPlay ("start");
Symbol 99 Button
on (release) {
tellTarget ("../") {
play();
};
}
Symbol 101 Button
on (release) {
tellTarget ("../sfx") {
gotoAndPlay ("getHeart");
};
Set("/:level", 11);
tellTarget ("../") {
play();
};
}
Symbol 102 Button
on (keyPress "e") {
tellTarget ("../sfx") {
gotoAndPlay ("getHeart");
};
Set("/:level", 20);
tellTarget ("../") {
play();
};
}
on (keyPress "E") {
tellTarget ("../sfx") {
gotoAndPlay ("getHeart");
};
Set("/:level", 20);
tellTarget ("../") {
play();
};
}
Symbol 108 MovieClip Frame 35
gotoAndPlay (1);
Symbol 111 MovieClip Frame 25
gotoAndPlay (1);
Symbol 114 MovieClip Frame 18
gotoAndPlay (1);
Symbol 120 MovieClip Frame 1
pick = random(24) + 1;
gotoAndPlay(pick);
Symbol 121 MovieClip Frame 1
pick = random(24) + 1;
gotoAndPlay(pick);
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
stop();
Symbol 191 MovieClip Frame 3
stop();
Symbol 191 MovieClip Frame 4
stop();
Symbol 191 MovieClip Frame 5
stop();
Symbol 191 MovieClip Frame 6
stop();
Symbol 191 MovieClip Frame 7
stop();
Symbol 191 MovieClip Frame 8
stop();
Symbol 191 MovieClip Frame 9
stop();
Symbol 191 MovieClip Frame 10
stop();
Symbol 191 MovieClip Frame 11
stop();
Symbol 191 MovieClip Frame 12
stop();
Symbol 191 MovieClip Frame 13
stop();
Symbol 191 MovieClip Frame 14
stop();
Symbol 191 MovieClip Frame 15
stop();
Symbol 191 MovieClip Frame 16
stop();
Symbol 191 MovieClip Frame 17
stop();
Symbol 191 MovieClip Frame 18
stop();
Symbol 191 MovieClip Frame 19
stop();
Symbol 191 MovieClip Frame 20
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 3
stop();
Symbol 198 MovieClip Frame 4
stop();
Instance of Symbol 198 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
myStatus = "silent";
gotoAndStop ("gone");
lastStrike = getTimer();
nextStrike = (lastStrike + 7500) + random(9000);
myAlpha = 100;
lightEffectAlpha = 0;
myX = _x;
}
onClipEvent (enterFrame) {
if (myStatus == "silent") {
if (((nextStrike - 500) < getTimer()) and (getTimer() < (nextStrike - 450))) {
pick = random(3) + 1;
gotoAndStop(pick);
myX = 200 - random(380);
_x = myX;
_alpha = 100;
setProperty("../../boyEyes", _alpha , 0);
setProperty("../../lightEffect", _alpha , lightEffectAlpha);
}
if (((nextStrike - 150) < getTimer()) and (getTimer() < nextStrike)) {
tellTarget ("/sfx") {
gotoAndPlay ("thunder");
};
}
if (nextStrike < getTimer()) {
myStatus = "thundering";
tellTarget ("/sfx") {
gotoAndPlay ("thunder");
};
}
}
if (myStatus == "thundering") {
lightEffectAlpha = lightEffectAlpha + 5;
setProperty("../../lightEffect", _alpha , lightEffectAlpha);
myAlpha = myAlpha - 5;
_alpha = myAlpha;
if (lightEffectAlpha >= 100) {
setProperty("../../boyEyes", _alpha , 100);
myAlpha = 100;
lightEffectAlpha = 0;
gotoAndStop ("gone");
lastStrike = getTimer();
nextStrike = (lastStrike + 7000) + random(4900);
myStatus = "silent";
}
}
}
Symbol 206 MovieClip Frame 1
gotoAndStop ("gone");
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Instance of Symbol 213 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
pick = random(6) + 1;
gotoAndStop(pick);
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 3
stop();
Symbol 217 MovieClip Frame 4
stop();
Symbol 217 MovieClip Frame 5
stop();
Symbol 219 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "hitbox" in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
myX = -400;
myY = 120 - random(200);
myPointValue = 300;
Set("/:gender", random(2) + 1);
tellTarget ("../") {
gotoAndStop(/:gender);
};
myHoverSpeed = 1 / (2 + random(2));
pick = random(2);
if (pick == 1) {
myHoverSpeed = myHoverSpeed * -1;
}
myHoverRange = 20 + random(10);
myHoverMax = myY + myHoverRange;
myHoverMin = myY - myHoverRange;
mySpeed = /:nickyTaraSpeed + (1 / (random(3) + 1));
myStatus = "waiting";
}
onClipEvent (enterFrame) {
if (/:charHealth != "dead") {
if (this.hitTest("../../char/hitbox") == true) {
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
setProperty("../../floatingHeart", _x , myX);
setProperty("../../floatingHeart", _y , myY);
tellTarget ("../../floatingHeart") {
myVisibility = 100;
myStatus = "visible";
};
/:life++;
tellTarget ("/sfx") {
gotoAndPlay ("getHeart");
};
if (5 < /:life) {
Set("/:life", 5);
}
myX = -300;
myStatus = "gone";
}
}
}
onClipEvent (enterFrame) {
if (myStatus == "waiting") {
pick = random(650);
if (pick == 5) {
myStatus = "normal";
}
}
if (myStatus == "normal") {
myX = myX + mySpeed;
if (/:ghostRightLimit < myX) {
myX = -600;
myStatus = "gone";
}
myY = myY + myHoverSpeed;
if ((myY < myHoverMin) or (myHoverMax < myY)) {
myHoverSpeed = myHoverSpeed * -1;
}
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
}
Symbol 219 MovieClip Frame 2
stop();
Instance of Symbol 218 MovieClip "hitbox" in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
myX = getProperty("../", _x);
myY = getProperty("../", _y);
myHP = 100;
myHPDrainRate = 4.1;
myPointValue = 250;
myHoverSpeed = 1 / (2 + random(2));
pick = random(2);
if (pick == 1) {
myHoverSpeed = myHoverSpeed * -1;
}
myHoverRange = 10 + random(10);
myHoverMax = myY + myHoverRange;
myHoverMin = myY - myHoverRange;
mySpeed = /:blueGhostSpeed;
pick = random(2);
if (pick == 1) {
mySpeed = mySpeed * -1;
}
myStatus = "normal";
/:monstersToKill++;
myEye = /:monstersToKill + 1;
duplicateMovieClip ("../../blueGhostEyes", "eye" + myEye, myEye);
}
onClipEvent (enterFrame) {
if (/:charHealth == "normal") {
if (this.hitTest("../../char/hitbox") == true) {
/:life--;
Set("/:koTime", getTimer());
tellTarget ("/sfx") {
gotoAndPlay ("kidDead");
};
if (/:life == 0) {
Set("/:charHealth", "dead");
} else {
Set("/:charHealth", "dizzy");
}
}
}
if ((this.hitTest("../../flashlight/beam/hitbox") == true) and (myStatus != "dead")) {
myStatus = "zapped";
}
if ((this.hitTest("../../flashlight/beam/hitbox") == false) and (myStatus != "dead")) {
myStatus = "normal";
}
}
onClipEvent (enterFrame) {
if (myStatus == "normal") {
removeMovieClip("../../zap" + myEye);
myX = myX + mySpeed;
if (/:ghostRightLimit < myX) {
myX = /:ghostLeftLimit;
}
if (myX < /:ghostLeftLimit) {
myX = /:ghostRightLimit;
}
myY = myY + myHoverSpeed;
if ((myY < myHoverMin) or (myHoverMax < myY)) {
myHoverSpeed = myHoverSpeed * -1;
}
}
if (myStatus == "zapped") {
myHP = myHP - myHPDrainRate;
if (0 >= myHP) {
myStatus = "dead";
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
duplicateMovieClip ("../../floatingNumber", "float" + myEye, myEye);
setProperty("../../float" + myEye, _x , myX);
setProperty("../../float" + myEye, _y , myY);
tellTarget ("../../float" + myEye) {
myStatus = "visible";
plusValue = /:pointCarry;
};
tellTarget ("/sfx") {
gotoAndPlay ("ghostDie");
};
myX = -500;
myY = -500;
/:monstersToKill--;
if (/:monstersToKill == 0) {
tellTarget ("../../levelComplete") {
gotoAndPlay ("complete");
};
}
}
myX = myX + ((1 - random(3)) / (1 + random(2)));
myY = myY + ((1 - random(3)) / (1 + random(2)));
tellTarget ("/sfx") {
gotoAndPlay ("zap");
};
duplicateMovieClip ("../../zapMaster", "zap" + myEye, myEye + 500);
setProperty("../../zap" + myEye, _x , myX + ((2 - (random(4) / 2)) - random(2)));
setProperty("../../zap" + myEye, _y , myY + ((3 - (random(6) / 2)) - random(2)));
setProperty("../../zap" + myEye, _xscale , 160 - random(80));
setProperty("../../zap" + myEye, _yscale , 160 - random(80));
setProperty("../../zap" + myEye, _alpha , 100 - random(40));
setProperty("../../zap" + myEye, _rotation , random(40));
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
setProperty("../../eye" + myEye, _x , myX);
setProperty("../../eye" + myEye, _y , myY);
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 19
gotoAndPlay ("zap");
Symbol 230 MovieClip Frame 21
stop();
Symbol 233 MovieClip Frame 1
pick = random(30) + 2;
gotoAndPlay(pick);
Symbol 233 MovieClip Frame 100
gotoAndPlay (1);
Symbol 233 MovieClip Frame 103
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
pick = random(7) + 1;
gotoAndStop(pick);
}
Symbol 244 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 16
gotoAndPlay (1);
Symbol 254 MovieClip Frame 17
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 21
gotoAndPlay ("zapping");
Symbol 273 MovieClip Frame 68
gotoAndPlay ("lowBattery");
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 4
stop();
Symbol 274 MovieClip Frame 5
stop();
Symbol 274 MovieClip Frame 6
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 3
stopAllSounds();
if (/:level == 20) {
gotoAndPlay ("skipSound");
}
Symbol 280 MovieClip Frame 82
tellTarget ("../../") {
if (/:level < 20) {
gotoAndPlay ("levelup");
} else {
gotoAndPlay ("victory");
}
};
Instance of Symbol 53 MovieClip "hitbox" in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest("../../char/hitbox") == true) {
Set("../../char:bump", true);
}
}
Instance of Symbol 218 MovieClip "hitbox" in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
myX = getProperty("../", _x);
myY = getProperty("../", _y);
myHP = 100;
myHPDrainRate = 1;
myPointValue = 400;
myHoverSpeed = 0.1 + (1 / (2 + random(2)));
pick = random(2);
if (pick == 1) {
myHoverSpeed = myHoverSpeed * -1;
}
myHoverRange = 15 + random(10);
myHoverMax = myY + myHoverRange;
myHoverMin = myY - myHoverRange;
mySpeed = /:whiteGhostSpeed;
pick = random(2);
if (pick == 1) {
mySpeed = mySpeed * -1;
}
myStatus = "normal";
/:monstersToKill++;
myEye = /:monstersToKill + 1;
duplicateMovieClip ("../../whiteGhostEyes", "eye" + myEye, myEye);
}
onClipEvent (enterFrame) {
if (/:charHealth == "normal") {
if (this.hitTest("../../char/hitbox") == true) {
/:life--;
Set("/:koTime", getTimer());
tellTarget ("/sfx") {
gotoAndPlay ("kidDead");
};
if (/:life == 0) {
Set("/:charHealth", "dead");
} else {
Set("/:charHealth", "dizzy");
}
}
}
if ((this.hitTest("../../flashlight/beam/hitbox") == true) and (myStatus != "dead")) {
myStatus = "zapped";
}
if ((this.hitTest("../../flashlight/beam/hitbox") == false) and (myStatus != "dead")) {
myStatus = "normal";
}
}
onClipEvent (enterFrame) {
if (myStatus == "normal") {
removeMovieClip("../../zap" + myEye);
myX = myX + mySpeed;
if (/:ghostRightLimit < myX) {
myX = /:ghostLeftLimit;
}
if (myX < /:ghostLeftLimit) {
myX = /:ghostRightLimit;
}
myY = myY + myHoverSpeed;
if ((myY < myHoverMin) or (myHoverMax < myY)) {
myHoverSpeed = myHoverSpeed * -1;
}
}
if (myStatus == "zapped") {
myHP = myHP - myHPDrainRate;
if (0 >= myHP) {
myStatus = "dead";
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
duplicateMovieClip ("../../floatingNumber", "float" + myEye, myEye);
setProperty("../../float" + myEye, _x , myX);
setProperty("../../float" + myEye, _y , myY);
tellTarget ("../../float" + myEye) {
myStatus = "visible";
plusValue = /:pointCarry;
};
tellTarget ("/sfx") {
gotoAndPlay ("ghostDie");
};
myX = -500;
myY = -500;
/:monstersToKill--;
if (/:monstersToKill == 0) {
tellTarget ("../../levelComplete") {
gotoAndPlay ("complete");
};
}
}
myX = myX + ((1 - random(3)) / (1 + random(2)));
myY = myY + ((1 - random(3)) / (1 + random(2)));
tellTarget ("/sfx") {
gotoAndPlay ("zap");
};
duplicateMovieClip ("../../zapMaster", "zap" + myEye, myEye + 500);
setProperty("../../zap" + myEye, _x , myX + ((2 - (random(4) / 2)) - random(2)));
setProperty("../../zap" + myEye, _y , myY + ((3 - (random(6) / 2)) - random(2)));
setProperty("../../zap" + myEye, _xscale , 160 - random(80));
setProperty("../../zap" + myEye, _yscale , 160 - random(80));
setProperty("../../zap" + myEye, _alpha , 100 - random(40));
setProperty("../../zap" + myEye, _rotation , random(40));
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
setProperty("../../eye" + myEye, _x , myX);
setProperty("../../eye" + myEye, _y , myY);
}
Symbol 304 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "hitbox" in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
myX = getProperty("../", _x);
myY = getProperty("../", _y);
myHP = 100;
myHPDrainRate = 2.1;
myPointValue = 500;
myHoverSpeed = 0;
pick = random(2);
if (pick == 1) {
myHoverSpeed = myHoverSpeed * -1;
}
myHoverRange = 10 + random(10);
myHoverMax = myY + myHoverRange;
myHoverMin = myY - myHoverRange;
mySpeed = /:meatDogSpeed;
myMaxSpeed = mySpeed + 2.3;
myMinSpeed = 1.05;
pick = random(2);
if (pick == 1) {
mySpeed = mySpeed * -1;
}
myStatus = "normal";
/:monstersToKill++;
myEye = /:monstersToKill + 1;
duplicateMovieClip ("../../meatDogEyes", "eye" + myEye, myEye);
if (mySpeed < 0) {
tellTarget ("../") {
gotoAndStop (2);
};
tellTarget ("../../eye" + myEye) {
gotoAndStop (2);
};
}
}
onClipEvent (enterFrame) {
if (/:charHealth == "normal") {
if (this.hitTest("../../char/hitbox") == true) {
/:life--;
Set("/:koTime", getTimer());
tellTarget ("/sfx") {
gotoAndPlay ("kidDead");
};
if (/:life == 0) {
Set("/:charHealth", "dead");
} else {
Set("/:charHealth", "dizzy");
}
}
}
if ((this.hitTest("../../flashlight/beam/hitbox") == true) and (myStatus != "dead")) {
myStatus = "zapped";
}
if ((this.hitTest("../../flashlight/beam/hitbox") == false) and (myStatus != "dead")) {
myStatus = "normal";
}
}
onClipEvent (enterFrame) {
if (myStatus == "normal") {
removeMovieClip("../../zap" + myEye);
speedSign = random(2);
if (speedSign == 1) {
speedChange = 0.1;
} else {
speedChange = -0.15;
}
mySpeed = mySpeed + speedChange;
if (myMaxSpeed < math.abs(mySpeed)) {
if (0 < mySpeed) {
mySpeed = myMaxSpeed;
}
if (mySpeed < 0) {
mySpeed = myMaxSpeed * -1;
}
}
if (math.abs(mySpeed) < myMinSpeed) {
if (0 < mySpeed) {
mySpeed = myMinSpeed;
}
if (mySpeed < 0) {
mySpeed = myMinSpeed * -1;
}
}
myX = myX + mySpeed;
if (/:ghostRightLimit < myX) {
myX = /:ghostLeftLimit;
pick = random(4);
if (pick == 1) {
myY = (/:charY + 50) - random(100);
} else {
myY = 120 - random(200);
}
if (myY < -100) {
myY = -100;
}
if (/:bottomLimit < myY) {
myY = /:bottomLimit;
}
}
if (myX < /:ghostLeftLimit) {
myX = /:ghostRightLimit;
pick = random(4);
if (pick == 1) {
myY = (/:charY + 50) - random(100);
} else {
myY = 120 - random(200);
}
if (myY < -100) {
myY = -100;
}
if (/:bottomLimit < myY) {
myY = /:bottomLimit;
}
}
myY = myY + myHoverSpeed;
if ((myY < myHoverMin) or (myHoverMax < myY)) {
myHoverSpeed = myHoverSpeed * -1;
}
}
if (myStatus == "zapped") {
myHP = myHP - myHPDrainRate;
if (0 >= myHP) {
myHP = 0;
myStatus = "dead";
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
duplicateMovieClip ("../../floatingNumber", "float" + myEye, myEye);
setProperty("../../float" + myEye, _x , myX);
setProperty("../../float" + myEye, _y , myY);
tellTarget ("../../float" + myEye) {
myStatus = "visible";
plusValue = /:pointCarry;
};
tellTarget ("/sfx") {
gotoAndPlay ("ghostDie");
};
myX = -900;
myY = -900;
/:monstersToKill--;
if (/:monstersToKill == 0) {
tellTarget ("../../levelComplete") {
gotoAndPlay ("complete");
};
}
}
myX = myX + (mySpeed / 2);
myY = myY + ((1 - random(3)) / (1 + random(2)));
tellTarget ("/sfx") {
gotoAndPlay ("zap");
};
duplicateMovieClip ("../../zapMaster", "zap" + myEye, myEye + 500);
setProperty("../../zap" + myEye, _x , myX + ((2 - (random(4) / 2)) - random(2)));
setProperty("../../zap" + myEye, _y , myY + ((3 - (random(6) / 2)) - random(2)));
setProperty("../../zap" + myEye, _xscale , 160 - random(80));
setProperty("../../zap" + myEye, _yscale , 160 - random(80));
setProperty("../../zap" + myEye, _alpha , 100 - random(40));
setProperty("../../zap" + myEye, _rotation , random(40));
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
setProperty("../../eye" + myEye, _x , myX);
setProperty("../../eye" + myEye, _y , myY);
}
Symbol 304 MovieClip Frame 2
stop();
Instance of Symbol 53 MovieClip "hitbox" in Symbol 306 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest("../../char/hitbox") == true) {
Set("../../char:bump", true);
}
}
Symbol 316 MovieClip Frame 1
pick = random(3) + 2;
gotoAndPlay(pick);
Symbol 316 MovieClip Frame 9
pick = random(4) + 11;
gotoAndPlay(pick);
Symbol 316 MovieClip Frame 23
pick = random(4) + 24;
gotoAndPlay(pick);
Instance of Symbol 218 MovieClip "hitbox" in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
myX = getProperty("../", _x);
myY = getProperty("../", _y);
targetX = 250 - random(500);
targetY = 140 - random(270);
myHP = 100;
myHPDrainRate = 2.5;
myPointValue = 750;
mySpeed = /:berserkerSpeed;
myStatus = "normal";
/:monstersToKill++;
myEye = /:monstersToKill + 1;
duplicateMovieClip ("../../berserkerEyes", "eye" + myEye, myEye);
}
onClipEvent (enterFrame) {
if (/:charHealth == "normal") {
if (this.hitTest("../../char/hitbox") == true) {
/:life--;
Set("/:koTime", getTimer());
tellTarget ("/sfx") {
gotoAndPlay ("kidDead");
};
if (/:life == 0) {
Set("/:charHealth", "dead");
} else {
Set("/:charHealth", "dizzy");
}
}
}
if ((this.hitTest("../../flashlight/beam/hitbox") == true) and (myStatus != "dead")) {
myStatus = "zapped";
}
if ((this.hitTest("../../flashlight/beam/hitbox") == false) and (myStatus != "dead")) {
myStatus = "normal";
}
}
onClipEvent (enterFrame) {
if (myStatus == "normal") {
removeMovieClip("../../zap" + myEye);
if (Math.abs(targetX - myX) < (mySpeed * 2)) {
targetX = 250 - random(500);
}
if (Math.abs(targetY - myY) < (mySpeed * 2)) {
targetY = 140 - random(270);
}
if (targetX < myX) {
myX = myX - mySpeed;
} else {
myX = myX + mySpeed;
}
if (targetY < myY) {
myY = myY - mySpeed;
} else {
myY = myY + mySpeed;
}
}
if (myStatus == "zapped") {
myHP = myHP - myHPDrainRate;
if (0 >= myHP) {
myStatus = "dead";
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
duplicateMovieClip ("../../floatingNumber", "float" + myEye, myEye);
setProperty("../../float" + myEye, _x , myX);
setProperty("../../float" + myEye, _y , myY);
tellTarget ("../../float" + myEye) {
myStatus = "visible";
plusValue = /:pointCarry;
};
tellTarget ("/sfx") {
gotoAndPlay ("ghostDie");
};
myX = -500;
myY = -500;
/:monstersToKill--;
if (/:monstersToKill == 0) {
tellTarget ("../../levelComplete") {
gotoAndPlay ("complete");
};
}
}
myX = myX + ((4 - random(7)) / (1 + random(2)));
myY = myY + ((4 - random(7)) / (1 + random(2)));
tellTarget ("/sfx") {
gotoAndPlay ("zap");
};
duplicateMovieClip ("../../zapMaster", "zap" + myEye, myEye + 500);
setProperty("../../zap" + myEye, _x , myX + ((2 - (random(4) / 2)) - random(2)));
setProperty("../../zap" + myEye, _y , myY + ((1 + (random(48) / 2)) - random(2)));
setProperty("../../zap" + myEye, _xscale , 160 - random(80));
setProperty("../../zap" + myEye, _yscale , 160 - random(80));
setProperty("../../zap" + myEye, _alpha , 100 - random(40));
setProperty("../../zap" + myEye, _rotation , random(40));
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
setProperty("../../eye" + myEye, _x , myX);
setProperty("../../eye" + myEye, _y , myY);
}
Symbol 357 MovieClip Frame 35
gotoAndPlay (1);
Symbol 362 MovieClip Frame 1
pick = random(7) + 2;
gotoAndPlay(pick);
Symbol 362 MovieClip Frame 10
pick = random(2);
if (pick == 1) {
gotoAndPlay ("otherFinger");
}
Symbol 362 MovieClip Frame 20
gotoAndPlay (1);
Symbol 372 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "hitbox" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
myX = getProperty("../", _x);
myY = getProperty("../", _y);
myHP = 300;
myHPDrainRate = 0.7;
myPointValue = 2500;
mySpeed = /:phearsSpeed;
myStatus = "normal";
/:monstersToKill++;
myEye = /:monstersToKill + 1;
duplicateMovieClip ("../../phearsEyes", "eye" + myEye, myEye);
}
onClipEvent (enterFrame) {
if (/:charHealth == "normal") {
if (this.hitTest("../../char/hitbox") == true) {
/:life--;
Set("/:koTime", getTimer());
tellTarget ("/sfx") {
gotoAndPlay ("kidDead");
};
if (/:life == 0) {
Set("/:charHealth", "dead");
} else {
Set("/:charHealth", "dizzy");
}
}
}
if ((this.hitTest("../../flashlight/beam/hitbox") == true) and (myStatus != "dead")) {
myStatus = "zapped";
}
if ((this.hitTest("../../flashlight/beam/hitbox") == false) and (myStatus != "dead")) {
myStatus = "normal";
}
}
onClipEvent (enterFrame) {
if (myStatus != "dead") {
removeMovieClip("../../zap" + myEye);
if (/:charHealth == "normal") {
if (/:charX < myX) {
myX = myX - mySpeed;
tellTarget ("../") {
gotoAndStop (2);
};
tellTarget ("../../eye" + myEye) {
gotoAndStop (2);
};
}
if (myX < /:charX) {
myX = myX + mySpeed;
tellTarget ("../") {
gotoAndStop (1);
};
tellTarget ("../../eye" + myEye) {
gotoAndStop (1);
};
}
if (/:charY < myY) {
myY = myY - mySpeed;
}
if (myY < /:charY) {
myY = myY + mySpeed;
}
} else {
if (/:charX < myX) {
tellTarget ("../") {
gotoAndStop (1);
};
tellTarget ("../../eye" + myEye) {
gotoAndStop (1);
};
myX = myX + mySpeed;
}
if (myX < /:charX) {
tellTarget ("../") {
gotoAndStop (2);
};
tellTarget ("../../eye" + myEye) {
gotoAndStop (2);
};
myX = myX - mySpeed;
}
}
}
if (myStatus == "zapped") {
myHP = myHP - myHPDrainRate;
if (0 >= myHP) {
myStatus = "dead";
Set("/:score", /:score + myPointValue);
Set("/:pointCarry", myPointValue);
duplicateMovieClip ("../../floatingNumber", "float" + myEye, myEye);
setProperty("../../float" + myEye, _x , myX);
setProperty("../../float" + myEye, _y , myY);
tellTarget ("../../float" + myEye) {
myStatus = "visible";
plusValue = /:pointCarry;
};
tellTarget ("/sfx") {
gotoAndPlay ("phearsDie");
};
myX = -500;
myY = -500;
/:monstersToKill--;
if (/:monstersToKill == 0) {
tellTarget ("../../levelComplete") {
gotoAndPlay ("complete");
};
}
}
myX = myX + ((1 - random(3)) / (1 + random(2)));
myY = myY + ((1 - random(3)) / (1 + random(2)));
tellTarget ("/sfx") {
gotoAndPlay ("zap");
};
duplicateMovieClip ("../../zapMaster", "zap" + myEye, myEye + 500);
setProperty("../../zap" + myEye, _x , myX + ((2 - (random(4) / 2)) - random(2)));
setProperty("../../zap" + myEye, _y , myY + ((3 - (random(6) / 2)) - random(2)));
setProperty("../../zap" + myEye, _xscale , 160 - random(80));
setProperty("../../zap" + myEye, _yscale , 160 - random(80));
setProperty("../../zap" + myEye, _alpha , 100 - random(40));
setProperty("../../zap" + myEye, _rotation , random(40));
}
}
onClipEvent (enterFrame) {
setProperty("../", _x , myX);
setProperty("../", _y , myY);
setProperty("../../eye" + myEye, _x , myX);
setProperty("../../eye" + myEye, _y , myY);
}
Symbol 372 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
stop();
Instance of Symbol 217 MovieClip "char" in Symbol 373 MovieClip Frame 1
onClipEvent (keyUp) {
if ((/:charHealth == "normal") or (/:charHealth == "recovering")) {
if (Key.getCode() == 39) {
Set("/:charStatus", "standRight");
gotoAndStop ("standRight");
}
if (Key.getCode() == 37) {
Set("/:charStatus", "standLeft");
gotoAndStop ("standLeft");
}
if (Key.getCode() == 38) {
Set("/:vertMove", "none");
if (/:charStatus == "standRight") {
Set("/:charStatus", "standRight");
gotoAndStop ("standRight");
}
if (/:charStatus == "standLeft") {
Set("/:charStatus", "standLeft");
gotoAndStop ("standLeft");
}
}
if (Key.getCode() == 40) {
Set("/:vertMove", "none");
if (/:charStatus == "standRight") {
Set("/:charStatus", "standRight");
gotoAndStop ("standRight");
}
if (/:charStatus == "standLeft") {
Set("/:charStatus", "standLeft");
gotoAndStop ("standLeft");
}
}
}
}
onClipEvent (enterFrame) {
if ((/:charHealth == "normal") or (/:charHealth == "recovering")) {
if (Key.isDown(39)) {
Set("/:charStatus", "walkRight");
gotoAndStop ("walkRight");
}
if (Key.isDown(37)) {
Set("/:charStatus", "walkLeft");
gotoAndStop ("walkLeft");
}
if (Key.isDown(38)) {
Set("/:vertMove", "up");
if (/:charStatus == "standRight") {
gotoAndStop ("walkRight");
}
if (/:charStatus == "standLeft") {
gotoAndStop ("walkLeft");
}
}
if (Key.isDown(40)) {
Set("/:vertMove", "down");
if (/:charStatus == "standRight") {
gotoAndStop ("walkRight");
}
if (/:charStatus == "standLeft") {
gotoAndStop ("walkLeft");
}
}
if (Key.isDown(32)) {
if (0 >= /:power) {
if (clickTime < getTimer()) {
tellTarget ("/sfx") {
gotoAndPlay ("click");
};
clickTime = getTimer() + 350;
}
}
}
}
if ((/:charHealth == "dead") and (/:charStatus != "dead")) {
Set("/:charStatus", "dead");
Set("/:vertMove", "none");
gotoAndStop ("dizzy");
}
if ((/:charHealth == "dizzy") and (/:charStatus != "dizzy")) {
Set("/:charStatus", "dizzy");
Set("/:vertMove", "none");
gotoAndStop ("dizzy");
}
if (/:charHealth == "dizzy") {
if (getTimer() >= (/:koTime + 2500)) {
Set("/:recoverTime", getTimer());
Set("/:charHealth", "recovering");
Set("/:charStatus", "standRight");
gotoAndStop ("standRight");
}
}
if (/:charHealth == "recovering") {
if (getTimer() >= (/:recoverTime + 1200)) {
Set("/:charHealth", "normal");
}
}
Set("/:charX_old", _x);
Set("/:charY_old", _y);
if (/:charStatus == "walkRight") {
Set("/:charX", /:charX + /:charSpeed);
if (/:rightLimit < /:charX) {
Set("/:charX", /:rightLimit);
}
}
if (/:charStatus == "walkLeft") {
Set("/:charX", /:charX - /:charSpeed);
if (/:charX < /:leftLimit) {
Set("/:charX", /:leftLimit);
}
}
if (/:vertMove == "up") {
Set("/:charY", /:charY - /:charSpeed);
if (/:charY < /:topLimit) {
Set("/:charY", /:topLimit);
}
}
if (/:vertMove == "down") {
Set("/:charY", /:charY + /:charSpeed);
if (/:bottomLimit < /:charY) {
Set("/:charY", /:bottomLimit);
}
}
}
onClipEvent (enterFrame) {
if (bump == true) {
if ((/:charX != /:charX_old) or (/:charY != /:charY_old)) {
tellTarget ("/sfx") {
gotoAndPlay ("bonk");
};
}
Set("/:charX", /:charX_old);
Set("/:charY", /:charY_old);
if (/:charStatus == "walkLeft") {
Set("/:charX", /:charX + ((/:charSpeed * 2) + 3.25));
}
if (/:charStatus == "walkRight") {
Set("/:charX", /:charX - ((/:charSpeed * 2) + 3.25));
}
if (/:vertMove == "up") {
Set("/:charY", /:charY + ((/:charSpeed * 2) + 3.25));
}
if (/:vertMove == "down") {
Set("/:charY", /:charY - ((/:charSpeed * 2) + 3.25));
}
bump = false;
}
}
onClipEvent (enterFrame) {
_x = /:charX;
_y = /:charY;
}
Instance of Symbol 230 MovieClip "lightEffect" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
maxSize = 100;
minSize = 50;
currentScale = 100;
Set("/:power", 99);
powerDepletionRate = 0.025;
}
onClipEvent (enterFrame) {
_x = /:charX;
_y = (/:charY + 10);
if (0 < /:power) {
Set("/:power", /:power - powerDepletionRate);
if (/:Power < 0) {
Set("/:displayPower", 0);
gotoAndStop ("darkness");
}
Set("/:displayPower", math.round(/:power));
}
currentScale = minSize + (((/:power + 1) / 100) * (maxSize - minSize));
if (Key.isDown(32) and (0 < /:power)) {
if ((/:charHealth == "normal") or (/:charHealth == "recovering")) {
currentScale = (currentScale + 2.5) - random(4.3);
}
}
_yscale = currentScale;
_xscale = currentScale;
}
Instance of Symbol 233 MovieClip "boyEyes" in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((0 >= /:power) and ((/:charHealth == "normal") or (/:charHealth == "recovering"))) {
_x = /:charX;
_y = /:charY;
}
if ((/:charHealth == "dizzy") or (/:charHealth == "dead")) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 215 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((0 >= /:power) and ((/:charHealth == "dizzy") or (/:charHealth == "dead"))) {
_x = /:charX;
_y = /:charY;
}
if ((0 < /:power) or ((/:charHealth == "normal") or (/:charHealth == "recovering"))) {
_x = -600;
_y = -600;
}
}
Instance of Symbol 255 MovieClip "flashLight" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
hiBeamDepletionRate = 0.3;
myStatus = "off";
tellTarget ("beam") {
gotoAndStop ("off");
};
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and (0 < /:power)) {
if ((/:charHealth == "normal") or (/:charHealth == "recovering")) {
if ((MyStatus == "off") and (0 < /:monstersToKill)) {
myStatus = "on";
tellTarget ("/sfx") {
gotoAndPlay ("beam");
};
tellTarget ("beam") {
gotoAndPlay ("on");
};
tellTarget ("../lightEffect") {
gotoAndPlay ("zap");
};
}
}
if (myStatus == "on") {
if ((/:charStatus == "walkLeft") or (/:charStatus == "standLeft")) {
gotoAndStop ("left");
}
if ((/:charStatus == "walkRight") or (/:charStatus == "standRight")) {
gotoAndStop ("right");
}
_x = /:charX;
_y = (/:charY + 17);
Set("/:power", /:power - hiBeamDepletionRate);
if ((0 >= /:power) or (/:charHealth == "dizzy")) {
myStatus = "off";
tellTarget ("beam") {
gotoAndStop ("off");
};
tellTarget ("/sfx") {
gotoAndPlay ("beamOff");
};
tellTarget ("/sfx") {
gotoAndPlay ("zapOff");
};
tellTarget ("../lightEffect") {
gotoAndStop ("darkness");
};
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
myStatus = "off";
tellTarget ("beam") {
gotoAndStop ("off");
};
tellTarget ("/sfx") {
gotoAndPlay ("beamOff");
};
tellTarget ("/sfx") {
gotoAndPlay ("zapOff");
};
if (0 >= /:power) {
tellTarget ("../lightEffect") {
gotoAndStop ("darkness");
};
} else {
tellTarget ("../lightEffect") {
gotoAndStop ("normal");
};
}
}
}
Instance of Symbol 267 MovieClip "floatingNumber" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
myVisibility = 100;
myRiseRate = 0.3;
myFadeRate = 2;
}
onClipEvent (enterFrame) {
myY = this._y;
if (myStatus == "hidden") {
if (0 < plusValue) {
trace(3);
myStatus = "visible";
}
}
if (myStatus == "visible") {
myY = myY - myRiseRate;
myVisibility = myVisibility - myFadeRate;
if (5 >= myVisibility) {
removeMovieClip(this);
}
setProperty(this, _y , myY);
this._alpha = myVisibility;
}
}
Instance of Symbol 273 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
powerLow = "false";
}
onClipEvent (enterFrame) {
if (15 < /:power) {
powerLow = "false";
}
if ((15 >= /:power) and (powerLow == "false")) {
powerLow = "true";
gotoAndPlay ("lowBattery");
tellTarget ("/sfx") {
gotoAndPlay ("appear");
};
pick = random(4) + 1;
tellTarget ("../b" + pick) {
gotoAndStop ("here");
};
}
if (Key.isDown(32)) {
if ((powerLow == "false") and ((/:charHealth == "normal") or (/:charHealth == "recovering"))) {
gotoAndPlay ("zap");
}
} else if (powerLow == "false") {
gotoAndStop ("normal");
}
}
Instance of Symbol 274 MovieClip "heartMeter" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
gameAlreadyOver = "false";
}
onClipEvent (enterFrame) {
if (0 < /:life) {
gotoAndStop(/:life);
} else {
gotoAndStop ("dead");
if (gameAlreadyOver == "false") {
gameAlreadyOver = "true";
tellTarget ("../../") {
gotoAndPlay ("gameOver");
};
}
}
}
Instance of Symbol 79 MovieClip "floatingHeart" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
myVisibility = 100;
myRiseRate = 0.3;
myFadeRate = 2;
}
onClipEvent (enterFrame) {
myY = this._y;
if (myStatus == "visible") {
myY = myY - myRiseRate;
myVisibility = myVisibility - myFadeRate;
if (5 >= myVisibility) {
myX = -600;
}
setProperty(this, _y , myY);
this._alpha = myVisibility;
}
}
Symbol 373 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 3
stop();
Symbol 373 MovieClip Frame 4
stop();
Symbol 373 MovieClip Frame 5
stop();
Symbol 373 MovieClip Frame 6
stop();
Symbol 373 MovieClip Frame 7
stop();
Symbol 373 MovieClip Frame 8
stop();
Symbol 373 MovieClip Frame 9
stop();
Symbol 373 MovieClip Frame 10
stop();
Symbol 373 MovieClip Frame 11
stop();
Symbol 373 MovieClip Frame 12
stop();
Symbol 373 MovieClip Frame 13
stop();
Symbol 373 MovieClip Frame 14
stop();
Symbol 373 MovieClip Frame 15
stop();
Symbol 373 MovieClip Frame 16
stop();
Symbol 373 MovieClip Frame 17
stop();
Symbol 373 MovieClip Frame 18
stop();
Symbol 373 MovieClip Frame 19
stop();
Symbol 373 MovieClip Frame 20
stop();
Symbol 378 Button
on (release) {
tellTarget ("../../") {
play();
};
}
Symbol 380 MovieClip Frame 70
stop();
Symbol 384 Button
on (release) {
tellTarget ("../") {
play();
};
}
Symbol 388 MovieClip Frame 16
gotoAndPlay (1);
Symbol 388 MovieClip Frame 17
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 47
stop();