Frame 1
Stage.scaleMode = "noScale";
Stage.showMenu = false;
sYear = "2001";
t = new Date();
tYear = t.getFullYear();
if (sYear != tYear) {
copyrightNotice = ((("(c)" + sYear) + "-") + tYear) + " Xtreme Cartoon Co., All rights reserved.";
} else {
copyrightNotice = ("(c)" + sYear) + " Xtreme Cartoon Co. All rights reserved.";
}
function initGame() {
_root.level = 1;
_root.bullets = 0;
_root.swapDepth = 0;
_root.jimmyScore = 0;
_root.lives = 3;
_root[_root.playerName + "Score"] = "0";
_root[_root.playerName + "ScoreNum"] = Number(0);
_root[_root.playerName + "ScoreCheck"] = "0";
_root.initPlayerStrength();
}
function initPlayerStrength() {
_root[_root.playerName + "Strength"] = "100";
_root[_root.playerName + "StrengthNum"] = Number(100);
_root[_root.playerName + "StrengthCheck"] = "100";
}
function pausePlay() {
if (_root.game == "play") {
if (Key.isToggled(_root.pausePlayKey)) {
_root.game = "pause";
}
} else if (_root.game == "pause") {
if (Key.isToggled(_root.pausePlayKey)) {
_root.game = "play";
}
}
}
function changeScorePlayer(scoreChange) {
_root[_root.playerName + "ScoreNum"] = Number(_root[_root.playerName + "ScoreNum"]) + scoreChange;
_root[_root.playerName + "ScoreCheck"] = String(Number(_root[_root.playerName + "ScoreCheck"]) + scoreChange);
if (_root[_root.playerName + "ScoreNum"] < 0) {
_root[_root.playerName + "ScoreNum"] = 0;
_root[_root.playerName + "ScoreCheck"] = "0";
}
_root[_root.playerName + "Score"] = _root[_root.playerName + "ScoreCheck"];
}
function changeStrengthPlayer(strengthChange) {
_root[_root.playerName + "StrengthNum"] = Number(_root[_root.playerName + "StrengthNum"]) + strengthChange;
_root[_root.playerName + "StrengthCheck"] = String(Number(_root[_root.playerName + "StrengthCheck"]) + strengthChange);
_root[_root.playerName + "Strength"] = Number(_root[_root.playerName + "StrengthCheck"]);
}
var playerName = "jimmy";
_root.initGame();
stop();
Frame 2
stop();
Frame 3
1();
Frame 6
stop();
Frame 46
stop();
Frame 100
_root.gotoAndPlay("intro ");
Frame 121
function initGame() {
_root.gameState = "pause";
_root.inactiveLoop = 0;
_root.playerGround = "no";
_root.totalPlatforms = 0;
_root.currentPlatforms = 0;
_root.tilesReset = "Y";
_root.playerState = "fall";
_root.playerAction = "fall";
_root.lives = 2;
_root[_root.player + "Score"] = "0";
_root[_root.player + "ScoreNum"] = Number(0);
_root[_root.player + "ScoreCheck"] = "0";
_root[_root.player + "Strength"] = "100";
_root[_root.player + "StrengthNum"] = Number(100);
_root[_root.player + "StrengthCheck"] = "100";
_root.playerReset();
_root.candyMachine = "";
}
function changeScorePlayer(scoreChange) {
_root[_root.player + "ScoreNum"] = Number(_root[_root.player + "ScoreNum"]) + scoreChange;
_root[_root.player + "ScoreCheck"] = String(Number(_root[_root.player + "ScoreCheck"]) + scoreChange);
if (_root[_root.player + "ScoreNum"] < 0) {
_root[_root.player + "ScoreNum"] = 0;
_root[_root.player + "ScoreCheck"] = "0";
}
_root[_root.player + "Score"] = _root[_root.player + "ScoreCheck"];
}
function changeStrengthPlayer(strengthChange) {
_root[_root.player + "StrengthNum"] = Number(_root[_root.player + "StrengthNum"]) - strengthChange;
_root[_root.player + "StrengthCheck"] = String(Number(_root[_root.player + "StrengthCheck"]) - strengthChange);
_root[_root.player + "Strength"] = Number(_root[_root.player + "StrengthCheck"]);
}
function gameControls() {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
if (_root.gameType != "online") {
if (_xmouse <= 5) {
_root.leftGO = "Y";
}
if (_xmouse >= (Stage.width - 5)) {
_root.rightGO = "Y";
}
if (_ymouse <= 5) {
}
if (_ymouse >= (Stage.height - 5)) {
}
} else {
if (Key.isDown(_root.weaponKey)) {
_root.swordGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
if (Key.isDown(_root.rightKey)) {
_root.rightGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
if (Key.isDown(_root.leftKey)) {
_root.leftGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
}
}
function playerStand() {
_root.playerAction = "stand";
_root.swordGO = "";
}
function playerInactive() {
if (_root.gameState != "pause") {
_root.inactiveLoop = _root.inactiveLoop + Number(1);
if (_root.playerState != "inactive") {
if (_root.inactiveLoop >= 100) {
_root.playerAction = "inactive";
_root.playerState = "inactive";
_root.inactiveLoop = 0;
_root[_root.player].gotoAndStop((_root.playerWeapon + "Inactive") + _root.playerDirection);
}
}
}
}
function playerChangeColor() {
if (_root.playerState == "hit") {
_root.playerJump = 0;
_root.playerAction = "fall";
c = new Color(_root.player);
colorTransform = new Object();
colorTransform = {ra:"100", rb:"75", ga:"100", gb:"-25", ba:"100", bb:"50", aa:"100", ab:"0"};
c.setTransform(colorTransform);
} else {
c = new Color(_root.player);
colorTransform = new Object();
colorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
c.setTransform(colorTransform);
}
}
function playerReset() {
if (_root.gameState == "play") {
if (_root.lives >= 1) {
_root[_root.player]._x = _root.initPlayerDropX;
_root[_root.player]._y = _root.initPlayerDropY;
_root.lives = _root.lives - 1;
_root[_root.player + "Strength"] = "100";
_root[_root.player + "StrengthNum"] = Number(100);
_root[_root.player + "StrengthCheck"] = "100";
_root.playerDirection = "right";
_root[_root.player].gotoAndStop((_root.playerWeapon + "Fall") + _root.playerDirection);
_root.playerState = "fall";
} else {
_root.gotoAndStop("gameOver");
}
}
}
function tileShift() {
_root.tileA1._x = _root.tileA1._x + Number(_root.tileShiftValue);
_root.tileA2._x = _root.tileA2._x + Number(_root.tileShiftValue);
_root.tileB1._x = _root.tileB1._x + Number(_root.tileShiftValue);
_root.tileB2._x = _root.tileB2._x + Number(_root.tileShiftValue);
}
_root.gameType = "online";
var pausePlayKey = 16;
var rightKey = 39;
var leftKey = 37;
var jumpKey = 38;
var weaponKey = 32;
var swordKey = 78;
var maceKey = 77;
var bowKey = 66;
var screenWidth = 400;
var screenHeight = 300;
var player = "bMax";
var playerGround = "no";
var totalPlatforms = 0;
var currentPlatforms = 0;
_root[_root.player + "X"] = -20;
_root[_root.player + "Y"] = -30;
_root[_root.player + "W"] = 40;
_root[_root.player + "H"] = 35;
_root[_root.player + "SwW"] = 65;
_root[_root.player + "SwH"] = 10;
_root[_root.player + "SwXr"] = 0;
_root[_root.player + "SwYr"] = -12;
_root[_root.player + "SwXl"] = -65;
_root[_root.player + "SwYl"] = -17;
var levelName = "dungeon";
var keysTotal = 10;
var keysGot = 0;
var keys = ((keysGot + " / ") + keysTotal);
_root.onEnterFrame = function () {
if (this.getBytesLoaded() >= this.getBytesTotal()) {
this.gotoAndPlay("loaded");
this.onEnterFrame = undefined;
}
};
bD = new Sound();
bD.attachSound("bookDrops");
s = new Sound();
s.attachSound("slip");
jS = new Sound();
jS.attachSound("JuicyStab");
p = new Sound();
p.attachSound("poonk");
sD = new Sound();
sD.attachSound("slipDown");
_root.initGame();
Instance of Symbol 51 MovieClip in Frame 121
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
playerSpeed = 9;
playerAirSpeed = 9;
gravity = 12;
jumpHeight = 48;
jumpDivide = 12;
playerDirectionInit = "right";
defaultWeapon = "sword";
screenTop = 50;
screenBottom = 150;
}
Instance of Symbol 53 MovieClip in Frame 121
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileA1";
tileName2 = "tileA2";
tileWidth = 650;
multiplier = 0.5;
}
Instance of Symbol 53 MovieClip in Frame 121
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileB1";
tileName2 = "tileB2";
tileWidth = 650;
multiplier = 1;
}
Instance of Symbol 53 MovieClip in Frame 121
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileC1";
tileName2 = "tileC2";
tileWidth = 650;
multiplier = 1.5;
}
Instance of Symbol 55 MovieClip in Frame 121
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
screenShiftSpeed = 6;
leftShiftMargin = 170;
rightShiftMargin = 230;
}
Instance of Symbol 58 MovieClip "backgroundSound" in Frame 121
onClipEvent (mouseDown) {
if (_root.gameType != "online") {
if (_root.playerState != "hit") {
if (_root.playerGround != "no") {
_root.jumpGO = "Y";
}
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
Frame 152
stop();
Frame 167
stop();
Frame 177
function startBackgroundAudio() {
s = new Sound();
s.attachSound("loop");
_root.audioVolume = 140;
s.setVolume(_root.audioVolume);
s.start(0, 500);
}
Selection.setFocus(this);
this.onEnterFrame = function () {
_root.gameStateVar = _root.gameState;
_root.playerStateVar = _root.playerState;
_root.playerActionVar = _root.playerAction;
_root.playerGroundVar = _root.playerGround;
_root.playerSpeedVar = _root.playerSpeed;
_root.playerJumpVar = _root.playerJump;
_root.currentPlatformsVar = _root.currentPlatforms;
_root.tileShiftValueVar = _root.tileShiftValue;
_root.tilesResetVar = _root.tilesReset;
_root.screenShiftSpeedVar = _root.screenShiftSpeed;
_root.vertShiftSpeedVar = _root.vertShiftSpeed;
_root.playerChangeColor();
_root.gameControls();
_root.playerActionVar = _root.playerAction;
};
_root.startBackgroundAudio();
stop();
Instance of Symbol 288 MovieClip "tileB1" in Frame 177
/* no clip actions */
Instance of Symbol 363 MovieClip "bMax" in Frame 177
/* no clip actions */
Instance of Symbol 398 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
player = "bMax";
}
Instance of Symbol 51 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
playerSpeed = 9;
playerAirSpeed = 9;
gravity = 14;
jumpHeight = 56;
jumpDivide = 14;
playerDirectionInit = "right";
defaultWeapon = "sword";
screenTop = 75;
screenBottom = 175;
}
Instance of Symbol 53 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileA1";
tileName2 = "tileA2";
tileWidth = 650;
multiplier = 0.5;
}
Instance of Symbol 53 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileB1";
tileName2 = "tileB2";
tileWidth = 650;
multiplier = 1;
}
Instance of Symbol 53 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
tileName1 = "tileC1";
tileName2 = "tileC2";
tileWidth = 650;
multiplier = 1.5;
}
Instance of Symbol 55 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
playerName = "bMax";
screenShiftSpeed = 8;
leftShiftMargin = 170;
rightShiftMargin = 230;
}
Instance of Symbol 58 MovieClip "backgroundSound" in Frame 177
onClipEvent (mouseDown) {
if (_root.gameType != "online") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
if (_root.playerGround != "no") {
_root.jumpGO = "Y";
}
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
}
Frame 187
stop();
Frame 188
gotoAndStop(_currentframe - 1 +186);
Frame 1105
stop();
Symbol 9 Button
on (release) {
getURL ("http://www.gamepug.com/", "_blank");
}
Symbol 12 Button
on (release) {
getURL ("http://www.gamepug.com/", "_blank");
}
Symbol 14 Button
on (release) {
getURL ("http://www.circusx.com/?page=freegames", "_blank");
}
Symbol 18 MovieClip Frame 1
Selection.setFocus(this);
this.onEnterFrame = function () {
if (runThis != 1) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
runThis = 1;
}
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
if (amountLoaded >= 1) {
_level0.gotoAndStop("begin");
}
};
Symbol 31 MovieClip Frame 60
_parent.gotoAndPlay("begin2");
stop();
Symbol 33 Button
on (release) {
_root.gotoAndPlay("GO");
}
Symbol 38 Button
on (release) {
getURL ("http://www.circusx.com/", "_blank");
}
Symbol 51 MovieClip Frame 1
_root.player = playerName;
_root.playerWeapon = defaultWeapon;
_root.playerDirection = playerDirectionInit;
this._visible = 0;
_root.screenTop = screenTop;
_root.screenBottom = screenBottom;
Selection.setFocus(this);
this.onEnterFrame = function () {
_root.playerInactive();
if (_root.gameState != "pause") {
if (_root.playerJump > 0) {
_root[playerName]._y = _root[playerName]._y - _root.playerJump;
}
if ((_root.playerAction == "fall") or (_root.playerGround != "yes")) {
if (_root[_root.player]._y > _root.screenBottom) {
_root.tileA1._y = _root.tileA1._y + Number(_root.playerFall);
_root.tileA2._y = _root.tileA2._y + Number(_root.playerFall);
_root.tileB1._y = _root.tileB1._y + Number(_root.playerFall);
_root.tileB2._y = _root.tileB2._y + Number(_root.playerFall);
_root.tileC1._y = _root.tileC1._y + Number(_root.playerFall);
_root.tileC2._y = _root.tileC2._y + Number(_root.playerFall);
} else {
_root[_root.player]._y = _root[_root.player]._y + (-Number(_root.playerFall));
}
}
if (_root[_root.player]._y < screenBottom) {
_root[_root.player]._y = _root[_root.player]._y + Number(_root.vertShiftSpeed);
_root.tileA1._y = _root.tileA1._y + Number(_root.vertShiftSpeed);
_root.tileA2._y = _root.tileA2._y + Number(_root.vertShiftSpeed);
_root.tileB1._y = _root.tileB1._y + Number(_root.vertShiftSpeed);
_root.tileB2._y = _root.tileB2._y + Number(_root.vertShiftSpeed);
_root.tileC1._y = _root.tileC1._y + Number(_root.vertShiftSpeed);
_root.tileC2._y = _root.tileC2._y + Number(_root.vertShiftSpeed);
}
if (_root.playerGround == "no") {
if (this.runOnceA != "run") {
this.runOnceA = "run";
}
if (_root.playerDirection == "right") {
}
if (_root.playerDirection == "left") {
}
} else {
this.runOnceA = "";
this.runOnceB = "";
}
_root.playerFall = -gravity;
if (_root.playerFall != 0) {
if (_root.playerAction != "swing") {
if (_root.playerState != "inactive") {
_root.playerAction = "fall";
}
}
}
if (_root.playerState != "hit") {
if (_root.currentPlatforms != _root.totalPlatforms) {
_root.playerGround = "yes";
} else {
_root.playerGround = "no";
}
if (_root.playerAction != "swing") {
if (_root.swordGO == "Y") {
_root.playerAction = "swing";
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
_root.swordGO = "N";
}
}
if (_root.playerJump > 0) {
_root.playerJump = _root.playerJump - jumpDivide;
} else {
this.runOnce = "";
}
if (_root.playerGround == "yes") {
if (_root.playerAction != "swing") {
if (_root.jumpGO == "Y") {
_root.inactiveLoop = 0;
if (this.runOnce != "run") {
_root.playerJump = jumpHeight;
this.runOnce = "run";
}
_root.jumpGO = "N";
}
if (_root.rightGO == "Y") {
_root.inactiveLoop = 0;
_root.playerDirection = "right";
_root.playerAction = "walk";
_root.playerSpeed = -playerSpeed;
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
_root.rightGO = "N";
} else if (_root.leftGO == "Y") {
_root.inactiveLoop = 0;
_root.playerDirection = "left";
_root.playerAction = "walk";
_root.playerSpeed = playerSpeed;
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
_root.leftGO = "N";
} else {
_root.playerSpeed = 0;
if (_root.playerAction != "swing") {
if (_root.playerState != "inactive") {
_root.playerAction = "stand";
}
}
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
}
}
}
if (_root.playerGround == "no") {
if (_root.rightGO == "Y") {
_root.inactiveLoop = 0;
_root.playerDirection = "right";
_root.playerSpeed = -playerAirSpeed;
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
_root.rightGO = "N";
} else if (_root.leftGO == "Y") {
_root.inactiveLoop = 0;
_root.playerDirection = "left";
_root.playerSpeed = playerAirSpeed;
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
_root.leftGO = "N";
} else {
_root.playerSpeed = 0;
_root[playerName].gotoAndStop((_root.playerWeapon + _root.playerAction) + _root.playerDirection);
}
}
}
}
};
Symbol 53 MovieClip Frame 1
screenWidth = 400;
_root.tileWidth = tileWidth;
initTile1LocX = _root[tileName1]._x;
initTile1LocY = _root[tileName1]._y;
initTile2LocX = _root[tileName2]._x;
initTile2LocY = _root[tileName2]._y;
if (tileSpeed < 0) {
_root[tileName2]._x = _root[tileName1]._x - tileWidth;
}
if (tileSpeed > 0) {
_root[tileName2]._x = _root[tileName1]._x + tileWidth;
}
tile1Frame = 1;
tile2Frame = 2;
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
_root[tileName1]._x = _root[tileName1]._x + (_root.playerSpeed * multiplier);
_root[tileName2]._x = _root[tileName2]._x + (_root.playerSpeed * multiplier);
_root[tileName1]._x = _root[tileName1]._x + (_root.screenShiftSpeed * multiplier);
_root[tileName2]._x = _root[tileName2]._x + (_root.screenShiftSpeed * multiplier);
}
if ((_root[tileName1]._x + Number(tileWidth)) <= (screenWidth + 50)) {
_root[tileName2]._x = _root[tileName1]._x + Number(tileWidth);
if (thisEvent1A != "run") {
thisEvent1B = "";
thisEvent1A = "run";
tile2Frame = tile1Frame + Number(1);
}
_root[tileName2].gotoAndStop(tile2Frame);
}
if (_root[tileName1]._x > -50) {
_root[tileName2]._x = _root[tileName1]._x - tileWidth;
if (thisEvent2A != "run") {
thisEvent2B = "";
thisEvent2A = "run";
tile2Frame = tile1Frame - Number(1);
}
_root[tileName2].gotoAndStop(tile2Frame);
}
if ((_root[tileName2]._x + Number(tileWidth)) <= (screenWidth + 50)) {
_root[tileName1]._x = _root[tileName2]._x + Number(tileWidth);
if (thisEvent1B != "run") {
thisEvent1A = "";
thisEvent1B = "run";
tile1Frame = tile2Frame + Number(1);
}
_root[tileName1].gotoAndStop(tile1Frame);
}
if (_root[tileName2]._x > -50) {
_root[tileName1]._x = _root[tileName2]._x - tileWidth;
if (thisEvent2B != "run") {
thisEvent2A = "";
thisEvent2B = "run";
tile1Frame = tile2Frame - Number(1);
}
_root[tileName1].gotoAndStop(tile1Frame);
}
thisTileLocY = _root[tileName1]._y + Number(600);
if (_root[_root.player]._y >= thisTileLocY) {
if (_root.playerState != "hit") {
_root.playerState = "hit";
_root[_root.player].gotoAndStop((_root.playerWeapon + "Dead") + _root.playerDirection);
}
}
}
if (_root.tilesReset != "N") {
_root[tileName1]._x = initTile1LocX;
_root[tileName1]._y = initTile1LocY;
_root[tileName2]._x = initTile2LocX;
_root[tileName2]._y = initTile2LocY;
_root.gameState = "pause";
}
};
Symbol 55 MovieClip Frame 1
_root.initPlayerDropX = Number(leftShiftMargin);
_root.initPlayerDropY = _root[_root.player]._y;
_root[_root.player]._x = Number(leftShiftMargin);
_root.vertShiftSpeed = screenShiftSpeed;
this._visible = 0;
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
if (_root.playerDirection == "right") {
if (_root[playerName]._x > leftShiftMargin) {
_root[playerName]._x = _root[playerName]._x - Number(screenShiftSpeed);
_root.screenShiftSpeed = -screenShiftSpeed;
} else {
_root.screenShiftSpeed = 0;
}
}
if (_root.playerDirection == "left") {
if (_root[playerName]._x < rightShiftMargin) {
_root[playerName]._x = _root[playerName]._x + screenShiftSpeed;
_root.screenShiftSpeed = screenShiftSpeed;
} else {
_root.screenShiftSpeed = 0;
}
}
}
}
};
Symbol 57 Button
on (keyPress "a") {
if (_root.playerState != "hit") {
_root.swordGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
on (keyPress "<Left>") {
if (_root.playerState != "hit") {
_root.leftGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
on (keyPress "<Right>") {
if (_root.playerState != "hit") {
_root.rightGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
on (keyPress "<Up>") {
if (_root.playerGround == "yes") {
_root.jumpGO = "Y";
}
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
Symbol 68 Button
on (press) {
gotoAndStop (161);
}
Symbol 94 Button
on (press) {
gotoAndStop (155);
}
Symbol 114 Button
on (press) {
gotoAndStop (154);
}
Symbol 141 Button
on (press) {
gotoAndStop (153);
}
Symbol 147 Button
on (press) {
gotoAndStop (152);
}
Symbol 158 Button
on (press) {
gotoAndStop (167);
}
Symbol 177 Button
on (press) {
_root.initGame();
_root.pubData();
_root.gotoAndStop("start");
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
this._visible = 0;
_root.totalPlatforms = _root.totalPlatforms + Number(1);
name = otherMovie;
box = name + otherCollisionBox;
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState != "pause") {
aX = _parent._x + Number(this._x);
aY = _parent._y + Number(this._y);
aW = aX + Number(this._width);
aH = aY + Number(this._height);
bX = _root[box + "X"];
bY = _root[box + "Y"];
bW = _root[box + "W"];
bH = _root[box + "H"];
if (thisEvent1 != "yes") {
_root.currentPlatforms = _root.currentPlatforms + Number(1);
thisEvent1 = "yes";
}
if ((((aX <= bW) && (aW >= bX)) && (aY <= bH)) && (aH >= bY)) {
_root.playerFall = 0;
if (thisEvent2 != "yes") {
_root.currentPlatforms = _root.currentPlatforms - Number(1);
thisEvent2 = "yes";
}
} else if (thisEvent2 == "yes") {
thisEvent1 = "no";
thisEvent2 = "no";
}
}
};
Symbol 209 MovieClip Frame 1
stop();
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState == "play") {
oX1 = (this._x + Number(_parent._x)) - 15;
oY1 = this._y + Number(_parent._y);
oW1 = oX1 + Number(30);
oH1 = oY1 + Number(675);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if ((((oXb <= pW) && (oWb >= pX)) && (oYb <= pH)) && (oHb >= pY)) {
_root.playerSpeed = 0;
_root[_root.player]._y = _root[_root.player]._y + _root.playerJump;
}
if (_root[_root.player]._x <= (this._x + Number(_parent._x))) {
if ((((oX1 <= pW) && (oW1 >= pX)) && (oY1 <= pH)) && (oH1 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x + Number(2);
_root.tileA2._x = _root.tileA2._x + Number(2);
_root.tileB1._x = _root.tileB1._x + Number(2);
_root.tileB2._x = _root.tileB2._x + Number(2);
_root.tileC1._x = _root.tileC1._x + Number(2);
_root.tileC2._x = _root.tileC2._x + Number(2);
}
} else if ((((oX1 <= pW) && (oW1 >= pX)) && (oY1 <= pH)) && (oH1 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x - Number(2);
_root.tileA2._x = _root.tileA2._x - Number(2);
_root.tileB1._x = _root.tileB1._x - Number(2);
_root.tileB2._x = _root.tileB2._x - Number(2);
_root.tileC1._x = _root.tileC1._x - Number(2);
_root.tileC2._x = _root.tileC2._x - Number(2);
}
}
}
};
Symbol 214 MovieClip Frame 1
stop();
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState == "play") {
b = this._name;
if (_parent[b + "done"] == "done") {
this.gotoAndStop("done");
}
if (gate == "done") {
_parent[b + "done"] = "done";
}
oX1 = (this._x + Number(_parent._x)) - 15;
oY1 = this._y + Number(_parent._y);
oW1 = oX1 + Number(30);
oH1 = oY1 + Number(210);
oX2 = (this._x + Number(_parent._x)) - 15;
oY2 = this._y + Number(_parent._y);
oW2 = oX2 + Number(30);
oH2 = oY2 + Number(80);
oXb = (this._x + Number(_parent._x)) - 15;
oYb = (this._y + Number(_parent._y)) + Number(80);
oWb = oXb + Number(30);
oHb = oYb + Number(50);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if ((((oXb <= pW) && (oWb >= pX)) && (oYb <= pH)) && (oHb >= pY)) {
_root.playerSpeed = 0;
_root[_root.player]._y = _root[_root.player]._y + _root.playerJump;
}
if (_root[_root.player]._x <= (this._x + Number(_parent._x))) {
if (_parent[b] != "open") {
if ((((oX1 <= pW) && (oW1 >= pX)) && (oY1 <= pH)) && (oH1 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x + Number(2);
_root.tileA2._x = _root.tileA2._x + Number(2);
_root.tileB1._x = _root.tileB1._x + Number(2);
_root.tileB2._x = _root.tileB2._x + Number(2);
_root.tileC1._x = _root.tileC1._x + Number(2);
_root.tileC2._x = _root.tileC2._x + Number(2);
if (_parent["key" + keyNum] == "Y") {
_parent[b] = "open";
gotoAndPlay (5);
}
}
} else if ((((oX2 <= pW) && (oW2 >= pX)) && (oY2 <= pH)) && (oH2 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x + Number(2);
_root.tileA2._x = _root.tileA2._x + Number(2);
_root.tileB1._x = _root.tileB1._x + Number(2);
_root.tileB2._x = _root.tileB2._x + Number(2);
_root.tileC1._x = _root.tileC1._x + Number(2);
_root.tileC2._x = _root.tileC2._x + Number(2);
}
} else if (_parent[b] != "open") {
if ((((oX1 <= pW) && (oW1 >= pX)) && (oY1 <= pH)) && (oH1 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x - Number(2);
_root.tileA2._x = _root.tileA2._x - Number(2);
_root.tileB1._x = _root.tileB1._x - Number(2);
_root.tileB2._x = _root.tileB2._x - Number(2);
_root.tileC1._x = _root.tileC1._x - Number(2);
_root.tileC2._x = _root.tileC2._x - Number(2);
if (_parent["key" + keyNum] == "Y") {
_parent[b] = "open";
gotoAndPlay (5);
}
}
} else if ((((oX2 <= pW) && (oW2 >= pX)) && (oY2 <= pH)) && (oH2 >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x - Number(2);
_root.tileA2._x = _root.tileA2._x - Number(2);
_root.tileB1._x = _root.tileB1._x - Number(2);
_root.tileB2._x = _root.tileB2._x - Number(2);
_root.tileC1._x = _root.tileC1._x - Number(2);
_root.tileC2._x = _root.tileC2._x - Number(2);
}
}
}
};
Symbol 214 MovieClip Frame 9
gate = "done";
stop();
Symbol 222 MovieClip Frame 1
function checkObject() {
if (_root.gameState == "play") {
i = this._name;
if (_parent[i] == "hit") {
this.gotoAndStop("done");
}
if (thisObject == "hit") {
_parent[i] = "hit";
}
objectX = _parent._x + Number(this._x);
objectY = _parent._y + Number(this._y);
objectW = objectX + Number(18);
objectH = objectY + Number(18);
player = _root.player;
pX = _root[player]._x + Number(_root[player + "X"]);
pY = _root[player]._y + Number(_root[player + "Y"]);
pW = pX + Number(_root[player + "W"]);
pH = pY + Number(_root[player + "H"]);
if (_root.playerState != "hit") {
if (_parent["key" + keyNum] != "Y") {
top = this._y;
bottom = this._y + Number(18);
left = this._x;
right = this._x + Number(18);
if (((((_parent._x + right) > 0) and ((_parent._x + left) < _root.screenWidth)) and ((_parent._y + bottom) > 0)) and ((_parent._y + top) < _root.screenHeight)) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
if ((((objectX <= pW) and (objectW >= pX)) and (objectY <= pH)) and (objectH >= pY)) {
this.gotoAndStop("done");
_parent["key" + keyNum] = "Y";
_root.keysGot = _root.keysGot + Number(1);
_root.keys = (_root.keysGot + " / ") + _root.keysTotal;
}
} else {
this.gotoAndStop("done");
}
}
}
}
Selection.setFocus(this);
this.onEnterFrame = function () {
checkObject();
};
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 7
thisObject = "hit";
stop();
Symbol 232 MovieClip Frame 1
function bonesFunction() {
if (_root.gameState == "play") {
if (bones == "hit") {
_parent[b] = "hit";
}
if (_parent[b] == "hit") {
this.gotoAndStop("done");
}
swordXr = _root[_root.player]._x + Number(_root[_root.player + "SwXr"]);
swordYr = _root[_root.player]._y + Number(_root[_root.player + "SwYr"]);
swordXl = _root[_root.player]._x + Number(_root[_root.player + "SwXl"]);
swordYl = _root[_root.player]._y + Number(_root[_root.player + "SwYl"]);
swordWr = swordXr + Number(_root[_root.player + "SwW"]);
swordHr = swordYr + Number(_root[_root.player + "SwH"]);
swordWl = swordXl + Number(_root[_root.player + "SwW"]);
swordHl = swordYl + Number(_root[_root.player + "SwH"]);
bonesX = (this._x + Number(_parent._x)) - 7;
bonesY = this._y + Number(_parent._y);
bonesW = bonesX + Number(14);
bonesH = bonesY + Number(50);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if (_parent[b] != "hit") {
if ((((bonesX <= pW) && (bonesW >= pX)) && (bonesY <= pH)) && (bonesH >= pY)) {
_root.playerState = "hit";
_root.playerAction = "hit";
_root[_root.player].gotoAndPlay((_root.playerWeapon + "hit") + _root.playerDirection);
_root.changeStrengthPlayer(10);
this.gotoAndPlay("dead");
_parent[b] = "hit";
if (_root[_root.player]._x < (this._x + _parent._x)) {
_root.tileShiftValue = Number(100);
_root.tileShift();
}
if (_root[_root.player]._x > (this._x + _parent._x)) {
_root.tileShiftValue = Number(-100);
_root.tileShift();
}
}
}
}
if (_parent[b] != "hit") {
if (_root.weapon == "bow") {
if (_root.arrowHit == "no") {
if (_root.arrowDirection == "right") {
if ((((arrowWr >= bonesX) and (arrowXr <= bonesW)) and (arrowHr >= bonesY)) and (arrowYr <= bonesH)) {
this.gotoAndPlay("dead");
_parent[b] = "hit";
_root.arrowHit = "yes";
_root.changeScorePlayer(25);
_root.crossbowArrow.gotoAndStop("off");
}
}
if (_root.arrowDirection == "left") {
if ((((arrowWl >= bonesX) and (arrowXl <= bonesW)) and (arrowHl >= bonesY)) and (arrowYl <= bonesH)) {
this.gotoAndPlay("dead");
_parent[b] = "hit";
_root.arrowHit = "yes";
_root.changeScorePlayer(25);
_root.crossbowArrow.gotoAndStop("off");
}
}
}
}
if (_root.playerDirection == "right") {
if (_root.weaponCollision == "on") {
if (_root.playerWeapon == "sword") {
if ((((swordWr >= bonesX) and (swordXr <= bonesW)) and (swordHr >= bonesY)) and (swordYr <= bonesH)) {
this.gotoAndPlay("dead");
_root.changeScorePlayer(25);
_parent[b] = "hit";
}
}
if (_root.weapon == "mace") {
if ((((maceWr >= bonesX) and (maceXr <= bonesW)) and (maceHr >= bonesY)) and (maceYr <= bonesH)) {
this.gotoAndPlay("dead");
_root.changeScorePlayer(25);
_parent[b] = "hit";
}
}
}
}
if (_root.playerDirection == "left") {
if (_root.weaponCollision == "on") {
if (_root.playerWeapon == "sword") {
if ((((swordWl >= bonesX) and (swordXl <= bonesW)) and (swordHl >= bonesY)) and (swordYl <= bonesH)) {
this.gotoAndPlay("dead");
_root.changeScorePlayer(25);
_parent[b] = "hit";
}
}
if (_root.weapon == "mace") {
if ((((maceWl >= bonesX) and (maceXl <= bonesW)) and (maceHl >= bonesY)) and (maceYl <= bonesH)) {
this.gotoAndPlay("dead");
_root.changeScorePlayer(25);
_parent[b] = "hit";
}
}
}
}
}
}
}
b = this._name;
Selection.setFocus(this);
this.onEnterFrame = function () {
bonesFunction();
};
stop();
Symbol 232 MovieClip Frame 2
_root.jS.start();
Symbol 232 MovieClip Frame 5
bones = "hit";
stop();
Symbol 248 MovieClip Frame 3
eX = _parent.eX;
eY = _parent.eY;
eXl = eX - 40;
eYl = eY;
eWl = eXl + Number(30);
eHl = eYl + Number(20);
eXr = eX + Number(40);
eYr = eY;
eWr = eXr + Number(30);
eHr = eYr + Number(20);
pX = _root[_root.player]._x;
pY = _root[_root.player]._y;
pW = pX + _root[_root.player + "W"];
pH = py + _root[_root.player + "H"];
if (_root.playerState != "hit") {
if (_parent.direction == "left") {
if ((((eXl <= pW) and (eWl >= pX)) and (eYl <= pH)) and (eHl >= pY)) {
_root.playerState = "hit";
_root.changeStrengthPlayer(10);
_root[_root.player].gotoAndPlay(([_root.playerWeapon] + "Hit") + [_root.playerDirection]);
if (_root[_root.player]._x < (this._x + _parent._x)) {
_root.tileShiftValue = Number(100);
_root.tileShift();
}
}
}
if (_parent.direction == "right") {
if ((((eXr <= pW) and (eWr >= pX)) and (eYr <= pH)) and (eHr >= pY)) {
_root.playerState = "hit";
_root.changeStrengthPlayer(10);
_root[_root.player].gotoAndPlay(([_root.playerWeapon] + "Hit") + [_root.playerDirection]);
if (_root[_root.player]._x > (this._x + _parent._x)) {
_root.tileShiftValue = Number(-100);
_root.tileShift();
}
}
}
}
Symbol 248 MovieClip Frame 6
_parent.gotoAndStop("standing");
Symbol 265 MovieClip Frame 1
randomN = Number(random(4)) + 1;
Symbol 265 MovieClip Frame 2
if (Number(randomN) == 1) {
gotoAndPlay (10);
}
if (Number(randomN) == 2) {
gotoAndPlay (18);
}
if (Number(randomN) == 3) {
gotoAndPlay (26);
}
if (Number(randomN) == 4) {
gotoAndPlay (26);
}
Symbol 265 MovieClip Frame 5
stop();
Symbol 265 MovieClip Frame 16
randomN = 0;
gotoAndStop (5);
Symbol 265 MovieClip Frame 24
randomN = 0;
gotoAndStop (5);
Symbol 265 MovieClip Frame 32
randomN = 0;
gotoAndStop (5);
Symbol 265 MovieClip Frame 41
randomN = 0;
gotoAndStop (5);
Symbol 270 MovieClip Frame 1
function enemyActions() {
if (thisRun != "Y") {
randomSwing = 15;
distance = 0;
direction = "right";
thisRun = "Y";
}
enemy = this._name;
if (_parent[enemy + "Done"] != undefined) {
this.gotoAndStop("done");
}
if (_root.gameState == "play") {
eX = this._x + Number(_parent._x);
eY = this._y + Number(_parent._y);
if (_parent[enemy] != "hit") {
bottom = this._y;
top = this._y - 60;
left = this._x - 25;
right = this._x + Number(25);
if (((((_parent._x + right) > 0) and ((_parent._x + left) < _root.screenWidth)) and ((_parent._y + bottom) > 25)) and ((_parent._y + top) < _root.screenHeight)) {
if (state != "swing") {
if (state == "standing") {
state = "walking";
this.gotoAndStop("walking");
}
}
} else {
state = "standing";
this.gotoAndStop("standing");
}
}
if (_parent[enemy] != "hit") {
if (state == "walking") {
randomState = random(randomSwing);
if (randomState == 5) {
state = "swing";
this.gotoAndStop("swing");
}
}
}
if (_parent[enemy] != "hit") {
if (state == "walking") {
if ((direction == "right") and (Number(distance) < Number(walkingDistance))) {
this._x = this._x + Number(stepDistance);
distance = distance + Number(stepDistance);
} else if ((direction == "right") and (Number(distance) >= Number(walkingDistance))) {
direction = "left";
this._xscale = -100;
}
}
}
if (_parent[enemy] != "hit") {
if (state == "walking") {
if ((direction == "left") and (Number(distance) > 0)) {
this._x = this._x - Number(stepDistance);
distance = distance - Number(stepDistance);
} else if ((direction == "left") and (Number(distance) <= 0)) {
direction = "right";
this._xscale = 100;
}
}
}
player = _root.player;
weaponXR = _root[_root.player]._x + Number(_root[player + "SwXr"]);
weaponYR = _root[_root.player]._y + Number(_root[player + "SwYr"]);
weaponXL = _root[_root.player]._x + Number(_root[player + "SwXl"]);
weaponYL = _root[_root.player]._y + Number(_root[player + "SwYl"]);
weaponWR = weaponXR + Number(_root[player + "SwW"]);
weaponHR = weaponYR + Number(_root[player + "SwH"]);
weaponWL = weaponXL + Number(_root[player + "SwW"]);
weaponHL = weaponYL + Number(_root[player + "SwH"]);
enemyX = (this._x + Number(_parent._x)) - 12;
enemyY = (this._y + Number(_parent._y)) - 40;
enemyW = enemyX + Number(24);
enemyH = enemyY + Number(40);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if (_parent[enemy] != "hit") {
if ((((enemyX <= pW) and (enemyW >= pX)) and (enemyY <= pH)) and (enemyH >= pY)) {
if (_root[_root.player]._x < (this._x + _parent._x)) {
_root.tileShiftValue = Number(20);
_root.tileShift();
}
if (_root[_root.player]._x > (this._x + _parent._x)) {
_root.tileShiftValue = Number(-20);
_root.tileShift();
}
}
}
}
if (_parent[enemy] != "hit") {
if (_root.playerDirection == "right") {
if (_root.weaponCollision == "on") {
if ((((weaponWR >= enemyX) and (weaponXR <= enemyW)) and (weaponHR >= enemyY)) and (weaponYR <= enemyH)) {
enemyHit = "dead";
_parent[enemy] = "hit";
this.gotoAndPlay("dead");
}
}
}
if (_root.playerDirection == "left") {
if (_root.weaponCollision == "on") {
if ((((weaponWL >= enemyX) and (weaponXL <= enemyW)) and (weaponHL >= enemyY)) and (weaponYL <= enemyH)) {
enemyHit = "dead";
_parent[enemy] = "hit";
this.gotoAndPlay("dead");
}
}
}
}
if (((_root[enemy + "state"] == "standing") or (_root[enemy + "state"] == "walking")) or (_root[enemy + "state"] == "swing")) {
if (_parent[enemy] == "hit") {
this.gotoAndPlay(enemyHit);
}
}
}
}
Selection.setFocus(this);
this.onEnterFrame = function () {
enemyActions();
};
Symbol 270 MovieClip Frame 2
state = "standing";
stop();
Symbol 270 MovieClip Frame 10
state = "walking";
stop();
Instance of Symbol 239 MovieClip in Symbol 270 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.gameState == "play") {
this.play();
} else if (_root.gameState == "pause") {
this.stop();
}
}
Symbol 270 MovieClip Frame 20
state = "swing";
stop();
Symbol 270 MovieClip Frame 40
_root[enemy + "state"] = "hit";
_root.changeScorePlayer(50);
play();
Symbol 270 MovieClip Frame 41
_root.p.start();
Symbol 270 MovieClip Frame 42
_root.sD.start();
Symbol 270 MovieClip Frame 45
_root.jS.start();
Symbol 270 MovieClip Frame 59
_parent[enemy + "Done"] = "Y";
stop();
Symbol 275 MovieClip Frame 1
downTimerOn = "";
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState == "play") {
if (downTimerOn != "Y") {
actionTimer = actionTimer + Number(1);
if (actionTimer >= timeBetween) {
this._y = this._y + Number(distanceDown);
downTimerOn = "Y";
}
}
if (downTimerOn == "Y") {
downTimer = downTimer + Number(1);
if (downTimer >= timeDown) {
this._y = this._y - distanceDown;
downTimerOn = "";
actionTimer = 0;
downTimer = 0;
}
}
b = this._name;
oXl = this._x + Number(_parent._x);
oYl = this._y + Number(_parent._y);
oWl = oXl + Number(30);
oHl = oYl + Number(110);
oXr = (this._x + Number(_parent._x)) + Number(30);
oYr = this._y + Number(_parent._y);
oWr = oXr + Number(30);
oHr = oYr + Number(110);
oXb = this._x + Number(_parent._x);
oYb = (this._y + Number(_parent._y)) + Number(90);
oWb = oXb + Number(60);
oHb = oYb + Number(60);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if ((((oXl <= pW) && (oWl >= pX)) && (oYl <= pH)) && (oHl >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x + Number(2);
_root.tileA2._x = _root.tileA2._x + Number(2);
_root.tileB1._x = _root.tileB1._x + Number(2);
_root.tileB2._x = _root.tileB2._x + Number(2);
_root.tileC1._x = _root.tileC1._x + Number(2);
_root.tileC2._x = _root.tileC2._x + Number(2);
}
if ((((oXr <= pW) && (oWr >= pX)) && (oYr <= pH)) && (oHr >= pY)) {
_root.playerSpeed = 0;
_root.tileA1._x = _root.tileA1._x - Number(2);
_root.tileA2._x = _root.tileA2._x - Number(2);
_root.tileB1._x = _root.tileB1._x - Number(2);
_root.tileB2._x = _root.tileB2._x - Number(2);
_root.tileC1._x = _root.tileC1._x - Number(2);
_root.tileC2._x = _root.tileC2._x - Number(2);
}
if (downTimerOn == "Y") {
if ((((oXb <= pW) && (oWb >= pX)) && (oYb <= pH)) && (oHb >= pY)) {
_root.playerJump = 0;
_root.playerSpeed = 0;
_root.playerState = "hit";
_root.playerAction = "hit";
_root.changeStrengthPlayer(10);
_root[_root.player].gotoAndStop((_root.playerWeapon + "Smash") + _root.playerDirection);
}
} else if ((((oXb <= pW) && (oWb >= pX)) && (oYb <= pH)) && (oHb >= pY)) {
_root[_root.player]._y = _root[_root.player]._y + _root.playerJump;
}
}
}
};
stop();
Symbol 282 MovieClip Frame 1
this._visible = 0;
_root.totalPlatforms = _root.totalPlatforms + Number(1);
name = otherMovie;
box = name + otherCollisionBox;
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState != "pause") {
aX = (_parent._parent._x + Number(_parent._x)) + Number(this._x);
aY = (_parent._parent._y + Number(_parent._y)) + Number(this._y);
aW = aX + Number(this._width);
aH = aY + Number(this._height);
bX = _root[box + "X"];
bY = _root[box + "Y"];
bW = _root[box + "W"];
bH = _root[box + "H"];
if (thisEvent1 != "yes") {
_root.currentPlatforms = _root.currentPlatforms + Number(1);
thisEvent1 = "yes";
}
if ((((aX <= bW) && (aW >= bX)) && (aY <= bH)) && (aH >= bY)) {
_root.playerFall = 0;
if (_parent.horzDirection == "right") {
_root[tile1A]._x = _root[tile1A]._x - _parent.speedX;
_root[tile1B]._x = _root[tile1B]._x - _parent.speedX;
_root[tile2A]._x = _root[tile2A]._x - _parent.speedX;
_root[tile2B]._x = _root[tile2B]._x - _parent.speedX;
_root[tile3A]._x = _root[tile3A]._x - _parent.speedX;
_root[tile3B]._x = _root[tile3B]._x - _parent.speedX;
} else if (_parent.horzDirection == "left") {
_root[tile1A]._x = _root[tile1A]._x + _parent.speedX;
_root[tile1B]._x = _root[tile1B]._x + _parent.speedX;
_root[tile2A]._x = _root[tile2A]._x + _parent.speedX;
_root[tile2B]._x = _root[tile2B]._x + _parent.speedX;
_root[tile3A]._x = _root[tile3A]._x + _parent.speedX;
_root[tile3B]._x = _root[tile3B]._x + _parent.speedX;
}
if (_parent.vertDirection == "down") {
_root[tile1A]._y = _root[tile1A]._y - _parent.speedY;
_root[tile1B]._y = _root[tile1B]._y - _parent.speedY;
_root[tile2A]._y = _root[tile2A]._y - _parent.speedY;
_root[tile2B]._y = _root[tile2B]._y - _parent.speedY;
_root[tile3A]._y = _root[tile3A]._y - _parent.speedY;
_root[tile3B]._y = _root[tile3B]._y - _parent.speedY;
} else if (_parent.vertDirection == "up") {
_root[tile1A]._y = _root[tile1A]._y + _parent.speedY;
_root[tile1B]._y = _root[tile1B]._y + _parent.speedY;
_root[tile2A]._y = _root[tile2A]._y + _parent.speedY;
_root[tile2B]._y = _root[tile2B]._y + _parent.speedY;
_root[tile3A]._y = _root[tile3A]._y + _parent.speedY;
_root[tile3B]._y = _root[tile3B]._y + _parent.speedY;
}
if (thisEvent2 != "yes") {
_root.currentPlatforms = _root.currentPlatforms - Number(1);
thisEvent2 = "yes";
}
} else if (thisEvent2 == "yes") {
thisEvent1 = "no";
thisEvent2 = "no";
}
}
};
Symbol 283 MovieClip Frame 1
function movePlatform() {
if (thisRun != "Y") {
if (horzDirection == "right") {
distanceMovedX = 0;
} else if (horzDirection == "left") {
distanceMovedX = xDistance;
}
if (vertDirection == "down") {
distanceMovedY = 0;
} else if (vertDirection == "up") {
distanceMovedY = yDistance;
}
thisRun = "Y";
}
if (_root.gameState == "play") {
if ((horzDirection == "right") and (Number(distanceMovedX) < Number(xDistance))) {
this._x = this._x + Number(speedX);
distanceMovedX = distanceMovedX + Number(speedX);
} else if ((horzDirection == "right") and (Number(distanceMovedX) >= xDistance)) {
this._x = this._x + Number(speedX);
distanceMovedX = distanceMovedX + Number(speedX);
horzDirection = "left";
}
if ((horzDirection == "left") and (Number(distanceMovedX) > 0)) {
this._x = this._x - Number(speedX);
distanceMovedX = distanceMovedX - Number(speedX);
} else if ((horzDirection == "left") and (Number(distanceMovedX) <= 0)) {
horzDirection = "right";
}
if ((vertDirection == "down") and (Number(distanceMovedY) < Number(yDistance))) {
this._y = this._y + Number(speedY);
distanceMovedY = distanceMovedY + Number(speedY);
} else if ((vertDirection == "down") and (Number(distanceMovedY) >= yDistance)) {
this._y = this._y + Number(speedY);
distanceMovedY = distanceMovedY + Number(speedY);
vertDirection = "up";
}
if ((vertDirection == "up") and (Number(distanceMovedY) > 0)) {
this._y = this._y - Number(speedY);
distanceMovedY = distanceMovedY - Number(speedY);
} else if ((vertDirection == "up") and (Number(distanceMovedY) <= 0)) {
vertDirection = "down";
}
}
}
Selection.setFocus(this);
this.onEnterFrame = function () {
movePlatform();
};
stop();
Instance of Symbol 282 MovieClip in Symbol 283 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
tile1A = "tileA1";
tile1B = "tileA2";
tile2A = "tileB1";
tile2B = "tileB2";
tile3A = "tileC1";
tile3B = "tileC2";
}
Symbol 287 MovieClip Frame 1
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState == "play") {
doorX = (this._x + Number(_parent._x)) + 65;
doorY = (this._y + Number(_parent._y)) + 70;
doorW = doorX + Number(25);
doorH = doorY + Number(50);
pX = _root[_root.player]._x + Number(_root[_root.player + "X"]);
pY = _root[_root.player]._y + Number(_root[_root.player + "Y"]);
pW = pX + Number(_root[_root.player + "W"]);
pH = pY + Number(_root[_root.player + "H"]);
if (_root.playerState != "hit") {
if ((((doorX <= pW) && (doorW >= pX)) && (doorY <= pH)) && (doorH >= pY)) {
if (delay >= 5) {
if (thisRun != "Y") {
thisRun = "Y";
_root.gameState = "pause";
_root.commentScreen.gotoAndPlay("fadeOut");
}
} else {
delay = delay + Number(1);
}
}
}
}
};
stop();
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 209 MovieClip "gate1" in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
keyNum = 1;
}
Instance of Symbol 214 MovieClip "gate1" in Symbol 288 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
keyNum = 1;
}
Instance of Symbol 222 MovieClip "k1" in Symbol 288 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
keyNum = 1;
}
Instance of Symbol 270 MovieClip "g1" in Symbol 288 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 275 MovieClip "block1" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 25;
distanceDown = 75;
}
Instance of Symbol 275 MovieClip "block2" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 45;
distanceDown = 75;
}
Instance of Symbol 275 MovieClip "block3" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 25;
distanceDown = 75;
}
Instance of Symbol 204 MovieClip "block1P" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block1._y - Number(15);
}
Instance of Symbol 204 MovieClip "block2P" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block2._y - Number(15);
}
Instance of Symbol 204 MovieClip "block3P" in Symbol 288 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block3._y - Number(15);
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 214 MovieClip "gate2" in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
keyNum = 2;
}
Instance of Symbol 222 MovieClip "k2" in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
keyNum = 2;
}
Instance of Symbol 270 MovieClip "g2" in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g3" in Symbol 288 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 214 MovieClip "gate3" in Symbol 288 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
keyNum = 3;
}
Instance of Symbol 214 MovieClip "gate3a" in Symbol 288 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
keyNum = 3;
}
Instance of Symbol 222 MovieClip "k3" in Symbol 288 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
keyNum = 3;
}
Instance of Symbol 270 MovieClip "g4" in Symbol 288 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g5" in Symbol 288 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 214 MovieClip "gate4" in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
keyNum = 4;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 222 MovieClip "k4" in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
keyNum = 4;
}
Instance of Symbol 270 MovieClip "g7" in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g6" in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g7a" in Symbol 288 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g8" in Symbol 288 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g10" in Symbol 288 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 270 MovieClip "g9" in Symbol 288 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 214 MovieClip "gate5a" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
keyNum = 0;
}
Instance of Symbol 275 MovieClip "block1" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 20;
distanceDown = 75;
}
Instance of Symbol 275 MovieClip "block2" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 40;
distanceDown = 75;
}
Instance of Symbol 275 MovieClip "block3" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
timeDown = 5;
timeBetween = 20;
distanceDown = 75;
}
Instance of Symbol 204 MovieClip "block1P" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block1._y - Number(10);
}
Instance of Symbol 204 MovieClip "block2P" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block2._y - Number(10);
}
Instance of Symbol 204 MovieClip "block3P" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
onClipEvent (enterFrame) {
this._y = _parent.block3._y - Number(10);
}
Instance of Symbol 214 MovieClip "gate5" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
keyNum = 5;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 222 MovieClip "k5" in Symbol 288 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
keyNum = 5;
}
Instance of Symbol 283 MovieClip in Symbol 288 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
xDistance = 150;
yDistance = 0;
speedX = 10;
speedY = 0;
horzDirection = "right";
vertDirection = "up";
}
Instance of Symbol 214 MovieClip "gate6" in Symbol 288 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
keyNum = 6;
}
Instance of Symbol 222 MovieClip "k6" in Symbol 288 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
keyNum = 6;
}
Instance of Symbol 270 MovieClip "g11" in Symbol 288 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 283 MovieClip in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
xDistance = 0;
yDistance = 275;
speedX = 0;
speedY = 5;
horzDirection = "right";
vertDirection = "up";
}
Instance of Symbol 214 MovieClip "gate7" in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
keyNum = 7;
}
Instance of Symbol 214 MovieClip "gate7a" in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
keyNum = 0;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 222 MovieClip "k7" in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
keyNum = 7;
}
Instance of Symbol 270 MovieClip "g12" in Symbol 288 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
walkingDistance = 80;
stepDistance = 4;
}
Instance of Symbol 283 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
xDistance = 200;
yDistance = 0;
speedX = 10;
speedY = 0;
horzDirection = "right";
vertDirection = "up";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 214 MovieClip "gate7a" in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
keyNum = 8;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 222 MovieClip "k8" in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
keyNum = 8;
}
Instance of Symbol 270 MovieClip "g13" in Symbol 288 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
walkingDistance = 160;
stepDistance = 4;
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 204 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
otherMovie = "bMax";
otherCollisionBox = "maxBase";
}
Instance of Symbol 283 MovieClip in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
xDistance = 180;
yDistance = 0;
speedX = 10;
speedY = 0;
horzDirection = "right";
vertDirection = "up";
}
Instance of Symbol 214 MovieClip "gate8" in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
keyNum = 9;
}
Instance of Symbol 222 MovieClip "k9" in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
keyNum = 9;
}
Instance of Symbol 270 MovieClip "g14" in Symbol 288 MovieClip Frame 12
//component parameters
onClipEvent (initialize) {
walkingDistance = 160;
stepDistance = 4;
}
Symbol 292 MovieClip Frame 1
this._visible = 0;
name = _parent._name;
box = name + thisCollisionBox;
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root.gameState != "pause") {
_root[box + "X"] = _parent._x + Number(this._x);
_root[box + "Y"] = _parent._y + Number(this._y);
_root[box + "W"] = (_parent._x + Number(this._x)) + Number(this._width);
_root[box + "H"] = (_parent._y + Number(this._y)) + Number(this._height);
}
};
Symbol 304 MovieClip Frame 14
gotoAndPlay (1);
Symbol 311 MovieClip Frame 9
stop();
Symbol 326 MovieClip Frame 12
_root.chainLoop = "yes";
gotoAndPlay (1);
Symbol 344 MovieClip Frame 3
_root.weaponCollision = "on";
Symbol 344 MovieClip Frame 4
_root.weaponCollision = "off";
Symbol 344 MovieClip Frame 5
_root.weaponCollision = "off";
Symbol 344 MovieClip Frame 6
_root.playerStand();
Symbol 346 MovieClip Frame 1
_root.jS.start();
Symbol 346 MovieClip Frame 9
_root.playerState = "ok";
_root.playerAction = "stand";
_root[_root.player].gotoAndStop((_root.playerWeapon + "Stand") + _root.playerDirection);
Symbol 353 MovieClip Frame 1
_root.jS.start();
Symbol 353 MovieClip Frame 13
_root.playerState = "ok";
_root.playerAction = "stand";
_root[_root.player].gotoAndStop((_root.playerWeapon + "Stand") + _root.playerDirection);
Symbol 354 MovieClip Frame 10
_root.tilesReset = "Y";
_root.commentScreen.gotoAndPlay("ready");
_root.playerReset();
Symbol 362 MovieClip Frame 4
_root.backgroundSound.s.setVolume(0);
_root.gotoAndPlay("dungeonAnimation");
Symbol 363 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip in Symbol 363 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
thisCollisionBox = "maxBase";
}
Symbol 363 MovieClip Frame 110
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 122
Instance of Symbol 335 MovieClip in Symbol 363 MovieClip Frame 122
onClipEvent (enterFrame) {
if (_root.gameState == "play") {
this.play();
} else if (_root.gameState == "pause") {
this.stop();
}
}
Symbol 363 MovieClip Frame 134
Symbol 363 MovieClip Frame 147
Symbol 363 MovieClip Frame 170
Symbol 363 MovieClip Frame 181
Symbol 363 MovieClip Frame 219
Symbol 363 MovieClip Frame 232
Symbol 363 MovieClip Frame 245
stop();
Symbol 363 MovieClip Frame 258
_root.playerHit = "no";
_root.weaponCollision = "off";
_root.changeWeapon = "OK";
stop();
Symbol 363 MovieClip Frame 269
_root.playerHit = "no";
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 279
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 288
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 299
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 310
_root.weaponCollision = "off";
_root.playerHit = "yes";
_root.changeWeapon = "no";
play();
Symbol 363 MovieClip Frame 315
gotoAndStop (1);
Symbol 363 MovieClip Frame 325
_root.playerHit = "no";
_root.weaponCollision = "off";
_root.changeWeapon = "OK";
stop();
Symbol 363 MovieClip Frame 338
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 346
_root.weaponCollision = "off";
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 356
_root.changeWeapon = "no";
stop();
Symbol 363 MovieClip Frame 365
_root.weaponCollision = "off";
_root.playerHit = "yes";
_root.changeWeapon = "no";
play();
Symbol 363 MovieClip Frame 370
gotoAndStop (1);
Symbol 363 MovieClip Frame 380
_root.playerHit = "yes";
play();
Symbol 363 MovieClip Frame 394
if (_root.lives > 0) {
_root.livesObject.prevFrame();
_root.lives = _root.lives - 1;
}
_root.playerReset = "yes";
stop();
Symbol 368 MovieClip Frame 1
Selection.setFocus(this);
this.onEnterFrame = function () {
if (thisRun != "Y") {
r = random(100);
if (r == 25) {
thisRun = "Y";
gotoAndPlay (7);
}
}
};
stop();
Symbol 368 MovieClip Frame 12
thisRun = "";
gotoAndStop (1);
Symbol 373 MovieClip Frame 1
stop();
Symbol 376 Button
on (press) {
gotoAndStop (2);
}
Symbol 377 Button
on (press) {
gotoAndStop (1);
}
Symbol 382 MovieClip Frame 1
if (_root.audioVolume <= 0) {
this.gotoAndStop("zero");
}
if ((_root.audioVolume > 0) and (_root.audioVolume <= 20)) {
this.gotoAndStop("one");
}
if ((_root.audioVolume > 20) and (_root.audioVolume <= 40)) {
this.gotoAndStop("two");
}
if ((_root.audioVolume > 40) and (_root.audioVolume <= 60)) {
this.gotoAndStop("three");
}
if ((_root.audioVolume > 60) and (_root.audioVolume <= 80)) {
this.gotoAndStop("four");
}
if ((_root.audioVolume > 80) and (_root.audioVolume <= 100)) {
this.gotoAndStop("five");
}
if ((_root.audioVolume > 100) and (_root.audioVolume <= 120)) {
this.gotoAndStop("six");
}
if (_root.audioVolume > 120) {
this.gotoAndStop("seven");
}
stop();
Symbol 386 Button
on (press) {
if ((_root.audioVolume >= 0) and (_root.audioVolume < 140)) {
_root.audioVolume = Number(_root.audioVolume) + 20;
s = new Sound(_level0);
s.setVolume(_root.audioVolume);
b = new Sound(_level1);
b.attachSound("beep");
b.start();
b.setVolume(_root.audioVolume);
}
}
Symbol 388 Button
on (press) {
if ((_root.audioVolume > 0) and (_root.audioVolume <= 140)) {
_root.audioVolume = Number(_root.audioVolume) - 20;
s = new Sound(_level0);
s.setVolume(_root.audioVolume);
b = new Sound(_level1);
b.attachSound("beep");
b.start();
b.setVolume(_root.audioVolume);
}
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
stop();
Instance of Symbol 382 MovieClip in Symbol 389 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.audioVolume <= 0) {
this.gotoAndStop("zero");
}
if ((_root.audioVolume > 0) and (_root.audioVolume <= 20)) {
this.gotoAndStop("one");
}
if ((_root.audioVolume > 20) and (_root.audioVolume <= 40)) {
this.gotoAndStop("two");
}
if ((_root.audioVolume > 40) and (_root.audioVolume <= 60)) {
this.gotoAndStop("three");
}
if ((_root.audioVolume > 60) and (_root.audioVolume <= 80)) {
this.gotoAndStop("four");
}
if ((_root.audioVolume > 80) and (_root.audioVolume <= 100)) {
this.gotoAndStop("five");
}
if ((_root.audioVolume > 100) and (_root.audioVolume <= 120)) {
this.gotoAndStop("six");
}
if (_root.audioVolume > 120) {
this.gotoAndStop("seven");
}
}
Symbol 398 MovieClip Frame 1
Selection.setFocus(this);
this.onEnterFrame = function () {
if (_root[player + "Strength"] >= 0) {
this._xscale = _root[player + "Strength"];
}
if (_root[_root.player + "StrengthNum"] <= 0) {
_root[_root.player + "StrengthNum"] = 0;
_root[_root.player + "StrengthCheck"] = "0";
_root.playerState = "hit";
_root[_root.player].gotoAndStop((_root.playerWeapon + "Dead") + _root.playerDirection);
}
};
stop();
Symbol 405 Button
on (press) {
gotoAndPlay (130);
}
Symbol 406 Button
on (press) {
if (addLife != "Y") {
_root.lives = _root.lives + Number(1);
addLife == "Y";
gotoAndPlay (168);
}
}
Symbol 425 MovieClip Frame 1
r = Number(random(3)) + 1;
Symbol 425 MovieClip Frame 2
if (r == 1) {
gotoAndPlay (4);
}
if (r == 2) {
gotoAndPlay (7);
}
if (r == 3) {
gotoAndPlay (10);
}
if (r == 4) {
gotoAndPlay (13);
}
Symbol 425 MovieClip Frame 6
gotoAndPlay (1);
Symbol 425 MovieClip Frame 9
gotoAndPlay (1);
Symbol 425 MovieClip Frame 11
gotoAndPlay (1);
Symbol 425 MovieClip Frame 14
gotoAndPlay (1);
Symbol 443 MovieClip Frame 25
_root.tilesReset = "N";
_root.gameState = "play";
Symbol 443 MovieClip Frame 26
stop();
Symbol 443 MovieClip Frame 40
stopAllSounds();
_root.gotoAndPlay("dungeonAnimation");
Symbol 443 MovieClip Frame 48
stopAllSounds();
Symbol 443 MovieClip Frame 129
stop();
Symbol 443 MovieClip Frame 156
gotoAndStop (129);
Symbol 443 MovieClip Frame 162
_root.gameState = "play";
_root.startBackgroundAudio();
gotoAndStop (26);
Symbol 443 MovieClip Frame 191
_root.gameState = "play";
_root.startBackgroundAudio();
gotoAndStop (26);
Symbol 444 Button
on (keyPress "a") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
_root.swordGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
on (keyPress "<Left>") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
_root.leftGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
on (keyPress "<Right>") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
_root.rightGO = "Y";
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
on (keyPress "s") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
if (_root.playerGround == "yes") {
_root.jumpGO = "Y";
}
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
on (keyPress "<Up>") {
if (_root.gameState != "pause") {
if (_root.playerState != "hit") {
if (_root.playerGround == "yes") {
_root.jumpGO = "Y";
}
if (_root.playerState == "inactive") {
_root.playerState = "";
}
}
}
}
Symbol 472 Button
on (press) {
stopAllSounds();
_root.gotoAndPlay("begin");
}
Symbol 511 MovieClip Frame 1
r = Number(random(3)) + 1;
Symbol 511 MovieClip Frame 2
if (r == 1) {
gotoAndPlay (4);
}
if (r == 2) {
gotoAndPlay (7);
}
Symbol 511 MovieClip Frame 6
gotoAndPlay (1);
Symbol 511 MovieClip Frame 9
gotoAndPlay (1);
Symbol 630 Button
on (press) {
getURL ("http://www.circusx.com/", "_blank");
}
Symbol 631 Button
on (release) {
getURL ("http://www.gamepug.com/", "_top");
}
Symbol 633 Button
on (release) {
getURL ("http://www.circusx.com/?page=freegames", "_top");
}