Frame 1
fscommand ("allowscale", false);
ifFrameLoaded (3) {
_root.gotoAndPlay(3);
}
_global.score = random(400);
Instance of Symbol 123 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(55500);
}
Frame 2
gotoAndPlay (1);
Frame 3
var movieSize;
var loadedBytes;
var percentageLoaded;
soundStatus = "ON";
musicStatus = "ON";
qualityStatus = "HIGH";
movieSize = _root.getBytesTotal();
loadedBytes = _root.getBytesLoaded();
percentageLoaded = (loadedBytes / movieSize) * 100;
filesizeText = Math.round(movieSize / 1000) + " KB";
_root.loadingBar._xscale = percentageLoaded;
if (percentageLoaded == 100) {
_root.gotoAndPlay("start");
}
Frame 4
gotoAndPlay (3);
Frame 9
function buildMap(map) {
this.attachMovie("empty", "platformclip", -99);
mapW = map[0].length;
mapH = map.length;
cMap = map;
var i = 0;
while (i < mapH) {
var j = 0;
while (j < mapW) {
if (map[i][j] != 0) {
this.platformclip.attachMovie("tile", (("t_" + i) + "_") + j, ++d);
this.platformclip[(("t_" + i) + "_") + j]._x = (j * tileW) + startX;
this.platformclip[(("t_" + i) + "_") + j]._y = (i * tileH) + startY;
this.platformclip[(("t_" + i) + "_") + j].gotoAndStop(map[i][j] + 1);
}
if (map[i][j] == 1) {
this.platformclip[(("t_" + i) + "_") + j].objects.gotoAndStop(objectStartLocations[_root.rooms._currentframe - 1]);
this.objectInRoom = objectStartLocations[_root.rooms._currentframe - 1];
}
j++;
}
i++;
}
}
function removeOldBaddies() {
removeMovieClip(_root.rooms.baddie1);
removeMovieClip(_root.rooms.baddie2);
removeMovieClip(_root.rooms.baddie3);
removeMovieClip(_root.rooms.baddie4);
removeMovieClip(_root.rooms.baddie5);
}
function playSound(soundname) {
if (soundStatus == "ON") {
_root.soundEffectsClip.gotoAndPlay(soundname);
}
}
function changeRoom(direction) {
if (direction == "right") {
_root.rooms.gotoAndStop(_root.rooms._currentframe + 1);
_root.enterXpos = 5;
_root.enterYpos = _root.hero.ypos;
} else if (direction == "left") {
_root.rooms.gotoAndStop(_root.rooms._currentframe - 1);
_root.enterXpos = 595;
_root.enterYpos = _root.hero.ypos;
} else if (direction == "up") {
_root.rooms.gotoAndStop(_root.rooms._currentframe + 20);
_root.enterXpos = _root.hero.xpos;
_root.enterYpos = 305;
} else if (direction == "down") {
_root.rooms.gotoAndStop(_root.rooms._currentframe - 20);
_root.enterXpos = _root.hero.xpos;
_root.enterYpos = 0;
}
}
function loseLife() {
_root.playSound("die");
_root.hero.lives = _root.hero.lives - 1;
_root.bottompanel.livesClip.gotoAndPlay(_root.hero.lives);
if (_root.hero.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.hero.xspeed = 0;
_root.hero.yspeed = 0;
_root.hero.xpos = enterXpos;
_root.hero.ypos = enterYpos;
_root.hero.characterframe = _root.hero.facingdirection;
_root.rooms.gotoAndStop(_root.rooms._currentframe);
diedTimer = getTimer();
}
stop();
tileW = 32;
tileH = 32;
startX = -5;
startY = 0;
gameTune = new Sound();
gameTune.attachSound("gameTune");
gameOverTune = new Sound();
gameOverTune.attachSound("gameOverTune");
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
removeMovieClip(_root.hero);
removeMovieClip(_root.bottompanel);
_root.screenFinalScore.finalScore = scorePercentage + "%";
gameTune.stop();
if (soundStatus == "ON") {
_root.gameOverTune.start(0, 1);
}
Frame 13
stop();
_root.screenSubmitScore.finalScore = scorePercentage + "%";
Instance of Symbol 207 MovieClip "screenSubmitScore" in Frame 13
onClipEvent (enterFrame) {
_root.screenSubmitScore.userName = _root.screenSubmitScore.userName.toUpperCase();
}
Frame 14
stop();
Instance of Symbol 216 MovieClip "screenComments" in Frame 14
onClipEvent (enterFrame) {
_root.screenComments.textMessage = _root.screenComments.textMessage.toUpperCase();
_root.screenComments.textName = _root.screenComments.textName.toUpperCase();
_root.screenComments.textEmail = _root.screenComments.textEmail.toUpperCase();
}
Frame 15
stop();
Instance of Symbol 227 MovieClip "screenTellFriend" in Frame 15
onClipEvent (enterFrame) {
_root.screenTellFriend.textMessage = _root.screenTellFriend.textMessage.toUpperCase();
_root.screenTellFriend.textName = _root.screenTellFriend.textName.toUpperCase();
_root.screenTellFriend.textFriendName = _root.screenTellFriend.textFriendName.toUpperCase();
_root.screenTellFriend.textFriendEmail = _root.screenTellFriend.textFriendEmail.toUpperCase();
}
Frame 16
stop();
Instance of Symbol 229 MovieClip "screenTellFriend" in Frame 16
onClipEvent (enterFrame) {
_root.screenTellFriend.textMessage = _root.screenTellFriend.textMessage.toUpperCase();
_root.screenTellFriend.textName = _root.screenTellFriend.textName.toUpperCase();
_root.screenTellFriend.textFriendName = _root.screenTellFriend.textFriendName.toUpperCase();
_root.screenTellFriend.textFriendEmail = _root.screenTellFriend.textFriendEmail.toUpperCase();
}
Frame 17
stop();
Frame 18
stop();
removeMovieClip(_root.hero);
removeMovieClip(_root.bottompanel);
_root.screenCompleted.finalScore = scorePercentage + "%";
gameTune.stop();
Instance of Symbol 247 MovieClip "screenCompleted" in Frame 18
onClipEvent (load) {
this.swapDepths(-500);
}
Frame 20
stop();
startingObject = "RADIO";
scorePercentage = 0;
objectStartLocations = new Array(0, 0, "BROWN STICKY THING", 0, "MAGNIFYING GLASS", 0, "PEARL", "A GREASY POT", 0, "BUCKET (EMPTY)", 0, 0, "UMBRELLA", 0, 0, 0, 0, 0, "THE HERRING (ROUGE)", 0, 0, 0, 0, "FISHING KNIFE", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "GOLDEN KEY");
map1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 8, 3, 8, 8, 3, 3, 3], [3, 0, 0, 0, 0, 0, 8, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3], [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3], [3, 8, 8, 8, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3]];
_root.attachMovie("heroclip", "hero", 999999);
_root.attachMovie("bottompanelclip", "bottompanel", 998887);
_root.bottompanel._x = 300;
_root.bottompanel._y = 160;
_root.bottompanel.soundText = soundStatus;
_root.bottompanel.musicText = musicStatus;
_root.bottompanel.qualityText = qualityStatus;
if (musicStatus == "ON") {
_root.gameTune.start(0, 99999);
}
Instance of Symbol 359 MovieClip "rooms" in Frame 20
onClipEvent (load) {
this.swapDepths(-500);
}
Symbol 14 MovieClip Frame 30
gotoAndPlay (1);
Symbol 19 MovieClip Frame 17
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 3
stop();
Symbol 20 MovieClip Frame 4
stop();
Symbol 20 MovieClip Frame 5
stop();
Symbol 20 MovieClip Frame 6
stop();
Symbol 20 MovieClip Frame 7
stop();
Symbol 20 MovieClip Frame 8
stop();
Symbol 20 MovieClip Frame 9
stop();
Symbol 20 MovieClip Frame 10
stop();
Symbol 20 MovieClip Frame 18
stop();
Symbol 22 MovieClip [heroclip] Frame 1
function boundingBox() {
leftEdge = Math.floor((xpos - 8) / tileW);
rightEdge = Math.floor((xpos + 8) / tileW);
topEdge = Math.floor((ypos - 100) / tileH);
bottomEdge = Math.floor((ypos + 20) / tileH);
bottomEdge2 = Math.floor((ypos + 2) / tileH);
leftEdgePixels = Math.floor(xpos - 23);
rightEdgePixels = Math.floor(xpos + 23);
topEdgePixels = Math.floor(ypos - 75);
bottomEdgePixels = Math.floor(ypos + 20);
}
function control() {
if ((_root.rooms._currentframe != 1) && (getTimer() < (_root.diedTimer + 2000))) {
if (getTimer() > (blinkTimer + 200)) {
this._visible = false;
blinkTimer = getTimer();
} else {
this._visible = true;
}
invincible = true;
} else {
this._visible = true;
invincible = false;
}
cMap = _root.currentmap;
if (Key.isDown(38)) {
if (onRope) {
letGoTimer = getTimer();
yspeed = -8;
onRope = false;
onGround = false;
gravity = 0.85;
}
if (onGround && (getTimer() > (justLandedTimer + 175))) {
yspeed = -jumpspeed;
characterframe = "jump" + facingDirection;
}
}
if (Key.isDown(37)) {
facingDirection = "left";
xspeed = -speed;
}
if (Key.isDown(39)) {
facingDirection = "right";
xspeed = speed;
}
yspeed = yspeed + gravity;
if (onGround) {
xspeed = xspeed * groundFriction;
}
if (!onGround) {
xspeed = xspeed * airFriction;
}
ypos = ypos + yspeed;
xpos = xpos + xspeed;
boundingBox();
if (cMap[bottomEdge2][leftEdge] > 2) {
xpos = xpos - xspeed;
xspeed = 0;
boundingBox();
}
if (cMap[bottomEdge2][rightEdge] > 2) {
xpos = xpos - xspeed;
xspeed = 0;
boundingBox();
}
if ((cMap[bottomEdge][leftEdge] > 2) || (cMap[bottomEdge][rightEdge] > 2)) {
var ground = ((bottomEdge * tileH) - (tileH / 2));
ypos = ground + gravity;
yspeed = 0;
if (!onGround) {
justLandedTimer = getTimer();
}
onGround = true;
characterframe = "walk" + facingDirection;
} else {
onGround = false;
characterframe = "jump" + facingDirection;
}
if (((xspeed <= 2) && (xspeed >= -2)) && (onGround)) {
characterframe = facingDirection;
}
if (onRope) {
gravity = 0;
characterframe = "hang" + facingdirection;
}
if ((Key.isDown(32) && (onGround)) && (getTimer() > (pickupTimer + 300))) {
if ((cMap[bottomEdge - 1][leftEdge] == "1") || (cMap[bottomEdge - 1][leftEdge + 1] == "1")) {
_root.platformclip[(("t_" + (bottomEdge - 1)) + "_") + leftEdge].objects.gotoAndStop(_root.objectInHand);
_root.platformclip[(("t_" + (bottomEdge - 1)) + "_") + (leftEdge + 1)].objects.gotoAndStop(_root.objectInHand);
tempObjectHolder = _root.objectStartLocations[_root.rooms._currentFrame - 1];
_root.objectStartLocations[_root.rooms._currentFrame - 1] = _root.objectInHand;
_root.bottompanel.objectHeld.gotoAndStop(tempObjectHolder);
_root.playSound("swap");
}
pickupTimer = getTimer();
if ((((!teleporteractive) && (_root.rooms._currentFrame == 17)) && (_root.objectInHand == "PIECE OF EIGHT")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
teleporteractive = true;
_root.rooms.teleporter.gotoAndStop("on");
_root.scorePercentage = _root.scorePercentage + 6;
_root.playSound("doneTask");
teleportDelayTimer = getTimer();
}
if (((teleporteractive && (_root.rooms._currentFrame == 27)) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) && (getTimer() > (teleportDelayTimer + 500))) {
_root.playSound("moveRock");
_root.rooms.gotoAndStop(17);
_root.enterXpos = 500;
_root.hero.xpos = 500;
_root.enterYpos = 100;
_root.hero.ypos = 100;
teleportDelayTimer = getTimer();
}
if (((teleporteractive && (_root.rooms._currentFrame == 17)) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) && (getTimer() > (teleportDelayTimer + 500))) {
_root.playSound("moveRock");
_root.rooms.gotoAndStop(27);
_root.enterXpos = 100;
_root.hero.xpos = 100;
_root.enterYpos = 100;
_root.hero.ypos = 100;
teleportDelayTimer = getTimer();
}
if ((((!task1complete) && (_root.rooms._currentFrame == 4)) && (_root.objectInHand == "TORCH (UNLIT)")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task1complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.bottompanel.objectHeld.gotoAndStop("TORCH (LIT)");
_root.playSound("doneTask");
_root.rooms.flame._visible = false;
}
if ((((!task2complete) && (_root.rooms._currentFrame == 12)) && (_root.objectInHand == "BUCKET (EMPTY)")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task2complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.bottompanel.objectHeld.gotoAndStop("BUCKET (FULL)");
_root.playSound("doneTask");
}
if ((((!task3complete) && (_root.rooms._currentFrame == 6)) && (_root.objectInHand == "BROWN STICKY THING")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task3complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.bottompanel.objectHeld.gotoAndStop("CROCS TOOTH");
_root.rooms.crocodile.gotoAndStop("stick");
_root.playSound("doneTask");
_root.map6[7][10] = 0;
_root.map6[8][10] = 0;
_root.map6[9][10] = 0;
_root.currentmap = _root.map6;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
}
if ((((!task4complete) && (_root.rooms._currentFrame == 28)) && (_root.objectInHand == "CROCS TOOTH")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task4complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.bottompanel.objectHeld.gotoAndStop("TORCH (UNLIT)");
_root.rooms.chief.gotoAndStop("tooth");
_root.playSound("doneTask");
}
if ((((!task5complete) && (_root.rooms._currentFrame == 9)) && (_root.objectInHand == "MAGNIFYING GLASS")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task5complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("doneTask");
_root.rooms.sunbeam.gotoAndPlay("activate");
_root.rooms.stonedoor.gotoAndPlay("moveup");
_root.map9[7][16] = 0;
_root.map9[8][16] = 0;
_root.map9[9][16] = 0;
_root.currentmap = _root.map9;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
}
if ((((!task6complete) && (_root.rooms._currentFrame == 10)) && (_root.objectInHand == "A GREASY POT")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task6complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("doneTask");
_root.rooms.gotoAndStop(_root.rooms._currentframe + 1);
_root.map10[1][18] = 0;
_root.map10[2][18] = 0;
_root.map10[3][18] = 0;
_root.currentmap = _root.map10;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
}
if ((((!task7complete) && (_root.rooms._currentFrame == 15)) && (_root.objectInHand == "BUCKET (FULL)")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task7complete = true;
task15complete = true;
_root.scorePercentage = _root.scorePercentage + 7;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("doneTask");
_root.rooms.fire._visible = false;
_root.map15[4][8] = 0;
_root.map15[5][8] = 0;
_root.map15[6][8] = 0;
_root.currentmap = _root.map15;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
}
if (((!task8complete) && (_root.rooms._currentFrame == 16)) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task8complete = true;
_root.scorePercentage = _root.scorePercentage + 5;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("button");
_root.playSound("moveRock");
_root.rooms.rockswitch.gotoAndStop("on");
_root.map16[8][5] = 0;
_root.map16[8][6] = 0;
_root.map16[9][3] = 0;
_root.map16[9][4] = 0;
_root.currentmap = _root.map16;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
}
if ((((!task9complete) && (_root.rooms._currentFrame == 18)) && (_root.objectInHand == "GOLDEN KEY")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task9complete = true;
_root.scorePercentage = _root.scorePercentage + 6;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.bottompanel.objectHeld.gotoAndStop("PIECE OF EIGHT");
_root.playSound("doneTask");
_root.rooms.chest.gotoAndStop("open");
}
if ((((!task19complete) && (_root.rooms._currentFrame == 7)) && (_root.objectInHand == "FISHING KNIFE")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task19complete = true;
_root.scorePercentage = _root.scorePercentage + 5;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("doneTask");
_root.rooms.clam.gotoAndStop("extralife");
_root.hero.lives = _root.hero.lives + 1;
_root.bottompanel.livesClip.gotoAndPlay(_root.hero.lives + 1);
}
if ((((!task20complete) && (_root.rooms._currentFrame == 20)) && (_root.objectInHand == "RADIO")) && ((cMap[bottomEdge - 1][leftEdge] == "2") || (cMap[bottomEdge - 1][leftEdge + 1] == "2"))) {
task20complete = true;
_root.scorePercentage = _root.scorePercentage + 6;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
_root.playSound("doneTask");
_root.rooms.ship.gotoAndPlay("moveship");
_root.rooms.shipreflect.gotoAndPlay("moveship");
}
}
if ((_y > 500) && (_root.rooms._currentframe <= 20)) {
_root.loseLife();
}
if (xpos >= 600) {
_root.changeRoom("right");
xpos = 5;
} else if (xpos <= 0) {
_root.changeRoom("left");
xpos = 595;
}
if (ypos <= 0) {
_root.changeRoom("up");
ypos = 305;
}
if (ypos >= 550) {
_root.changeRoom("down");
ypos = 0;
}
if (onRope) {
characterframe = "hang" + facingDirection;
}
_y = (Math.round(ypos) + _root.startY);
_x = (Math.round(xpos) + _root.startX);
_root.hero.character.gotoAndStop(characterframe);
}
swapDepths(0);
xpos = 300;
ypos = 310;
characterframe = "right";
lives = 4;
_root.bottompanel.livesClip.gotoAndPlay(lives);
invincible = false;
onRope = false;
speed = 8;
jumpspeed = 10;
gravity = 0.85;
groundFriction = 0.7;
airFriction = 0.7;
tileW = _root.tileW;
tileH = _root.tileH;
Instance of Symbol 21 MovieClip [empty] in Symbol 22 MovieClip [heroclip] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 53 MovieClip [objects] Frame 1
stop();
Symbol 53 MovieClip [objects] Frame 2
stop();
Symbol 53 MovieClip [objects] Frame 3
stop();
Symbol 53 MovieClip [objects] Frame 4
stop();
Symbol 53 MovieClip [objects] Frame 5
stop();
Symbol 53 MovieClip [objects] Frame 6
stop();
Symbol 53 MovieClip [objects] Frame 7
stop();
Symbol 53 MovieClip [objects] Frame 8
stop();
Symbol 53 MovieClip [objects] Frame 9
stop();
Symbol 53 MovieClip [objects] Frame 10
stop();
Symbol 53 MovieClip [objects] Frame 11
stop();
Symbol 53 MovieClip [objects] Frame 12
stop();
Symbol 53 MovieClip [objects] Frame 13
stop();
Symbol 53 MovieClip [objects] Frame 14
stop();
Symbol 53 MovieClip [objects] Frame 15
stop();
Symbol 53 MovieClip [objects] Frame 16
stop();
Symbol 53 MovieClip [objects] Frame 20
gotoAndStop (1);
Symbol 68 MovieClip [baddieupdown] Frame 1
function boundingBox() {
leftEdgePixels = Math.floor(xpos - 32);
rightEdgePixels = Math.floor(xpos + 16);
topEdgePixels = Math.floor(ypos - 55);
bottomEdgePixels = Math.floor(ypos + 0);
}
function control(dir) {
if (moveDirection == "left") {
xpos = xpos - speed;
}
if (moveDirection == "right") {
xpos = xpos + speed;
}
if (moveDirection == "up") {
ypos = ypos - speed;
}
if (moveDirection == "down") {
ypos = ypos + speed;
}
boundingBox();
if ((moveDirection == "left") && (xpos < (startX - moveDistance))) {
moveDirection = "right";
}
if ((moveDirection == "right") && (xpos > (startX + moveDistance))) {
moveDirection = "left";
}
if ((moveDirection == "up") && (ypos < (startY - moveDistance))) {
moveDirection = "down";
}
if ((moveDirection == "down") && (ypos > (startY + moveDistance))) {
moveDirection = "up";
}
if (((((!_root.hero.invincible) && (rightEdgePixels > _root.hero.leftEdgePixels)) && (leftEdgePixels < _root.hero.rightEdgePixels)) && (bottomEdgePixels > _root.hero.topEdgePixels)) && (topEdgePixels < _root.hero.bottomEdgePixels)) {
_root.loseLife();
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
Instance of Symbol 21 MovieClip [empty] in Symbol 68 MovieClip [baddieupdown] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 74 MovieClip [baddiewalker] Frame 1
function boundingBox() {
leftEdgePixels = Math.floor(xpos - 24);
rightEdgePixels = Math.floor(xpos + 24);
topEdgePixels = Math.floor(ypos - 0);
bottomEdgePixels = Math.floor(ypos + 18);
}
function control(dir) {
if (moveDirection == "left") {
xpos = xpos - speed;
}
if (moveDirection == "right") {
xpos = xpos + speed;
}
if (moveDirection == "up") {
ypos = ypos - speed;
}
if (moveDirection == "down") {
ypos = ypos + speed;
}
boundingBox();
if ((moveDirection == "left") && (xpos < (startX - moveDistance))) {
moveDirection = "right";
}
if ((moveDirection == "right") && (xpos > (startX + moveDistance))) {
moveDirection = "left";
}
if ((moveDirection == "up") && (ypos < (startY - moveDistance))) {
moveDirection = "down";
}
if ((moveDirection == "down") && (ypos > (startY + moveDistance))) {
moveDirection = "up";
}
if (((((!_root.hero.invincible) && (rightEdgePixels > _root.hero.leftEdgePixels)) && (leftEdgePixels < _root.hero.rightEdgePixels)) && (bottomEdgePixels > _root.hero.topEdgePixels)) && (topEdgePixels < _root.hero.bottomEdgePixels)) {
_root.loseLife();
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
Instance of Symbol 21 MovieClip [empty] in Symbol 74 MovieClip [baddiewalker] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 81 MovieClip [baddiebouncer] Frame 1
function boundingBox() {
leftEdgePixels = Math.floor(xpos - 15);
rightEdgePixels = Math.floor(xpos + 15);
topEdgePixels = Math.floor(ypos - 10);
bottomEdgePixels = Math.floor(ypos + 10);
}
function control(dir) {
xpos = xpos + xspeed;
ypos = ypos + yspeed;
boundingBox();
if ((ypos >= 320) || (ypos <= 10)) {
yspeed = -yspeed;
}
if ((xpos >= 590) || (xpos <= 20)) {
xspeed = -xspeed;
}
if (((((!_root.hero.invincible) && (rightEdgePixels > _root.hero.leftEdgePixels)) && (leftEdgePixels < _root.hero.rightEdgePixels)) && (bottomEdgePixels > _root.hero.topEdgePixels)) && (topEdgePixels < _root.hero.bottomEdgePixels)) {
_root.loseLife();
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
tileW = _root.tileW;
tileH = _root.tileH;
Instance of Symbol 21 MovieClip [empty] in Symbol 81 MovieClip [baddiebouncer] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 91 MovieClip [baddiefallernohit] Frame 1
function boundingBox() {
leftEdge = Math.floor((xpos - 25) / tileW);
rightEdge = Math.floor((xpos + 25) / tileW);
bottomEdge = Math.floor((ypos + 20) / tileH);
leftEdgePixels = Math.floor(xpos - 13);
rightEdgePixels = Math.floor(xpos + 13);
topEdgePixels = Math.floor(ypos - 17);
bottomEdgePixels = Math.floor(ypos + 17);
}
function control(dir) {
yspeed = speed;
ypos = ypos + yspeed;
boundingBox();
if ((cMap[bottomEdge][leftEdge] > 0) || (cMap[bottomEdge][rightEdge] > 0)) {
_root.playSound("pop");
ypos = startY;
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
tileW = _root.tileW;
tileH = _root.tileH;
cMap = _root.currentmap;
imageClip.gotoAndStop(fallerImage);
Instance of Symbol 21 MovieClip [empty] in Symbol 91 MovieClip [baddiefallernohit] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 92 MovieClip [baddiefaller] Frame 1
function boundingBox() {
leftEdge = Math.floor((xpos - 25) / tileW);
rightEdge = Math.floor((xpos + 25) / tileW);
bottomEdge = Math.floor((ypos + 20) / tileH);
leftEdgePixels = Math.floor(xpos - 13);
rightEdgePixels = Math.floor(xpos + 13);
topEdgePixels = Math.floor(ypos - 17);
bottomEdgePixels = Math.floor(ypos + 17);
}
function control(dir) {
yspeed = speed;
ypos = ypos + yspeed;
boundingBox();
if ((cMap[bottomEdge][leftEdge] > 0) || (cMap[bottomEdge][rightEdge] > 0)) {
_root.playSound("pop");
ypos = startY;
}
if (((((!_root.hero.invincible) && (rightEdgePixels > _root.hero.leftEdgePixels)) && (leftEdgePixels < _root.hero.rightEdgePixels)) && (bottomEdgePixels > _root.hero.topEdgePixels)) && (topEdgePixels < _root.hero.bottomEdgePixels)) {
_root.loseLife();
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
tileW = _root.tileW;
tileH = _root.tileH;
cMap = _root.currentmap;
imageClip.gotoAndStop(fallerImage);
Instance of Symbol 21 MovieClip [empty] in Symbol 92 MovieClip [baddiefaller] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 94 MovieClip [baddieguy] Frame 1
function updateEdges() {
downY = Math.floor((ypos + 16) / tileH);
upY = Math.floor((ypos - 16) / tileH);
leftX = Math.floor((xpos - 6) / tileW);
rightX = Math.floor((xpos + 6) / tileW);
downY2 = Math.floor((ypos + 2) / tileH);
upY2 = Math.floor((ypos - 6) / tileH);
}
function control(dir) {
cMap = _root.currentmap;
xspeed = -speed;
yspeed = yspeed + gravity;
if (onGround) {
xspeed = xspeed * groundFriction;
}
if (!onGround) {
xspeed = xspeed * airFriction;
}
ypos = ypos + yspeed;
xpos = xpos + xspeed;
updateEdges();
if ((cMap[downY2][leftX] > 0) || (cMap[upY2][leftX] > 0)) {
xspeed = -speed;
updateEdges();
}
if ((cMap[downY2][rightX] > 0) || (cMap[upY2][rightX] > 0)) {
xpos = startX;
ypos = startY;
xpos = xpos - xspeed;
updateEdges();
}
if ((cMap[downY][leftX] > 0) || (cMap[downY][rightX] > 0)) {
var ground = ((downY * tileH) - (tileH / 2));
ypos = ground + gravity;
yspeed = 0;
}
if ((((xpos > (_root.hero.xpos - tileW)) && (xpos < (_root.hero.xpos + tileW))) && (ypos < (_root.hero.ypos + tileH))) && (ypos > (_root.hero.ypos - tileH))) {
characterframe = "die";
_root.gotoAndStop("die");
_root.bottompanel.lives = "ENEMY 1";
}
_y = Math.round(ypos);
_x = Math.round(xpos);
}
xpos = startX;
ypos = startY;
speed = 4;
jumpspeed = 12;
cMap = _root.cMap;
tileW = _root.tileW;
tileH = _root.tileH;
gravity = 0.8;
groundFriction = 0.7;
airFriction = 0.7;
Instance of Symbol 21 MovieClip [empty] in Symbol 94 MovieClip [baddieguy] Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 98 MovieClip Frame 1
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "NOTHING");
Symbol 98 MovieClip Frame 2
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "RADIO");
Symbol 98 MovieClip Frame 3
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "BUCKET (EMPTY)");
Symbol 98 MovieClip Frame 4
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "BUCKET (FULL)");
Symbol 98 MovieClip Frame 5
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "MAGNIFYING GLASS");
Symbol 98 MovieClip Frame 6
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "TORCH (UNLIT)");
Symbol 98 MovieClip Frame 7
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "TORCH (LIT)");
Symbol 98 MovieClip Frame 8
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "BROWN STICKY THING");
Symbol 98 MovieClip Frame 9
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "CROCS TOOTH");
Symbol 98 MovieClip Frame 10
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "THE HERRING (ROUGE)");
Symbol 98 MovieClip Frame 11
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "A GREASY POT");
Symbol 98 MovieClip Frame 12
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "UMBRELLA");
Symbol 98 MovieClip Frame 13
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "PEARL");
Symbol 98 MovieClip Frame 14
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "FISHING KNIFE");
Symbol 98 MovieClip Frame 15
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "PIECE OF EIGHT");
Symbol 98 MovieClip Frame 16
stop();
_root.bottompanel.objectHeldText = (_root.objectInHand = "GOLDEN KEY");
Symbol 98 MovieClip Frame 23
gotoAndStop (1);
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Symbol 103 MovieClip Frame 5
stop();
Symbol 112 Button
on (release) {
if (_root.bottompanel.soundText == "ON") {
_root.soundStatus = "OFF";
}
if (_root.bottompanel.soundText == "OFF") {
_root.soundStatus = "ON";
}
_root.bottompanel.soundText = _root.soundStatus;
}
Symbol 115 Button
on (release) {
if (_root.bottompanel.musicText == "ON") {
_root.gameTune.stop();
_root.musicStatus = "OFF";
}
if (_root.bottompanel.musicText == "OFF") {
_root.gameTune.start(0, 99999);
_root.musicStatus = "ON";
}
_root.bottompanel.musicText = _root.musicStatus;
}
Symbol 118 Button
on (release) {
if (_root.bottompanel.qualityText == "LOW") {
_quality = "MEDIUM";
}
if (_root.bottompanel.qualityText == "MEDIUM") {
_quality = "HIGH";
}
if (_root.bottompanel.qualityText == "HIGH") {
_quality = "LOW";
}
_root.bottompanel.qualityText = _quality;
_root.qualityStatus = _root.bottompanel.qualityText;
}
Instance of Symbol 98 MovieClip "objectHeld" in Symbol 119 MovieClip [bottompanelclip] Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.startingObject);
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 13
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 20
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 25
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 29
this.gotoAndStop(1);
Symbol 131 MovieClip Frame 34
this.gotoAndStop(1);
Symbol 147 MovieClip Frame 7
stop();
Symbol 148 Button
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("highscores");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 151 MovieClip Frame 7
stop();
Symbol 152 Button
on (keyPress "<Space>") {
_root.gotoAndStop("game");
}
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("game");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 155 MovieClip Frame 7
stop();
Symbol 156 Button
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("instructions");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 159 MovieClip Frame 7
stop();
Symbol 160 Button
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("contact");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 163 MovieClip Frame 7
stop();
Symbol 164 Button
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("tellfriend");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 167 MovieClip Frame 7
stop();
Symbol 168 Button
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("credits");
}
on (rollOver) {
if (getTimer() > (buttonTimer + 75)) {
_root.playSound("button");
}
buttonTimer = getTimer();
}
Symbol 176 Button
on (press) {
pressing = true;
movement = -1;
}
on (release) {
pressing = false;
}
Symbol 177 Button
on (press) {
pressing = true;
movement = 1;
}
on (release) {
pressing = false;
}
Instance of Symbol 178 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.pressing == true) {
_parent.scrollWindow.scroll = _parent.scrollWindow.scroll + this.movement;
}
}
Symbol 181 Button
on (keyPress "<Space>") {
_root.playSound("buttonPress");
_root.gotoAndStop("game");
}
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("game");
}
Symbol 182 MovieClip Frame 1
scoreWindow.scrollWindow = "<b><font color='#990000' size='14'>CONTROLS</font>: LEFT, RIGHT AND UP TO JUMP. SPACE SWAPS THE ITEM YOU'RE CARRYING FOR ONE ON THE GROUND OR ACTIVATES AN ITEM.<br><br>FOR EXAMPLE TO CHOP DOWN A TREE, FIND AN AXE TAKE IT TO THE TREE AND PRESS SPACE.</b>";
scoreWindow.scrollWindow = scoreWindow.scrollWindow + "<b><br><br><font color='#990000' size='14'>STORY</font>: DICK HAS CRASHED HIS PLANE INTO THE SEA, LUCKILY HE MANAGED TO SWIM TO A NEARBY ISLAND. YOU MUST FIND A WAY TO GET HELP AND ESCAPE FROM PARADISE.<br><br></b>";
Symbol 185 MovieClip Frame 7
stop();
Symbol 186 Button
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("start");
}
Symbol 189 MovieClip Frame 1
function loadXML() {
myXML = new XML();
myXML.onLoad = displayXML;
myXML.load("http://www.paulspencer.net/flash/highscores/loadscores.asp");
}
function displayXML() {
var doc = myXML.firstChild;
var temp = [];
temp = doc.childNodes;
scores = [];
list_field.text = "";
var i = 0;
while (i < temp.length) {
var XMLobject = temp[i];
var name = XMLobject.firstChild.firstChild.nodeValue;
var score = XMLobject.firstChild.nextSibling.firstChild.nodeValue;
scores.push({name:name, score:score});
i++;
}
var content = "";
var i = 0;
while (i < scores.length) {
var name = scores[i].name;
var score = scores[i].score.toString();
var spaces = ((25 - name.length) - score.length);
if (i <= 8) {
space = " ";
} else {
space = "";
}
content = content + ((((" " + (i + 1)) + space) + " ") + name.toUpperCase());
var j = 0;
while (j < spaces) {
content = content + " ";
j++;
}
content = content + ((score + "%") + newline);
i++;
}
scoreWindow.scrollWindow = ("<b>" + content) + "<b>";
loadingClip._visible = false;
}
loadXML();
stop();
XML.prototype.ignoreWhite = true;
Symbol 194 MovieClip Frame 7
stop();
Symbol 195 Button
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("submitscore");
}
Symbol 204 MovieClip Frame 7
stop();
Symbol 205 Button
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
submitScore();
this.gotoAndPlay("sending");
}
Symbol 207 MovieClip Frame 1
function submitScore() {
var doc = ((textName + "*") + _root.scorePercentage);
scoreDoc = new XML(doc);
scoreResponse = new XML();
scoreResponse.onLoad = ResponseReceived;
scoreDoc.sendAndLoad("http://www.paulspencer.net/flash/highscores/addscore.asp", scoreResponse);
}
function ResponseReceived() {
_root.gotoAndPlay("highscores");
}
stop();
Symbol 207 MovieClip Frame 2
stop();
Symbol 215 Button
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
sendComments();
this.gotoAndPlay("sending");
}
Symbol 216 MovieClip Frame 1
function sendComments() {
var doc = ((((textName + "*") + textMessage) + "*contactform*") + textFriendEmail);
scoreDoc = new XML(doc);
scoreResponse = new XML();
scoreResponse.onLoad = ResponseReceived;
scoreDoc.sendAndLoad("http://www.paulspencer.net/flash/highscores/sendform.asp", scoreResponse);
}
function ResponseReceived() {
_root.gotoAndPlay("sent");
}
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 226 Button
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
tellfriend();
this.gotoAndPlay("sending");
}
Symbol 227 MovieClip Frame 1
function tellFriend() {
var doc = ((((((textName + "*") + textMessage) + "*") + textFriendName) + "*") + textFriendEmail);
scoreDoc = new XML(doc);
scoreResponse = new XML();
scoreResponse.onLoad = ResponseReceived;
scoreDoc.sendAndLoad("http://www.paulspencer.net/flash/highscores/sendform.asp", scoreResponse);
}
function ResponseReceived() {
_root.gotoAndPlay("sent");
}
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 1
scoreWindow.scrollWindow.html = true;
scoreWindow.scrollWindow = "<b>DESIGN, PROGRAMMING AND GRAPHICS: <font color='#990000' size='14'><a href='mailto:dickquick@paulspencer.net'>PAUL SPENCER</a></font><br><br>MUSIC COURTESY OF <font color='#990000' size='14'><a href='http://www.powerfx.com'>POWERFX</a></font></b>";
scoreWindow.scrollWindow = scoreWindow.scrollWindow + "<b><br><br>(C) COPYRIGHT 2003</b>";
Symbol 246 Button
on (keyPress "<Space>") {
_root.playSound("buttonPress");
_root.gotoAndStop("start");
}
on (rollOver) {
_root.playSound("button");
}
on (release) {
_root.playSound("buttonPress");
_root.gotoAndStop("start");
}
Symbol 280 MovieClip Frame 1
function control() {
targetPositionX = (this._x + this.rope._x) + this.rope.target._x;
targetPositionY = (this._y + this.rope._y) + this.rope.target._y;
if (((((_root.hero._x > (targetPositionX - 30)) && (_root.hero._x < (targetPositionX + 30))) && (_root.hero._y > (targetPositionY - 35))) && (_root.hero._y < (targetPositionY + 50))) && (getTimer() > (_root.hero.letGoTimer + 1000))) {
_root.hero.onRope = true;
_root.hero.xpos = targetPositionX;
_root.hero.ypos = targetPositionY - 20;
} else {
_root.hero.onRope = false;
}
}
this.xpos = _x;
this.ypos = _y;
Instance of Symbol 21 MovieClip [empty] in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.control();
}
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 1
if (jawOpen) {
gotoAndStop (25);
}
Symbol 300 MovieClip Frame 24
gotoAndPlay (1);
Symbol 300 MovieClip Frame 25
jawOpen = true;
stop();
Symbol 305 MovieClip Frame 95
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Symbol 307 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 14
_root.playSound("moveRock");
Symbol 312 MovieClip Frame 80
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 45
stop();
Symbol 329 MovieClip Frame 110
_root.rooms.gotoAndStop(_root.rooms._currentframe + 1);
_root.hero.xpos = 50;
Symbol 329 MovieClip Frame 242
_root.rooms.gotoAndStop(_root.rooms._currentframe - 1);
_root.hero.xpos = 550;
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
_root.map20[7][0] = 3;
_root.map20[8][0] = 3;
_root.map20[9][0] = 3;
_root.currentmap = _root.map20;
_root.buildMap(_root.currentmap);
cMap = _root.currentMap;
Symbol 357 MovieClip Frame 240
_root.gotoAndStop("completed");
Symbol 359 MovieClip Frame 1
stop();
_root.currentmap = _root.map1;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "SPLASHDOWN, A ROUGH LANDING";
Symbol 359 MovieClip Frame 2
stop();
_root.currentmap = _root.map2;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "WELCOME TO THE JUNGLE";
if (!visitedRoom2) {
visitedRoom2 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiefaller", "baddie1", 99889);
_root.rooms.baddie1.startX = 350;
_root.rooms.baddie1.startY = -100;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.fallerImage = "coconut";
_root.rooms.attachMovie("baddiefaller", "baddie2", 99888);
_root.rooms.baddie2.startX = 230;
_root.rooms.baddie2.startY = -50;
_root.rooms.baddie2.speed = 3;
_root.rooms.baddie2.fallerImage = "coconut";
_root.rooms.attachMovie("baddiewalker", "baddie3", 99893);
_root.rooms.baddie3.startX = 500;
_root.rooms.baddie3.startY = 300;
_root.rooms.baddie3.speed = 4;
_root.rooms.baddie3.moveDirection = "left";
_root.rooms.baddie3.moveDistance = 100;
Symbol 359 MovieClip Frame 3
stop();
_root.currentmap = _root.map3;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "KING OF THE SWINGERS";
if (!visitedRoom3) {
visitedRoom3 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiefaller", "baddie1", 99887);
_root.rooms.baddie1.startX = 100;
_root.rooms.baddie1.startY = -50;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.fallerImage = "coconut";
_root.rooms.attachMovie("baddiefaller", "baddie2", 99889);
_root.rooms.baddie2.startX = 530;
_root.rooms.baddie2.startY = -100;
_root.rooms.baddie2.speed = 4;
_root.rooms.baddie1.fallerImage = "coconut";
Symbol 359 MovieClip Frame 4
stop();
_root.currentmap = _root.map4;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "A LEAP OF FAITH";
if (!visitedRoom4) {
visitedRoom4 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task1complete == true) {
flame._visible = false;
}
_root.rooms.attachMovie("baddiefaller", "baddie1", 99887);
_root.rooms.baddie1.startX = 450;
_root.rooms.baddie1.startY = -50;
_root.rooms.baddie1.speed = 6;
_root.rooms.baddie1.fallerImage = "rock";
Symbol 359 MovieClip Frame 5
stop();
_root.currentmap = _root.map5;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "A HAZARDOUS CLIMB";
if (!visitedRoom5) {
visitedRoom5 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiefaller", "baddie1", 99887);
_root.rooms.baddie1.startX = 195;
_root.rooms.baddie1.startY = -50;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.fallerImage = "rock";
_root.rooms.attachMovie("baddiefaller", "baddie2", 99889);
_root.rooms.baddie2.startX = 390;
_root.rooms.baddie2.startY = -100;
_root.rooms.baddie2.speed = 5;
_root.rooms.baddie2.fallerImage = "rock";
Symbol 359 MovieClip Frame 6
stop();
_root.currentmap = _root.map6;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "WHAT BIG JAWS YOU HAVE, A 'PROP'ER PUZZLE";
if (!visitedRoom6) {
visitedRoom6 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task3complete == true) {
crocodile.gotoAndStop("stick");
}
Symbol 359 MovieClip Frame 7
stop();
_root.currentmap = _root.map7;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "SHE SELLS... ANOTHER CHANCE";
if (!visitedRoom7) {
visitedRoom7 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task19complete == true) {
clam.gotoAndStop("open");
}
Symbol 359 MovieClip Frame 8
stop();
_root.currentmap = _root.map8;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "AND THEN DOWN AGAIN";
if (!visitedRoom8) {
visitedRoom8 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
Symbol 359 MovieClip Frame 9
stop();
_root.currentmap = _root.map9;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "MY LITTLE SUNBEAM";
if (!visitedRoom9) {
visitedRoom9 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task5complete == true) {
stonedoor.gotoAndStop("remove");
}
_root.rooms.attachMovie("baddieupdown", "baddie1", 99892);
_root.rooms.baddie1.startX = 180;
_root.rooms.baddie1.startY = 190;
_root.rooms.baddie1.speed = 5;
_root.rooms.baddie1.moveDirection = "down";
_root.rooms.baddie1.moveDistance = 125;
_root.rooms.attachMovie("baddiewalker", "baddie3", 99893);
_root.rooms.baddie3.startX = 450;
_root.rooms.baddie3.startY = 300;
_root.rooms.baddie3.speed = 4;
_root.rooms.baddie3.moveDirection = "left";
_root.rooms.baddie3.moveDistance = 70;
Symbol 359 MovieClip Frame 10
stop();
_root.currentmap = _root.map10;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "WHO TURNED THE LIGHTS OUT?";
if (!visitedRoom10) {
visitedRoom10 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if ((_root.objectInHand == "TORCH (LIT)") || (_root.objectStartLocations[_root.rooms._currentFrame - 1] == "TORCH (LIT)")) {
_root.bottompanel.roomname = "THE CAVE";
} else {
platformColor = new Color(_root.platformclip);
caveColor = new Color(_root.rooms.cave);
minecartColor = new Color(_root.rooms.minecart);
ropeColor = new Color(_root.rooms.rope);
myTransform = new Object();
myTransform.ra = 15;
myTransform.ga = 15;
myTransform.ba = 15;
platformColor.setTransform(myTransform);
caveColor.setTransform(myTransform);
minecartColor.setTransform(myTransform);
ropeColor.setTransform(myTransform);
}
if (minecartDirection == "rightToLeft") {
_root.hero.xpos = 595;
_root.hero.ypos = 130;
_root.enterXpos = 595;
_root.enterYpos = 130;
_root.hero._visible = true;
}
minecartDirection = "leftToRight";
Symbol 359 MovieClip Frame 11
stop();
_root.currentmap = _root.map11;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "WHEEEEEE";
if (!visitedRoom11) {
visitedRoom11 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.hero.xpos = 200;
_root.hero._visible = false;
mineCartClip.gotoAndPlay(minecartDirection);
Symbol 359 MovieClip Frame 12
stop();
_root.currentmap = _root.map12;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "BATS, I HATE BATS";
if (!visitedRoom12) {
visitedRoom12 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (minecartDirection == "leftToRight") {
_root.hero.xpos = 5;
_root.hero.ypos = 130;
_root.enterXpos = 5;
_root.enterYpos = 130;
_root.hero._visible = true;
}
minecartDirection = "rightToLeft";
_root.rooms.attachMovie("baddiebouncer", "baddie1", 99888);
_root.rooms.baddie1.startX = 200;
_root.rooms.baddie1.startY = 100;
_root.rooms.baddie1.xspeed = 2;
_root.rooms.baddie1.yspeed = 3;
_root.rooms.attachMovie("baddiebouncer", "baddie2", 99887);
_root.rooms.baddie2.startX = 100;
_root.rooms.baddie2.startY = 200;
_root.rooms.baddie2.xspeed = 3;
_root.rooms.baddie2.yspeed = 2;
Symbol 359 MovieClip Frame 13
stop();
_root.currentmap = _root.map13;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "CREEPIER AND CRAWLIER";
if (!visitedRoom13) {
visitedRoom13 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiewalker", "baddie1", 99891);
_root.rooms.baddie1.startX = 200;
_root.rooms.baddie1.startY = 236;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.moveDirection = "right";
_root.rooms.baddie1.moveDistance = 90;
_root.rooms.attachMovie("baddiewalker", "baddie2", 99892);
_root.rooms.baddie2.startX = 420;
_root.rooms.baddie2.startY = 236;
_root.rooms.baddie2.speed = 5;
_root.rooms.baddie2.moveDirection = "left";
_root.rooms.baddie2.moveDistance = 90;
Symbol 359 MovieClip Frame 14
stop();
_root.currentmap = _root.map14;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "WATCH YOUR STEP";
if (!visitedRoom14) {
visitedRoom14 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiebouncer", "baddie1", 99888);
_root.rooms.baddie1.startX = 200;
_root.rooms.baddie1.startY = 100;
_root.rooms.baddie1.xspeed = -2;
_root.rooms.baddie1.yspeed = 1;
_root.rooms.attachMovie("baddiebouncer", "baddie2", 99887);
_root.rooms.baddie2.startX = 300;
_root.rooms.baddie2.startY = 200;
_root.rooms.baddie2.xspeed = 1;
_root.rooms.baddie2.yspeed = -2;
Symbol 359 MovieClip Frame 15
stop();
_root.currentmap = _root.map15;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "DON'T BURN YOUR TOES";
if (!visitedRoom15) {
visitedRoom15 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task7complete == true) {
fire._visible = false;
}
_root.rooms.attachMovie("baddiefaller", "baddie1", 99887);
_root.rooms.baddie1.startX = 100;
_root.rooms.baddie1.startY = -50;
_root.rooms.baddie1.speed = 5;
_root.rooms.baddie1.fallerImage = "rock";
_root.rooms.attachMovie("baddiefaller", "baddie2", 99889);
_root.rooms.baddie2.startX = 490;
_root.rooms.baddie2.startY = -100;
_root.rooms.baddie2.speed = 4;
_root.rooms.baddie2.fallerImage = "rock";
_root.rooms.attachMovie("baddiefaller", "baddie3", 99890);
_root.rooms.baddie3.startX = 530;
_root.rooms.baddie3.startY = -50;
_root.rooms.baddie3.speed = 3;
_root.rooms.baddie3.fallerImage = "rock";
Symbol 359 MovieClip Frame 16
stop();
_root.currentmap = _root.map16;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "A ROCK SHOWER";
if (!visitedRoom17) {
visitedRoom17 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.objectInHand == "UMBRELLA") {
rockClip = "baddiefallernohit";
} else {
rockClip = "baddiefaller";
}
if (_root.hero.task8complete == true) {
rockswitch.gotoAndStop("on");
}
_root.rooms.attachMovie(rockClip, "baddie1", 99887);
_root.rooms.baddie1.startX = 450;
_root.rooms.baddie1.startY = -40;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.fallerImage = "rock";
_root.rooms.attachMovie(rockClip, "baddie2", 99888);
_root.rooms.baddie2.startX = 500;
_root.rooms.baddie2.startY = -60;
_root.rooms.baddie2.speed = 5;
_root.rooms.baddie2.fallerImage = "rock";
_root.rooms.attachMovie(rockClip, "baddie3", 99889);
_root.rooms.baddie3.startX = 550;
_root.rooms.baddie3.startY = -50;
_root.rooms.baddie3.speed = 4;
_root.rooms.baddie3.fallerImage = "rock";
Symbol 359 MovieClip Frame 17
stop();
_root.currentmap = _root.map17;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "A WALK IN THE WOODS";
if (!visitedRoom18) {
visitedRoom18 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.teleporteractive == true) {
teleporter.gotoAndStop("on");
}
Symbol 359 MovieClip Frame 18
stop();
_root.currentmap = _root.map18;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "THE STOCKADE";
if (!visitedRoom18) {
visitedRoom18 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task9complete == true) {
chest.gotoAndStop("open");
}
_root.rooms.attachMovie("baddiewalker", "baddie1", 99893);
_root.rooms.baddie1.startX = 220;
_root.rooms.baddie1.startY = 265;
_root.rooms.baddie1.speed = 4;
_root.rooms.baddie1.moveDirection = "left";
_root.rooms.baddie1.moveDistance = 90;
Symbol 359 MovieClip Frame 19
stop();
_root.currentmap = _root.map19;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "THREE MONKEYS";
if (!visitedRoom19) {
visitedRoom19 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddieupdown", "baddie1", 99893);
_root.rooms.baddie1.startX = 400;
_root.rooms.baddie1.startY = 200;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.moveDirection = "down";
_root.rooms.baddie1.moveDistance = 100;
_root.rooms.attachMovie("baddieupdown", "baddie2", 99894);
_root.rooms.baddie2.startX = 300;
_root.rooms.baddie2.startY = 210;
_root.rooms.baddie2.speed = 5;
_root.rooms.baddie2.moveDirection = "up";
_root.rooms.baddie2.moveDistance = 80;
_root.rooms.attachMovie("baddieupdown", "baddie3", 99895);
_root.rooms.baddie3.startX = 200;
_root.rooms.baddie3.startY = 200;
_root.rooms.baddie3.speed = 4;
_root.rooms.baddie3.moveDirection = "down";
_root.rooms.baddie3.moveDistance = 100;
Symbol 359 MovieClip Frame 20
stop();
_root.currentmap = _root.map20;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "A GOOD RECEPTION";
if (!visitedRoom20) {
visitedRoom20 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
Symbol 359 MovieClip Frame 24
stop();
_root.currentmap = _root.map23;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "THE TREEHOUSE";
if (!visitedRoom23) {
visitedRoom23 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
Symbol 359 MovieClip Frame 27
stop();
_root.currentmap = _root.map26;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "READ THE SMALLPRINT";
if (!visitedRoom26) {
visitedRoom26 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.teleporteractive == true) {
teleporter.gotoAndStop("on");
}
Symbol 359 MovieClip Frame 28
stop();
_root.currentmap = _root.map27;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "ONLY ONE OF THEM CAN BITE";
if (!visitedRoom27) {
visitedRoom27 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
if (_root.hero.task4complete == true) {
chief.gotoAndStop("tooth");
}
_root.rooms.attachMovie("baddieupdown", "baddie1", 99893);
_root.rooms.baddie1.startX = 310;
_root.rooms.baddie1.startY = 120;
_root.rooms.baddie1.speed = 4;
_root.rooms.baddie1.moveDirection = "down";
_root.rooms.baddie1.moveDistance = 90;
Symbol 359 MovieClip Frame 32
stop();
_root.currentmap = _root.map31;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "8 LEGGED CREEPS";
if (!visitedRoom31) {
visitedRoom31 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}
_root.rooms.attachMovie("baddiewalker", "baddie1", 99891);
_root.rooms.baddie1.startX = 350;
_root.rooms.baddie1.startY = 76;
_root.rooms.baddie1.speed = 3;
_root.rooms.baddie1.moveDirection = "left";
_root.rooms.baddie1.moveDistance = 85;
_root.rooms.attachMovie("baddiewalker", "baddie2", 99892);
_root.rooms.baddie2.startX = 475;
_root.rooms.baddie2.startY = 235;
_root.rooms.baddie2.speed = 3;
_root.rooms.baddie2.moveDirection = "left";
_root.rooms.baddie2.moveDistance = 60;
_root.rooms.attachMovie("baddiewalker", "baddie3", 99893);
_root.rooms.baddie3.startX = 140;
_root.rooms.baddie3.startY = 170;
_root.rooms.baddie3.speed = 2;
_root.rooms.baddie3.moveDirection = "left";
_root.rooms.baddie3.moveDistance = 50;
Symbol 359 MovieClip Frame 37
stop();
_root.currentmap = _root.map38;
_root.buildMap(_root.currentmap);
_root.removeOldBaddies();
_root.bottompanel.roomname = "THE TALLEST TREE";
if (!visitedRoom38) {
visitedRoom38 = true;
_root.scorePercentage = _root.scorePercentage + 1;
_root.bottomPanel.scorePercentage = _root.scorePercentage;
}