Frame 1
stop();
Frame 13
sndFadeIn = new Sound();
sndFadeIn.attachSound("sndFadeIn");
sndFadeOut = new Sound();
sndFadeOut.attachSound("sndFadeOut");
squareCounter = 0;
Instance of Symbol 70 MovieClip "mcLoading" in Frame 14
onClipEvent (load) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
this._visible = false;
}
}
Frame 15
if (_framesloaded < 111) {
intPercentLoaded = _framesloaded;
mcLoading.gotoAndStop(intPercentLoaded);
gotoAndPlay(_currentframe - 1);
if (_root.fadeOut) {
_root.fadeOut = false;
}
} else {
mcLoading.gotoAndStop(101);
mcSquares.gotoAndPlay("in");
}
Frame 17
if (!_root.fadeOut) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay (21);
}
Frame 21
function grabBonus() {
zedBonus = random(3) + 1;
this["sndGrabBonus" + zedBonus].start(0, 0);
}
function changeZedColour(colour) {
function addPoints(points) {
pointsCounter++;
mcAddPoints.duplicateMovieClip("mcPointsAdded" + pointsCounter, pointsCounter);
grabBonus();
if ((((((points == "speed") or (points == "invincible")) or (points == "jump")) or (points == "energy")) or (points == "Gold")) or (points == "Key")) {
_root["mcPointsAdded" + pointsCounter].gotoAndPlay("textBonus");
_root["mcPointsAdded" + pointsCounter].txtBonus = points;
} else {
totalPoints = totalPoints + points;
panels.txtTotalPoints = totalPoints;
_root["mcPointsAdded" + pointsCounter].points = points;
}
_root["mcPointsAdded" + pointsCounter]._x = character._x;
_root["mcPointsAdded" + pointsCounter]._y = character._y - 70;
}
if ((colour == "red") && (!_root.untouchable)) {
_root.zedColourTransform = {ra:"100", rb:"255", ga:"100", gb:"-70", ba:"100", bb:"-170", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
sndZedHurt.start(0, 0);
zedIsHurting = true;
} else if (colour == "normal") {
_root.zedColourTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
sndZedHurt.stop("sndZedHurt");
zedIsHurting = false;
} else if (colour == "energy") {
_root.zedColourTransform = {ra:"100", rb:"-30", ga:"100", gb:"50", ba:"100", bb:"-200", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
} else if (colour == "Gold") {
_root.zedColourTransform = {ra:"100", rb:"255", ga:"100", gb:"70", ba:"100", bb:"-150", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
} else if (colour == "speed") {
_root.zedColourTransform = {ra:"100", rb:"250", ga:"100", gb:"-25", ba:"100", bb:"-160", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
} else if (colour == "jump") {
_root.zedColourTransform = {ra:"100", rb:"0", ga:"100", gb:"-50", ba:"100", bb:"-20", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
} else if (colour == "invincible") {
_root.zedColourTransform = {ra:"100", rb:"0", ga:"100", gb:"60", ba:"100", bb:"0", aa:"100", ab:"0"};
_root.zedColour.setTransform(_root.zedColourTransform);
}
}
function addPoints(points) {
pointsCounter++;
mcAddPoints.duplicateMovieClip("mcPointsAdded" + pointsCounter, pointsCounter);
grabBonus();
if ((((((points == "speed") or (points == "invincible")) or (points == "jump")) or (points == "energy")) or (points == "Gold")) or (points == "Key")) {
_root["mcPointsAdded" + pointsCounter].gotoAndPlay("textBonus");
_root["mcPointsAdded" + pointsCounter].txtBonus = points;
} else {
totalPoints = totalPoints + points;
panels.txtTotalPoints = totalPoints;
_root["mcPointsAdded" + pointsCounter].points = points;
}
_root["mcPointsAdded" + pointsCounter]._x = character._x;
_root["mcPointsAdded" + pointsCounter]._y = character._y - 70;
}
function showPlatform() {
counter = 0;
while (counter < 11) {
counter++;
if (this["plattform" + counter].active) {
this["plattform" + counter].active = false;
this["plattform" + counter].gotoAndPlay("fadeOut");
} else {
this["plattform" + counter].active = true;
this["plattform" + counter].initLocal = false;
this["plattform" + counter].gotoAndPlay("fadeIn");
}
}
}
_root.soundOn = true;
globalsound = new Sound();
sndGrabBonus1 = new Sound();
sndGrabBonus1.attachSound("sndGrabBonus1");
sndGrabBonus2 = new Sound();
sndGrabBonus2.attachSound("sndGrabBonus2");
sndGrabBonus3 = new Sound();
sndGrabBonus3.attachSound("sndGrabBonus3");
sndZedDie = new Sound();
sndZedDie.attachSound("sndZedDie");
sndZedHurt = new Sound();
sndZedHurt.attachSound("sndZedHurt");
sndGrowl = new Sound();
sndGrowl.attachSound("sndGrowl");
sndFlame = new Sound();
sndFlame.attachSound("sndFlame");
sndSpikes = new Sound();
sndSpikes.attachSound("sndSpikes");
sndIntermission = new Sound();
sndIntermission.attachSound("sndIntermission");
sndIntro = new Sound();
sndIntro.attachSound("sndIntro");
sndDoorClose = new Sound();
sndDoorClose.attachSound("sndDoorClose");
sndDoorOpen = new Sound();
sndDoorOpen.attachSound("sndDoorOpen");
sndGameOver = new Sound();
sndGameOver.attachSound("sndGameOver");
finalLevel = 10;
dataFileScore = 0;
dataFileLevel = 0;
dataFileGold = 0;
arrLevelCode1 = new Array(1, 1, 1, 1, 1);
arrLevelCode2 = new Array(2, 3, 2, 3, 2);
arrLevelCode3 = new Array(3, 3, 5, 3, 3);
arrLevelCode4 = new Array(5, 1, 4, 1, 5);
arrLevelCode5 = new Array(2, 3, 1, 3, 2);
arrLevelCode6 = new Array(3, 4, 5, 1, 3);
arrLevelCode7 = new Array(1, 5, 4, 2, 5);
arrLevelCode8 = new Array(4, 2, 3, 1, 2);
arrLevelCode9 = new Array(2, 1, 4, 4, 4);
arrLevelCode10 = new Array(4, 2, 2, 2, 3);
zedColour = new Color(characterGfx);
zedColourTransform = new Object();
gotoAndPlay (27);
Instance of Symbol 115 MovieClip "keyboardInput" in Frame 21
onClipEvent (load) {
keyPressPause = getTimer() + 100;
squareCounter1 = 0;
squareCounter2 = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(80) && (keyPressValid)) {
keyPressValid = false;
if (_root.panels._visible && (_root.noTransition)) {
if ((!_root.gamePaused) && (keyPressPause < getTimer())) {
if (_root.soundOn) {
_root.globalsound.setVolume(0);
}
_root.gamePaused = true;
mcPause.gotoAndPlay("paused");
keyPressPause = getTimer() + 100;
} else if (keyPressPause < getTimer()) {
if (_root.soundOn) {
_root.globalsound.setVolume(100);
}
_parent.characterGfx.gotoAndPlay(_parent.characterGfx._currentframe - 1);
_root.gamePaused = false;
mcPause.gotoAndStop(1);
keyPressPause = getTimer() + 100;
}
}
} else if (Key.isDown(83) && (keyPressValid)) {
keyPressValid = false;
if ((!_root.soundOn) && (keyPressPause < getTimer())) {
_root.soundOn = true;
mcSound.gotoAndPlay("toggleSound");
keyPressPause = getTimer() + 100;
} else if (keyPressPause < getTimer()) {
_root.soundOn = false;
mcSound.gotoAndPlay("toggleSound");
keyPressPause = getTimer() + 100;
}
} else if ((!Key.isDown(83)) && (!Key.isDown(80))) {
keyPressValid = true;
}
}
Frame 27
sndIntro.start(0, 0);
totalGoldCollected = 0;
levelGoldCollected = 0;
totalPoints = 0;
panels.totalGold.gotoAndStop(1);
panels.goldHolder.gotoAndStop(1);
panels.lives.gotoAndStop(1);
currentLevel = 1;
livesLeft = 3;
panels._visible = false;
if (_root.fadeOut) {
mcSquares.gotoAndPlay("out");
}
Instance of Symbol 202 MovieClip in Frame 27
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 254 MovieClip "zed" in Frame 27
onClipEvent (load) {
if (_root.gameCompleted) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Frame 28
stop();
Frame 29
mcSquares.gotoAndPlay("in");
Frame 31
if (!_root.fadeOut) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay (37);
}
Frame 37
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
sndIntermission.start(0, 0);
if (finalLevel < currentLevel) {
gotoAndPlay (27);
} else {
teaser.gotoAndStop(currentLevel);
panels._visible = false;
panels.goldHolder.gotoAndStop(1);
txtLevelCleared = "LEVEL " + currentLevel;
mcSquares.gotoAndPlay("out");
}
Frame 38
mcCode.showCode(currentLevel);
stop();
Instance of Symbol 372 MovieClip in Frame 38
onClipEvent (keyDown) {
if (!_root.fadeOut) {
_parent.play();
}
}
Frame 40
mcSquares.gotoAndPlay("in");
Frame 42
if (!_root.fadeOut) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay (97);
}
Frame 43
gotoAndPlay (27);
Frame 48
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
keyboardInput._x = 0;
panels._visible = false;
txtLevelCleared = ("LEVEL " + currentLevel) + " CLEARED!";
txtLives = 0;
txtEnergy = 0;
livesTemp = livesLeft;
lives.gotoAndStop(_root.panels.lives._currentframe);
energy.gotoAndStop(_root.panels.energy._currentframe);
txtTotalPoints = totalPoints;
_root._x = 0;
Instance of Symbol 300 MovieClip "lives" in Frame 48
onClipEvent (load) {
if (this._currentframe == 22) {
this._x = this._x + 50;
} else if (this._currentframe == 36) {
this._x = this._x + 100;
}
}
Frame 50
if (delayCounter < 50) {
delayCounter++;
gotoAndPlay(_currentframe - 1);
} else {
delayCounter = 0;
}
Frame 61
if (0 < livesTemp) {
livesTemp--;
totalPoints = totalPoints + 1000;
txtLives = txtLives + 1000;
txtTotalPoints = totalPoints;
grabBonus();
gotoAndPlay(_currentframe - 10);
}
Frame 63
if (_root.soundOn) {
globalsound.setVolume(random(20) + 10);
}
if (energy._currentframe < 151) {
energy.gotoAndStop(energy._currentframe + 1);
energy.panic._visible = false;
totalPoints = totalPoints + 20;
txtEnergy = txtEnergy + 20;
txtTotalPoints = totalPoints;
grabBonus();
gotoAndPlay(_currentframe - 1);
}
Frame 65
if (delayCounter < 50) {
delayCounter++;
gotoAndPlay(_currentframe - 1);
} else {
delayCounter = 0;
}
Frame 66
if (_root.soundOn) {
globalsound.setVolume(100);
}
mcSquares.gotoAndPlay("in");
Frame 68
if (!_root.fadeOut) {
gotoAndPlay(_currentframe - 1);
}
Frame 69
outOfEnergy = false;
currentLevel++;
gotoAndPlay (37);
Frame 71
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
sndGameOver.start(0, 0);
panels._visible = false;
_root._x = 0;
mcSquares._x = 0;
keyboardInput._x = 0;
txtTotalPoints = totalPoints;
intGoldPercentage = int((_root.totalGoldCollected / 30) * 100);
txtGoldPercentage = ("YOU MANAGED TO COLLECT " + intGoldPercentage) + "% OF THE GOLD ZED NEEDS FOR A SHINY GOLDEN SPACE SUIT";
Frame 72
stop();
Instance of Symbol 372 MovieClip in Frame 72
onClipEvent (keyDown) {
if (_root.fadeIn) {
_parent.play();
}
}
Frame 73
mcSquares.gotoAndPlay("in");
Frame 75
if (!_root.fadeOut) {
gotoAndPlay(_currentframe - 1);
}
Frame 76
if (dataFileScore < totalPoints) {
dataFileScore = totalPoints;
dataFileLevel = currentLevel;
dataFileGold = intGoldPercentage;
}
gotoAndPlay (27);
Frame 77
gotoAndPlay (27);
Frame 84
gotoAndPlay (27);
Frame 85
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
sndGameCompleted.start(0, 0);
panels._visible = false;
gameCompleted = true;
txtTotalPoints = totalPoints;
stop();
Instance of Symbol 372 MovieClip in Frame 85
onClipEvent (keyDown) {
if (_root.fadeIn) {
_parent.play();
}
}
Frame 86
mcSquares.gotoAndPlay("in");
Frame 88
if (!_root.fadeOut) {
gotoAndPlay(_root._currentframe - 1);
}
Frame 89
intGoldPercentage = int((_root.totalGoldCollected / 30) * 100);
if (dataFileScore < totalPoints) {
dataFileScore = totalPoints;
dataFileLevel = currentLevel;
dataFileGold = intGoldPercentage;
}
gotoAndPlay (27);
Frame 90
gotoAndPlay (27);
Frame 97
_root.openGoldDoor = false;
_root.levelGoldCollected = 0;
gotoAndStop("level" + currentLevel);
mcSquares.gotoAndPlay("out");
Frame 110
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceGoldMines = new Sound();
sndAmbienceGoldMines.attachSound("sndAmbienceGoldMines");
sndAmbienceGoldMines.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform1" in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 183 MovieClip "creature1" in Frame 110
onClipEvent (load) {
howDangerous = 12;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform1.hitTest(this._x, this._y + 20, true)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 415 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 417 MovieClip in Frame 110
onClipEvent (enterFrame) {
if ((this.hitTest(_root.character) && (!stageHasMoved)) && (this._x < _root.character._x)) {
this._x = this._x + (this._width + 80);
_root._x = _root._x + 700;
_parent.panels._x = _parent.panels._x - 700;
_parent.mcSquares._x = _parent.mcSquares._x - 700;
_parent.keyboardInput._x = _parent.keyboardInput._x - 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
} else if ((this.hitTest(_root.character) && (!stageHasMoved)) && (_root.character._x < this._x)) {
this._x = this._x - (this._width + 80);
_root._x = _root._x - 700;
_parent.panels._x = _parent.panels._x + 700;
_parent.mcSquares._x = _parent.mcSquares._x + 700;
_parent.keyboardInput._x = _parent.keyboardInput._x + 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe - 1);
} else if (stageHasMoved) {
stageHasMoved = false;
}
}
Instance of Symbol 418 MovieClip "character" in Frame 110
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 202 MovieClip in Frame 110
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 110
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 110
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 110
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus007" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus004" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus006" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus001" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus02" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus003" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus021" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus017" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus025" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus023" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus022" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus024" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus019" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus018" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus020" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus005" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus009" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus008" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus014" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus011" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus013" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus012" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus010" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus015" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus016" in Frame 110
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 409 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Frame 112
gotoAndPlay (27);
Frame 119
gotoAndPlay (27);
Frame 120
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceGoldMines = new Sound();
sndAmbienceGoldMines.attachSound("sndAmbienceGoldMines");
sndAmbienceGoldMines.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
}
counter = 0;
}
Instance of Symbol 191 MovieClip in Frame 120
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 417 MovieClip in Frame 120
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.character) && (!stageHasMoved)) && (_root.character._x < this._x)) {
this._x = this._x - (this._width + 80);
_root._x = _root._x - 700;
_parent.panels._x = _parent.panels._x + 700;
_parent.mcSquares._x = _parent.mcSquares._x + 700;
_parent.keyboardInput._x = _parent.keyboardInput._x + 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
_parent.door01._x = _parent.door01._x + 20;
_parent.door01._xscale = -100;
} else if ((this.hitTest(_root.character) && (!stageHasMoved)) && (this._x < _root.character._x)) {
this._x = this._x + (this._width + 80);
_root._x = _root._x + 700;
_parent.panels._x = _parent.panels._x - 700;
_parent.mcSquares._x = _parent.mcSquares._x - 700;
_parent.keyboardInput._x = _parent.keyboardInput._x - 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe - 1);
_parent.door01._x = _parent.door01._x - 20;
_parent.door01._xscale = 100;
} else if (stageHasMoved) {
stageHasMoved = false;
}
}
Instance of Symbol 415 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 436 MovieClip "door01" in Frame 120
onClipEvent (enterFrame) {
if (!_root.key01.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 418 MovieClip "character" in Frame 120
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 205 MovieClip in Frame 120
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("speed");
_root.character.maxSpeed = 10;
_root.character.friction = _root.character.maxSpeed / 5;
_root.extrasSpeed = true;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 368;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder1.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 204 MovieClip "key01" in Frame 120
onClipEvent (load) {
flyToY = _parent.door01._y;
flyToX = _parent.door01._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus032" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus033" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus031" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus029" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus030" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus028" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus025" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 120
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 120
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 120
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus039" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus041" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus040" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus042" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus043" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus044" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus026" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus027" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus035" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus036" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus034" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus037" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus038" in Frame 120
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 121
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 191 MovieClip in Frame 121
onClipEvent (load) {
howDangerous = 30;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 183 MovieClip in Frame 121
onClipEvent (load) {
howDangerous = 20;
sittingOn = "platform3";
weapon = "fire";
firing = false;
speed = -4;
maxSpeed = speed;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!jaw.fireInTheHall) {
this.play();
this.jaw.play();
}
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((this.jaw.hitFlames.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop((_root.panels.energy._currentframe + howDangerous) + 10);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x + speed, this._y + 20, true)) {
this._x = this._x + int(speed);
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x + (speed * 3);
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + (speed * 3);
}
}
}
} else {
this.stop();
this.jaw.stop();
jaw.fireInTheHall = false;
}
}
Frame 122
gotoAndPlay (27);
Frame 130
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceGoldMines = new Sound();
sndAmbienceGoldMines.attachSound("sndAmbienceGoldMines");
sndAmbienceGoldMines.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 453 MovieClip in Frame 130
onClipEvent (load) {
startPoint = this._x - 140;
endPoint = this._x + 140;
totalDistance = endPoint - startPoint;
beginAt = random(totalDistance) - (totalDistance / 2);
this._x = this._x + beginAt;
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if ((endPoint < this._x) or (this._x < startPoint)) {
moveSpeed = -moveSpeed;
}
this._x = this._x + moveSpeed;
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 8;
_root.onPlatform = true;
_parent.character._x = _parent.character._x + moveSpeed;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform1" in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 183 MovieClip in Frame 130
onClipEvent (load) {
howDangerous = 20;
sittingOn = "platform3";
weapon = "fire";
firing = false;
speed = -4;
maxSpeed = speed;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!jaw.fireInTheHall) {
this.play();
this.jaw.play();
}
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((this.jaw.hitFlames.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop((_root.panels.energy._currentframe + howDangerous) + 10);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform1.hitTest(this._x + speed, this._y + 20, true)) {
this._x = this._x + int(speed);
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x + (speed * 3);
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + (speed * 3);
}
}
}
} else {
this.stop();
this.jaw.stop();
jaw.fireInTheHall = false;
}
}
Instance of Symbol 417 MovieClip in Frame 130
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.character) && (!stageHasMoved)) && (_root.character._x < this._x)) {
this._x = this._x - (this._width + 80);
_root._x = _root._x - 700;
_parent.panels._x = _parent.panels._x + 700;
_parent.mcSquares._x = _parent.mcSquares._x + 700;
_parent.keyboardInput._x = _parent.keyboardInput._x + 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
_parent.door01._x = _parent.door01._x + 20;
_parent.door01._xscale = -100;
} else if ((this.hitTest(_root.character) && (!stageHasMoved)) && (this._x < _root.character._x)) {
this._x = this._x + (this._width + 80);
_root._x = _root._x + 700;
_parent.panels._x = _parent.panels._x - 700;
_parent.mcSquares._x = _parent.mcSquares._x - 700;
_parent.keyboardInput._x = _parent.keyboardInput._x - 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe - 1);
_parent.door01._x = _parent.door01._x - 20;
_parent.door01._xscale = 100;
} else if (stageHasMoved) {
stageHasMoved = false;
}
}
Instance of Symbol 436 MovieClip "door01" in Frame 130
onClipEvent (enterFrame) {
if (!_root.key01.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 130
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.character) && (!stageHasMoved)) && (_root.character._x < this._x)) {
this._x = this._x - (this._width + 80);
_root._x = _root._x - 700;
_parent.panels._x = _parent.panels._x + 700;
_parent.mcSquares._x = _parent.mcSquares._x + 700;
_parent.keyboardInput._x = _parent.keyboardInput._x + 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
_parent.door02._x = _parent.door02._x + 20;
_parent.door02._xscale = -100;
} else if ((this.hitTest(_root.character) && (!stageHasMoved)) && (this._x < _root.character._x)) {
this._x = this._x + (this._width + 80);
_root._x = _root._x + 700;
_parent.panels._x = _parent.panels._x - 700;
_parent.mcSquares._x = _parent.mcSquares._x - 700;
_parent.keyboardInput._x = _parent.keyboardInput._x - 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe - 1);
_parent.door02._x = _parent.door02._x - 20;
_parent.door02._xscale = 100;
} else if (stageHasMoved) {
stageHasMoved = false;
}
}
Instance of Symbol 436 MovieClip "door02" in Frame 130
onClipEvent (enterFrame) {
if (!_root.key02.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 415 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 130
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 436 MovieClip "door03" in Frame 130
onClipEvent (enterFrame) {
if (!_root.key03.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 418 MovieClip "character" in Frame 130
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 204 MovieClip "key01" in Frame 130
onClipEvent (load) {
flyToY = _parent.door01._y;
flyToX = _parent.door01._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 204 MovieClip "key02" in Frame 130
onClipEvent (load) {
flyToY = _parent.door02._y;
flyToX = _parent.door02._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 130
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 130
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus050" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus052" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus056" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus057" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus058" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus055" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 204 MovieClip "key03" in Frame 130
onClipEvent (load) {
flyToY = _parent.door03._y;
flyToX = _parent.door03._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus060" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus059" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus061" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus062" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 130
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus067" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus069" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus065" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus066" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus068" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus051" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 130
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus049" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus045" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus046" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus047" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus048" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus064" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus063" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus053" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus054" in Frame 130
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 131
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 183 MovieClip in Frame 131
onClipEvent (load) {
howDangerous = 20;
speed = -4;
maxSpeed = speed;
turned = false;
weapon = "bite";
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
this.jaw.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x, this._y + 20, true)) {
if (0 < speed) {
if (_parent.monsterPlatform2.hitTest(this._x + 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else if (speed < 0) {
if (_parent.monsterPlatform2.hitTest(this._x - 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else {
readyToJump = false;
}
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x - 10;
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + 10;
}
}
}
} else {
this.stop();
this.jaw.stop();
}
}
Instance of Symbol 191 MovieClip in Frame 131
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 191 MovieClip in Frame 131
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(60);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(40);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(20);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(1);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 132
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 183 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
speed = -4;
maxSpeed = speed;
turned = false;
weapon = "bite";
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
this.jaw.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x, this._y + 20, true)) {
if (0 < speed) {
if (_parent.monsterPlatform2.hitTest(this._x + 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else if (speed < 0) {
if (_parent.monsterPlatform2.hitTest(this._x - 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else {
readyToJump = false;
}
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x - 10;
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + 10;
}
}
}
} else {
this.stop();
this.jaw.stop();
}
}
Instance of Symbol 191 MovieClip in Frame 132
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Frame 133
gotoAndPlay (27);
Frame 140
sndAmbienceGoldMines = new Sound();
sndAmbienceGoldMines.attachSound("sndAmbienceGoldMines");
sndAmbienceGoldMines.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 187 MovieClip in Frame 140
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(40);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 140
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(40);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 140
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(60);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 460 MovieClip in Frame 140
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 409 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 453 MovieClip in Frame 140
onClipEvent (load) {
moveSpeed = 3;
originalYposition = this._y;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._y < -30) {
this._y = originalYposition;
} else {
this._y = this._y - moveSpeed;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 417 MovieClip in Frame 140
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
_parent.character._y = 500;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 418 MovieClip "character" in Frame 140
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 198 MovieClip "bonus074" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus079" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus080" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus081" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus076" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus078" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus075" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus077" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus085" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus083" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus084" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus082" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus073" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus071" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus072" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus070" in Frame 140
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Frame 141
sndAmbienceGoldMines.stop("sndAmbienceGoldMines");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbienceLavaValley = new Sound();
sndAmbienceLavaValley.attachSound("sndAmbienceLavaValley");
sndAmbienceLavaValley.start(0, 1000);
Instance of Symbol 183 MovieClip "walkingBeast1" in Frame 141
onClipEvent (load) {
howDangerous = 12;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
}
if (!turning) {
if (_parent.monsterPlatform1.hitTest(this._x, this._y + 20, true)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 346 MovieClip in Frame 141
onClipEvent (load) {
howDangerous = 12;
originalX = this._x;
maxX = originalX + 300;
minX = originalX - 300;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if ((minX < this._x) && (this._x < maxX)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip "monsterPlatform1" in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_parent.mcSquares._x = _parent.panels._x;
_root._x = _root._x + 700;
_root.panels._x = _root.panels._x - 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 417 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_parent.mcSquares._x = _parent.panels._x;
_root._x = _root._x - 700;
_root.panels._x = _root.panels._x + 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe + 2);
}
}
Instance of Symbol 415 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 202 MovieClip in Frame 141
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 141
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 141
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 205 MovieClip in Frame 141
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("speed");
_root.character.maxSpeed = 10;
_root.character.friction = _root.character.maxSpeed / 5;
_root.extrasSpeed = true;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 368;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder1.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 141
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus095" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus098" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus097" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus087" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus086" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus088" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus090" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus091" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus101" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus100" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus099" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus105" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus104" in Frame 141
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 460 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 187 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(40);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(60);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 187 MovieClip in Frame 142
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(20);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x - 700;
_root.panels._x = _root.panels._x + 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe - 1);
}
}
Instance of Symbol 191 MovieClip in Frame 143
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(5);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 460 MovieClip in Frame 143
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 187 MovieClip in Frame 143
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(40);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if (this.hitFire.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 143
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x + 700;
_root.panels._x = _root.panels._x - 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe - 2);
}
}
Frame 144
gotoAndPlay (27);
Frame 150
sndAmbienceLavaValley = new Sound();
sndAmbienceLavaValley.attachSound("sndAmbienceLavaValley");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbienceLavaValley.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 460 MovieClip in Frame 150
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 346 MovieClip in Frame 150
onClipEvent (load) {
_parent.fireBombCounter = 0;
howDangerous = 20;
facingRight = false;
originalX = this._x;
speed = -4;
turned = false;
bombardPause = getTimer() + 5000;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if ((!turning) && (!bombDropped)) {
turned = false;
this.play();
this.jaw.gotoAndStop(1);
this._x = this._x + ((flyToX - this._x) / 30);
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
flyToX = _root.characterGfx._x - 10;
facingRight = false;
} else {
flyToX = _root.characterGfx._x + 30;
facingRight = true;
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
targetX = this._x + 15;
facingRight = false;
} else {
targetX = this._x - 15;
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
if (bombardPause < getTimer()) {
if (getTimer() < (bombardPause + 3000)) {
if (!bombDropped) {
_parent.fireBomb.duplicateMovieClip("mcFireBombActive", 666);
_parent.mcFireBombActive._x = targetX;
_parent.mcFireBombActive._y = this._y + 20;
bombDropped = true;
}
bombardPause = getTimer() + 3000;
bombDropped = false;
}
}
} else {
this.stop();
}
}
Instance of Symbol 13 MovieClip [mcFireBomb] "fireBomb" in Frame 150
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._y < 550) {
if (((!_root.isInvisible) && (this.hitTest(_root.characterGfx.hit))) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_root.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
this._y = this._y + 6;
} else if (!done) {
done = true;
this.stop();
}
}
}
Instance of Symbol 417 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x - 700;
_root.panels._x = _root.panels._x + 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 415 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 150
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
_parent.mcFireBombActive._x = _parent.mcFireBombActive._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 418 MovieClip "character" in Frame 150
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 207 MovieClip in Frame 150
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.addPoints("invincible");
_root.isInvisible = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 404;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.mcInvisible.gotoAndPlay("start");
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus108" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus107" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 150
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 150
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 150
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 196 MovieClip in Frame 150
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.extrasJump = true;
_root.addPoints("jump");
_root.character.maxJumpHeight = 50;
_root.character.jumpSpeed = _root.character.maxJumpHeight;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 402;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder2.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus117" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus106" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus120" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus119" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus118" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus114" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus115" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus116" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus110" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus111" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus109" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus112" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus113" in Frame 150
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Frame 151
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
sndAmbienceLavaValley.start(0, 1000);
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 460 MovieClip in Frame 151
onClipEvent (load) {
howDangerous = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 13 MovieClip [mcFireBomb] "fireBomb" in Frame 151
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._y < 550) {
if (((!_root.isInvisible) && (this.hitTest(_root.characterGfx.hit))) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_root.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
this._y = this._y + 6;
} else if (!done) {
done = true;
this.stop();
}
}
}
Instance of Symbol 346 MovieClip in Frame 151
onClipEvent (load) {
_parent.fireBombCounter = 0;
howDangerous = 20;
facingRight = false;
originalX = this._x;
speed = -4;
turned = false;
bombardPause = getTimer() + 5000;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if ((!turning) && (!bombDropped)) {
turned = false;
this.play();
this.jaw.gotoAndStop(1);
this._x = this._x + ((flyToX - this._x) / 30);
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
flyToX = _root.characterGfx._x - 10;
facingRight = false;
} else {
flyToX = _root.characterGfx._x + 30;
facingRight = true;
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
targetX = this._x + 15;
facingRight = false;
} else {
targetX = this._x - 15;
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
if (bombardPause < getTimer()) {
if (getTimer() < (bombardPause + 3000)) {
if (!bombDropped) {
_parent.fireBomb.duplicateMovieClip("mcFireBombActive", 666);
_parent.mcFireBombActive._x = targetX;
_parent.mcFireBombActive._y = this._y + 20;
bombDropped = true;
}
bombardPause = getTimer() + 3000;
bombDropped = false;
}
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x + 700;
_root.panels._x = _root.panels._x - 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe - 1);
}
}
Instance of Symbol 417 MovieClip in Frame 151
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x - 700;
_root.panels._x = _root.panels._x + 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 152
mcFireBombActive._x = mcFireBombActive._x + 10000;
sndAmbiencePalace = new Sound();
sndAmbiencePalace.attachSound("sndAmbiencePalace");
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbiencePalace.stop("sndAmbiencePalace");
sndAmbiencePalace.start(0, 1000);
Instance of Symbol 409 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x + 700;
_root.panels._x = _root.panels._x - 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe - 1);
}
}
Frame 153
gotoAndPlay (27);
Frame 160
sndAmbienceLavaValley.stop("sndAmbienceLavaValley");
sndAmbienceLavaValley = new Sound();
sndAmbienceLavaValley.attachSound("sndAmbienceLavaValley");
sndAmbienceLavaValley.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 346 MovieClip in Frame 160
onClipEvent (load) {
facingRight = false;
howDangerous = 20;
originalX = this._x;
jumpPause = getTimer() + 5000;
speed = -4;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
turned = false;
if (jumpPause < getTimer()) {
if (jumpCounter < 20) {
this.gotoAndStop(6);
this.jaw.gotoAndPlay(11);
jumpCounter++;
this._x = this._x + ((flyToX - this._x) / 10);
this._y = this._y + ((flyToY - this._y) / 10);
} else {
jumpCounter = 0;
jumpPause = getTimer() + 5000;
}
} else {
this.play();
this.jaw.gotoAndStop(1);
flyToX = _root.characterGfx._x;
flyToY = _root.characterGfx._y - 50;
this._y = this._y + ((flyToY - this._y) / 50);
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
facingRight = false;
} else {
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x - 700;
_root.panels._x = _root.panels._x + 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 415 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.level6Door = 3;
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 415 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.level6Door = 2;
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 415 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.level6Door = 1;
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 418 MovieClip "character" in Frame 160
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 202 MovieClip in Frame 160
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 160
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 160
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 160
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 207 MovieClip in Frame 160
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.addPoints("invincible");
_root.isInvisible = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 404;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.mcInvisible.gotoAndPlay("start");
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus121" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus123" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus125" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus127" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus128" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus134" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus131" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus124" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus122" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus126" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus132" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus133" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus129" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus130" in Frame 160
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 346 MovieClip in Frame 161
onClipEvent (load) {
facingRight = false;
howDangerous = 20;
originalX = this._x;
jumpPause = getTimer() + 5000;
speed = -4;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
turned = false;
if (jumpPause < getTimer()) {
if (jumpCounter < 20) {
this.gotoAndStop(6);
this.jaw.gotoAndPlay(11);
jumpCounter++;
this._x = this._x + ((flyToX - this._x) / 10);
this._y = this._y + ((flyToY - this._y) / 10);
} else {
jumpCounter = 0;
jumpPause = getTimer() + 5000;
}
} else {
this.play();
this.jaw.gotoAndStop(1);
flyToX = _root.characterGfx._x;
flyToY = _root.characterGfx._y - 50;
this._y = this._y + ((flyToY - this._y) / 50);
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
facingRight = false;
} else {
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 417 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) && (!stageHasMoved)) {
stageHasMoved = true;
_root._x = _root._x + 700;
_root.panels._x = _root.panels._x - 700;
_parent.keyboardInput._x = _parent.panels._x;
_parent.mcSquares._x = _parent.panels._x;
_root.gotoAndStop(_root._currentframe - 1);
}
}
Frame 162
gotoAndPlay (27);
Frame 170
sndAmbiencePalace = new Sound();
sndAmbiencePalace.attachSound("sndAmbiencePalace");
sndAmbiencePalace.start(0, 1000);
sndSwitch = new Sound();
sndSwitch.attachSound("sndSwitch");
if (_root.level6Door == 1) {
_root.character._y = 130;
_root.characterGfx._y = 120;
} else if (_root.level6Door == 2) {
_root.character._y = 310;
_root.characterGfx._y = 300;
}
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 506 MovieClip "light0" in Frame 170
onClipEvent (load) {
_parent.lightPressed = 0;
}
onClipEvent (enterFrame) {
if (((this.hit.hitTest(_root.character) && (_parent.mcButtonCode.readyToBePressed)) && (this._currentframe == 1)) && (!_parent.openDoor)) {
if (_parent.lightPressed < 5) {
this.gotoAndPlay("whiteLight");
_parent.mcButton.lightCombinationTest[_parent.lightPressed] = 0;
if (_parent.lightPressed == 4) {
_parent.mcButton.testLightCombination();
} else {
_parent.lightPressed++;
}
}
}
}
Instance of Symbol 506 MovieClip "light1" in Frame 170
onClipEvent (load) {
_parent.lightPressed = 0;
}
onClipEvent (enterFrame) {
if (((this.hit.hitTest(_root.character) && (_parent.mcButtonCode.readyToBePressed)) && (this._currentframe == 1)) && (!_parent.openDoor)) {
if (_parent.lightPressed < 5) {
this.gotoAndPlay("whiteLight");
_parent.mcButton.lightCombinationTest[_parent.lightPressed] = 1;
if (_parent.lightPressed == 4) {
_parent.mcButton.testLightCombination();
} else {
_parent.lightPressed++;
}
}
}
}
Instance of Symbol 506 MovieClip "light2" in Frame 170
onClipEvent (load) {
_parent.lightPressed = 0;
}
onClipEvent (enterFrame) {
if (((this.hit.hitTest(_root.character) && (_parent.mcButtonCode.readyToBePressed)) && (this._currentframe == 1)) && (!_parent.openDoor)) {
if (_parent.lightPressed < 5) {
this.gotoAndPlay("whiteLight");
_parent.mcButton.lightCombinationTest[_parent.lightPressed] = 2;
if (_parent.lightPressed == 4) {
_parent.mcButton.testLightCombination();
} else {
_parent.lightPressed++;
}
}
}
}
Instance of Symbol 350 MovieClip "mcButton" in Frame 170
onClipEvent (load) {
function testLightCombination() {
testCompare = lightCombinationTest.join("");
codeCompare = lightCombination.join("");
if (testCompare == codeCompare) {
_parent.openDoor = true;
_parent.light0.gotoAndStop("whiteLight");
_parent.light1.gotoAndStop("whiteLight");
_parent.light2.gotoAndStop("whiteLight");
_parent.lightPressed = 0;
} else {
_parent.light0.gotoAndPlay("redLight");
_parent.light1.gotoAndPlay("redLight");
_parent.light2.gotoAndPlay("redLight");
_parent.lightPressed = 0;
}
}
lightCombination = new Array();
lightCombinationTest = new Array();
i = 0;
while (i < 5) {
lightCombination[i] = random(3);
i++;
}
pauseTime = 1000;
pause = getTimer() + pauseTime;
lightCounter = 0;
}
onClipEvent (enterFrame) {
if ((!_parent.mcButtonCode.readyToBePressed) && (!_parent.openDoor)) {
_parent.lightPressed = 0;
if (pause < getTimer()) {
if (lightCounter < 5) {
_parent["light" + lightCombination[lightCounter]].gotoAndPlay("whiteLight");
pause = getTimer() + pauseTime;
lightCounter++;
} else {
lightCounter = 0;
_parent.mcButtonCode.readyToBePressed = true;
_parent.mcButtonCode._y = _parent.mcButtonCode._y - 10;
this._y = this._y - 10;
}
}
}
}
Instance of Symbol 191 MovieClip in Frame 170
onClipEvent (load) {
howDangerous = 20;
this.gotoAndPlay(5);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700))) {
if ((this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((!_root.isInvisible) && (!this.hit.hitTest(_parent.characterGfx.hit))) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "mcButtonCode" in Frame 170
onClipEvent (load) {
readyToBePressed = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
if (readyToBePressed) {
_root.sndSwitch.start(0, 0);
this._y = this._y + 10;
_parent.mcButton._y = _parent.mcButton._y + 10;
readyToBePressed = false;
}
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus137" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus136" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus135" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus138" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus140" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus142" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus144" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus139" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus141" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus143" in Frame 170
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 436 MovieClip "door01" in Frame 170
onClipEvent (enterFrame) {
if (!_parent.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 415 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 418 MovieClip "character" in Frame 170
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 202 MovieClip in Frame 170
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 170
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 170
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 196 MovieClip in Frame 170
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.extrasJump = true;
_root.addPoints("jump");
_root.character.maxJumpHeight = 50;
_root.character.jumpSpeed = _root.character.maxJumpHeight;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 402;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder2.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Frame 171
gotoAndPlay (27);
Frame 180
sndAmbiencePalace.stop("sndAmbiencePalace");
sndAmbiencePalace = new Sound();
sndAmbiencePalace.attachSound("sndAmbiencePalace");
sndAmbiencePalace.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform1" in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 183 MovieClip "creature1" in Frame 180
onClipEvent (load) {
howDangerous = 12;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform1.hitTest(this._x, this._y + 20, true)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 436 MovieClip "door01" in Frame 180
onClipEvent (enterFrame) {
if (!_root.key01.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 180
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.character) && (!stageHasMoved)) && (_root.character._x < this._x)) {
this._x = this._x - (this._width + 80);
_root._x = _root._x - 700;
_parent.panels._x = _parent.panels._x + 700;
_parent.mcSquares._x = _parent.mcSquares._x + 700;
_parent.keyboardInput._x = _parent.keyboardInput._x + 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe + 1);
_parent.door01._x = _parent.door01._x + 20;
_parent.door01._xscale = -100;
} else if ((this.hitTest(_root.character) && (!stageHasMoved)) && (this._x < _root.character._x)) {
this._x = this._x + (this._width + 80);
_root._x = _root._x + 700;
_parent.panels._x = _parent.panels._x - 700;
_parent.mcSquares._x = _parent.mcSquares._x - 700;
_parent.keyboardInput._x = _parent.keyboardInput._x - 700;
stageHasMoved = true;
_root.gotoAndStop(_root._currentframe - 1);
_parent.door01._x = _parent.door01._x - 20;
_parent.door01._xscale = 100;
} else if (stageHasMoved) {
stageHasMoved = false;
}
}
Instance of Symbol 415 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 180
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 418 MovieClip "character" in Frame 180
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 105 MovieClip "characterGfx" in Frame 180
onClipEvent (enterFrame) {
_parent.level8mask._x = this._x;
_parent.level8mask._y = this._y;
_parent.level8mask.level8bg._x = (-this._x) + 350;
_parent.level8mask.level8bg._y = (-this._y) + 250;
}
Instance of Symbol 419 MovieClip in Frame 180
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hit.hitTest(_root.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 204 MovieClip "key01" in Frame 180
onClipEvent (load) {
flyToY = _parent.door01._y;
flyToX = _parent.door01._x;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus145" in Frame 180
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 180
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 180
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Frame 182
gotoAndPlay (27);
Frame 190
sndAmbiencePalace = new Sound();
sndAmbiencePalace.attachSound("sndAmbiencePalace");
sndAmbiencePalace.start(0, 1000);
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 360 MovieClip "plattform5" in Frame 190
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform4" in Frame 190
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform6" in Frame 190
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform1" in Frame 190
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform2" in Frame 190
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform3" in Frame 190
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform7" in Frame 190
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform8" in Frame 190
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform9" in Frame 190
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 183 MovieClip in Frame 190
onClipEvent (load) {
howDangerous = 20;
speed = -4;
maxSpeed = speed;
turned = false;
weapon = "bite";
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
this.jaw.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x, this._y + 20, true)) {
if (0 < speed) {
if (_parent.monsterPlatform2.hitTest(this._x + 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else if (speed < 0) {
if (_parent.monsterPlatform2.hitTest(this._x - 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else {
readyToJump = false;
}
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x - 10;
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + 10;
}
}
}
} else {
this.stop();
this.jaw.stop();
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus153" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus147" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus154" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus148" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus146" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus152" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus150" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus149" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus151" in Frame 190
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 415 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 190
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares._x = _parent.panels._x;
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_parent.gotoAndPlay("levelCompleted");
walkedOutside = false;
}
}
}
Instance of Symbol 418 MovieClip "character" in Frame 190
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 202 MovieClip in Frame 190
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 190
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 190
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Frame 191
gotoAndPlay (27);
Frame 200
sndAmbiencePalace = new Sound();
sndAmbiencePalace.attachSound("sndAmbiencePalace");
sndAmbiencePalace.start(0, 1000);
sndGameCompleted = new Sound();
sndGameCompleted.attachSound("sndGameCompleted");
_root.panels.totalGold.gotoAndStop(totalGoldCollected);
panels._visible = true;
panels._x = 0;
stop();
Instance of Symbol 183 MovieClip in Frame 200
onClipEvent (load) {
howDangerous = 12;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform1.hitTest(this._x, this._y + 20, true)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 360 MovieClip "plattform3" in Frame 200
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform2" in Frame 200
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform1" in Frame 200
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform4" in Frame 200
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip in Frame 200
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "m2" in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform1" in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 436 MovieClip "door01" in Frame 200
onClipEvent (enterFrame) {
if (!_parent.key01.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 418 MovieClip "character" in Frame 200
onClipEvent (load) {
function showPose(pose, flip) {
if ((poseIsPlaying != pose) or (flippedOrNot != flip)) {
if (flip) {
_parent.characterGfx._xscale = -80;
_parent.characterGfx.gotoAndPlay(pose);
} else {
_parent.characterGfx._xscale = 80;
_parent.characterGfx.gotoAndPlay(pose);
}
}
poseIsPlaying = pose;
flippedOrNot = flip;
}
if (!_root.extrasSpeed) {
maxSpeed = 8;
friction = maxSpeed / 10;
} else {
maxSpeed = 10;
friction = maxSpeed / 5;
}
if (!_root.extrasJump) {
maxJumpHeight = 30;
} else {
maxJumpHeight = 50;
}
maxFallSpeed = 20;
jumpSpeed = maxJumpHeight;
jumpKeyReleased = true;
fallingSpeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.outOfEnergy)) {
_parent.characterGfx.eyes.play();
_parent.characterGfx._x = this._x;
_parent.characterGfx._y = this._y;
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(39) && (!Key.isDown(37))) {
if ((!jumping) && (_root.onPlatform)) {
if (speed < -1) {
showPose("turn", false);
} else {
showPose("run", true);
}
}
if (speed < maxSpeed) {
speed = speed + friction;
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((!jumping) && (_root.onPlatform)) {
if (1 < speed) {
showPose("turn", true);
} else {
showPose("run", false);
}
}
if ((-maxSpeed) < speed) {
speed = speed - friction;
}
}
} else if (speed != 0) {
if (1 < speed) {
speed = speed - friction;
} else if (speed < -1) {
speed = speed + friction;
} else {
speed = 0;
}
} else if (_root.againstWall) {
_root.againstWall = false;
} else if (!jumping) {
showPose("idle", false);
}
this._x = this._x + speed;
if ((!_root.onPlatform) && (!jumping)) {
if (fallingSpeed < maxFallSpeed) {
fallingSpeed++;
}
if (speed < 0) {
showPose("fall", false);
} else if (0 < speed) {
showPose("fall", true);
} else {
showPose("jumpStill", false);
}
this._y = this._y + fallingSpeed;
} else if ((Key.isDown(38) && (6 < jumpSpeed)) && (jumpKeyReleased)) {
jumping = true;
jumpSpeed = jumpSpeed / 1.2;
if (0 < speed) {
jumpSpeed = jumpSpeed + (speed / (maxJumpHeight / 2));
showPose("jump", true);
} else if (speed < 0) {
jumpSpeed = jumpSpeed - (speed / (maxJumpHeight / 2));
showPose("jump", false);
} else {
showPose("jumpStill", false);
}
this._y = this._y - jumpSpeed;
} else if (jumping) {
jumpKeyReleased = false;
jumping = false;
jumpSpeed = maxJumpHeight;
fallingSpeed = -1;
} else if ((!Key.isDown(38)) && (!jumpKeyReleased)) {
jumpKeyReleased = true;
}
} else {
_parent.characterGfx.stop();
_parent.characterGfx.eyes.stop();
}
if (_root.onPlatform && (!alreadyLanded)) {
alreadyLanded = true;
_root.sndZedLand.start(0, 0);
} else if (!_root.onPlatform) {
alreadyLanded = false;
}
if (jumpSpeed < 1) {
jumpSpeed = maxJumpHeight;
}
if ((zedIsHurting && (!_root.isInvisible)) && (removeHurtCounter < getTimer())) {
removeHurtCounter = getTimer() + 100;
changeZedColour("normal");
}
_root.onPlatform = false;
}
Instance of Symbol 204 MovieClip "key01" in Frame 200
onClipEvent (load) {
flyToY = _parent.door01._y;
flyToX = _parent.door01._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus155" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus156" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 205 MovieClip in Frame 200
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("speed");
_root.character.maxSpeed = 10;
_root.character.friction = _root.character.maxSpeed / 5;
_root.extrasSpeed = true;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 368;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder1.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus160" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus158" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus157" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus159" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(200);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus162" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus163" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus164" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus161" in Frame 200
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip in Frame 201
onClipEvent (load) {
stop();
}
Instance of Symbol 183 MovieClip in Frame 201
onClipEvent (load) {
howDangerous = 20;
sittingOn = "platform3";
weapon = "fire";
firing = false;
speed = -4;
maxSpeed = speed;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!jaw.fireInTheHall) {
this.play();
this.jaw.play();
}
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((this.jaw.hitFlames.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop((_root.panels.energy._currentframe + howDangerous) + 10);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x + speed, this._y + 20, true)) {
this._x = this._x + int(speed);
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x + (speed * 3);
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + (speed * 3);
}
}
}
} else {
this.stop();
this.jaw.stop();
jaw.fireInTheHall = false;
}
}
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 201
/* no clip actions */
Instance of Symbol 409 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 436 MovieClip "door02" in Frame 201
onClipEvent (enterFrame) {
if (!_parent.key02.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 436 MovieClip in Frame 201
onClipEvent (enterFrame) {
if (!init) {
this.gotoAndPlay("close");
init = true;
}
}
Instance of Symbol 204 MovieClip "key02" in Frame 201
onClipEvent (load) {
flyToY = _parent.door02._y;
flyToX = _parent.door02._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus165" in Frame 201
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus172" in Frame 201
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus169" in Frame 201
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus171" in Frame 201
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 360 MovieClip "plattform3" in Frame 202
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform2" in Frame 202
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform1" in Frame 202
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
}
}
}
Instance of Symbol 183 MovieClip in Frame 202
onClipEvent (load) {
howDangerous = 20;
speed = -4;
maxSpeed = speed;
turned = false;
weapon = "bite";
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
this.jaw.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x, this._y + 20, true)) {
if (0 < speed) {
if (_parent.monsterPlatform2.hitTest(this._x + 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else if (speed < 0) {
if (_parent.monsterPlatform2.hitTest(this._x - 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else {
readyToJump = false;
}
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x - 10;
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + 10;
}
}
}
} else {
this.stop();
this.jaw.stop();
}
}
Instance of Symbol 183 MovieClip in Frame 202
onClipEvent (load) {
howDangerous = 20;
speed = -4;
maxSpeed = speed;
turned = false;
weapon = "bite";
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
this.jaw.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if (_parent.monsterPlatform2.hitTest(this._x, this._y + 20, true)) {
if (0 < speed) {
if (_parent.monsterPlatform2.hitTest(this._x + 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else if (speed < 0) {
if (_parent.monsterPlatform2.hitTest(this._x - 100, this._y + 20, true)) {
readyToJump = true;
} else {
readyToJump = false;
}
} else {
readyToJump = false;
}
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
if (0 < speed) {
speed = maxSpeed;
this._x = this._x - 10;
} else if (speed < 0) {
speed = -maxSpeed;
this._x = this._x + 10;
}
}
}
} else {
this.stop();
this.jaw.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus175" in Frame 202
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus176" in Frame 202
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus174" in Frame 202
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus173" in Frame 202
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 436 MovieClip "door03" in Frame 202
onClipEvent (enterFrame) {
if (!_parent.key03.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 436 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (!init) {
this.gotoAndPlay("close");
init = true;
}
}
Instance of Symbol 204 MovieClip "key03" in Frame 202
onClipEvent (load) {
flyToY = _parent.door03._y;
flyToX = _parent.door03._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 202
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hit.hitTest(_root.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 360 MovieClip "plattform3" in Frame 203
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform1" in Frame 203
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
}
}
}
Instance of Symbol 346 MovieClip in Frame 203
onClipEvent (load) {
howDangerous = 12;
originalX = this._x;
maxX = originalX + 100;
minX = originalX - 100;
speed = -4;
turned = false;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
if ((minX < this._x) && (this._x < maxX)) {
this._x = this._x + speed;
} else if (!turned) {
this.gotoAndPlay("turn");
turning = true;
this._xscale = this._xscale - (this._xscale * 2);
speed = -speed;
this._x = this._x + speed;
}
}
} else {
this.stop();
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus177" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus178" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus179" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus180" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus181" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus182" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus183" in Frame 203
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 436 MovieClip "door04" in Frame 203
onClipEvent (enterFrame) {
if (!_parent.key04.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 436 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (!init) {
this.gotoAndPlay("close");
init = true;
}
}
Instance of Symbol 204 MovieClip "key04" in Frame 203
onClipEvent (load) {
flyToY = _parent.door04._y;
flyToX = _parent.door04._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 360 MovieClip in Frame 204
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip in Frame 204
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip in Frame 204
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip in Frame 204
onClipEvent (load) {
stop();
}
Instance of Symbol 360 MovieClip "plattform2" in Frame 204
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform3" in Frame 204
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform1" in Frame 204
onClipEvent (load) {
setActive = 0;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip "plattform4" in Frame 204
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 346 MovieClip in Frame 204
onClipEvent (load) {
_parent.fireBombCounter = 0;
howDangerous = 20;
facingRight = false;
originalX = this._x;
speed = -4;
turned = false;
bombardPause = getTimer() + 5000;
this.GotoAndPlay("none");
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if (((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if ((!turning) && (!bombDropped)) {
turned = false;
this.play();
this.jaw.gotoAndStop(1);
this._x = this._x + ((flyToX - this._x) / 30);
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
flyToX = _root.characterGfx._x - 10;
facingRight = false;
} else {
flyToX = _root.characterGfx._x + 30;
facingRight = true;
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
targetX = this._x + 15;
facingRight = false;
} else {
targetX = this._x - 15;
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
if (bombardPause < getTimer()) {
if (getTimer() < (bombardPause + 3000)) {
if (!bombDropped) {
_parent.fireBomb.duplicateMovieClip("mcFireBombActive", 666);
_parent.mcFireBombActive._x = targetX;
_parent.mcFireBombActive._y = this._y + 20;
bombDropped = true;
}
bombardPause = getTimer() + 3000;
bombDropped = false;
}
}
} else {
this.stop();
}
}
Instance of Symbol 13 MovieClip [mcFireBomb] "fireBomb" in Frame 204
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._y < 550) {
if (((!_root.isInvisible) && (this.hitTest(_root.characterGfx.hit))) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitTest(_root.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
this._y = this._y + 6;
} else if (!done) {
done = true;
this.stop();
}
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus187" in Frame 204
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus184" in Frame 204
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus185" in Frame 204
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus186" in Frame 204
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 436 MovieClip "door05" in Frame 204
onClipEvent (enterFrame) {
if (!_parent.key05.openDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 417 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 436 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (!init) {
this.gotoAndPlay("close");
init = true;
}
}
Instance of Symbol 204 MovieClip "key05" in Frame 204
onClipEvent (load) {
flyToY = _parent.door05._y;
flyToX = _parent.door05._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 419 MovieClip in Frame 204
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hit.hitTest(_root.characterGfx.hit) && (!init)) {
_root.addPoints("energy");
this.gotoAndPlay("collected");
init = true;
} else if (collected) {
flyToX = _root.panels._x + 140;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
_root.panels.energy.gotoAndStop(1);
collected = false;
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 360 MovieClip in Frame 205
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "bonus194" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus188" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus189" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus190" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus191" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus192" in Frame 205
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 417 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 700;
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 436 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (!init) {
this.gotoAndPlay("close");
init = true;
}
}
Instance of Symbol 346 MovieClip in Frame 205
onClipEvent (load) {
_parent.mcFireBombActive._x = _parent.mcFireBombActive._x + 10000;
facingRight = false;
howDangerous = 20;
originalX = this._x;
jumpPause = getTimer() + 5000;
speed = -4;
turned = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hitBody.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hitBody.hitTest(_parent.characterGfx.hit))) && (!_root.bonusIsGrabbed)) && (!doneChecking)) {
_root.changeZedColour("normal");
doneChecking = true;
}
if (!turning) {
turned = false;
if (jumpPause < getTimer()) {
if (jumpCounter < 20) {
this.gotoAndStop(6);
this.jaw.gotoAndPlay(11);
jumpCounter++;
this._x = this._x + ((flyToX - this._x) / 10);
this._y = this._y + ((flyToY - this._y) / 10);
} else {
jumpCounter = 0;
jumpPause = getTimer() + 5000;
}
} else {
this.play();
this.jaw.gotoAndStop(1);
flyToX = _root.characterGfx._x;
flyToY = _root.characterGfx._y - 50;
this._y = this._y + ((flyToY - this._y) / 50);
}
facingRightTemp = facingRight;
if ((flyToX - this._x) < 0) {
facingRight = false;
} else {
facingRight = true;
}
if (facingRightTemp != facingRight) {
turning = true;
}
} else if (turning && (!turned)) {
turned = true;
this.gotoAndPlay("turn");
this._xscale = this._xscale - (this._xscale * 2);
}
} else {
this.stop();
}
}
Instance of Symbol 415 MovieClip in Frame 205
onClipEvent (enterFrame) {
if (!_root.openGoldDoor) {
if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
} else if (!doorIsOpened) {
this.gotoAndPlay("open");
doorIsOpened = true;
}
}
Instance of Symbol 202 MovieClip in Frame 205
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 205
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Frame 205
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Frame 206
characterGfx._visible = true;
sndAmbiencePalace.stop("sndAmbiencePalace");
Instance of Symbol 409 MovieClip "monsterPlatform2" in Frame 206
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 206
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 409 MovieClip in Frame 206
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
Instance of Symbol 198 MovieClip "201" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "202" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "203" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus195" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus196" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus197" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus198" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "bonus199" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 198 MovieClip "200" in Frame 206
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 531 MovieClip in Frame 206
onClipEvent (load) {
moveSpeed = 2;
originalYposition = this._y;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._y < -30) {
this._y = originalYposition;
} else {
this._y = this._y - moveSpeed;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 417 MovieClip in Frame 206
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_parent.mcSquares.gotoAndPlay("in");
walkedOutside = true;
_parent.character._x = _parent.character._x + 10000;
_parent.characterGfx._x = _parent.characterGfx._x + 10000;
} else if (walkedOutside) {
if (_root.fadeOut) {
_root.fadeOut = false;
_parent.mcSquares._x = 0;
_parent.mcSquares.gotoAndPlay("out");
_root.gotoAndPlay("gameCompleted");
walkedOutside = false;
}
}
}
Frame 207
gotoAndPlay (27);
Symbol 13 MovieClip [mcFireBomb] Frame 2
_root.sndFlame.start(0, 0);
Symbol 13 MovieClip [mcFireBomb] Frame 15
stop();
Symbol 18 MovieClip Frame 1
Symbol 18 MovieClip Frame 8
stop();
Symbol 18 MovieClip Frame 15
stop();
Symbol 19 MovieClip [mcSquare] Frame 1
_root.noTransition = true;
stop();
Symbol 19 MovieClip [mcSquare] Frame 3
_root.noTransition = false;
squareCounter = 0;
_root.gamePaused = true;
_root.transition = false;
_root.fadeOut = false;
_root.fadeIn = true;
_root.sndFadeIn.start(0, 200);
Symbol 19 MovieClip [mcSquare] Frame 5
if (squareCounter < 34) {
this["mcSquare" + squareCounter]._alpha = 100;
squareCounter++;
this["mcSquare" + (squareCounter - 1)].duplicateMovieClip("mcSquare" + squareCounter, squareCounter);
if ((squareCounter % 2) == 0) {
squareColour = new Color(this["mcSquare" + squareCounter]);
squareColour.setRGB(305151);
} else {
squareColour = new Color(this["mcSquare" + squareCounter]);
squareColour.setRGB(35799);
}
if ((mcSquare0._x + 500) < this["mcSquare" + (squareCounter - 1)]._x) {
this["mcSquare" + squareCounter]._x = this["mcSquare" + squareCounter]._x - 600;
this["mcSquare" + squareCounter]._y = this["mcSquare" + squareCounter]._y + 100;
} else {
this["mcSquare" + squareCounter]._x = this["mcSquare" + squareCounter]._x + 100;
}
gotoAndPlay(_currentframe - 1);
} else {
_root.sndFadeIn.stop("sndFadeIn");
}
Symbol 19 MovieClip [mcSquare] Frame 12
_root.fadeOut = true;
_root.fadeIn = false;
squareCounter = 0;
_root.sndFadeOut.start(0, 200);
stop();
Symbol 19 MovieClip [mcSquare] Frame 14
if (squareCounter < 35) {
this["mcSquare" + squareCounter].play();
gotoAndPlay(_currentframe - 1);
squareCounter++;
} else {
_root.sndFadeOut.stop("sndFadeOut");
squareCounter1 = 0;
squareCounter = 0;
_root.gamePaused = false;
}
Symbol 19 MovieClip [mcSquare] Frame 23
_root.fadeOut = false;
_root.fadeIn = true;
gotoAndStop (1);
Symbol 43 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 44 Button
on (release) {
getURL ("http://www.totebo.com", "_blank");
}
Symbol 45 MovieClip Frame 122
_root.gotoAndPlay("preLoad");
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 100
stop();
Symbol 104 MovieClip Frame 1
_root.resurrect = false;
Symbol 104 MovieClip Frame 24
_root.losingLife = false;
_root.resurrect = true;
_root.character.speed = 0;
_root.outOfEnergy = false;
if (0 < _root.livesLeft) {
_root.character.showPose("idle", false);
_parent.gotoAndPlay("idle");
}
Symbol 104 MovieClip Frame 25
stop();
Instance of Symbol 87 MovieClip "mcInvincible" in Symbol 105 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 105 MovieClip Frame 17
if (!_root.outOfEnergy) {
gotoAndPlay (1);
} else {
gotoAndStop (76);
}
Symbol 105 MovieClip Frame 41
if (!_root.outOfEnergy) {
gotoAndPlay (18);
} else {
gotoAndStop (76);
}
Symbol 105 MovieClip Frame 44
stop();
Symbol 105 MovieClip Frame 53
stop();
Symbol 105 MovieClip Frame 59
stop();
Symbol 105 MovieClip Frame 74
stop();
Symbol 105 MovieClip Frame 76
_root.sndZedDie.start(0, 0);
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 4
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 3
if (_root.soundOn) {
_root.globalsound.setVolume(100);
txtSound = "SOUND ON";
} else {
_root.globalsound.setVolume(0);
txtSound = "SOUND OFF";
}
Symbol 114 MovieClip Frame 26
gotoAndStop (1);
Symbol 115 MovieClip Frame 1
stop();
Symbol 119 Button
on (rollOver) {
play();
}
on (rollOut, releaseOutside) {
gotoAndPlay (8);
}
on (release) {
getURL ("http://www.totebo.com", "_blank");
}
Symbol 121 Button
on (rollOut, releaseOutside) {
play();
}
on (release) {
getURL ("http://www.totebo.com", "_blank");
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 7
stop();
Symbol 138 Button
on (release) {
play();
}
Symbol 175 MovieClip Frame 1
gotoAndPlay(_parent.weapon);
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 7
_root.sndGrowl.stop("sndGrowl");
if (0 < _parent.speed) {
_parent.speed = -_parent.maxSpeed;
} else {
_parent.speed = _parent.maxSpeed;
}
Symbol 175 MovieClip Frame 10
if ((random(10) or (!_parent.readyToJump)) or _parent.turning) {
gotoAndPlay (7);
}
Symbol 175 MovieClip Frame 11
if (_parent.readyToJump and (!_parent.turning)) {
_parent.speed = _parent.speed * 4;
_root.sndGrowl.start(0, 0);
}
Symbol 175 MovieClip Frame 17
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 20
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 22
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 23
_parent.speed = _parent.speed / 2;
gotoAndPlay (7);
Symbol 175 MovieClip Frame 24
Symbol 175 MovieClip Frame 27
if (random(10) or _parent.turning) {
gotoAndPlay (24);
}
Symbol 175 MovieClip Frame 28
fireInTheHall = true;
Symbol 175 MovieClip Frame 34
_root.sndFlame.start(0, 0);
tempSpeed = _parent.speed;
_parent.stop();
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 37
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 40
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 43
_parent.speed = _parent.speed / 2;
Symbol 175 MovieClip Frame 46
_parent.speed = 0;
Symbol 175 MovieClip Frame 60
_root.sndFlame.stop("sndFlame");
_parent.speed = tempSpeed;
_parent.play();
Symbol 175 MovieClip Frame 62
fireInTheHall = false;
gotoAndPlay (24);
Symbol 183 MovieClip Frame 22
if (!turning) {
gotoAndPlay (1);
} else {
gotoAndPlay (25);
}
Symbol 183 MovieClip Frame 31
turning = false;
gotoAndPlay (1);
Symbol 187 MovieClip Frame 61
_root.sndFlame.start(0, 0);
Symbol 187 MovieClip Frame 89
Symbol 191 MovieClip Frame 4
if (counter < 15) {
counter++;
gotoAndPlay (1);
} else {
counter = 0;
}
Symbol 191 MovieClip Frame 5
_root.sndSpikes.start(0, 0);
Symbol 191 MovieClip Frame 8
if (counter < 15) {
counter++;
gotoAndPlay(_currentframe - 1);
} else {
counter = 0;
}
Symbol 191 MovieClip Frame 11
_root.sndSpikes.start(0, 0);
gotoAndPlay (1);
Symbol 191 MovieClip Frame 41
gotoAndPlay (1);
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 10
if (!_root.isInvisible) {
_root.changeZedColour("jump");
_root.bonusIsGrabbed = true;
}
play();
Symbol 196 MovieClip Frame 19
if (!_root.isInvisible) {
_root.changeZedColour("normal");
_root.bonusIsGrabbed = false;
}
collected = true;
Symbol 196 MovieClip Frame 43
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 21
stop();
Symbol 202 MovieClip Frame 30
if (random(20) && (!collected)) {
gotoAndPlay (1);
}
Symbol 202 MovieClip Frame 40
if (!collected) {
gotoAndPlay (1);
}
Symbol 202 MovieClip Frame 41
if (!_root.isInvisible) {
_root.changeZedColour("Gold");
_root.bonusIsGrabbed = true;
}
_root.bonusIsGrabbed = true;
Symbol 202 MovieClip Frame 49
if (!_root.isInvisible) {
_root.changeZedColour("normal");
_root.bonusIsGrabbed = true;
}
_root.bonusIsGrabbed = false;
bonusCollected = true;
Symbol 202 MovieClip Frame 79
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 21
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 10
if (!_root.isInvisible) {
_root.changeZedColour("speed");
_root.bonusIsGrabbed = true;
}
play();
Symbol 205 MovieClip Frame 19
if (!_root.isInvisible) {
_root.changeZedColour("normal");
_root.bonusIsGrabbed = false;
}
collected = true;
Symbol 205 MovieClip Frame 46
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 10
play();
Symbol 207 MovieClip Frame 19
collected = true;
Symbol 207 MovieClip Frame 39
stop();
Symbol 212 MovieClip Frame 1
if (0 < _root.dataFileScore) {
txtDataFileScore = _root.dataFileScore;
txtDataFileLevel = _root.dataFileLevel;
txtDataFileGold = _root.dataFileGold + "%";
stop();
} else {
gotoAndStop (2);
}
Instance of Symbol 105 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay("idle");
}
Symbol 212 MovieClip Frame 2
stop();
Instance of Symbol 105 MovieClip in Symbol 212 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay("runLoop");
}
Instance of Symbol 105 MovieClip in Symbol 212 MovieClip Frame 2
onClipEvent (load) {
this._xscale = this._xscale + -100;
this.gotoAndPlay("runLoop");
}
Instance of Symbol 105 MovieClip in Symbol 212 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop("jumpStill");
}
Symbol 212 MovieClip Frame 3
stop();
Instance of Symbol 183 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (21);
}
Instance of Symbol 187 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (72);
}
Instance of Symbol 191 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 196 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.extrasJump = true;
_root.addPoints("jump");
_root.character.maxJumpHeight = 50;
_root.character.jumpSpeed = _root.character.maxJumpHeight;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 402;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder2.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints(500);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 204 MovieClip "key01" in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
flyToY = _parent.door01._y;
flyToX = _parent.door01._x;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hitTest(_parent.characterGfx.hit) && (!collected)) {
_root.addPoints("Key");
collected = true;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
openDoor = true;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!init)) {
_root.addPoints("speed");
_root.character.maxSpeed = 10;
_root.character.friction = _root.character.maxSpeed / 5;
_root.extrasSpeed = true;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 368;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder1.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 207 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (load) {
flyToY = 66;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && ((_root.panels._x < this._x) && (this._x < (_root.panels._x + 700)))) {
if (this.hit.hitTest(_parent.characterGfx.hit) && (!_root.isInvisible)) {
_root.addPoints("invincible");
_root.isInvisible = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 404;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.mcInvisible.gotoAndPlay("start");
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Symbol 212 MovieClip Frame 4
stop();
Symbol 221 Button
on (release) {
if (!mcCode.error) {
arrBalls = new Array(mcCode.balls1Position, mcCode.balls2Position, mcCode.balls3Position, mcCode.balls4Position, mcCode.balls5Position);
mcCode.continueQuest(arrBalls);
}
}
Symbol 225 Button
on (release) {
_root.currentLevel = 1;
play();
}
Symbol 236 MovieClip Frame 1
function continueQuest(arrBalls) {
correctCodeInserted = "false";
intBalls = arrBalls.join("");
i = 1;
while (i < 11) {
levelCode = _root["arrLevelCode" + i].join("");
if (intBalls == levelCode) {
_root.currentLevel = i;
_root.totalGoldCollected = (i * 3) - 3;
_root.panels.totalGold.gotoAndStop(_root.totalGoldCollected);
correctCodeInserted = true;
}
i++;
}
if (!correctCodeInserted) {
gotoAndPlay (2);
} else {
_root.grabBonus();
if (_root.currentLevel != 1) {
percentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if ((percentLoaded >= 100) or (_root._framesloaded >= (100 + (_root.currentLevel * 10)))) {
_root.play();
gotoAndPlay (159);
} else {
gotoAndPlay (167);
}
} else {
_root.play();
gotoAndPlay (159);
}
}
}
function showCode(currentLevel) {
i = 0;
while (i < 5) {
this["balls" + (i + 1)]._y = this["balls" + (i + 1)]._y - ((_root["arrLevelCode" + currentLevel][i] - 1) * 20);
i++;
}
}
stop();
Instance of Symbol 229 MovieClip "balls3" in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
_parent.balls3Position = 1;
}
Instance of Symbol 229 MovieClip "balls2" in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
_parent.balls2Position = 1;
}
Instance of Symbol 229 MovieClip "balls1" in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
_parent.balls1Position = 1;
}
Instance of Symbol 229 MovieClip "balls4" in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
_parent.balls4Position = 1;
}
Instance of Symbol 229 MovieClip "balls5" in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
_parent.balls5Position = 1;
}
Symbol 236 MovieClip Frame 2
error = true;
Symbol 236 MovieClip Frame 158
error = false;
gotoAndStop (1);
Symbol 236 MovieClip Frame 160
stop();
Symbol 236 MovieClip Frame 168
percentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loading.gotoAndStop(percentLoaded);
if (percentLoaded < 100) {
gotoAndPlay(_currentframe - 1);
}
Symbol 236 MovieClip Frame 169
_root.play();
stop();
Symbol 237 Button
on (release) {
if (mcCode.balls1Position == 5) {
mcCode.balls1._y = mcCode.balls1._y + 100;
mcCode.balls1Position = 0;
}
mcCode.balls1._y = mcCode.balls1._y - 20;
mcCode.balls1Position = mcCode.balls1Position + 1;
}
Symbol 238 Button
on (release) {
if (mcCode.balls2Position == 5) {
mcCode.balls2._y = mcCode.balls2._y + 100;
mcCode.balls2Position = 0;
}
mcCode.balls2._y = mcCode.balls2._y - 20;
mcCode.balls2Position = mcCode.balls2Position + 1;
}
Symbol 239 Button
on (release) {
if (mcCode.balls3Position == 5) {
mcCode.balls3._y = mcCode.balls3._y + 100;
mcCode.balls3Position = 0;
}
mcCode.balls3._y = mcCode.balls3._y - 20;
mcCode.balls3Position = mcCode.balls3Position + 1;
}
Symbol 240 Button
on (release) {
if (mcCode.balls4Position == 5) {
mcCode.balls4._y = mcCode.balls4._y + 100;
mcCode.balls4Position = 0;
}
mcCode.balls4._y = mcCode.balls4._y - 20;
mcCode.balls4Position = mcCode.balls4Position + 1;
}
Symbol 241 Button
on (release) {
if (mcCode.balls5Position == 5) {
mcCode.balls5._y = mcCode.balls5._y + 100;
mcCode.balls5Position = 0;
}
mcCode.balls5._y = mcCode.balls5._y - 20;
mcCode.balls5Position = mcCode.balls5Position + 1;
}
Symbol 253 MovieClip Frame 1
if (!init) {
init = true;
gotoAndPlay(random(_totalframes));
}
Symbol 253 MovieClip Frame 50
if (random(10)) {
gotoAndPlay (1);
}
Symbol 258 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 262 Button
on (release) {
getURL ("http://www.miniclip.com/signup.htm", "_blank");
}
Symbol 266 Button
on (release) {
getURL ("http://www.miniclip.com/download_zed.htm", "_blank");
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 3
stop();
Symbol 277 MovieClip Frame 4
stop();
Symbol 289 MovieClip Frame 1
_root.characterGfx._alpha = 100;
_root.untouchable = false;
stop();
Instance of Symbol 285 MovieClip in Symbol 289 MovieClip Frame 152
onClipEvent (load) {
_root.untouchable = true;
_root.character.maxSpeed = 8;
_root.character.friction = _root.character.maxSpeed / 10;
_root.character.maxJumpHeight = 30;
_root.character.jumpSpeed = _root.character.maxJumpHeight;
_root.extrasSpeed = false;
_root.extrasJump = false;
_root.panels.bonusHolder1.gotoAndStop(1);
_root.panels.bonusHolder2.gotoAndStop(1);
_root.livesLeft--;
_root.outOfEnergy = true;
_root.panels.lives.gotoAndPlay("livesLeft" + _root.livesLeft);
_root.characterGfx.gotoAndPlay("loseLife");
_root.changeZedColour("normal");
if (_root.livesLeft < 1) {
_root.mcSquares.gotoAndPlay("in");
}
_parent.stop();
}
onClipEvent (enterFrame) {
if (_root.fadeOut && (_root.livesLeft < 1)) {
_root.mcSquares._x = 0;
_root.mcSquares.gotoAndPlay("out");
_root.gotoAndPlay("gameOver");
_parent.gotoAndPlay(1);
} else if (_root.resurrect && (0 < _root.livesLeft)) {
_parent.gotoAndPlay("lblRestore");
}
}
Symbol 289 MovieClip Frame 267
_root.characterGfx._alpha = 100;
Instance of Symbol 285 MovieClip in Symbol 289 MovieClip Frame 267
onClipEvent (load) {
flashDuration = getTimer() + 2000;
}
onClipEvent (enterFrame) {
if (getTimer() < flashDuration) {
flashCounter++;
if ((flashCounter % 2) == 0) {
_root.characterGfx._alpha = 100;
} else {
_root.characterGfx._alpha = 0;
}
} else {
flashCounter = 0;
}
}
Symbol 289 MovieClip Frame 320
_root.characterGfx._alpha = 100;
Symbol 289 MovieClip Frame 321
_root.characterGfx._alpha = 100;
Symbol 289 MovieClip Frame 322
_root.characterGfx._alpha = 100;
Symbol 289 MovieClip Frame 323
_root.characterGfx._alpha = 100;
_root.untouchable = false;
gotoAndStop (1);
Symbol 294 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
_parent.mcInvisible._visible = false;
stop();
Symbol 299 MovieClip Frame 2
_parent.mcInvisible._visible = true;
_root.changeZedColour("invincible");
_root.characterGfx.mcInvincible._visible = true;
Symbol 299 MovieClip Frame 200
_root.changeZedColour("normal");
_root.isInvisible = false;
_parent.mcInvisible._visible = false;
_root.characterGfx._alpha = 100;
_root.characterGfx.mcInvincible._visible = false;
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 22
stop();
Symbol 300 MovieClip Frame 36
stop();
Symbol 300 MovieClip Frame 51
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 308 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Instance of Symbol 299 MovieClip "mcInvisible" in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.isInvisible) {
if (_root.gamePaused && (!stopped)) {
stopped = true;
this.stop();
} else if ((!_root.gamePaused) && (stopped)) {
stopped = false;
this.play();
}
}
}
Symbol 346 MovieClip Frame 17
if (!turning) {
gotoAndPlay (1);
} else {
gotoAndPlay (32);
}
Symbol 346 MovieClip Frame 38
turning = false;
gotoAndPlay (1);
Symbol 360 MovieClip Frame 4
stop();
Symbol 360 MovieClip Frame 7
stop();
Symbol 364 MovieClip Frame 1
stop();
Instance of Symbol 183 MovieClip "creature1" in Symbol 364 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(30);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(45);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(35);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(6);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(8);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(4);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(8);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(14);
}
Instance of Symbol 360 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 360 MovieClip in Symbol 364 MovieClip Frame 9
onClipEvent (load) {
setActive = 1;
if (setActive == 1) {
active = true;
this.gotoAndPlay("fadeIn");
} else {
active = false;
this.gotoAndPlay("fadeOut");
}
}
onClipEvent (enterFrame) {
if (active) {
if (onPlatformLocal && (pause < getTimer())) {
_parent.showPlatform();
onPlatformLocal = false;
}
if (this.hitTest(_root.character.hitFeet) && (!init)) {
onPlatformLocal = true;
pause = getTimer() + 1000;
init = true;
} else if ((!this.hitTest(_root.character.hitFeet)) && (init)) {
onPlatformLocal = false;
init = false;
}
if (this.hitTest(_root.character.hitFeet)) {
while (this.hitTest(_root.character.hitFeet)) {
_root.character._y = _root.character._y - 1;
}
_root.character._y = _root.character._y + 1;
_root.onPlatform = true;
} else if (this.hitTest(_root.character.hitHead)) {
while (this.hitTest(_root.character.hitHead)) {
_root.character._y = _root.character._y + 1;
}
_root.character.jumpSpeed = 0;
} else if (this.hitTest(_root.character.hitLeft)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitLeft)) {
if (counter < 20) {
_root.character._x = _root.character._x + 1;
counter++;
} else {
_root.character._x = _root.character._x - (counter - 1);
while (this.hitTest(_root.character.hitLeft)) {
_root.character._y = _root.character._y + 1;
}
}
}
counter = 0;
} else if (this.hitTest(_root.character.hitRight)) {
_root.againstWall = true;
while (this.hitTest(_root.character.hitRight)) {
if (counter < 20) {
_root.character._x = _root.character._x - 1;
counter++;
} else {
_root.character._x = _root.character._x + (counter - 1);
while (this.hitTest(_root.character.hitRight)) {
_root.character._y = _root.character._y + 1;
}
counter = 0;
}
}
counter = 0;
}
}
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(2);
this.jaw.gotoAndStop(45);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(6);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(8);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(4);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(8);
this.jaw.gotoAndStop(13);
}
Instance of Symbol 346 MovieClip in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(35);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(13);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(13);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(13);
}
Instance of Symbol 13 MovieClip [mcFireBomb] in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip "creature1" in Symbol 364 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(30);
}
Symbol 369 Button
on (release) {
if (!_root.fadeOut) {
play();
}
}
Symbol 385 Button
on (release) {
if (_root.fadeIn) {
play();
}
}
Symbol 393 MovieClip Frame 1
gotoAndPlay(random(_totalframes) + 1);
Symbol 393 MovieClip Frame 585
gotoAndPlay (1);
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
_root.sndDoorOpen.start(0, 0);
Symbol 415 MovieClip Frame 10
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 10
if (!_root.isInvisible) {
_root.changeZedColour("energy");
_root.bonusIsGrabbed = true;
}
play();
Symbol 419 MovieClip Frame 19
if (!_root.isInvisible) {
_root.changeZedColour("normal");
_root.bonusIsGrabbed = true;
}
collected = true;
Symbol 419 MovieClip Frame 49
stop();
Symbol 422 MovieClip Frame 1
_root.sndAmbienceGoldMines.start(0, 1000);
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
_root.sndDoorOpen.start(0, 0);
Symbol 436 MovieClip Frame 10
stop();
Symbol 436 MovieClip Frame 11
_root.sndDoorClose.start(0, 0);
Symbol 436 MovieClip Frame 17
stop();
Symbol 445 MovieClip Frame 15
stop();
Symbol 445 MovieClip Frame 16
Symbol 445 MovieClip Frame 39
Symbol 445 MovieClip Frame 45
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 23
gotoAndStop (1);
Symbol 506 MovieClip Frame 42
gotoAndStop (1);
Instance of Symbol 191 MovieClip in Symbol 511 MovieClip Frame 1
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hit.hitTest(_root.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_root.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}
Instance of Symbol 196 MovieClip in Symbol 511 MovieClip Frame 1
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hit.hitTest(_root.characterGfx.hit) && (!init)) {
_root.extrasJump = true;
_root.addPoints("jump");
_root.character.maxJumpHeight = 50;
_root.character.jumpSpeed = _root.character.maxJumpHeight;
init = true;
this.gotoAndPlay("collected");
} else if (collected) {
flyToX = _root.panels._x + 402;
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
_root.panels.bonusHolder2.gotoAndStop(2);
this._x = this._x - 10000;
this._alpha = 0;
}
}
}
}
Instance of Symbol 198 MovieClip in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
speed = 0.5;
distance = 4;
flyToY = 39;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hitTest(_root.characterGfx.hit) && (!collected)) {
_root.addPoints(800);
collected = true;
flyToX = _root.panels._x + 600;
this.gotoAndPlay("collected");
} else if (collected) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
collected = false;
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 202 MovieClip in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
flyToY = 39;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this.hit.hitTest(_root.characterGfx.hit) && (!collected)) {
goldCollected = true;
_root.addPoints("Gold");
if (_root.levelGoldCollected == 0) {
flyToX = (flyToX = _root.panels._x + 213);
} else if (_root.levelGoldCollected == 1) {
flyToX = _root.panels._x + 242;
} else if (_root.levelGoldCollected == 2) {
flyToX = _root.panels._x + 271;
}
_root.panels.totalGold.gotoAndStop(_root.panels.totalGold._currentframe + 1);
this.gotoAndPlay("collected");
} else if ((!goldInPlace) && (bonusCollected)) {
this._x = this._x + ((flyToX - this._x) / 3);
this._y = this._y + ((flyToY - this._y) / 3);
if (((((this._x - flyToX) < 1) && (-1 < (this._x - flyToX))) && ((this._y - flyToY) < 1)) && (-1 < (this._y - flyToY))) {
goldInPlace = true;
_root.levelGoldCollected++;
_root.totalGoldCollected++;
_root.panels.goldHolder.gotoAndStop(_root.levelGoldCollected + 1);
if (_root.levelGoldCollected == 3) {
_root.openGoldDoor = true;
}
this._x = this._x - 10000;
this._visible = false;
}
}
}
}
Instance of Symbol 191 MovieClip in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
howDangerous = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this.play();
if ((this.hit.hitTest(_root.characterGfx.hit) && (!_root.isInvisible)) && (!_root.untouchable)) {
_root.panels.energy.gotoAndStop(_root.panels.energy._currentframe + howDangerous);
_root.changeZedColour("red");
doneChecking = false;
} else if ((((!_root.isInvisible) && (!this.hit.hitTest(_root.characterGfx.hit))) && (!doneChecking)) && (!_root.untouchable)) {
_root.changeZedColour("normal");
doneChecking = true;
}
} else {
this.stop();
}
}