Frame 1
stop();
Instance of Symbol 75 MovieClip "loader" in Frame 1
onClipEvent (enterFrame) {
txtPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
txtPercentage = txtPercent + "% loaded";
if (txtPercent < 51) {
gotoAndStop(txtPercent);
} else {
_root.play();
}
}
Frame 2
stop();
Frame 3
stop();
stopAllSounds();
_quality = "low";
Frame 21
function checkWay() {
if (checkpoint == 0) {
currentMap = "mapA25";
} else if (checkpoint == 1) {
currentMap = "mapA2";
} else if (checkpoint == 2) {
currentMap = "mapA1";
player._y = 320;
} else if (checkpoint == 3) {
currentMap = "mapA35";
player._x = 150;
player._y = 250;
} else if (checkpoint == 4) {
currentMap = "mapA15";
player._y = 250;
}
nextMap = currentMap;
}
function movement() {
blinkFrame = player.blink._currentFrame;
playerDamage();
if (!pigGrab) {
playerSpeed = 5;
if (Key.isDown(81) && (!keyHit)) {
keyHit = true;
if (equip == "towel") {
equip = "pills";
hud.pills.gotoAndStop(2);
} else {
equip = "towel";
hud.pills.gotoAndStop(1);
}
}
if ((!attack) && (!hurt)) {
if (Key.isDown(38) || (Key.isDown(87))) {
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(65))) && (!Key.isDown(68))) {
facing = "up";
}
walking = true;
moveUp();
hitPlus = 0;
hitPlusY = -20;
walkDir = 0;
} else if (Key.isDown(40) || (Key.isDown(83))) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
facing = "down";
}
walking = true;
moveDown();
hitPlus = 0;
hitPlusY = 10;
walkDir = 1;
}
if (Key.isDown(37) || (Key.isDown(65))) {
facing = "left";
walking = true;
moveLeft();
hitPlus = -10;
hitPlusY = 0;
walkDir = 2;
} else if (Key.isDown(39) || (Key.isDown(68))) {
facing = "right";
walking = true;
moveRight();
hitPlus = 10;
hitPlusY = 0;
walkDir = 3;
}
if ((((((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(87))) && (!Key.isDown(83))) && (!Key.isDown(68))) && (!Key.isDown(65))) {
walkDir = "none";
walking = false;
}
if (Key.isDown(32) && (!keyHit)) {
keyHit = true;
if (equip == "towel") {
if (towel == "green") {
if (facing == "up") {
player.gotoAndStop("attackUp");
} else if (facing == "down") {
player.gotoAndStop("attackDown");
} else if (facing == "left") {
player.gotoAndStop("attackLeft");
} else if (facing == "right") {
player.gotoAndStop("attackRight");
}
} else if (towel == "yellow") {
if (facing == "up") {
player.gotoAndStop("y_attackUp");
} else if (facing == "down") {
player.gotoAndStop("y_attackDown");
} else if (facing == "left") {
player.gotoAndStop("y_attackLeft");
} else if (facing == "right") {
player.gotoAndStop("y_attackRight");
}
}
} else if (equip == "pills") {
if ((!pillToss) && (pillCount > 0)) {
if (towel == "green") {
if (facing == "up") {
player.gotoAndStop("p_attackUp");
} else if (facing == "down") {
player.gotoAndStop("p_attackDown");
} else if (facing == "left") {
player.gotoAndStop("p_attackLeft");
} else if (facing == "right") {
player.gotoAndStop("p_attackRight");
}
} else if (towel == "yellow") {
if (facing == "up") {
player.gotoAndStop("p_y_attackUp");
} else if (facing == "down") {
player.gotoAndStop("p_y_attackDown");
} else if (facing == "left") {
player.gotoAndStop("p_y_attackLeft");
} else if (facing == "right") {
player.gotoAndStop("p_y_attackRight");
}
}
pillCount--;
pillToss = true;
}
}
} else if (equip == "towel") {
if (facing == "up") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("walkUp");
} else {
player.gotoAndStop("standUp");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("y_walkUp");
} else {
player.gotoAndStop("y_standUp");
}
}
} else if (facing == "down") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("walkDown");
} else {
player.gotoAndStop("standDown");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("y_walkDown");
} else {
player.gotoAndStop("y_standDown");
}
}
} else if (facing == "left") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("walkLeft");
} else {
player.gotoAndStop("standLeft");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("y_walkLeft");
} else {
player.gotoAndStop("y_standLeft");
}
}
} else if (facing == "right") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("walkRight");
} else {
player.gotoAndStop("standRight");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("y_walkRight");
} else {
player.gotoAndStop("y_standRight");
}
}
}
} else if (equip == "pills") {
if (facing == "up") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("p_walkUp");
} else {
player.gotoAndStop("p_standUp");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("p_y_walkUp");
} else {
player.gotoAndStop("p_y_standUp");
}
}
} else if (facing == "down") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("p_walkDown");
} else {
player.gotoAndStop("p_standDown");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("p_y_walkDown");
} else {
player.gotoAndStop("p_y_standDown");
}
}
} else if (facing == "left") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("p_walkLeft");
} else {
player.gotoAndStop("p_standLeft");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("p_y_walkLeft");
} else {
player.gotoAndStop("p_y_standLeft");
}
}
} else if (facing == "right") {
if (towel == "green") {
if (walking) {
player.gotoAndStop("p_walkRight");
} else {
player.gotoAndStop("p_standRight");
}
} else if (towel == "yellow") {
if (walking) {
player.gotoAndStop("p_y_walkRight");
} else {
player.gotoAndStop("p_y_standRight");
}
}
}
}
}
} else {
playerSpeed = 8;
if ((!attack) && (!hurt)) {
if (Key.isDown(38) || (Key.isDown(87))) {
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(65))) && (!Key.isDown(68))) {
facing = "up";
}
walking = true;
moveUp();
hitPlus = 0;
hitPlusY = -20;
walkDir = 0;
} else if (Key.isDown(40) || (Key.isDown(83))) {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
facing = "down";
}
walking = true;
moveDown();
hitPlus = 0;
hitPlusY = 10;
walkDir = 1;
}
if (Key.isDown(37) || (Key.isDown(65))) {
facing = "left";
walking = true;
moveLeft();
hitPlus = -10;
hitPlusY = 0;
walkDir = 2;
} else if (Key.isDown(39) || (Key.isDown(68))) {
facing = "right";
walking = true;
moveRight();
hitPlus = 10;
hitPlusY = 0;
walkDir = 3;
}
if ((((((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(87))) && (!Key.isDown(83))) && (!Key.isDown(68))) && (!Key.isDown(65))) {
walkDir = "none";
walking = false;
}
if (facing == "up") {
if (walking) {
player.gotoAndStop("pig_walkUp");
} else {
player.gotoAndStop("pig_standUp");
}
} else if (facing == "down") {
if (walking) {
player.gotoAndStop("pig_walkDown");
} else {
player.gotoAndStop("pig_standDown");
}
} else if (facing == "left") {
if (walking) {
player.gotoAndStop("pig_walkLeft");
} else {
player.gotoAndStop("pig_standLeft");
}
} else if (facing == "right") {
if (walking) {
player.gotoAndStop("pig_walkRight");
} else {
player.gotoAndStop("pig_standRight");
}
}
}
}
}
function pigDrop() {
var _local1 = _root;
if (pigGrab) {
pigGrab = false;
_local1[currentMap].attachMovie("pig", "pig", 511);
_local1[currentMap].pig._x = player._x + mapX;
_local1[currentMap].pig._y = player._y - mapY;
pigBlink = true;
}
}
function pigblinky() {
if (pigblinkOn) {
_root[currentMap].pig._alpha = 50;
pigblinkOn = false;
} else {
_root[currentMap].pig._alpha = 100;
pigblinkOn = true;
}
}
function pillShoot() {
var _local1 = _root;
_local1[currentMap].attachMovie("pill", "pill", 343);
if (facing == "up") {
_local1[currentMap].pill._x = (player._x - 15) + mapX;
_local1[currentMap].pill._y = (player._y - 30) - mapY;
} else if (facing == "down") {
_local1[currentMap].pill._x = (player._x + 5) + mapX;
_local1[currentMap].pill._y = (player._y - 15) - mapY;
} else if (facing == "left") {
_local1[currentMap].pill._x = (player._x - 15) + mapX;
_local1[currentMap].pill._y = (player._y - 15) - mapY;
} else if (facing == "right") {
_local1[currentMap].pill._x = (player._x + 15) + mapX;
_local1[currentMap].pill._y = (player._y - 15) - mapY;
}
_local1[currentMap].pill.facing = facing;
}
function moveLeft() {
var _local1 = this;
if ((!_local1[currentMap].hit.hitTest(player._x - 10, player._y - 3, true)) && (!_local1[currentMap].hit.hitTest(player._x - 10, player._y - 20, true))) {
player._x = player._x - playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x - 10, player._y - 3, true)) {
player._y = player._y + playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x - 10, player._y - 25, true)) {
player._y = player._y - playerSpeed;
}
}
function moveRight() {
var _local1 = this;
if ((!_local1[currentMap].hit.hitTest(player._x + 10, player._y - 3, true)) && (!_local1[currentMap].hit.hitTest(player._x + 10, player._y - 20, true))) {
player._x = player._x + playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x + 10, player._y + -3, true)) {
player._y = player._y + playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x + 10, player._y - 25, true)) {
player._y = player._y - playerSpeed;
}
}
function moveUp() {
var _local1 = this;
if ((!_local1[currentMap].hit.hitTest(player._x - 10, player._y - 15, true)) && (!_local1[currentMap].hit.hitTest(player._x + 10, player._y - 15, true))) {
player._y = player._y - playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x - 15, player._y - 15, true)) {
player._x = player._x - playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x + 15, player._y - 15, true)) {
player._x = player._x + playerSpeed;
}
}
function moveDown() {
var _local1 = this;
if ((!_local1[currentMap].hit.hitTest(player._x - 10, player._y + 1, true)) && (!_local1[currentMap].hit.hitTest(player._x + 10, player._y + 1, true))) {
player._y = player._y + playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x - 15, player._y + 1, true)) {
player._x = player._x - playerSpeed;
} else if (!_local1[currentMap].hit.hitTest(player._x + 15, player._y + 1, true)) {
player._x = player._x + playerSpeed;
}
}
function playerDamage() {
var _local1 = _root;
i = 1;
while (i < 5) {
if ((player.hit.hitTest(_local1[currentMap]["enemy" + i].hit) && (!hurt)) && (!blink)) {
health = health - 1;
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
hitSound.start();
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
}
}
i++;
}
}
function hurtPlayer() {
health = health - 1;
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
}
}
function attacker() {
var _local1 = _root;
i = 1;
while (i < 5) {
if (player.guy.hit.hitTest(_local1[currentMap]["enemy" + i].hit) && (_local1[currentMap]["enemy" + i].hurt == false)) {
_local1[currentMap]["enemy" + i].health = _local1[currentMap]["enemy" + i].health - damage;
_local1[currentMap]["enemy" + i].hurt = true;
_local1[currentMap]["enemy" + i].attackMode = 2;
hitSound.start();
if (facing == "down") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtUp");
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
} else if (facing == "up") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtDown");
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
} else if (facing == "right") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtLeft");
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
} else if (facing == "left") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtRight");
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
}
}
i++;
}
}
function travoltaHurt() {
var _local1 = _root;
if (player.guy.hit.hitTest(_local1[currentMap].travolta.hit) && (_local1[currentMap].travolta.dance)) {
_local1[currentMap].travolta.gotoAndStop("hurt");
}
}
function loadTom() {
attachMovie("tom", "tom", 499);
tom._x = 275 + mapX;
tom._y = 100 + mapY;
}
function tomHurt() {
var _local1 = _root;
if (player.guy.hit.hitTest(_local1.tom.hit) && (_local1.tom.wallHit)) {
_local1.tom.gotoAndStop("hurt");
hitSound.start();
}
if (mapA45.explode.hitTest(_local1.tom.hit) && (_local1.tom.wallHit)) {
_local1.tom.gotoAndStop("hurt");
hitSound.start();
}
}
function blinky() {
if (blinkOn) {
player._alpha = 50;
blinkOn = false;
} else {
player._alpha = 100;
blinkOn = true;
}
}
function screenScroll() {
if (screenChangeDir == "up") {
screenUp();
} else if (screenChangeDir == "down") {
screenDown();
} else if (screenChangeDir == "left") {
screenLeft();
} else if (screenChangeDir == "right") {
screenRight();
}
}
function screenUp() {
var _local1 = this;
if ((screenCount < mapHeight) && (screenChange)) {
player._y = player._y + 9;
_local1[currentMap]._y = _local1[currentMap]._y + 10;
_local1[nextMap]._y = _local1[nextMap]._y + 10;
screenCount = screenCount + 10;
} else {
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
}
}
function screenDown() {
var _local1 = this;
if ((screenCount < mapHeight) && (screenChange)) {
player._y = player._y - 9;
_local1[currentMap]._y = _local1[currentMap]._y - 10;
_local1[nextMap]._y = _local1[nextMap]._y - 10;
screenCount = screenCount + 10;
} else {
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
}
}
function screenRight() {
var _local1 = this;
if ((screenCount < mapWidth) && (screenChange)) {
player._x = player._x - 9;
_local1[currentMap]._x = _local1[currentMap]._x - 10;
_local1[nextMap]._x = _local1[nextMap]._x - 10;
screenCount = screenCount + 10;
} else {
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
}
}
function screenLeft() {
var _local1 = this;
if ((screenCount < mapWidth) && (screenChange)) {
player._x = player._x + 9;
_local1[currentMap]._x = _local1[currentMap]._x + 10;
_local1[nextMap]._x = _local1[nextMap]._x + 10;
screenCount = screenCount + 10;
} else {
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
}
}
function nextMap() {
attachMovie(nextMap, nextMap, mapDepth);
}
function loadMap(dir) {
var _local1 = this;
var _local2 = _root;
var _local3 = dir;
i = 1;
while (i <= 6) {
j = 0;
while (j <= 3) {
if (_local2[(_local1["doors_" + currentMap][j] + "_enemySpawn") + i] > 0) {
_local2[(_local1["doors_" + currentMap][j] + "_enemySpawn") + i] = _local2[(_local1["doors_" + currentMap][j] + "_enemySpawn") + i] - 1;
}
j++;
}
i++;
}
pillToss = false;
screenChange = true;
if (_local3 == "up") {
nextMap = _local1["doors_" + currentMap][0];
screenChangeDir = "up";
attachMovie(nextMap, nextMap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX;
_local1[nextmap]._y = mapY - mapHeight;
locksOpen();
player.setMask(_local1[nextmap].mask);
} else if (_local3 == "down") {
nextMap = _local1["doors_" + currentMap][1];
screenChangeDir = "down";
attachMovie(nextMap, nextmap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX;
_local1[nextmap]._y = mapY + mapHeight;
locksOpen();
player.setMask(_local1[nextmap].mask);
} else if (_local3 == "left") {
nextMap = _local1["doors_" + currentMap][2];
screenChangeDir = "left";
attachMovie(nextMap, nextmap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX - mapWidth;
_local1[nextmap]._y = mapY;
locksOpen();
player.setMask(_local1[nextmap].mask);
} else if (_local3 == "right") {
nextMap = _local1["doors_" + currentMap][3];
screenChangeDir = "right";
attachMovie(nextMap, nextmap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX + mapWidth;
_local1[nextmap]._y = mapY;
locksOpen();
player.setMask(_local1[nextmap].mask);
}
mapDepthSwitch();
enemyNum = 1;
npcNum = 1;
death = 0;
}
function kirstieDoor() {
var _local1 = _root;
if (player.hit.hitTest(_local1[currentMap].door)) {
nextMap = "mapA0";
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
attachMovie(nextMap, nextMap, mapDepth);
_local1[nextMap]._x = mapX;
_local1[nextMap]._y = mapY;
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
player.setMask(_local1[currentMap].mask);
player._y = (mapY + mapHeight) - 50;
mapDepthSwitch();
enemyNum = 1;
npcNum = 1;
death = 0;
}
}
function kirstieDoor2() {
var _local1 = _root;
if (player.hit.hitTest(_local1[currentMap].door)) {
nextMap = "mapA1";
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
attachMovie(nextMap, nextMap, mapDepth);
_local1[nextMap]._x = mapX;
_local1[nextMap]._y = mapY;
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
player.setMask(_local1[currentMap].mask);
player._y = 265 + mapY;
mapDepthSwitch();
enemyNum = 1;
npcNum = 1;
death = 0;
}
}
function tomDoor() {
var _local1 = _root;
if (player.hit.hitTest(_local1[currentMap].door)) {
nextMap = "mapA41";
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
attachMovie(nextMap, nextMap, mapDepth);
_local1[nextMap]._x = mapX;
_local1[nextMap]._y = mapY;
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
player.setMask(_local1[currentMap].mask);
player._y = (mapY + mapHeight) - 50;
mapDepthSwitch();
enemyNum = 1;
npcNum = 1;
death = 0;
}
}
function mapDepthSwitch() {
if (mapDepth == 100) {
mapDepth = 101;
} else {
mapDepth = 100;
}
}
function locksOpen() {
var _local1 = _root;
if (_local1["doors_" + nextMap].lock[0] == "none") {
_local1[nextMap].up.gotoAndStop(2);
_local1[nextMap].hit.up.gotoAndStop(2);
_local1["doors_" + nextMap].lock[0] = "none";
}
if (_local1["doors_" + nextMap].lock[1] == "none") {
_local1[nextMap].down.gotoAndStop(2);
_local1[nextMap].hit.down.gotoAndStop(2);
_local1["doors_" + nextMap].lock[1] = "none";
}
if (_local1["doors_" + nextMap].lock[2] == "none") {
_local1[nextMap].left.gotoAndStop(2);
_local1[nextMap].hit.left.gotoAndStop(2);
_local1["doors_" + nextMap].lock[2] = "none";
}
if (_local1["doors_" + nextMap].lock[3] == "none") {
_local1[nextMap].right.gotoAndStop(2);
_local1[nextMap].hit.right.gotoAndStop(2);
_local1["doors_" + nextMap].lock[3] = "none";
}
}
function doorCheck() {
if (!screenChange) {
if (player._y < (mapY + 5)) {
loadMap("up");
} else if (player._y > (mapY + mapHeight)) {
loadMap("down");
} else if (player._x < mapX) {
loadMap("left");
} else if (player._x > (mapX + mapWidth)) {
loadMap("right");
}
}
}
function menuUpdate() {
hud.menu.menu.map.gotoAndStop(1);
hud.menu.menu.map.gotoAndStop(currentFloor + 1);
hud.menu.menu.map[currentMap].gotoAndStop(2);
hud.menu.menu.objective.gotoAndStop(objective);
if (!blueKey) {
hud.menu.menu.blue._visible = false;
} else {
hud.menu.menu.blue._visible = true;
}
if (!greenKey) {
hud.menu.menu.green._visible = false;
} else {
hud.menu.menu.green._visible = true;
}
if (!pigGrab) {
hud.menu.menu.pig._visible = false;
} else {
hud.menu.menu.pig._visible = true;
}
if (!martiniGet) {
hud.menu.menu.martini._visible = false;
} else {
hud.menu.menu.martini._visible = true;
}
if (pillGet == false) {
hud.menu.menu.pills._visible = false;
} else {
hud.menu.menu.pills._visible = true;
}
}
function hayesTalk() {
var _local1 = this;
if (player.hit.hitTest(_local1[currentMap].hayes.hit)) {
if (key.isDown(32) && (!talking)) {
if (((girls[0] == "girl") && (girls[1] == "girl")) && (girls[2] == "girl")) {
if (inventory[3] == "empty") {
attachMovie("hayesMessage2", "message", 801);
_local1[currentMap].attachMovie("goldKey", "goldKey", 506);
_local1[currentMap].goldKey._x = 450;
_local1[currentMap].goldKey._y = 260;
girls[0] = "empty";
girls[1] = "empty";
girls[2] = "empty";
objective = 4;
checkpoint = 5;
}
} else if ((objective == 1) || (objective == 2)) {
if (girlCount == 0) {
hayesTalked = true;
objective = 2;
checkpoint = 1;
attachMovie("hayesMessage1", "message", 801);
} else if (girlCount == 1) {
attachMovie("hayesMessage1A", "message", 801);
} else if (girlCount == 2) {
attachMovie("hayesMessage1B", "message", 801);
}
}
}
}
}
function waiterTalk() {
if (player.hit.hitTest(this[currentMap].waiter.hit)) {
if (key.isDown(32) && (!talking)) {
if (!waiterComplete) {
if (!jennaGet) {
attachMovie("message_waiter0", "message", 801);
} else {
attachMovie("message_waiter1", "message", 801);
objective = 3;
}
} else {
attachMovie("message_waiter0", "message", 801);
}
}
}
}
function jennaTalk() {
if (player.hit.hitTest(this[currentMap].jenna.hit)) {
if (key.isDown(32) && (!talking)) {
if (!jennaComplete) {
if (!martiniGet) {
attachMovie("message_jenna1", "message", 801);
objective = 2;
} else {
attachMovie("message_jenna2", "message", 801);
towel = "yellow";
damage = 2;
}
} else {
attachMovie("message_jenna3", "message", 801);
}
}
}
}
function pigTalk() {
if (player.hit.hitTest(this[currentMap].pig)) {
if (key.isDown(32) && (!talking)) {
if (!kirstieTalk) {
attachMovie("message_pig0", "message", 801);
} else if (!pigSay) {
attachMovie("message_pig1", "message", 801);
}
}
}
}
function kirstieSay() {
if (player.hit.hitTest(this[currentMap].kirstie.hit)) {
if (key.isDown(32) && (!talking)) {
if (!kirstieComplete) {
if (!pigGrab) {
attachMovie("message_kirstie1", "message", 801);
objective = 6;
} else {
attachMovie("message_kirstie2", "message", 801);
keyGet = true;
}
} else {
attachMovie("message_kirstie3", "message", 801);
}
}
}
}
function darkFilter(setting) {
attachMovie("dark", "dark", 517);
if (setting == 1) {
dark.gotoAndStop(1);
} else if (setting == 2) {
dark.gotoAndStop(2);
}
}
function restart() {
removeStuff();
gameStart();
removeMovieClip("gameover");
}
function gameOver() {
attachMovie("gameover", "gameover", 999);
}
function removeStuff() {
removeMovieClip("player");
removeMovieClip("hud");
removeMovieClip(_root[currentMap]);
removeMovieClip(_root[nextMap]);
removeMovieClip("tom");
}
function endCard() {
if (score < 1000) {
endbox.card.gotoAndStop(1);
endbox.link.gotoAndStop(1);
} else if ((score >= 1000) && (score < 1300)) {
endbox.card.gotoAndStop(2);
endbox.link.gotoAndStop(2);
} else if (score >= 1300) {
endbox.card.gotoAndStop(3);
endbox.link.gotoAndStop(3);
}
}
function gameStart() {
var _local1 = this;
attachMovie("hud", "hud", 995);
attachMovie("player", "player", 500);
player._x = 275;
player._y = 300;
health = 12;
pillCount = 6;
hud.hearts.gotoAndStop(health + 1);
pigGrab = false;
pillToss = false;
scenarioReset();
checkWay();
attachMovie(currentMap, currentMap, mapDepth);
_local1[currentMap].lock = _local1["doors_" + currentMap].lock;
_local1[currentMap]._x = mapX;
_local1[currentMap]._y = mapY;
player.setMask(_local1[currentMap].mask);
locksOpen();
mapDepthSwitch();
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
music.start(0, 999);
music.setVolume(musicVol);
}
_quality = "low";
var hurt = false;
var keyHit = false;
var mapWidth = 540;
var mapHeight = 360;
var mapX = 5;
var mapY = 36;
var mapDepth = 100;
var currentMap = "mapA15";
var nextMap = currentMap;
var currentFloor = 1;
var screenChange = false;
var screenChangeDir = "none";
var screenCount = 0;
var objective = 1;
var playerSpeed = 5;
var towel = "green";
var equip = "towel";
var damage = 1;
var health = 12;
var heartUP1 = false;
var heartUP2 = false;
var heartUP3 = false;
var talking = false;
var score = 0;
var blink = false;
var blinkOn = false;
var npcNum = 1;
var enemyNum = 1;
var shootNum = 1;
var itemNum = 1;
var pillCount = 10;
var pillToss = false;
var death = 0;
var gamePause = false;
var instructOpen = false;
var menuOpen = false;
fade.swapDepths(800);
floor.swapDepths(877);
gradient.swapDepths(510);
var musicPlay = true;
var musicVol = 25;
var music = new Sound();
music.attachSound("music_maze");
var hitSound = new Sound();
hitSound.attachSound("attackSound");
var inventory = ["empty", "empty", "empty", "empty", "empty"];
var girls = ["empty", "empty", "empty"];
var girlCount = 0;
var hayesTalked = false;
var maltGet = false;
var stdGet = false;
var alimonyGet = false;
var travoltaFight = false;
var travoltaDead = false;
var pillGet = true;
var introFight = false;
var jennaGet = false;
var jennaComplete = false;
var martiniGet = false;
var waiterComplete = false;
var kirstieTalk = false;
var kirstieComplete = false;
var pigSay = false;
var pigGet = false;
var pigGrab = false;
var pigBlink = false;
var pigBlinkOn = false;
var keyGet = false;
var blueKey = false;
var greenKey = false;
var gate1 = false;
var gate2 = false;
var checkpoint = 0;
var keyMenu = 73;
var keyAttack = 32;
doors_map = ["map", "mapE", "mapB", "none", "none"];
doors_map.lock = ["none", "apple", "none", "none"];
doors_mapB = ["mapB", "map", "mapE", "mapD", "mapC"];
doors_mapB.lock = ["none", "orange", "none", "none"];
doors_mapC = ["mapB", "mapB", "map", "mapB", "mapD"];
doors_mapC.lock = ["none", "apple", "none", "none"];
doors_mapD = ["mapB", "mapB", "map", "mapC", "mapB"];
doors_mapE = ["mapC", "mapB", "map", "mapB", "mapB"];
doors_mapE.lock = ["none", "orange", "apple", "apple"];
doors.map.up = "mapB";
doors.map.down = "mapB";
doors.map.left = "none";
doors.map.right = "none";
doors_map0 = ["none", "mapH1", "none", "none"];
doors_map1 = ["none", "none", "mapH1", "none"];
doors_map2 = ["none", "none", "none", "mapH1"];
doors_map3 = ["none", "none", "none", "mapH2"];
doors_map4 = ["none", "none", "none", "mapH3"];
doors_map6 = ["none", "none", "mapH2", "none"];
doors_map7 = ["none", "none", "mapH3", "none"];
doors_map8 = ["none", "mapH6", "none", "none"];
doors_map9 = ["none", "mapH7", "none", "none"];
doors_map10 = ["none", "none", "mapH7", "none"];
doors_map11 = ["mapH7", "none", "none", "none"];
doors_map12 = ["mapH6", "none", "none", "none"];
doors_map13 = ["mapH4", "none", "none", "none"];
doors_map14 = ["mapH5", "none", "none", "none"];
doors_map15 = ["none", "none", "none", "mapH5"];
doors_map16 = ["none", "mapH5", "none", "none"];
doors_map17 = ["none", "mapH4", "none", "none"];
doors_map18 = ["none", "none", "mapH4", "map20"];
doors_map19 = ["none", "none", "map20", "mapH6"];
doors_map20 = ["mapH3", "mapB4", "map18", "map19"];
doors_mapH1 = ["map0", "mapH3", "map2", "map1"];
doors_mapH2 = ["mapH1", "mapH3", "map3", "map6"];
doors_mapH3 = ["mapH1", "map20", "map4", "map7"];
doors_mapH4 = ["map17", "map13", "mapH5", "map18"];
doors_mapH5 = ["map16", "map14", "map15", "mapH4"];
doors_mapH6 = ["map8", "map12", "map19", "mapH7"];
doors_mapH7 = ["map9", "map11", "mapH6", "map10"];
doors_mapB1 = ["none", "mapB6", "none", "none"];
doors_mapB2 = ["none", "mapB11", "none", "none"];
doors_mapB3 = ["none", "mapB10", "none", "none"];
doors_mapB4 = ["map20", "mapB9", "none", "none"];
doors_mapB5 = ["mapC13", "mapB8", "none", "none"];
doors_mapB6 = ["mapB1", "mapB7", "none", "none"];
doors_mapB6.lock = ["purple", "none", "none", "none"];
doors_mapB7 = ["mapB6", "mapB15", "none", "none"];
doors_mapB8 = ["mapB5", "mapB14", "none", "none"];
doors_mapB9 = ["mapB4", "none", "mapB10", "none"];
doors_mapB10 = ["mapB3", "mapB12", "mapB11", "mapB9"];
doors_mapB11 = ["mapB2", "none", "none", "mapB10"];
doors_mapB12 = ["mapB10", "none", "none", "mapB13"];
doors_mapB13 = ["none", "none", "mapB12", "mapB14"];
doors_mapB14 = ["mapB8", "none", "mapB13", "mapB15"];
doors_mapB14.lock = ["none", "gold", "none", "none"];
doors_mapB15 = ["mapB7", "none", "mapB14", "mapB16"];
doors_mapB16 = ["none", "none", "mapB15", "none"];
doors_mapA1 = ["x", "x", "x", "mapA6"];
doors_mapA2 = ["mapA3", "x", "x", "mapA7"];
doors_mapA3 = ["mapA4", "mapA2", "x", "mapA8"];
doors_mapA4 = ["mapA5", "mapA3", "none", "none"];
doors_mapA5 = ["mapA6", "mapA4", "none", "mapA9"];
doors_mapA6 = ["none", "mapA5", "mapA1", "none"];
doors_mapA7 = ["mapA8", "x", "mapA2", "mapA11"];
doors_mapA8 = ["x", "mapA7", "mapA3", "mapA12"];
doors_mapA9 = ["x", "x", "mapA5", "mapA14"];
doors_mapA10 = ["mapA11", "x", "x", "mapA18"];
doors_mapA11 = ["mapA12", "mapA10", "mapA7", "mapA19"];
doors_mapA12 = ["mapA13", "mapA11", "mapA8", "mapA20"];
doors_mapA13 = ["mapA14", "mapA12", "x", "mapA21"];
doors_mapA14 = ["mapA15", "mapA13", "mapA9", "mapA22"];
doors_mapA15 = ["mapA16", "mapA14", "x", "mapA23"];
doors_mapA16 = ["x", "mapA15", "x", "mapA24"];
doors_mapA17 = ["mapA18", "x", "x", "mapA26"];
doors_mapA18 = ["mapA19", "mapA17", "mapA10", "mapA27"];
doors_mapA19 = ["mapA20", "mapA18", "mapA11", "mapA28"];
doors_mapA20 = ["mapA21", "mapA19", "mapA12", "mapA29"];
doors_mapA21 = ["mapA22", "mapA20", "mapA13", "mapA30"];
doors_mapA22 = ["mapA23", "mapA21", "mapA14", "mapA31"];
doors_mapA23 = ["mapA24", "mapA22", "mapA15", "x"];
doors_mapA24 = ["x", "mapA23", "mapA16", "x"];
doors_mapA25 = ["mapA26", "none", "none", "none"];
doors_mapA26 = ["mapA27", "mapA25", "mapA17", "mapA32"];
doors_mapA27 = ["mapA28", "mapA26", "mapA18", "mapA33"];
doors_mapA28 = ["mapA29", "mapA27", "mapA19", "x"];
doors_mapA29 = ["mapA30", "mapA28", "mapA20", "mapA34"];
doors_mapA30 = ["mapA31", "mapA29", "mapA21", "mapA35"];
doors_mapA31 = ["x", "mapA30", "mapA22", "mapA36"];
doors_mapA32 = ["mapA33", "x", "mapA26", "x"];
doors_mapA33 = ["x", "mapA32", "mapA27", "mapA37"];
doors_mapA34 = ["mapA35", "x", "mapA29", "mapA38"];
doors_mapA35 = ["mapA36", "mapA34", "mapA30", "mapA39"];
doors_mapA36 = ["x", "mapA35", "mapA31", "mapA40"];
doors_mapA37 = ["x", "x", "mapA33", "x"];
doors_mapA38 = ["mapA39", "x", "mapA34", "x"];
doors_mapA39 = ["mapA40", "mapA38", "mapA35", "x"];
doors_mapA40 = ["x", "mapA39", "mapA36", "x"];
doors_mapA41 = ["mapA42", "x", "x", "x"];
doors_mapA42 = ["mapA45", "mapA41", "x", "x"];
doors_mapA45 = ["x", "mapA42", "x", "x"];
MovieClip.prototype.pillSpin = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.facing == "up") {
_local1._y = _local1._y - 10;
} else if (_local1.facing == "down") {
_local1._y = _local1._y + 10;
} else if (_local1.facing == "left") {
_local1._x = _local1._x - 10;
} else if (_local1.facing == "right") {
_local1._x = _local1._x + 10;
}
i = 1;
while (i < 5) {
if ((((_local1.hitTest(_local2[currentMap]["enemy" + i].hit) || (_local1._x < 0)) || (_local1._x > 540)) || (_local1._y < 0)) || (_local1._y > 360)) {
pillToss = false;
_local1._parent.attachMovie("explode", "explode", 344);
_local1._parent.explode._x = _local1._x;
_local1._parent.explode._y = _local1._y;
_local1.removeMovieClip();
}
i++;
}
if ((((_local1.hitTest(tom) || (_local1._x < 0)) || (_local1._x > 540)) || (_local1._y < 0)) || (_local1._y > 360)) {
pillToss = false;
_local1._parent.attachMovie("explode", "explode", 344);
_local1._parent.explode._x = _local1._x;
_local1._parent.explode._y = _local1._y;
_local1.removeMovieClip();
}
};
MovieClip.prototype.pillAttack = function () {
var _local1 = _root;
var _local2 = this;
i = 1;
while (i < 5) {
if (_local2.hitTest(_local1[currentMap]["enemy" + i].hit) && (_local1[currentMap]["enemy" + i].hurt == false)) {
_local1[currentMap]["enemy" + i].health = _local1[currentMap]["enemy" + i].health - 5;
_local1[currentMap]["enemy" + i].hurt = true;
_local1[currentMap]["enemy" + i].attackMode = 2;
if (facing == "down") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtUp");
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
_local1[currentMap]["enemy" + i].moveDown();
} else if (facing == "up") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtDown");
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
_local1[currentMap]["enemy" + i].moveUp();
} else if (facing == "right") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtLeft");
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
_local1[currentMap]["enemy" + i].moveRight();
} else if (facing == "left") {
_local1[currentMap]["enemy" + i].gotoAndStop("hurtRight");
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
_local1[currentMap]["enemy" + i].moveLeft();
}
}
i++;
}
};
MovieClip.prototype.gerbilAttack = function () {
var _local1 = this;
if (_root[currentMap].hit.hitTest(_local1._x, _local1._y, true)) {
_local1.gotoAndPlay("explode");
}
if ((_local1.hitTest(_root.player.hit) && (!hurt)) && (!blink)) {
_local1.gotoAndPlay("explode");
hitSound.start();
health = health - 1;
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
}
}
};
MovieClip.prototype.tomAttack = function () {
if ((this.hitTest(_root.player.hit) && (!hurt)) && (!blink)) {
health = health - 1;
hitSound.start();
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
}
}
};
MovieClip.prototype.botAttack = function () {
if ((this.hitTest(_root.player.hit) && (!hurt)) && (!blink)) {
health = health - 1;
hitSound.start();
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
}
}
};
MovieClip.prototype.dreadAttack = function () {
if ((this.hitTest(_root.player._x, _root.player._y, true) && (!hurt)) && (!blink)) {
health = health - 1;
hitSound.start();
hud.hearts.gotoAndStop(health + 1);
blink = true;
player.blink.gotoAndPlay(3);
hurt = true;
if (health <= 0) {
player.gotoAndStop("die");
} else if (facing == "up") {
player.gotoAndStop("hurtUp");
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
moveDown();
} else if (facing == "down") {
player.gotoAndStop("hurtDown");
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
moveUp();
} else if (facing == "left") {
player.gotoAndStop("hurtLeft");
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
moveRight();
} else if (facing == "right") {
player.gotoAndStop("hurtright");
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
moveLeft();
}
}
};
MovieClip.prototype.theStair = function () {
var _local1 = _root;
var _local2 = this;
if (player.hit.hitTest(_local2)) {
if ((_local2.dir == "down") && (facing == "down")) {
nextMap = _local1["doors_" + currentMap][1];
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
_local1.attachMovie(nextMap, nextMap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX;
_local1[nextmap]._y = mapY;
locksOpen();
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
player.setMask(_local1[currentMap].mask);
player._y = mapY + 60;
} else if ((_local2.dir == "up") && (facing == "up")) {
nextMap = _local1["doors_" + currentMap][0];
fade.gotoAndPlay(1);
floor.gotoAndPlay(1);
_local1.attachMovie(nextMap, nextMap, mapDepth);
_local1[nextmap].lock = _local1["doors_" + nextMap].lock;
_local1[nextmap]._x = mapX;
_local1[nextmap]._y = mapY;
locksOpen();
removeMovieClip(_local1[currentMap]);
currentMap = nextMap;
nextMap = "none";
screenChange = false;
screenChangeDir = "none";
screenCount = 0;
player.setMask(_local1[currentMap].mask);
player._y = (mapY + mapHeight) - 30;
}
mapDepthSwitch();
enemyNum = 1;
npcNum = 1;
death = 0;
}
};
MovieClip.prototype.lockCheck = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.player._x + hitPlus, _local2.player._y + hitPlusY, false)) {
i = 0;
while (i <= 4) {
if (inventory[i] == _local1._parent._parent.lock[walkDir]) {
_local1.gotoAndStop(2);
_local1._parent._parent[_local1.dir].gotoAndStop(2);
_local2["doors_" + currentMap].lock[walkDir] = "none";
inventory[i] = "used";
}
i++;
}
}
};
MovieClip.prototype.theDoor = function () {
var _local1 = this;
if (_local1.hitTest(_root.player)) {
if (_local1.dir == "up") {
if (Key.isDown(38) || (Key.isDown(87))) {
player._y = mapY;
}
} else if (_local1.dir == "down") {
if (Key.isDown(40) || (Key.isDown(83))) {
player._y = mapY + mapHeight;
}
} else if (_local1.dir == "left") {
if (Key.isDown(37) || (Key.isDown(65))) {
player._x = mapX;
} else if (Key.isDown(39) || (Key.isDown(68))) {
player._x = player._x + 15;
}
} else if (_local1.dir == "right") {
if (Key.isDown(39) || (Key.isDown(68))) {
player._x = mapX + mapWidth;
} else if (Key.isDown(37) || (Key.isDown(65))) {
player._x = player._x - 15;
}
}
}
};
MovieClip.prototype.itemDrop = function () {
var _local1 = this;
var _local2 = _root;
if (random(20) == 0) {
_local2[currentMap].attachMovie("heart", "heart" + itemNum, _local1._y + 100);
_local2[currentMap]["heart" + itemNum]._x = _local1._x;
_local2[currentMap]["heart" + itemNum]._y = _local1._y - 5;
itemNum++;
} else if (random(20) == 0) {
_local2[currentMap].attachMovie("pills", "pills" + itemNum, _local1._y + 100);
_local2[currentMap]["pills" + itemNum]._x = _local1._x;
_local2[currentMap]["pills" + itemNum]._y = _local1._y - 5;
itemNum++;
} else if (random(5) == 0) {
_local2[currentMap].attachMovie("coin2", "coin" + itemNum, _local1._y + 100);
_local2[currentMap]["coin" + itemNum]._x = _local1._x;
_local2[currentMap]["coin" + itemNum]._y = _local1._y - 5;
itemNum++;
} else {
_local2[currentMap].attachMovie("coin", "coin" + itemNum, _local1._y + 100);
_local2[currentMap]["coin" + itemNum]._x = _local1._x;
_local2[currentMap]["coin" + itemNum]._y = _local1._y - 5;
itemNum++;
}
};
MovieClip.prototype.keyCollect = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.inventory[_local1.slot] == _local1.keyName) || (_local2.inventory[_local1.slot] == "used")) {
_local1.gotoAndStop(2);
}
if (_local1.hitTest(_local2.player.hit)) {
_local2.inventory[_local1.slot] = _local1.keyName;
attachMovie("message_" + _local1.keyName, "message", 801);
_local1.gotoAndStop(2);
}
};
MovieClip.prototype.girlCollect = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.girls[_local1.slot] == "girl") && (!talking)) {
_local1.gotoAndStop(2);
}
if (_local1.hitTest(_local2.player.hit) && (!talking)) {
girlCount++;
_local2.girls[_local1.slot] = "girl";
_local2.attachMovie(("message_" + _local1.keyName) + "B", "message", 801);
}
};
MovieClip.prototype.heartCollect = function () {
if (this.hitTest(_root.player.hit)) {
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
this.gotoAndStop(3);
}
};
MovieClip.prototype.coinCollect = function (pts) {
if (this.hitTest(_root.player.hit)) {
score = score + pts;
if ((!heartUP1) && (score >= 1000)) {
heartUP1 = true;
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
}
if ((!heartUP2) && (score >= 2000)) {
heartUP2 = true;
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
}
if ((!heartUP3) && (score >= 3000)) {
heartUP3 = true;
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
if (health < 12) {
health++;
hud.hearts.gotoAndStop(health + 1);
}
}
this.gotoAndStop(3);
}
};
MovieClip.prototype.maltCollect = function () {
if (this.hitTest(_root.player.hit)) {
maltGet = true;
this.gotoAndStop(3);
}
};
MovieClip.prototype.stdCollect = function () {
if (this.hitTest(_root.player.hit)) {
stdGet = true;
this.gotoAndStop(3);
}
};
MovieClip.prototype.alimonyCollect = function () {
if (this.hitTest(_root.player.hit)) {
alimonyGet = true;
this.gotoAndStop(3);
}
};
MovieClip.prototype.martiniCollect = function () {
if (this.hitTest(_root.player.hit)) {
attachMovie("message_martini", "message", 801);
martiniGet = true;
waiterComplete = true;
this.gotoAndStop(3);
}
};
MovieClip.prototype.pillCollect = function () {
if (this.hitTest(_root.player.hit)) {
if (pillCount <= 9) {
pillCount = pillCount + 3;
} else {
pillCount = 12;
}
this.gotoAndStop(3);
}
};
MovieClip.prototype.pigCollect = function () {
if (this.hitTest(_root.player.hit)) {
pigGrab = true;
this.removeMovieClip();
}
};
MovieClip.prototype.blueCollect = function () {
var _local1 = _root;
if (this.hitTest(_local1.player.hit)) {
blueKey = true;
_local1.jennaComplete = true;
_local1.martiniGet = false;
objective = 4;
attachMovie("message_blueKey", "message", 801);
this.gotoAndStop(2);
}
};
MovieClip.prototype.greenCollect = function () {
var _local1 = _root;
if (this.hitTest(_local1.player.hit)) {
greenKey = true;
_local1.checkpoint = 4;
_local1.kirstieComplete = true;
objective = 7;
attachMovie("message_greenKey", "message", 801);
this.gotoAndStop(2);
}
};
MovieClip.prototype.npcLoad = function () {
var _local1 = this;
_local1._visible = false;
if (_local1.enemy) {
if ((_root[(nextMap + "_enemySpawn") + enemyNum] == null) || (_root[(nextMap + "_enemySpawn") + enemyNum] == 0)) {
_local1._parent.attachMovie(_local1.npc, "enemy" + enemyNum, _local1._y);
_local1._parent["enemy" + enemyNum]._x = _local1._x;
_local1._parent["enemy" + enemyNum]._y = _local1._y;
_local1._parent["enemy" + enemyNum].myNum = enemyNum;
enemyNum++;
}
} else {
_local1._parent.attachMovie(_local1.npc, "npc" + npcNum, _local1._y);
_local1._parent["npc" + npcNum]._x = _local1._x;
_local1._parent["npc" + npcNum]._y = _local1._y;
npcNum++;
}
};
MovieClip.prototype.toiletPower = function () {
if (this.hit.hitTest(_root.player.hit)) {
if (key.isDown(32)) {
hud.power.gotoAndPlay(15);
if (towel == "green") {
player.gotoAndStop("powerUp");
} else {
player.gotoAndStop("y_powerUp");
}
}
}
};
MovieClip.prototype.distance = function (mc) {
if (typeof(mc) == "string") {
mc = eval (mc);
}
var temp = new Object();
temp.xdist = Math.abs(mc._x - this._x);
temp.distx = mc._x - this._x;
temp.disty = mc._y - this._y;
temp.distance = Math.round(Math.sqrt((temp.distx * temp.distx) + (temp.disty * temp.disty)));
return(temp);
};
onEnterFrame = function () {
var _local1 = _root;
if ((!Key.isDown(32)) && (!Key.isDown(81))) {
keyHit = false;
}
if (!gamePause) {
if (!screenChange) {
movement();
}
screenScroll();
doorCheck();
}
if (key.isDown(keyMenu)) {
if (((!_local1.talking) && (!_local1.gamePause)) && (!_local1.menuOpen)) {
hud.menu.play();
menuUpdate();
} else if (_local1.menuOpen) {
hud.menu.play();
}
}
locationX = player._x;
locationY = player._y;
elocationX = this[currentMap].enemy1._x + mapX;
elocationY = this[currentMap].enemy1._y + mapY;
};
gameStart();
_root.attachMovie("message_intro", "message", 801);
stop();
Frame 32
prevFrame();
Frame 42
onEnterFrame = function () {
};
removeStuff();
stop();
Frame 52
endCard();
stop();
Frame 61
prevFrame();
Symbol 12 Button
on (release) {
_root.restart();
}
Symbol 13 MovieClip [gameover] Frame 1
_root.music.stop();
Symbol 13 MovieClip [gameover] Frame 25
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 19 MovieClip [travoltahealth] Frame 10
onEnterFrame = function () {
var _local1 = _root;
bar.gotoAndStop(_local1[_local1.currentMap].travolta.health + 1);
if (_local1[_local1.currentMap].travolta.health <= 0) {
this.removeMovieClip();
}
};
stop();
Symbol 25 MovieClip [bolt] Frame 1
function shoot() {
var _local1 = this;
if (dir == 1) {
_local1._y = _local1._y + speed;
_local1._x = _local1._x - speed;
} else if (dir == 2) {
_local1._y = _local1._y - speed;
_local1._x = _local1._x - speed;
} else if (dir == 3) {
_local1._y = _local1._y - speed;
_local1._x = _local1._x + speed;
} else if (dir == 4) {
_local1._y = _local1._y + speed;
_local1._x = _local1._x + speed;
}
}
stop();
speed = 10;
gotoAndStop(dir);
onEnterFrame = function () {
shoot();
if (this.hitTest(_root.player.hit)) {
gotoAndStop ("boom");
}
};
Symbol 25 MovieClip [bolt] Frame 2
stop();
Symbol 25 MovieClip [bolt] Frame 3
stop();
Symbol 25 MovieClip [bolt] Frame 4
stop();
Symbol 25 MovieClip [bolt] Frame 5
stop();
_root.hurtPlayer();
this.removeMovieClip();
Symbol 44 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 45 MovieClip [fireball] Frame 1
speed = 8;
stop();
if (dir == "down") {
gotoAndStop (2);
} else if (dir == "left") {
gotoAndStop (3);
} else if (dir == "right") {
gotoAndStop (4);
}
onEnterFrame = function () {
var _local1 = this;
if (!_root.screenChange) {
if (dir == "up") {
_local1._y = _local1._y - speed;
} else if (dir == "down") {
_local1._y = _local1._y + speed;
} else if (dir == "left") {
_local1._x = _local1._x - speed;
} else if (dir == "right") {
_local1._x = _local1._x + speed;
}
if (_local1.hitTest(_root.player.hit)) {
gotoAndStop ("boom");
}
}
};
Symbol 45 MovieClip [fireball] Frame 2
stop();
Symbol 45 MovieClip [fireball] Frame 3
stop();
Symbol 45 MovieClip [fireball] Frame 4
stop();
Symbol 45 MovieClip [fireball] Frame 5
stop();
_root.hurtPlayer();
Symbol 60 MovieClip [coin2] Frame 1
coinCollect(45);
play();
Symbol 60 MovieClip [coin2] Frame 2
coinCollect(45);
gotoAndPlay (1);
Symbol 60 MovieClip [coin2] Frame 3
stop();
this.removeMovieClip();
Symbol 63 MovieClip [std] Frame 1
stdCollect();
play();
Symbol 63 MovieClip [std] Frame 2
stdCollect();
gotoAndPlay (1);
Symbol 63 MovieClip [std] Frame 3
stop();
this.removeMovieClip();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 55
stop();
Symbol 75 MovieClip Frame 61
_root.play();
Symbol 75 MovieClip Frame 100
_root.play();
Symbol 116 MovieClip Frame 203
stop();
_root.play();
Symbol 127 Button
on (release) {
getURL ("http://www.liquidgeneration.com/content/a55hat.aspx?cid=2019");
}
Symbol 129 Button
on (release) {
getURL ("http://www.liquidgeneration.com/s2f/emailbitch.aspx?/games/escape_scientologyland2.swf", "_blank");
}
Symbol 134 Button
on (release) {
getURL ("http://www.liquidgeneration.com/games/escape_scientologyland2.asp", "_blank");
}
Symbol 144 Button
on (release) {
gotoAndStop ("titlecard");
}
Symbol 159 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 160 MovieClip Frame 270
stop();
Symbol 171 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 189 Button
on (release) {
play();
}
Symbol 342 MovieClip Frame 330
stop();
Symbol 342 MovieClip Frame 405
stop();
Symbol 342 MovieClip Frame 455
stop();
Symbol 342 MovieClip Frame 551
stop();
Symbol 342 MovieClip Frame 589
stop();
Symbol 342 MovieClip Frame 715
stop();
Symbol 342 MovieClip Frame 770
stop();
Symbol 342 MovieClip Frame 1103
_root.gotoAndStop("game");
Symbol 343 MovieClip Frame 1
this._visible = false;
Symbol 345 MovieClip Frame 1
if (!_root.gamePause) {
_parent.brain();
}
Symbol 345 MovieClip Frame 2
if (!_root.gamePause) {
_parent.brain();
}
Symbol 362 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standDown");
Symbol 363 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standRight");
Symbol 364 MovieClip Frame 4
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standUp");
Symbol 365 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 370 MovieClip Frame 1
_parent.moveDown();
Symbol 370 MovieClip Frame 2
_parent.moveDown();
_parent.moveDown();
Symbol 370 MovieClip Frame 3
_parent.moveDown();
_parent.moveDown();
Symbol 370 MovieClip Frame 4
_parent.moveDown();
Symbol 370 MovieClip Frame 8
_parent.attack = false;
_parent.gotoAndStop("standDown");
Symbol 375 MovieClip Frame 1
_parent.moveRight();
Symbol 375 MovieClip Frame 2
_parent.moveRight();
_parent.moveRight();
Symbol 375 MovieClip Frame 3
_parent.moveRight();
_parent.moveRight();
Symbol 375 MovieClip Frame 4
_parent.moveRight();
Symbol 375 MovieClip Frame 8
_parent.attack = false;
_parent.gotoAndStop("standRight");
Symbol 380 MovieClip Frame 1
_parent.moveUp();
Symbol 380 MovieClip Frame 2
_parent.moveUp();
_parent.moveUp();
Symbol 380 MovieClip Frame 3
_parent.moveUp();
_parent.moveUp();
Symbol 380 MovieClip Frame 4
_parent.moveUp();
Symbol 380 MovieClip Frame 8
_parent.attack = false;
_parent.gotoAndStop("standUp");
Symbol 381 MovieClip Frame 1
_parent.moveLeft();
Symbol 381 MovieClip Frame 2
_parent.moveLeft();
_parent.moveLeft();
Symbol 381 MovieClip Frame 3
_parent.moveLeft();
_parent.moveLeft();
Symbol 381 MovieClip Frame 4
_parent.moveLeft();
Symbol 381 MovieClip Frame 8
_parent.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 382 MovieClip Frame 7
_root.death++;
_parent.removeMovieClip();
Symbol 384 MovieClip [mib] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 335) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
if (!_local1.screenChange) {
if (!attack) {
if (dir == "up") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackUp");
} else {
moveUp();
gotoAndStop ("walkUp");
}
} else if (dir == "down") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackDown");
} else {
moveDown();
gotoAndStop ("walkDown");
}
} else if (dir == "left") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackLeft");
} else {
moveLeft();
gotoAndStop ("walkLeft");
}
} else if (dir == "right") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackRight");
} else {
moveRight();
gotoAndStop ("walkRight");
}
}
}
if (health <= 0) {
_local1[(_local1.currentMap + "_enemySpawn") + myNum] = 2;
gotoAndStop ("die");
}
if (attackMode == 1) {
if (distance() <= 125) {
attackMode = 2;
}
if (timer == (20 - timePlus)) {
dir = directions[random(4)];
timer++;
} else if (timer >= 50) {
dir = "none";
if (facing == "up") {
gotoAndStop ("standUp");
} else if (facing == "down") {
gotoAndStop ("standDown");
} else if (facing == "left") {
gotoAndStop ("standLeft");
} else if (facing == "right") {
gotoAndStop ("standright");
}
timer = 0;
timePlus = random(20);
} else {
timer++;
}
} else {
if ((_local2._x + _local1.mapX) > (_local1.player._x + 10)) {
dir = "left";
} else if ((_local2._x + _local1.mapX) < (_local1.player._x - 10)) {
dir = "right";
}
if ((_local2._y + _local1.mapY) > (_local1.player._y + 10)) {
dir = "up";
} else if ((_local2._y + _local1.mapY) < (_local1.player._y - 10)) {
dir = "down";
}
}
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 3;
timePlus = 10;
health = 3;
hurt = false;
attackMode = 1 + random(2);
Symbol 384 MovieClip [mib] Frame 2
attack = false;
hurt = false;
stop();
Symbol 384 MovieClip [mib] Frame 9
hurt = false;
attack = false;
Symbol 384 MovieClip [mib] Frame 17
hurt = false;
attack = false;
Symbol 384 MovieClip [mib] Frame 24
hurt = false;
attack = false;
Symbol 384 MovieClip [mib] Frame 31
hurt = false;
Symbol 384 MovieClip [mib] Frame 39
hurt = false;
Symbol 384 MovieClip [mib] Frame 47
hurt = false;
Symbol 384 MovieClip [mib] Frame 54
hurt = false;
Symbol 384 MovieClip [mib] Frame 119
itemDrop();
Symbol 402 MovieClip Frame 8
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standRight");
Instance of Symbol 343 MovieClip "aim3" in Symbol 409 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 409 MovieClip Frame 50
_parent.gotoAndStop("standDown");
Instance of Symbol 343 MovieClip "aim3" in Symbol 416 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 416 MovieClip Frame 50
_parent.gotoAndStop("standRight");
Instance of Symbol 343 MovieClip "aim3" in Symbol 423 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 423 MovieClip Frame 50
_parent.gotoAndStop("standUp");
Instance of Symbol 343 MovieClip "aim3" in Symbol 424 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 424 MovieClip Frame 50
_parent.gotoAndStop("standLeft");
Symbol 426 MovieClip [robot] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 335) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function aiming() {
var _local1 = _root;
if (aim1.hitTest(_local1.player)) {
gotoAndStop ("attackLeft");
} else if (aim2.hitTest(_local1.player)) {
gotoAndStop ("attackUp");
} else if (aim3.hitTest(_local1.player)) {
gotoAndStop ("attackRight");
} else if (aim4.hitTest(_local1.player)) {
gotoAndStop ("attackDown");
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
if (!_local1.screenChange) {
if (dir == "up") {
moveUp();
gotoAndStop ("walkUp");
} else if (dir == "down") {
moveDown();
gotoAndStop ("walkDown");
} else if (dir == "left") {
moveLeft();
gotoAndStop ("walkLeft");
} else if (dir == "right") {
moveRight();
gotoAndStop ("walkRight");
}
if (health <= 0) {
gotoAndStop ("die");
}
if (attackMode == 1) {
if (distance() <= 125) {
attackMode = 2;
}
if (timer == (20 - timePlus)) {
dir = directions[random(4)];
timer++;
} else if (timer >= 40) {
dir = "none";
if (facing == "up") {
gotoAndStop ("standUp");
} else if (facing == "down") {
gotoAndStop ("standDown");
} else if (facing == "left") {
gotoAndStop ("standLeft");
} else if (facing == "right") {
gotoAndStop ("standright");
}
timer = 0;
timePlus = random(20);
} else {
timer++;
}
} else {
if ((_local2._x + _local1.mapX) > (_local1.player._x + 10)) {
dir = "left";
} else if ((_local2._x + _local1.mapX) < (_local1.player._x - 10)) {
dir = "right";
}
if ((_local2._y + _local1.mapY) > (_local1.player._y + 10)) {
dir = "up";
} else if ((_local2._y + _local1.mapY) < (_local1.player._y - 10)) {
dir = "down";
}
}
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 3;
timePlus = 10;
health = 5;
hurt = false;
attackMode = 1 + random(2);
Instance of Symbol 343 MovieClip "aim4" in Symbol 426 MovieClip [robot] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackDown");
}
}
Instance of Symbol 343 MovieClip "aim3" in Symbol 426 MovieClip [robot] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackRight");
}
}
Instance of Symbol 343 MovieClip "aim2" in Symbol 426 MovieClip [robot] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackUp");
}
}
Instance of Symbol 343 MovieClip "aim1" in Symbol 426 MovieClip [robot] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackLeft");
}
}
Symbol 426 MovieClip [robot] Frame 2
hurt = false;
stop();
Symbol 426 MovieClip [robot] Frame 9
hurt = false;
Symbol 426 MovieClip [robot] Frame 17
hurt = false;
Symbol 426 MovieClip [robot] Frame 24
hurt = false;
Symbol 426 MovieClip [robot] Frame 31
hurt = false;
Symbol 426 MovieClip [robot] Frame 39
hurt = false;
Symbol 426 MovieClip [robot] Frame 47
hurt = false;
Symbol 426 MovieClip [robot] Frame 54
hurt = false;
Symbol 426 MovieClip [robot] Frame 124
itemDrop();
Symbol 440 MovieClip [coin] Frame 1
coinCollect(15);
play();
Symbol 440 MovieClip [coin] Frame 2
coinCollect(15);
gotoAndPlay (1);
Symbol 440 MovieClip [coin] Frame 3
stop();
this.removeMovieClip();
Symbol 444 MovieClip [heart] Frame 1
heartCollect();
play();
Symbol 444 MovieClip [heart] Frame 2
heartCollect();
gotoAndPlay (1);
Symbol 444 MovieClip [heart] Frame 3
stop();
this.removeMovieClip();
Symbol 452 MovieClip [goldKey] Frame 1
keyName = "gold";
slot = 3;
onEnterFrame = function () {
keyCollect();
};
stop();
Symbol 452 MovieClip [goldKey] Frame 2
onEnterFrame = function () {
};
stop();
Symbol 455 MovieClip [malt] Frame 1
maltCollect();
play();
Symbol 455 MovieClip [malt] Frame 2
maltCollect();
gotoAndPlay (1);
Symbol 455 MovieClip [malt] Frame 3
stop();
this.removeMovieClip();
Symbol 458 MovieClip [alimony] Frame 1
alimonyCollect();
play();
Symbol 458 MovieClip [alimony] Frame 2
alimonyCollect();
gotoAndPlay (1);
Symbol 458 MovieClip [alimony] Frame 3
stop();
this.removeMovieClip();
Symbol 461 MovieClip [greenKey] Frame 1
onEnterFrame = function () {
greenCollect();
};
stop();
Symbol 461 MovieClip [greenKey] Frame 2
onEnterFrame = function () {
};
stop();
this.removeMovieClip();
Symbol 463 MovieClip [blueKey] Frame 1
onEnterFrame = function () {
blueCollect();
};
stop();
Symbol 463 MovieClip [blueKey] Frame 2
onEnterFrame = function () {
};
stop();
this.removeMovieClip();
Symbol 464 MovieClip Frame 1
keyName = "purple";
slot = 4;
onEnterFrame = function () {
keyCollect();
};
stop();
Symbol 464 MovieClip Frame 2
onEnterFrame = function () {
};
stop();
Symbol 467 MovieClip Frame 1
keyName = "red";
slot = 2;
onEnterFrame = function () {
keyCollect();
};
stop();
Symbol 467 MovieClip Frame 2
onEnterFrame = function () {
};
stop();
Symbol 470 MovieClip [pills] Frame 1
pillCollect();
play();
Symbol 470 MovieClip [pills] Frame 2
pillCollect();
gotoAndPlay (1);
Symbol 470 MovieClip [pills] Frame 3
stop();
this.removeMovieClip();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 1
onEnterFrame = function () {
};
_root.player._alpha = 100;
_root.blink = false;
stop();
Symbol 475 MovieClip Frame 2
_root.player._alpha = 100;
_root.blink = false;
prevFrame();
Symbol 475 MovieClip Frame 3
onEnterFrame = function () {
_root.blinky();
};
Symbol 507 MovieClip Frame 1
_root.attack = true;
Symbol 507 MovieClip Frame 2
_root.attacker();
Symbol 507 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("standUp");
Symbol 512 MovieClip Frame 1
_root.attack = true;
Symbol 512 MovieClip Frame 2
_root.attacker();
Instance of Symbol 343 MovieClip "hit" in Symbol 512 MovieClip Frame 2
/* no clip actions */
Symbol 512 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("standRight");
Symbol 517 MovieClip Frame 1
_root.attack = true;
Symbol 517 MovieClip Frame 2
_root.attacker();
Symbol 517 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("standDown");
Symbol 520 MovieClip Frame 1
_root.attack = true;
Symbol 520 MovieClip Frame 2
_root.attacker();
Symbol 520 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 524 MovieClip Frame 40
stop();
_root.gameOver();
Symbol 535 MovieClip Frame 23
_parent.gotoAndStop("standDown");
Symbol 537 MovieClip Frame 1
_root.pigDrop();
Symbol 537 MovieClip Frame 5
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standDown");
Symbol 538 MovieClip Frame 1
_root.pigDrop();
Symbol 538 MovieClip Frame 5
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standUp");
Symbol 540 MovieClip Frame 1
_root.pigDrop();
Symbol 540 MovieClip Frame 5
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 541 MovieClip Frame 1
_root.pigDrop();
Symbol 541 MovieClip Frame 5
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standRight");
Symbol 544 MovieClip Frame 62
stop();
Symbol 556 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 561 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 566 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 569 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 574 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 574 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_standLeft");
Symbol 579 MovieClip Frame 1
_root.attack = true;
_root.pillShoot();
Symbol 579 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_standRight");
Symbol 584 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 584 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_standDown");
Symbol 587 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 587 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_standLeft");
Symbol 590 MovieClip Frame 1
_root.facing = "down";
_root.hurt = false;
_root.attack = false;
Symbol 593 MovieClip Frame 1
_root.facing = "up";
_root.hurt = false;
_root.attack = false;
Symbol 596 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 598 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 603 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 608 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 613 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 616 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 621 MovieClip Frame 1
_root.attack = true;
Symbol 621 MovieClip Frame 2
_root.attacker();
Symbol 621 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("y_standUp");
Symbol 626 MovieClip Frame 1
_root.attack = true;
Symbol 626 MovieClip Frame 2
_root.attacker();
Instance of Symbol 343 MovieClip "hit" in Symbol 626 MovieClip Frame 2
/* no clip actions */
Symbol 626 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("y_standRight");
Symbol 631 MovieClip Frame 1
_root.attack = true;
Symbol 631 MovieClip Frame 2
_root.attacker();
Symbol 631 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("y_standDown");
Symbol 634 MovieClip Frame 1
_root.attack = true;
Symbol 634 MovieClip Frame 2
_root.attacker();
Instance of Symbol 343 MovieClip "hit" in Symbol 634 MovieClip Frame 2
/* no clip actions */
Symbol 634 MovieClip Frame 5
_root.attack = false;
_parent.gotoAndStop("y_standLeft");
Symbol 645 MovieClip Frame 23
_parent.gotoAndStop("y_standDown");
Symbol 675 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 675 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_y_standUp");
Symbol 680 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 680 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_y_standRight");
Symbol 685 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 685 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_y_standDown");
Symbol 688 MovieClip Frame 1
_root.pillShoot();
_root.attack = true;
Symbol 688 MovieClip Frame 6
_root.attack = false;
_parent.gotoAndStop("p_y_standLeft");
Symbol 699 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 704 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 709 MovieClip Frame 1
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 1
stop();
_root.facing = "down";
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 10
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 17
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 25
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 34
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 41
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 49
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 57
_root.hurt = false;
_root.attack = false;
Symbol 712 MovieClip [player] Frame 116
Symbol 712 MovieClip [player] Frame 125
Symbol 712 MovieClip [player] Frame 132
Symbol 712 MovieClip [player] Frame 140
Symbol 729 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standDown");
Symbol 730 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standRight");
Symbol 731 MovieClip Frame 4
_root.hurt = false;
_root.attack = false;
_parent.gotoAndStop("standUp");
Symbol 732 MovieClip Frame 4
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 737 MovieClip Frame 1
_parent.moveDown();
Symbol 737 MovieClip Frame 5
_parent.shoot();
Symbol 737 MovieClip Frame 25
_parent.attack = false;
_parent.gotoAndStop("standDown");
Symbol 742 MovieClip Frame 1
_parent.moveRight();
Symbol 742 MovieClip Frame 5
_parent.shoot();
Symbol 742 MovieClip Frame 25
_parent.attack = false;
_parent.gotoAndStop("standRight");
Symbol 745 MovieClip Frame 1
_parent.moveUp();
Symbol 745 MovieClip Frame 5
_parent.shoot();
Symbol 745 MovieClip Frame 25
_parent.attack = false;
_parent.gotoAndStop("standUp");
Symbol 746 MovieClip Frame 1
_parent.moveLeft();
Symbol 746 MovieClip Frame 5
_parent.shoot();
Symbol 746 MovieClip Frame 25
_parent.attack = false;
_parent.gotoAndStop("standLeft");
Symbol 747 MovieClip [mib2] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 335) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
if (!_local1.screenChange) {
if (!attack) {
if (dir == "up") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackUp");
} else {
moveUp();
gotoAndStop ("walkUp");
}
} else if (dir == "down") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackDown");
} else {
moveDown();
gotoAndStop ("walkDown");
}
} else if (dir == "left") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackLeft");
} else {
moveLeft();
gotoAndStop ("walkLeft");
}
} else if (dir == "right") {
if (aim.hitTest(_local1.player)) {
attack = true;
gotoAndStop ("attackRight");
} else {
moveRight();
gotoAndStop ("walkRight");
}
}
}
if (health <= 0) {
_local1[(_local1.currentMap + "_enemySpawn") + myNum] = 2;
gotoAndStop ("die");
}
if (attackMode == 1) {
if (distance() <= 125) {
attackMode = 2;
}
if (timer == (20 - timePlus)) {
dir = directions[random(4)];
timer++;
} else if (timer >= 50) {
dir = "none";
if (facing == "up") {
gotoAndStop ("standUp");
} else if (facing == "down") {
gotoAndStop ("standDown");
} else if (facing == "left") {
gotoAndStop ("standLeft");
} else if (facing == "right") {
gotoAndStop ("standright");
}
timer = 0;
timePlus = random(20);
} else {
timer++;
}
} else {
if ((_local2._x + _local1.mapX) > (_local1.player._x + 10)) {
dir = "left";
} else if ((_local2._x + _local1.mapX) < (_local1.player._x - 10)) {
dir = "right";
}
if ((_local2._y + _local1.mapY) > (_local1.player._y + 10)) {
dir = "up";
} else if ((_local2._y + _local1.mapY) < (_local1.player._y - 10)) {
dir = "down";
}
}
}
}
function shoot() {
var _local1 = _root;
var _local2 = _parent;
var _local3 = this;
_local2.attachMovie("fireball", "fireball" + _local1.shootNum, 800 + _local1.shootNum);
if (facing == "up") {
_local2["fireball" + _local1.shootNum]._y = _local3._y - 50;
_local2["fireball" + _local1.shootNum]._x = _local3._x + 10;
_local2["fireball" + _local1.shootNum].dir = "up";
} else if (facing == "down") {
_local2["fireball" + _local1.shootNum]._y = _local3._y + 10;
_local2["fireball" + _local1.shootNum]._x = _local3._x + 10;
_local2["fireball" + _local1.shootNum].dir = "down";
} else if (facing == "left") {
_local2["fireball" + _local1.shootNum]._y = _local3._y - 10;
_local2["fireball" + _local1.shootNum]._x = _local3._x - 20;
_local2["fireball" + _local1.shootNum].dir = "left";
} else if (facing == "right") {
_local2["fireball" + _local1.shootNum]._y = _local3._y - 10;
_local2["fireball" + _local1.shootNum]._x = _local3._x + 20;
_local2["fireball" + _local1.shootNum].dir = "right";
}
_local1.shootNum = _local1.shootNum + 1;
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 3;
timePlus = 10;
health = 3;
hurt = false;
attackMode = 1 + random(2);
Symbol 747 MovieClip [mib2] Frame 2
attack = false;
hurt = false;
stop();
Symbol 747 MovieClip [mib2] Frame 9
hurt = false;
attack = false;
Symbol 747 MovieClip [mib2] Frame 17
hurt = false;
attack = false;
Symbol 747 MovieClip [mib2] Frame 24
hurt = false;
attack = false;
Symbol 747 MovieClip [mib2] Frame 31
hurt = false;
Symbol 747 MovieClip [mib2] Frame 39
hurt = false;
Symbol 747 MovieClip [mib2] Frame 47
hurt = false;
Symbol 747 MovieClip [mib2] Frame 54
hurt = false;
Symbol 747 MovieClip [mib2] Frame 119
itemDrop();
Symbol 760 MovieClip Frame 8
if (!_root.gamePause) {
_parent.count++;
if (_parent.count >= 6) {
_parent.gotoAndStop("mal");
_parent.count = 0;
}
}
Symbol 764 MovieClip Frame 8
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standRight");
Instance of Symbol 343 MovieClip "aim3" in Symbol 771 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 771 MovieClip Frame 50
_parent.gotoAndStop("standDown");
Instance of Symbol 343 MovieClip "aim3" in Symbol 778 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 778 MovieClip Frame 50
_parent.gotoAndStop("standRight");
Instance of Symbol 343 MovieClip "aim3" in Symbol 785 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 785 MovieClip Frame 50
_parent.gotoAndStop("standUp");
Instance of Symbol 343 MovieClip "aim3" in Symbol 786 MovieClip Frame 3
onClipEvent (enterFrame) {
botAttack();
}
Symbol 786 MovieClip Frame 50
_parent.gotoAndStop("standLeft");
Symbol 789 MovieClip Frame 7
_parent.bolt();
Symbol 789 MovieClip Frame 8
_parent.hurt = false;
_parent.attack = false;
_parent.gotoAndStop("standDown");
Symbol 790 MovieClip [robot2] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 335) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function aiming() {
var _local1 = _root;
if (aim1.hitTest(_local1.player)) {
gotoAndStop ("attackLeft");
} else if (aim2.hitTest(_local1.player)) {
gotoAndStop ("attackUp");
} else if (aim3.hitTest(_local1.player)) {
gotoAndStop ("attackRight");
} else if (aim4.hitTest(_local1.player)) {
gotoAndStop ("attackDown");
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
if ((!_local1.screenChange) && (!_local1.gamePause)) {
if (dir == "up") {
moveUp();
gotoAndStop ("walkUp");
} else if (dir == "down") {
moveDown();
gotoAndStop ("walkDown");
} else if (dir == "left") {
moveLeft();
gotoAndStop ("walkLeft");
} else if (dir == "right") {
moveRight();
gotoAndStop ("walkRight");
}
if (health <= 0) {
gotoAndStop ("die");
}
if (attackMode == 1) {
if (distance() <= 125) {
attackMode = 2;
}
if (timer == (20 - timePlus)) {
dir = directions[random(4)];
timer++;
} else if (timer >= 40) {
dir = "none";
if (facing == "up") {
gotoAndStop ("standUp");
} else if (facing == "down") {
gotoAndStop ("standDown");
} else if (facing == "left") {
gotoAndStop ("standLeft");
} else if (facing == "right") {
gotoAndStop ("standright");
}
timer = 0;
timePlus = random(20);
} else {
timer++;
}
} else {
if ((_local2._x + _local1.mapX) > (_local1.player._x + 10)) {
dir = "left";
} else if ((_local2._x + _local1.mapX) < (_local1.player._x - 10)) {
dir = "right";
}
if ((_local2._y + _local1.mapY) > (_local1.player._y + 10)) {
dir = "up";
} else if ((_local2._y + _local1.mapY) < (_local1.player._y - 10)) {
dir = "down";
}
}
}
}
function bolt() {
var _local1 = _root;
var _local2 = _parent;
var _local3 = this;
i = 1;
while (i <= 4) {
_local2.attachMovie("bolt", "bolt" + _local1.shootNum, 350 + _local1.shootNum);
_local2["bolt" + _local1.shootNum].dir = i;
_local2["bolt" + _local1.shootNum]._x = _local3._x;
_local2["bolt" + _local1.shootNum]._y = _local3._y;
_local1.shootNum++;
i++;
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 3;
timePlus = 10;
health = 5;
hurt = false;
count = 0;
attackMode = 1 + random(2);
Instance of Symbol 343 MovieClip "aim4" in Symbol 790 MovieClip [robot2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackDown");
}
}
Instance of Symbol 343 MovieClip "aim3" in Symbol 790 MovieClip [robot2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackRight");
}
}
Instance of Symbol 343 MovieClip "aim2" in Symbol 790 MovieClip [robot2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackUp");
}
}
Instance of Symbol 343 MovieClip "aim1" in Symbol 790 MovieClip [robot2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (random(15) == 0)) {
_parent.gotoAndStop("attackLeft");
}
}
Symbol 790 MovieClip [robot2] Frame 2
hurt = false;
stop();
Symbol 790 MovieClip [robot2] Frame 9
hurt = false;
Symbol 790 MovieClip [robot2] Frame 17
hurt = false;
Symbol 790 MovieClip [robot2] Frame 24
hurt = false;
Symbol 790 MovieClip [robot2] Frame 31
hurt = false;
Symbol 790 MovieClip [robot2] Frame 39
hurt = false;
Symbol 790 MovieClip [robot2] Frame 47
hurt = false;
Symbol 790 MovieClip [robot2] Frame 54
hurt = false;
Symbol 790 MovieClip [robot2] Frame 123
hurt = true;
Symbol 790 MovieClip [robot2] Frame 130
itemDrop();
Symbol 837 MovieClip Frame 1
this._visible = false;
Symbol 838 MovieClip [mapA1] Frame 1
_root.currentFloor = 2;
Instance of Symbol 837 MovieClip "door" in Symbol 838 MovieClip [mapA1] Frame 1
onClipEvent (enterFrame) {
_root.kirstieDoor();
}
Symbol 861 MovieClip Frame 1
onEnterFrame = function () {
toiletPower();
};
Symbol 864 MovieClip Frame 1
stop();
onEnterFrame = function () {
_root.jennaTalk();
};
Symbol 865 MovieClip [mapA2] Frame 1
_root.currentFloor = 1;
Symbol 875 MovieClip Frame 1
npcLoad();
Instance of Symbol 875 MovieClip in Symbol 876 MovieClip [mapA3] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 897 MovieClip [mapA4] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 897 MovieClip [mapA4] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 910 MovieClip [mapA5] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 915 MovieClip [mapA6] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 915 MovieClip [mapA6] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 922 MovieClip [mapA7] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 922 MovieClip [mapA7] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 930 MovieClip [mapA9] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 930 MovieClip [mapA9] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 933 MovieClip [mapA10] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 942 MovieClip [mapA11] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 942 MovieClip [mapA11] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 945 MovieClip [mapA12] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 945 MovieClip [mapA12] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 945 MovieClip [mapA12] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 950 MovieClip [mapA13] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 950 MovieClip [mapA13] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 953 MovieClip [mapA14] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 953 MovieClip [mapA14] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 2
stop();
Instance of Symbol 956 MovieClip "gate" in Symbol 957 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) && (_root.greenKey)) {
_root.greenKey = false;
_root.gate2 = true;
gotoAndStop (2);
_root.objective = 7;
_parent._parent.gate.gotoAndPlay(1);
}
}
Symbol 972 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 8
stop();
Symbol 973 MovieClip [mapA15] Frame 1
_root.currentFloor = 2;
if (_root.gate2) {
gate.gotoAndStop("open");
hit.gate.gotoAndStop(2);
}
Instance of Symbol 875 MovieClip in Symbol 973 MovieClip [mapA15] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 978 MovieClip [mapA16] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 978 MovieClip [mapA16] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 981 MovieClip [mapA17] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Symbol 1012 MovieClip Frame 1
onEnterFrame = function () {
toiletPower();
};
Instance of Symbol 875 MovieClip in Symbol 1013 MovieClip [mapA18] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1013 MovieClip [mapA18] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1013 MovieClip [mapA18] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1016 MovieClip [mapA19] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1016 MovieClip [mapA19] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1019 MovieClip [mapA20] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1019 MovieClip [mapA20] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1022 MovieClip [mapA21] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1022 MovieClip [mapA21] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1025 MovieClip [mapA22] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1028 MovieClip [mapA23] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1028 MovieClip [mapA23] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 837 MovieClip "door" in Symbol 1035 MovieClip [mapA24] Frame 1
onClipEvent (enterFrame) {
_root.tomDoor();
}
Symbol 1042 MovieClip [mapA25] Frame 1
stop();
if (!_root.introFight) {
gotoAndStop (2);
_root.introFight = true;
}
onEnterFrame = function () {
};
Symbol 1042 MovieClip [mapA25] Frame 2
onEnterFrame = function () {
if (_root.death >= 1) {
gotoAndStop (1);
_root.attachMovie("message_intro1", "message", 801);
}
};
stop();
Instance of Symbol 875 MovieClip in Symbol 1042 MovieClip [mapA25] Frame 2
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Symbol 1045 MovieClip [mapA26] Frame 1
Instance of Symbol 875 MovieClip in Symbol 1045 MovieClip [mapA26] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1045 MovieClip [mapA26] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1048 MovieClip [mapA27] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1048 MovieClip [mapA27] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1051 MovieClip [mapA28] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1051 MovieClip [mapA28] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 956 MovieClip "gate" in Symbol 1053 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) && (_root.blueKey)) {
_root.blueKey = false;
_root.gate1 = true;
gotoAndStop (2);
_parent._parent.gate.gotoAndPlay(1);
}
}
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 8
stop();
Symbol 1057 MovieClip [mapA29] Frame 1
_root.currentFloor = 1;
if (_root.gate1) {
gate.gotoAndStop("open");
hit.gate.gotoAndStop(2);
}
Instance of Symbol 875 MovieClip in Symbol 1057 MovieClip [mapA29] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Symbol 1060 MovieClip [mapA30] Frame 1
_root.currentFloor = 2;
Instance of Symbol 875 MovieClip in Symbol 1063 MovieClip [mapA31] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1063 MovieClip [mapA31] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1066 MovieClip [mapA32] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1066 MovieClip [mapA32] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1069 MovieClip [mapA33] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1072 MovieClip [mapA34] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Symbol 1077 MovieClip [mapA35] Frame 1
_root.currentFloor = 2;
if (!_root.kirstieComplete) {
if (!_root.pigGrab) {
attachMovie("pig", "pig", 511);
pig._x = 375;
pig._y = 225;
}
}
Instance of Symbol 875 MovieClip in Symbol 1077 MovieClip [mapA35] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1080 MovieClip [mapA36] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1080 MovieClip [mapA36] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Symbol 1108 MovieClip Frame 1
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 335) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function brain() {
if ((!_root.screenChange) || (!_root.gamePause)) {
if (!attack) {
if (dir == "up") {
moveUp();
gotoAndStop ("walkUp");
} else if (dir == "down") {
moveDown();
gotoAndStop ("walkDown");
} else if (dir == "left") {
moveLeft();
gotoAndStop ("walkLeft");
} else if (dir == "right") {
moveRight();
gotoAndStop ("walkRight");
}
}
if (timer == (20 - timePlus)) {
dir = directions[random(4)];
timer++;
} else if (timer >= 50) {
dir = "none";
if (facing == "up") {
gotoAndStop ("standUp");
} else if (facing == "down") {
gotoAndStop ("standDown");
} else if (facing == "left") {
gotoAndStop ("standLeft");
} else if (facing == "right") {
gotoAndStop ("standright");
}
timer = 0;
timePlus = random(20);
} else {
timer++;
}
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 2;
timePlus = 10;
health = 3;
hurt = false;
stop();
onEnterFrame = function () {
_root.waiterTalk();
};
Instance of Symbol 875 MovieClip in Symbol 1109 MovieClip [mapA37] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1109 MovieClip [mapA37] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1112 MovieClip [mapA38] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1112 MovieClip [mapA38] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1112 MovieClip [mapA38] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "mib2";
enemy = true;
}
Instance of Symbol 875 MovieClip in Symbol 1116 MovieClip [mapA40] Frame 1
//component parameters
onClipEvent (initialize) {
npc = "robot";
enemy = true;
}
Symbol 1118 MovieClip [pill] Frame 1
onEnterFrame = function () {
pillSpin();
};
Symbol 1118 MovieClip [pill] Frame 80
_root.pillToss = false;
this.removeMovieClip();
Symbol 1201 MovieClip Frame 35
stop();
Instance of Symbol 1201 MovieClip in Symbol 1202 MovieClip Frame 76
onClipEvent (load) {
var dirx = (_root.player._x - (_parent._parent._x + this._x));
var diry = ((_root.player._y - 10) - (_parent._parent._y + this._y));
var angle = Math.atan2(diry, dirx);
this._rotation = (angle * 180) / Math.PI;
}
onClipEvent (enterFrame) {
dreadAttack();
}
Symbol 1202 MovieClip Frame 120
_parent.gotoAndStop("walk");
Symbol 1207 MovieClip Frame 13
onEnterFrame = function () {
_parent.slideLeft();
};
stop();
Symbol 1212 MovieClip Frame 13
onEnterFrame = function () {
_parent.slideRight();
};
stop();
Symbol 1217 MovieClip Frame 6
stop();
onEnterFrame = function () {
_parent.slideUp();
};
Symbol 1219 MovieClip Frame 5
stop();
onEnterFrame = function () {
_parent.slideDown();
};
Symbol 1223 MovieClip Frame 1
_parent.wallHit = true;
_parent.gerbilSpray();
Symbol 1223 MovieClip Frame 90
_parent.gotoAndStop("walk");
Symbol 1224 MovieClip Frame 20
_parent.health = _parent.health - 1;
if (_parent.health <= 0) {
_parent.gotoAndStop("die");
} else {
_parent.gotoAndStop("walk");
}
_parent.gotoAndStop("walk");
Symbol 1251 MovieClip Frame 56
_root.mapA45.gotoAndStop(3);
_root.attachMovie("message_tom2", "message", 801);
stop();
Symbol 1252 MovieClip [tom] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function slideHit() {
if (_parent.hitTest((this._x + _root.mapX) + 10, (this._y + _root.mapY) - 3, true)) {
gotoAndStop ("wallhit");
}
}
function slideLeft() {
var _local1 = this;
if (_local1._x > 100) {
if (!_root[currentMap].hit.hitTest(_local1._x - 10, _local1._y - 3, true)) {
_local1._x = _local1._x - slideSpeed;
} else {
gotoAndStop ("wallhit");
}
} else {
gotoAndStop ("wallhit");
}
}
function slideRight() {
var _local1 = this;
if (_local1._x < 450) {
if (!_root[currentMap].hit.hitTest(_local1._x + 10, _local1._y - 3, true)) {
_local1._x = _local1._x + slideSpeed;
} else {
gotoAndStop ("wallhit");
}
} else {
gotoAndStop ("wallhit");
}
}
function slideUp() {
var _local1 = this;
_local1.swapDepths(_local1._y + _root.mapY);
if (_local1._y > 120) {
if (!_root[currentMap].hit.hitTest(_local1._x, _local1._y - 30, true)) {
_local1._y = _local1._y - slideSpeed;
} else {
gotoAndStop ("wallhit");
}
} else {
gotoAndStop ("wallhit");
}
}
function slideDown() {
var _local1 = this;
_local1.swapDepths(_local1._y + _root.mapY);
if (_local1._y < 336) {
if (!_root[currentMap].hit.hitTest(_local1._x, _local1._y, true)) {
_local1._y = _local1._y + slideSpeed;
} else {
gotoAndStop ("wallhit");
}
} else {
gotoAndStop ("wallhit");
}
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
if (_local1._y > _local2.player._y) {
_local1.swapDepths(501);
} else {
_local1.swapDepths(499);
}
if (_local1._y > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
if (_local1._y > _local2.player._y) {
_local1.swapDepths(501);
} else {
_local1.swapDepths(499);
}
if (_local1._y < 360) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
timer++;
if (timer >= 130) {
if (random(2) == 0) {
var _local3 = directions[random(4)];
if (_local1.player._x > (_local2._x + _local1.mapX)) {
gotoAndStop("slide_" + _local3);
} else {
gotoAndStop("slide_" + _local3);
}
} else {
gotoAndStop ("attack");
}
timer = 0;
}
if (!_local1.screenChange) {
if (!attack) {
if (ydir == "up") {
moveUp();
} else if (ydir == "down") {
moveDown();
}
if (dir == "left") {
moveLeft();
} else if (dir == "right") {
moveRight();
}
}
if (health <= 0) {
_local1[(_local1.currentMap + "_enemySpawn") + myNum] = 2;
gotoAndStop ("die");
}
if (_local2._x > (_local1.player._x + 10)) {
dir = "left";
} else if (_local2._x < (_local1.player._x - 10)) {
dir = "right";
} else {
dir = "none";
}
if (_local2._y > (_local1.player._y + 10)) {
ydir = "up";
} else if (_local2._y < (_local1.player._y - 10)) {
ydir = "down";
} else {
ydir = "none";
}
}
}
function gerbilSpawn() {
var _local1 = _root;
_local1.attachMovie("gerbil", "gerbil", 437);
_local1.gerbil._x = this._x;
_local1.gerbil._y = this._y;
}
function gerbilSpray() {
var _local1 = _root;
var _local2 = this;
i = 1;
while (i <= 6) {
_local1.attachMovie("gerbil", "gerbil" + i, 438 + i);
_local1["gerbil" + i].randomy = true;
_local1["gerbil" + i]._x = _local2._x;
_local1["gerbil" + i]._y = _local2._y;
i++;
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 3;
slideSpeed = 10;
timePlus = 10;
timer = 0;
health = 4;
hurt = false;
wallHit = false;
attackMode = 1 + random(2);
_root.attachMovie("tomhealth", "tomhealth", 917);
onEnterFrame = function () {
var _local1 = this;
if (_local1._y > _root.player._y) {
_local1.swapDepths(501);
} else {
_local1.swapDepths(499);
}
};
Symbol 1252 MovieClip [tom] Frame 2
stop();
wallHit = false;
Instance of Symbol 343 MovieClip "hitty" in Symbol 1252 MovieClip [tom] Frame 2
onClipEvent (enterFrame) {
tomAttack();
}
Symbol 1252 MovieClip [tom] Frame 9
stop();
Symbol 1252 MovieClip [tom] Frame 17
stop();
Instance of Symbol 343 MovieClip "hit" in Symbol 1252 MovieClip [tom] Frame 54
onClipEvent (enterFrame) {
_root.tomHurt();
}
Symbol 1272 MovieClip [gerbil] Frame 1
function follow(targetx, targety) {
if (randomy) {
xmove = -10 + random(20);
ymove = -10 + random(20);
if (xmove > 0) {
this._xscale = -100;
}
} else {
var _local2 = targetx - _x;
var _local1 = targety - _y;
var dist = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var xadd = ((acc * _local2) / dist);
var yadd = ((acc * _local1) / dist);
xmove = xmove + xadd;
ymove = ymove + yadd;
var _local3 = Math.sqrt((xmove * xmove) + (ymove * ymove));
xmove = (speed * xmove) / _local3;
ymove = (speed * ymove) / _local3;
if (xmove > 0) {
this._xscale = -100;
}
}
}
speed = 7;
acc = 2;
xmove = 0;
ymove = 0;
follow(_root.player._x, _root.player._y);
onEnterFrame = function () {
gerbilAttack();
_x = (_x + xmove);
_y = (_y + ymove);
};
stop();
Symbol 1272 MovieClip [gerbil] Frame 3
onEnterFrame = function () {
};
Symbol 1272 MovieClip [gerbil] Frame 13
this.removeMovieClip();
stop();
Symbol 1273 MovieClip Frame 1
stop();
Symbol 1276 MovieClip [tomhealth] Frame 10
onEnterFrame = function () {
bar.gotoAndStop(_root.tom.health + 1);
if (_root.tom.health <= 0) {
this.removeMovieClip();
}
};
stop();
Symbol 1279 MovieClip [martini] Frame 1
martiniCollect();
play();
Symbol 1279 MovieClip [martini] Frame 2
martiniCollect();
gotoAndPlay (1);
Symbol 1279 MovieClip [martini] Frame 3
stop();
this.removeMovieClip();
Symbol 1290 MovieClip [explode] Frame 1
onEnterFrame = function () {
};
pillAttack();
Symbol 1290 MovieClip [explode] Frame 19
this.removeMovieClip();
Symbol 1293 MovieClip Frame 1
onEnterFrame = function () {
_root.pigBlinky();
};
play();
Symbol 1293 MovieClip Frame 60
onEnterFrame = function () {
};
_root.pigBlink = false;
_root[currentMap].pig._alpha = 100;
stop();
Symbol 1315 MovieClip [pig] Frame 1
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if (_local1._x > 0) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
} else {
dir = directions[random(4)];
}
} else {
_local1.removeMovieClip();
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if (_local1._x < 540) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
} else {
dir = directions[random(4)];
}
} else {
_local1.removeMovieClip();
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if (_local1._y > 0) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
} else {
dir = directions[random(4)];
}
} else {
_local1.removeMovieClip();
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if (_local1._y < 360) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
} else {
dir = directions[random(4)];
}
} else {
_local1.removeMovieClip();
}
}
function brain() {
if ((!_root.screenChange) && (!_root.gamePause)) {
if (dir == "up") {
moveUp();
gotoAndStop ("walkUp");
} else if (dir == "down") {
moveDown();
gotoAndStop ("walkDown");
} else if (dir == "left") {
moveLeft();
gotoAndStop ("walkLeft");
} else if (dir == "right") {
moveRight();
gotoAndStop ("walkRight");
}
if (timer >= 50) {
dir = directions[random(4)];
timer = 0;
} else {
timer++;
}
}
}
directions = ["up", "down", "left", "right"];
dir = directions[random(4)];
enemySpeed = 5;
timePlus = 10;
hurt = false;
_root.pigBlink = true;
onEnterFrame = function () {
var _local1 = _root;
if (_local1.pigSay) {
if (!_local1.pigBlink) {
pigCollect();
}
brain();
} else {
_local1.pigTalk();
}
};
Symbol 1315 MovieClip [pig] Frame 2
stop();
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1327 MovieClip Frame 1
_parent.hurt = false;
Symbol 1338 MovieClip Frame 1
_parent.hurt = false;
Symbol 1339 MovieClip Frame 13
_parent.removeMovieClip();
Symbol 1340 MovieClip [gardener] Frame 1
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if (_local1._x > 0) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 20, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 20, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 20, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 20, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
} else {
dir = directions[random(4)];
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if (_local1._x < 540) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 20, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 20, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 20, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 20, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
} else {
dir = directions[random(4)];
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if (_local1._y > 0) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 25, (_local1._y + _local2.mapY) - 20, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 25, (_local1._y + _local2.mapY) - 20, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 30, (_local1._y + _local2.mapY) - 20, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 30, (_local1._y + _local2.mapY) - 20, true)) {
_local1._x = _local1._x + enemySpeed;
} else {
dir = directions[random(4)];
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if (_local1._y < 360) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 25, (_local1._y + _local2.mapY) + 20, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 25, (_local1._y + _local2.mapY) + 20, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 30, (_local1._y + _local2.mapY) + 20, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 30, (_local1._y + _local2.mapY) + 20, true)) {
_local1._x = _local1._x + enemySpeed;
} else {
dir = directions[random(4)];
}
}
}
function brain() {
var _local1 = _root;
if ((!_local1.screenChange) && (!_local1.gamePause)) {
if (dir == "up") {
moveUp();
gotoAndStop ("up");
} else if (dir == "down") {
moveDown();
gotoAndStop ("down");
} else if (dir == "left") {
moveLeft();
gotoAndStop ("left");
} else if (dir == "right") {
moveRight();
gotoAndStop ("right");
}
if (timer >= 50) {
dir = directions[random(4)];
timer = 0;
} else {
timer++;
}
if (health <= 0) {
_local1[(_local1.currentMap + "_enemySpawn") + myNum] = 2;
gotoAndStop ("die");
}
}
}
directions = ["up", "down", "left", "right"];
dir = directions[random(4)];
enemySpeed = 3;
timePlus = 10;
health = 5;
hurt = false;
onEnterFrame = function () {
brain();
if (hurt) {
smoke.gotoAndPlay(1);
}
};
Symbol 1340 MovieClip [gardener] Frame 2
stop();
hurt = false;
Symbol 1340 MovieClip [gardener] Frame 10
hurt = false;
Symbol 1340 MovieClip [gardener] Frame 20
hurt = false;
Symbol 1340 MovieClip [gardener] Frame 30
hurt = false;
Symbol 1340 MovieClip [gardener] Frame 40
onEnterFrame = function () {
};
Symbol 1347 MovieClip Frame 1
_parent.hurt = false;
Symbol 1354 MovieClip Frame 1
_parent.hurt = false;
Symbol 1361 MovieClip Frame 1
_parent.hurt = false;
Symbol 1362 MovieClip [doggie] Frame 1
function distance() {
var _local3 = _root;
var _local2 = _local3.player._x - (this._x + _local3.mapX);
var _local1 = _local3.player._y - (this._y + _local3.mapY);
var dist = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(dist);
}
function moveLeft() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "left";
if ((_local1._x + _local2.mapX) > 50) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveRight() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
facing = "right";
if ((_local1._x + _local2.mapX) < 500) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true))) {
_local1._x = _local1._x + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 3, true)) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 25, true)) {
_local1._y = _local1._y - enemySpeed;
}
}
}
function moveUp() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "up";
if ((_local1._y + _local2.mapY) > 110) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) - 15, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) - 15, true))) {
_local1._y = _local1._y - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) - 15, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function moveDown() {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
_local1.swapDepths(_local1._y + _local2.mapY);
facing = "down";
if ((_local1._y + _local2.mapY) < 360) {
if ((!_local3.hit.hitTest((_local1._x + _local2.mapX) - 10, (_local1._y + _local2.mapY) + 1, true)) && (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 10, (_local1._y + _local2.mapY) + 1, true))) {
_local1._y = _local1._y + enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) - 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x - enemySpeed;
} else if (!_local3.hit.hitTest((_local1._x + _local2.mapX) + 15, (_local1._y + _local2.mapY) + 1, true)) {
_local1._x = _local1._x + enemySpeed;
}
}
}
function brain() {
var _local1 = _root;
var _local2 = this;
if (!_local1.screenChange) {
if (ydir == "up") {
moveUp();
} else if (ydir == "down") {
moveDown();
}
if (dir == "left") {
moveLeft();
} else if (dir == "right") {
moveRight();
}
if (attackMode == 1) {
if (distance() <= 200) {
attackMode = 2;
}
} else {
if ((_local2._x + _local1.mapX) > (_local1.player._x + 10)) {
dir = "left";
gotoAndStop ("left");
} else if ((_local2._x + _local1.mapX) < (_local1.player._x - 10)) {
dir = "right";
gotoAndStop ("right");
} else {
dir = "none";
}
if ((_local2._y + _local1.mapY) > (_local1.player._y + 10)) {
ydir = "up";
} else if ((_local2._y + _local1.mapY) < (_local1.player._y - 10)) {
ydir = "down";
} else {
ydir = "none";
}
if (dir == "none") {
if (ydir == "up") {
gotoAndStop ("up");
} else if (ydir == "down") {
gotoAndStop ("down");
}
}
}
if (health <= 0) {
_local1[(_local1.currentMap + "_enemySpawn") + myNum] = 2;
gotoAndStop ("die");
}
}
}
directions = ["up", "down", "left", "right"];
dir = "none";
enemySpeed = 4;
timePlus = 10;
health = 3;
hurt = false;
attackMode = 1;
onEnterFrame = function () {
brain();
};
stop();
Symbol 1362 MovieClip [doggie] Frame 2
stop();
Symbol 1362 MovieClip [doggie] Frame 40
onEnterFrame = function () {
};
Symbol 1365 MovieClip [dark] Frame 1
onEnterFrame = function () {
this._x = _root.player._x;
this._y = _root.player._y;
};
stop();
Symbol 1365 MovieClip [dark] Frame 2
onEnterFrame = function () {
this._x = _root.player._x;
this._y = _root.player._y;
};
stop();
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1385 MovieClip Frame 2
stop();
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 2
stop();
Symbol 1397 MovieClip Frame 1
stop();
Symbol 1406 MovieClip Frame 1
stop();
Symbol 1413 Button
on (release) {
_root.musicPlay = false;
_root.musicVol = 0;
_root.music.setVolume(_root.musicVol);
gotoAndStop (2);
}
Symbol 1416 Button
on (release) {
_root.musicPlay = true;
_root.musicVol = 25;
_root.music.setVolume(_root.musicVol);
gotoAndStop (1);
}
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1419 MovieClip Frame 1
stop();
Symbol 1419 MovieClip Frame 2
_root.gamePause = true;
_root.menuOpen = true;
Symbol 1419 MovieClip Frame 10
stop();
Symbol 1419 MovieClip Frame 11
_root.gamePause = false;
_root.menuOpen = false;
Symbol 1428 MovieClip Frame 1
if (_root.towel == "green") {
_root.damage = 1;
} else {
_root.damage = 2;
}
_root.player.glow.gotoAndStop(1);
stop();
Symbol 1428 MovieClip Frame 15
if (_root.towel == "green") {
_root.damage = 3;
} else {
_root.damage = 6;
}
_root.player.glow.gotoAndStop(2);
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1438 Button
on (release) {
if (((!_root.talking) && (!_root.gamePause)) && (!_root.menuOpen)) {
menu.play();
_root.menuUpdate();
} else if (_root.menuOpen) {
menu.play();
}
}
Symbol 1444 Button
on (release) {
if ((((!_root.talking) && (!_root.gamePause)) && (!_root.instructOpen)) && (!_root.menuOpen)) {
_root.instructOpen = true;
_root.attachMovie("message_instruct", "instruct", 803);
} else if (_root.instructOpen && (!_root.menuOpen)) {
_root.instructOpen = false;
_root.talking = false;
_root.gamePause = false;
_root.instruct.play();
}
}
Symbol 1449 MovieClip Frame 1
stop();
Symbol 1449 MovieClip Frame 2
stop();
Symbol 1491 Button
on (release) {
play();
}
Symbol 1492 MovieClip [message_instruct] Frame 1
stop();
_root.gamePause = true;
_root.talking = true;
Symbol 1492 MovieClip [message_instruct] Frame 3
stop();
Symbol 1492 MovieClip [message_instruct] Frame 5
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1497 MovieClip [message_doorlocked] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1497 MovieClip [message_doorlocked] Frame 101
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1499 MovieClip [message_intro] Frame 1
_root.gamePause = true;
_root.talking = true;
_root.messageBox = true;
Symbol 1499 MovieClip [message_intro] Frame 2
stop();
Symbol 1499 MovieClip [message_intro] Frame 6
stop();
Symbol 1499 MovieClip [message_intro] Frame 10
_root.gamePause = false;
_root.talking = false;
_root.messageBox = false;
this.removeMovieClip();
Symbol 1508 MovieClip [message_jenna1] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1508 MovieClip [message_jenna1] Frame 571
_root.gamePause = false;
_root.talking = false;
_root.jennaGet = true;
_root.checkpoint = 1;
this.removeMovieClip();
Symbol 1511 MovieClip [message_jenna2] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1511 MovieClip [message_jenna2] Frame 255
_root.gamePause = false;
_root.talking = false;
_root.mapA2.attachMovie("blueKey", "key", 999);
_root.mapA2.key._x = 150 + _root.mapX;
_root.mapA2.key._y = 180 + _root.mapY;
this.removeMovieClip();
Symbol 1520 MovieClip [message_kirstie1] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1520 MovieClip [message_kirstie1] Frame 101
_root[currentMap].kirstie.gotoAndPlay(2);
Symbol 1520 MovieClip [message_kirstie1] Frame 235
_root[currentMap].kirstie.gotoAndStop(1);
Symbol 1520 MovieClip [message_kirstie1] Frame 336
_root[currentMap].kirstie.gotoAndPlay(2);
Symbol 1520 MovieClip [message_kirstie1] Frame 491
_root[currentMap].kirstie.gotoAndStop();
Symbol 1520 MovieClip [message_kirstie1] Frame 584
_root.gamePause = false;
_root.talking = false;
_root.kirstieTalk = true;
_root.checkpoint = 2;
this.removeMovieClip();
Symbol 1524 MovieClip [message_kirstie2] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1524 MovieClip [message_kirstie2] Frame 332
_root.gamePause = false;
_root.talking = false;
_root.mapA0.attachMovie("greenKey", "key", 999);
_root.mapA0.key._x = 360 + _root.mapX;
_root.mapA0.key._y = 240 + _root.mapY;
_root.pigGrab = false;
this.removeMovieClip();
Symbol 1527 MovieClip [message_pig0] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1527 MovieClip [message_pig0] Frame 131
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1530 MovieClip [message_pig1] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1530 MovieClip [message_pig1] Frame 253
_root.gamePause = false;
_root.talking = false;
_root.pigSay = true;
_root.checkpoint = 3;
this.removeMovieClip();
Symbol 1542 MovieClip [message_tom1] Frame 1
_root.gamePause = true;
_root.talking = true;
_root.messageBox = true;
_root.music.stop();
_root.music.attachSound("music_cruiseboss");
_root.music.start(0, 999);
if (_root.musicPlay) {
_root.music.setVolume(_root.musicVol);
} else {
_root.music.setVolume(0);
}
Symbol 1542 MovieClip [message_tom1] Frame 768
_root.gamePause = false;
_root.talking = false;
_root.messageBox = false;
_root.attachMovie("tomhealth", "tomhealth", 917);
_root[_root.currentMap].tom.gotoAndStop("walk");
_root[_root.currentMap].gate.gotoAndPlay(1);
this.removeMovieClip();
Symbol 1544 MovieClip [message_tom2] Frame 1
_root.gamePause = true;
_root.talking = true;
_root.player.gotoAndStop("baby");
Symbol 1544 MovieClip [message_tom2] Frame 220
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1549 MovieClip [message_waiter0] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1549 MovieClip [message_waiter0] Frame 121
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1553 MovieClip [message_waiter1] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1553 MovieClip [message_waiter1] Frame 81
_root.mapA37.attachMovie("martini", "martini", 506);
_root.mapA37.martini._x = 150 + _root.mapX;
_root.mapA37.martini._y = 150 + _root.mapY;
Symbol 1553 MovieClip [message_waiter1] Frame 245
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1555 MovieClip [message_martini] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1555 MovieClip [message_martini] Frame 102
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1574 MovieClip Frame 1
stop();
Instance of Symbol 956 MovieClip "gate" in Symbol 1574 MovieClip Frame 1
/* no clip actions */
Symbol 1574 MovieClip Frame 2
stop();
Symbol 1583 MovieClip Frame 1
stop();
Symbol 1583 MovieClip Frame 5
_parent.hit.gotoAndStop(2);
Symbol 1583 MovieClip Frame 37
stop();
Symbol 1588 MovieClip [mapA45] Frame 1
stop();
Instance of Symbol 837 MovieClip in Symbol 1588 MovieClip [mapA45] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.fade.gotoAndPlay(1);
_parent.play();
}
}
Symbol 1588 MovieClip [mapA45] Frame 2
_root.fade.gotoAndPlay(1);
_root.loadTom();
_root.attachMovie("message_tom1", "message", 801);
stop();
Symbol 1588 MovieClip [mapA45] Frame 3
hit.gate.gotoAndStop(2);
_root.music.stop();
stop();
Instance of Symbol 837 MovieClip in Symbol 1588 MovieClip [mapA45] Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.gotoAndStop("ending");
}
}
Symbol 1601 MovieClip [mapA41] Frame 1
_root.currentFloor = 3;
Symbol 1628 MovieClip Frame 1
stop();
Symbol 1663 MovieClip Frame 1
stop();
onEnterFrame = function () {
_root.kirstieSay();
};
Symbol 1663 MovieClip Frame 2
onEnterFrame = function () {
};
Symbol 1663 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1672 MovieClip [mapA0] Frame 1
_root.currentFloor = 4;
Instance of Symbol 837 MovieClip "door" in Symbol 1672 MovieClip [mapA0] Frame 1
onClipEvent (enterFrame) {
_root.kirstieDoor2();
}
Symbol 1674 MovieClip [message_blueKey] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1674 MovieClip [message_blueKey] Frame 101
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1676 MovieClip [message_greenKey] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1676 MovieClip [message_greenKey] Frame 101
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1678 MovieClip [message_kirstie3] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1678 MovieClip [message_kirstie3] Frame 209
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1680 MovieClip [message_jenna3] Frame 1
_root.gamePause = true;
_root.talking = true;
Symbol 1680 MovieClip [message_jenna3] Frame 95
_root.gamePause = false;
_root.talking = false;
this.removeMovieClip();
Symbol 1688 MovieClip Frame 1
_root.gamePause = true;
Symbol 1688 MovieClip Frame 30
if (!_root.messageBox) {
_root.gamePause = false;
}
stop();
Symbol 1692 MovieClip Frame 1
stop();
_root.music.stop();
_root.music.attachSound("music_maze");
_root.music.start(0, 999);
if (_root.musicPlay) {
_root.music.setVolume(_root.musicVol);
} else {
_root.music.setVolume(0);
}
Symbol 1692 MovieClip Frame 2
stop();
_root.music.stop();
_root.music.attachSound("music_maze");
_root.music.start(0, 999);
if (_root.musicPlay) {
_root.music.setVolume(_root.musicVol);
} else {
_root.music.setVolume(0);
}
Symbol 1692 MovieClip Frame 3
stop();
_root.music.stop();
_root.music.attachSound("music_cruisehome");
_root.music.start(0, 999);
if (_root.musicPlay) {
_root.music.setVolume(_root.musicVol);
} else {
_root.music.setVolume(0);
}
Symbol 1692 MovieClip Frame 4
stop();
Symbol 1693 MovieClip Frame 3
label.gotoAndStop(_root.currentFloor);
Symbol 1693 MovieClip Frame 40
stop();
Symbol 1743 MovieClip Frame 128
stop();
Symbol 1779 Button
on (release) {
_root.gotoAndStop("end");
}
Symbol 1780 MovieClip Frame 174
stop();
Symbol 1780 MovieClip Frame 226
stop();
Symbol 1780 MovieClip Frame 389
stop();
Symbol 1780 MovieClip Frame 658
stop();
Symbol 1780 MovieClip Frame 789
stop();
Symbol 1780 MovieClip Frame 874
stop();
Symbol 1780 MovieClip Frame 1192
stop();
Symbol 1799 MovieClip Frame 1
stop();
Symbol 1799 MovieClip Frame 2
stop();
Symbol 1799 MovieClip Frame 3
stop();
Symbol 1803 MovieClip Frame 1
stop();
Symbol 1803 MovieClip Frame 2
stop();
Symbol 1803 MovieClip Frame 3
stop();
Symbol 1805 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1807 MovieClip Frame 9
stop();