Instance of Symbol 2 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
this._xscale = PercentLoaded;
} else {
_root.play();
}
}
Frame 21
stop();
Frame 22
function death() {
var _local1 = _root;
_local1.game.lives = _local1.game.lives - 1;
_local1.game.life = 12;
_local1.char.momentum = 0;
_local1.char.momentumy = 0;
_local1.hitenemy = "false";
_local1.invincable = "true";
_local1.invictimer = 10;
_local1.char.slashing = "false";
_local1.char.throwing = "false";
_local1.char.spewing = "false";
_local1.char.ducking = "false";
_local1.mc_arm._x = -500;
_local1.mc_arm._y = -500;
_local1.mc_char._y = _local1.currentcheckmccharx;
_local1.mc_char._x = _local1.currentcheckmcchary;
_local1.game.charx = _local1.currentcheckx;
_local1.game.chary = _local1.currentchecky;
_local1.level3._x = _local1.currentchecklevelx;
_local1.level3._y = _local1.currentchecklevely;
_local1.level2._x = _local1.currentchecklevelx - 600;
_local1.level2._y = _local1.currentchecklevely;
_local1.level4._x = _local1.currentchecklevelx + 600;
_local1.level4._y = _local1.currentchecklevely;
_local1.globaly = _local1.currentcheckglobaly;
_local1.globalx = _local1.currentcheckglobalx;
_local1.checkpointmax = _local1.currentcheckcheckpointmax;
_local1.checkpointmin = _local1.currentcheckcheckpointmin;
_local1.game.prevtile = _local1.currentcheckpointprevtile;
_local1.game.nexttile = _local1.currentcheckpointnexttile;
_local1.game.tile = _local1.currentcheckpointtile;
_local1.level3.gotoAndStop(_local1.game.tile);
_local1.level2.gotoAndStop(_local1.game.tile - 1);
_local1.level4.gotoAndStop(_local1.game.tile + 1);
var _local2 = 0;
while (_local2 < _local1.myFX.length) {
R = _local1.myFX[_local2];
if (R[5] == "true") {
_local1["fxmc" + _local2]._x = R[1] + _local1.globalx;
_local1["fxmc" + _local2]._y = R[2] + _local1.globaly;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myFX.length) {
R = _local1.myFX[_local2];
if ((R[1] > (_local1.game.charx - 1800)) and (R[1] < (_local1.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_local1.myFX[_local2][5] = "true";
_local1.attachMovie("fx" + R[0], "fxmc" + _local2, 7000 + _local2);
_local1["fxmc" + _local2]._x = R[1] + _local1.globalx;
_local1["fxmc" + _local2]._y = R[2] + _local1.globaly;
if (R[7] > 0) {
_local1["fxmc" + _local2].gotoAndStop(R[7]);
}
}
} else if (R[5] == "true") {
_local1["fxmc" + _local2].removeMovieClip();
_local1.myFX[_local2][5] = "false";
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myItems.length) {
R = _local1.myItems[_local2];
if (R[5] == "true") {
_local1["itemmc" + _local2]._x = R[1] + _local1.globalx;
_local1["itemmc" + _local2]._y = R[2] + _local1.globaly;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myItems.length) {
R = _local1.myItems[_local2];
if ((R[1] > (_local1.game.charx - 1800)) and (R[1] < (_local1.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_local1.myItems[_local2][5] = "true";
_local1.attachMovie("item" + R[0], "itemmc" + _local2, 1000 + _local2);
_local1["itemmc" + _local2]._x = R[1] + _local1.globalx;
_local1["itemmc" + _local2]._y = R[2] + _local1.globaly;
}
} else if (R[5] == "true") {
_local1["itemmc" + _local2].removeMovieClip();
_local1.myItems[_local2][5] = "false";
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myEnemies.length) {
R = _local1.myEnemies[_local2];
if (R[17] == "true") {
_local1["enemymc" + _local2]._x = R[2] + _local1.globalx;
_local1["enemymc" + _local2]._y = R[3] + _local1.globaly;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myEnemies.length) {
R = _local1.myEnemies[_local2];
if ((R[2] > (_local1.game.charx - 1800)) and (R[2] < (_local1.game.charx + 1800))) {
if ((R[17] == "false") and (R[18] == "false")) {
_local1.myEnemies[_local2][17] = "true";
_local1.attachMovie("enemy" + R[0], "enemymc" + _local2, 5000 + _local2);
_local1["enemymc" + _local2]._x = R[2] + _local1.globalx;
_local1["enemymc" + _local2]._y = R[3] + _local1.globaly;
if (R[12] == "left") {
if (R[7] == "left") {
_local1["enemymc" + _local2].gotoAndStop(1);
}
if (R[7] == "stunned") {
_local1["enemymc" + _local2].gotoAndStop(3);
}
if (R[7] == "attack") {
_local1["enemymc" + _local2].gotoAndStop(5);
}
if (R[4] < 1) {
_local1["enemymc" + _local2].gotoAndStop(7);
}
} else {
if (R[7] == "right") {
_local1["enemymc" + _local2].gotoAndStop(2);
}
if (R[7] == "stunned") {
_local1["enemymc" + _local2].gotoAndStop(4);
}
if (R[7] == "attack") {
_local1["enemymc" + _local2].gotoAndStop(6);
}
if (R[4] < 1) {
_local1["enemymc" + _local2].gotoAndStop(8);
}
}
}
} else if (R[17] == "true") {
_local1["enemymc" + _local2].removeMovieClip();
_local1.myEnemies[_local2][17] = "false";
}
_local2++;
}
if (_local1.game.lives < 0) {
_local1.gotoAndStop(4);
_local1.mc_char.removeMovieClip();
_local1.mc_arm.removeMovieClip();
_local1.infobar.removeMovieClip();
_local1.level2.removeMovieClip();
_local1.level3.removeMovieClip();
_local1.level4.removeMovieClip();
var _local3 = 0;
while (_local3 < _local1.myEnemies.length) {
_local1["enemymc" + _local3].removeMovieClip();
_local3++;
}
_local3 = 0;
while (_local3 < _local1.myItems.length) {
_local1["itemmc" + _local3].removeMovieClip();
_local3++;
}
}
}
function GamePlay() {
var _local1 = _root;
_local1.throwing = _local1.char.throwing;
_local1.TEMP2 = _local1.game.charx;
_local1.YVAL = _local1.game.chary;
if ((_local1.game.charx > _local1.checkpointmax) or (_local1.game.charx < _local1.checkpointmin)) {
if (_local1.game.charx > checkpointmax) {
_local1.checkpointmax = _local1.checkpointmax + 600;
_local1.checkpointmin = _local1.checkpointmin + 600;
}
if (_local1.game.charx < _local1.checkpointmin) {
_local1.checkpointmax = _local1.checkpointmax - 600;
_local1.checkpointmin = _local1.checkpointmin - 600;
}
var _local2 = 0;
while (_local2 < _local1.myFX.length) {
R = _local1.myFX[_local2];
if ((R[1] > (_local1.game.charx - 1800)) and (R[1] < (_local1.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_local1.myFX[_local2][5] = "true";
_local1.attachMovie("fx" + R[0], "fxmc" + _local2, 7000 + _local2);
_local1["fxmc" + _local2]._x = R[1] + _local1.globalx;
_local1["fxmc" + _local2]._y = R[2] + _local1.globaly;
if (R[7] > 0) {
_local1["fxmc" + _local2].gotoAndStop(R[7]);
}
}
} else if (R[5] == "true") {
_local1["fxmc" + _local2].removeMovieClip();
_local1.myFX[_local2][5] = "false";
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myEnemies.length) {
R = _local1.myEnemies[_local2];
if ((R[2] > (_local1.game.charx - 1800)) and (R[2] < (_local1.game.charx + 1800))) {
if ((R[17] == "false") and (R[18] == "false")) {
_local1.myEnemies[_local2][17] = "true";
_local1.attachMovie("enemy" + R[0], "enemymc" + _local2, 5000 + _local2);
_local1["enemymc" + _local2]._x = R[2] + _local1.globalx;
_local1["enemymc" + _local2]._y = R[3] + _local1.globaly;
if (R[12] == "left") {
if (R[7] == "left") {
_local1["enemymc" + _local2].gotoAndStop(1);
}
if (R[7] == "stunned") {
_local1["enemymc" + _local2].gotoAndStop(3);
}
if (R[7] == "attack") {
_local1["enemymc" + _local2].gotoAndStop(5);
}
if (R[4] < 1) {
_local1["enemymc" + _local2].gotoAndStop(7);
}
} else {
if (R[7] == "right") {
_local1["enemymc" + _local2].gotoAndStop(2);
}
if (R[7] == "stunned") {
_local1["enemymc" + _local2].gotoAndStop(4);
}
if (R[7] == "attack") {
_local1["enemymc" + _local2].gotoAndStop(6);
}
if (R[4] < 1) {
_local1["enemymc" + _local2].gotoAndStop(8);
}
}
}
} else if (R[17] == "true") {
_local1["enemymc" + _local2].removeMovieClip();
_local1.myEnemies[_local2][17] = "false";
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.myItems.length) {
R = _local1.myItems[_local2];
if ((R[1] > (_local1.game.charx - 1800)) and (R[1] < (_local1.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_local1.myItems[_local2][5] = "true";
_local1.attachMovie("item" + R[0], "itemmc" + _local2, 1000 + _local2);
_local1["itemmc" + _local2]._x = R[1] + _local1.globalx;
_local1["itemmc" + _local2]._y = R[2] + _local1.globaly;
}
} else if (R[5] == "true") {
_local1["itemmc" + _local2].removeMovieClip();
_local1.myItems[_local2][5] = "false";
}
_local2++;
}
}
_local1.spewmeter = _local1.char.spewmeter;
_local1.SHOWHP = _local1.game.life;
_local1.SHOWLIVES = _local1.game.lives;
_local1.switchcollide = -1;
_local1.laddercollide = false;
_local1.watercollide = false;
var _local2 = 0;
while (_local2 < _local1.myItems.length) {
R = _local1.myItems[_local2];
if (R[5] == "true") {
icollidex = "false";
icollidey = "false";
if (((((((R[7] == "ladder") or (R[7] == "health")) or (R[7] == "switch")) or (R[7] == "checkpoint")) or (R[7] == "trap")) or (R[7] == "tiltbarrel")) or (R[7] == "water")) {
if ((R[1] < (_local1.game.charx + 600)) and (R[1] > (_local1.game.charx - 600))) {
if (R[1] < _local1.game.charx) {
if ((_local1.game.charx - _local1.char.width) < (R[1] + R[3])) {
icollidex = "true";
}
} else if ((_local1.game.charx + _local1.char.width) > (R[1] - R[3])) {
icollidex = "true";
}
if (R[2] < _local1.game.chary) {
if ((_local1.game.chary - _local1.char.height) < (R[2] + R[4])) {
icollidey = "true";
}
} else if ((_local1.game.chary + _local1.char.height) > (R[2] - R[4])) {
icollidey = "true";
}
}
}
if (R[7] == "health") {
if ((icollidex == "true") and (icollidey == "true")) {
_local1["itemmc" + _local2].removeMovieClip();
_local1.myItems[_local2][5] = "false";
_local1.myItems[_local2][6] = "true";
_local1.game.lives = _local1.game.lives + 1;
}
}
if (R[7] == "tiltbarrel") {
if ((icollidex == "true") and (icollidey == "true")) {
if (_local1["itemmc" + _local2].frame < 23) {
_local1["itemmc" + _local2].gotoAndPlay(23);
}
}
}
if (R[7] == "ladder") {
if ((icollidex == "true") and (icollidey == "true")) {
_local1.laddercollide = true;
}
}
if (R[7] == "water") {
if ((icollidex == "true") and (icollidey == "true")) {
_local1.watercollide = true;
}
}
if (R[7] == "trap") {
if (((icollidex == "true") and (icollidey == "true")) and (_local1.char.jumping == "false")) {
_local1.mc_char._alpha = 0;
if (_local1.char.dir == "right") {
_local1["itemmc" + _local2].gotoAndStop(3);
}
if (_local1.char.dir == "left") {
_local1["itemmc" + _local2].gotoAndStop(2);
}
_local1.gameplaying = "false";
}
}
if (R[7] == "switch") {
if (R[8] == "true") {
_local1["itemmc" + _local2].gotoAndStop(2);
} else {
_local1["itemmc" + _local2].gotoAndStop(1);
}
if (((icollidex == "true") and (icollidey == "true")) and (R[8] != "true")) {
_local1.switchcollide = _local2;
}
}
if (R[7] == "checkpoint") {
if (_local1.currentcheck == R[8]) {
_local1["itemmc" + _local2].gotoAndStop(2);
} else {
_local1["itemmc" + _local2].gotoAndStop(1);
}
if ((((((icollidex == "true") and (icollidey == "true")) and (_local1.char.jumping == "false")) and (_local1.char.spewing == "false")) and (_local1.char.throwing == "false")) and (_local1.char.slashing == "false")) {
_local1.currentcheck = R[8];
_local1.currentcheckmccharx = _local1.mc_char._y;
_local1.currentcheckmcchary = _local1.mc_char._x;
_local1.currentcheckx = _local1.game.charx;
_local1.currentchecky = _local1.game.chary;
_local1.currentchecklevelx = _local1.level3._x;
_local1.currentchecklevely = _local1.level3._y;
_local1.currentcheckglobaly = _local1.globaly;
_local1.currentcheckglobalx = _local1.globalx;
_local1.currentcheckcheckpointmax = _local1.checkpointmax;
_local1.currentcheckcheckpointmin = _local1.checkpointmin;
_local1.currentcheckpointprevtile = _local1.game.prevtile;
_local1.currentcheckpointnexttile = _local1.game.nexttile;
_local1.currentcheckpointtile = _local1.game.tile;
}
}
if ((R[5] == "true") and (R[6] == "true")) {
_local1["itemmc" + _local2].removeMovieClip();
_local1.myItems[_local2][5] = "false";
}
}
_local2++;
}
if (_local1.laddercollide == false) {
_local1.char.climbing = "false";
}
if (_local1.gameplaying == "true") {
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
if (_local1.myEnemies[i][4] > 0) {
devour = false;
_local1.myEnemies[i][11] = _local1.myEnemies[i][11] - 1;
if (_local1.myEnemies[i][11] < 1) {
if (_local1.myEnemies[i][12] == "right") {
if (_local1.myEnemies[i][2] < _local1.myEnemies[i][6]) {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x + _local1.myEnemies[i][10];
_local1.myEnemies[i][2] = _local1.myEnemies[i][2] + _local1.myEnemies[i][10];
_local1.myEnemies[i][7] = "right";
} else {
_local1.myEnemies[i][7] = "left";
_local1.myEnemies[i][12] = "left";
}
}
if (_local1.myEnemies[i][12] == "left") {
if (_local1.myEnemies[i][2] > _local1.myEnemies[i][5]) {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x - _local1.myEnemies[i][10];
_local1.myEnemies[i][2] = _local1.myEnemies[i][2] - _local1.myEnemies[i][10];
_local1.myEnemies[i][7] = "left";
} else {
_local1.myEnemies[i][7] = "right";
_local1.myEnemies[i][12] = "right";
}
}
}
if ((_local1.myEnemies[i][7] != "stunned") and (_local1.myEnemies[i][21] == false)) {
if ((_local1.char.slashing == "true") and (_local1.slashtimer < (_local1.slashnext + 3))) {
if (((_local1.game.charx + 600) > _local1.myEnemies[i][2]) and ((_local1.game.charx - 600) < _local1.myEnemies[i][2])) {
ycheck = "false";
charheight = -50;
if ((_local1.char.height + (charheight / 2)) > _local1.myEnemies[i][9]) {
if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < ((_local1.game.chary + _local1.char.height) + charheight)) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > ((_local1.game.chary - _local1.char.height) - charheight)) {
ycheck = "true";
}
}
} else if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < ((_local1.game.chary + _local1.char.height) + charheight)) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > ((_local1.game.chary - _local1.char.height) - charheight)) {
ycheck = "true";
}
}
if (ycheck == "true") {
if (_local1.char.dir == "right") {
dircheckx = 30;
} else {
dircheckx = -30;
}
if (_local1.game.charx < _local1.myEnemies[i][2]) {
if (((_local1.game.charx + _local1.char.width) + dircheckx) > (_local1.myEnemies[i][2] - _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 3;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1.mc_char._x + (dircheckx * 2);
_local1.oof._y = _local1.mc_char._y;
}
} else if (((_local1.game.charx - _local1.char.width) + dircheckx) < (_local1.myEnemies[i][2] + _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 3;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1.mc_char._x + (dircheckx * 2);
_local1.oof._y = _local1.mc_char._y;
}
}
}
}
}
if (((_local1.myEnemies[i][7] != "stunned") and (_local1.myEnemies[i][19] == false)) and (_local1.spewbuffer < 1)) {
if ((_local1.char.spewing == "true") and (_local1.slashtimer < (_local1.slashnext + 3))) {
if (((_local1.game.charx + 600) > _local1.myEnemies[i][2]) and ((_local1.game.charx - 600) < _local1.myEnemies[i][2])) {
ycheck = "false";
charheight = -50;
if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < ((_local1.game.chary + _local1.char.height) + charheight)) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > (_local1.game.chary - _local1.char.height)) {
ycheck = "true";
}
}
if (ycheck == "true") {
if (_local1.char.dir == "right") {
dircheckx = 140;
} else {
dircheckx = -140;
}
if (_local1.game.charx < _local1.myEnemies[i][2]) {
if (((_local1.game.charx + _local1.char.width) + dircheckx) > (_local1.myEnemies[i][2] - _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 3;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1["enemymc" + i]._x;
_local1.oof._y = _local1["enemymc" + i]._y;
}
} else if (((_local1.game.charx - _local1.char.width) + dircheckx) < (_local1.myEnemies[i][2] + _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 3;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1["enemymc" + i]._x;
_local1.oof._y = _local1["enemymc" + i]._y;
}
}
}
}
}
if ((_local1.myEnemies[i][7] != "stunned") and (_local1.myEnemies[i][20] == false)) {
armxtemp = _local1.armfakex;
_local1.TELLME = armxtemp;
if (((armxtemp + 400) > _local1.myEnemies[i][2]) and ((armxtemp - 400) < _local1.myEnemies[i][2])) {
ycheck2 = "false";
if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < _local1.army) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > _local1.army) {
ycheck2 = "true";
}
}
if (ycheck2 == "true") {
if (armxtemp < _local1.myEnemies[i][2]) {
if (armxtemp > (_local1.myEnemies[i][2] - _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 1;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1.mc_arm._x;
_local1.oof._y = _local1.mc_arm._y;
}
}
if (armxtemp > _local1.myEnemies[i][2]) {
if (armxtemp < (_local1.myEnemies[i][2] + _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "stunned";
_local1.myEnemies[i][4] = _local1.myEnemies[i][4] - 1;
_local1.myEnemies[i][11] = 8;
_local1.attachMovie("oof", "oof", 15998);
_local1.oof._x = _local1.mc_arm._x;
_local1.oof._y = _local1.mc_arm._y;
}
}
}
}
}
if (_local1.myEnemies[i][11] < 1) {
if (_local1.invincable == "false") {
if (((_local1.game.charx + 600) > _local1.myEnemies[i][2]) and ((_local1.game.charx - 600) < _local1.myEnemies[i][2])) {
ycheck = "false";
if (_local1.char.ducking == "false") {
charheight = 0;
} else {
charheight = 50;
}
if ((_local1.char.height + (charheight / 2)) > _local1.myEnemies[i][9]) {
if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < ((_local1.game.chary + _local1.char.height) + charheight)) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > ((_local1.game.chary - _local1.char.height) + charheight)) {
ycheck = "true";
}
}
} else if ((_local1.myEnemies[i][3] - _local1.myEnemies[i][9]) < ((_local1.game.chary + _local1.char.height) + charheight)) {
if ((_local1.myEnemies[i][3] + _local1.myEnemies[i][9]) > ((_local1.game.chary - _local1.char.height) + charheight)) {
ycheck = "true";
}
}
if (ycheck == "true") {
if (_local1.game.charx < _local1.myEnemies[i][2]) {
if (_local1.myEnemies[i][12] == "left") {
if ((_local1.game.charx + _local1.char.width) > (_local1.myEnemies[i][2] - _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "attack";
_local1.hitdir = _local1.char.dir;
_local1.myEnemies[i][11] = _local1.myEnemies[i][13];
_local1.hitenemy = "true";
_local1.invincable = "true";
_local1.invictimer = 10;
_local1.hittimer = 5;
_local1.game.life = _local1.game.life - _local1.myEnemies[i][22];
if (_local1.myEnemies[i][14] > 0) {
_local1.char.momentum = _local1.myEnemies[i][14] * -1;
}
if (_local1.myEnemies[i][15] > 0) {
_local1.char.jumping = "true";
_local1.char.momentumy = _local1.myEnemies[i][14] * -1;
}
if (_local1.game.life < 0) {
devour = true;
_local1.mc_char._alpha = 0;
_local1.gameplaying = "false";
}
}
}
} else if (_local1.myEnemies[i][12] == "right") {
if ((_local1.game.charx - _local1.char.width) < (_local1.myEnemies[i][2] + _local1.myEnemies[i][8])) {
_local1.myEnemies[i][7] = "attack";
_local1.myEnemies[i][11] = _local1.myEnemies[i][13];
_local1.hitenemy = "true";
_local1.invincable = "true";
_local1.invictimer = 10;
_local1.hittimer = 5;
_local1.hitdir = _local1.char.dir;
_local1.game.life = _local1.game.life - _local1.myEnemies[i][22];
if (_local1.myEnemies[i][14] > 0) {
_local1.char.momentum = _local1.myEnemies[i][14];
}
if (_local1.myEnemies[i][15] > 0) {
_local1.char.jumping = "true";
_local1.char.momentumy = _local1.myEnemies[i][14] * -1;
}
if (_local1.game.life < 0) {
devour = true;
_local1.mc_char._alpha = 0;
_local1.gameplaying = "false";
}
}
}
}
}
}
}
if (_local1.myEnemies[i][12] == "left") {
if (_local1.myEnemies[i][7] == "left") {
_local1["enemymc" + i].gotoAndStop(1);
}
if (_local1.myEnemies[i][7] == "stunned") {
_local1["enemymc" + i].gotoAndStop(3);
}
if (_local1.myEnemies[i][7] == "attack") {
_local1["enemymc" + i].gotoAndStop(5);
}
if (_local1.myEnemies[i][4] < 1) {
_local1["enemymc" + i].gotoAndStop(7);
}
if (devour == true) {
_local1["enemymc" + i].gotoAndStop(11);
}
} else {
if (_local1.myEnemies[i][7] == "right") {
_local1["enemymc" + i].gotoAndStop(2);
}
if (_local1.myEnemies[i][7] == "stunned") {
_local1["enemymc" + i].gotoAndStop(4);
}
if (_local1.myEnemies[i][7] == "attack") {
_local1["enemymc" + i].gotoAndStop(6);
}
if (_local1.myEnemies[i][4] < 1) {
_local1["enemymc" + i].gotoAndStop(8);
}
if (devour == true) {
_local1["enemymc" + i].gotoAndStop(12);
}
}
} else if (_local1.myEnemies[i][16] == "flying") {
_local1["enemymc" + i]._y = _local1["enemymc" + i]._y + 10;
_local1.myEnemies[i][3] = _local1.myEnemies[i][3] + 10;
coltemp = _local1.myCollision;
var _local3 = 0;
while (_local3 < coltemp.length) {
col = coltemp[_local3];
if (((_local1.myEnemies[i][2] - _local1.myEnemies[i][8]) <= (col[0] + col[1])) and ((_local1.myEnemies[i][2] + _local1.myEnemies[i][8]) >= (col[0] - col[1]))) {
if ((_local1.myEnemies[i][3] <= (col[2] - col[3])) and ((_local1.myEnemies[i][3] + 10) >= (col[2] - col[3]))) {
_local1.myEnemies[i][16] = "not";
}
}
_local3++;
}
}
}
i++;
}
if (_local1.char.throwing == "true") {
_local1.armxdis = _local1.game.charx - _local1.armx;
_local1.armydis = _local1.game.chary - _local1.army;
_local1.armxpos = _local1.game.charx + _local1.armxdis;
_local1.armypos = _local1.game.chary + _local1.armydis;
if (_local1.armdistance > 0) {
_local1.armdistance = _local1.armdistance - 20;
if (_local1.armdir == "right") {
_local1.armx = _local1.armx - (20 - _local1.char.momentum);
}
if (_local1.armdir == "left") {
_local1.armx = _local1.armx + (20 + _local1.char.momentum);
}
_local1.army = _local1.army + 0;
_local1.mc_arm._x = _local1.mc_char._x + _local1.armxdis;
_local1.mc_arm._y = _local1.mc_char._y - _local1.armydis;
_local1.armfakex = _local1.game.charx + _local1.armxdis;
} else {
if (_local1.game.charx > _local1.armx) {
_local1.armx = _local1.armx + (20 + _local1.char.momentum);
}
if (_local1.game.charx < _local1.armx) {
_local1.armx = _local1.armx - (20 - _local1.char.momentum);
}
if (_local1.char.ducking == "true") {
duckcheck = 40;
} else {
duckcheck = 0;
}
if ((_local1.game.chary + duckcheck) > _local1.army) {
_local1.army = _local1.army + 20;
}
if (_local1.game.chary < _local1.army) {
_local1.army = _local1.army - 20;
}
_local1.mc_arm._x = _local1.mc_char._x + _local1.armxdis;
_local1.mc_arm._y = _local1.mc_char._y - _local1.armydis;
_local1.armfakex = _local1.game.charx + _local1.armxdis;
if ((((_local1.armxdis < 60) and (_local1.armxdis > -60)) and (_local1.armydis <= 30)) and (_local1.armydis >= -30)) {
_local1.char.throwing = "false";
_local1.mc_arm._x = -500;
_local1.mc_arm._y = -500;
_local1.army = -500;
_local1.armx = -500;
_local1.armxpos = -500;
_local1.armypos = -500;
}
}
}
}
if (_local1.gameplaying == "true") {
_local1.Xval = _local1.game.charx;
_local1.collisionx = "false";
_local1.collisiony = "false";
_local1.onplatform = "false";
charrealx = _local1.game.charx + _local1.char.momentum;
charrealy = _local1.game.chary + _local1.char.momentumy;
coltemp = _local1.myCollision;
var i = 0;
while (i < coltemp.length) {
col = coltemp[i];
if (((_local1.game.charx - _local1.char.width) <= (col[0] + col[1])) and ((_local1.game.charx + _local1.char.width) >= (col[0] - col[1]))) {
if ((col[4] == 1) or (col[4] == 2)) {
if (((_local1.game.chary + _local1.char.height) <= (col[2] - col[3])) and ((charrealy + _local1.char.height) >= (col[2] - col[3]))) {
_local1.collisiony = "true";
_local1.onplatform = "true";
_local1.ydistcol = ((col[2] - col[3]) - _local1.game.chary) - _local1.char.height;
}
}
if (col[4] == 1) {
if (((_local1.game.chary - _local1.char.height) > (col[2] + col[3])) and ((charrealy - _local1.char.height) <= (col[2] + col[3]))) {
_local1.collisiony = "true";
_local1.ydistcol = ((col[2] + col[3]) - _local1.game.chary) + _local1.char.height;
}
}
if ((((_local1.game.chary + _local1.char.height) - 4) <= (col[2] - col[3])) and (((_local1.game.chary + _local1.char.height) + 4) >= (col[2] - col[3]))) {
_local1.onplatform = "true";
}
}
if (col[4] == 1) {
if (((charrealy - _local1.char.height) <= (col[2] + col[3])) and ((charrealy + _local1.char.height) >= (col[2] - col[3]))) {
if (((_local1.game.charx + _local1.char.width) <= (col[0] - col[1])) and ((charrealx + _local1.char.width) >= (col[0] - col[1]))) {
_local1.collisionx = "true";
_local1.xdistcol = (((col[0] - col[1]) - _local1.game.charx) - _local1.char.width) - 1;
}
if (((_local1.game.charx - _local1.char.width) >= (col[0] + col[1])) and ((charrealx - _local1.char.width) <= (col[0] + col[1]))) {
_local1.collisionx = "true";
_local1.xdistcol = (((col[0] + col[1]) - _local1.game.charx) + _local1.char.width) + 1;
}
}
if (((_local1.game.chary - _local1.char.height) <= (col[2] + col[3])) and ((_local1.game.chary + _local1.char.height) >= (col[2] - col[3]))) {
if (((_local1.game.charx + _local1.char.width) <= (col[0] - col[1])) and ((charrealx + _local1.char.width) >= (col[0] - col[1]))) {
_local1.collisionx = "true";
_local1.xdistcol = (((col[0] - col[1]) - _local1.game.charx) - _local1.char.width) - 1;
}
if (((_local1.game.charx - _local1.char.width) >= (col[0] + col[1])) and ((charrealx - _local1.char.width) <= (col[0] + col[1]))) {
_local1.collisionx = "true";
_local1.xdistcol = (((col[0] + col[1]) - _local1.game.charx) + _local1.char.width) + 1;
}
}
}
i++;
}
if ((_local1.onplatform == "false") and (_local1.char.jumping == "false")) {
_local1.char.jumping = "true";
}
if ((_local1.game.charx > _local1.game.nexttile) or (_local1.game.charx < _local1.game.prevtile)) {
if (_local1.game.charx > _local1.game.nexttile) {
_local1.game.nexttile = _local1.game.nexttile + 600;
_local1.game.prevtile = _local1.game.prevtile + 600;
_local1.game.tile = _local1.game.tile + 1;
_local1.level2._x = _local1.level2._x + 600;
_local1.level2.gotoAndStop(_local1.game.tile - 1);
_local1.level3._x = _local1.level3._x + 600;
_local1.level3.gotoAndStop(_local1.game.tile);
_local1.level4._x = _local1.level4._x + 600;
_local1.level4.gotoAndStop(_local1.game.tile + 1);
}
if (_local1.game.charx < _local1.game.prevtile) {
_local1.game.nexttile = _local1.game.nexttile - 600;
_local1.game.prevtile = _local1.game.prevtile - 600;
_local1.game.tile = _local1.game.tile - 1;
_local1.level2._x = _local1.level2._x - 600;
_local1.level2.gotoAndStop(_local1.game.tile - 1);
_local1.level3._x = _local1.level3._x - 600;
_local1.level3.gotoAndStop(_local1.game.tile);
_local1.level4._x = _local1.level4._x - 600;
_local1.level4.gotoAndStop(_local1.game.tile + 1);
}
}
_local1.Yval = _local1.game.chary;
if ((_local1.char.jumping == "true") and (_local1.char.climbing == "false")) {
if (_local1.collisiony == "true") {
movey = _local1.ydistcol;
_local1.moveydisp = movey;
_local1.char.momentumy = 0;
} else {
movey = _local1.char.momentumy;
}
_local1.game.chary = _local1.game.chary + movey;
if (movey <= 0) {
if (_local1.mc_char._y < 150) {
_local1.level2._y = _local1.level2._y - movey;
_local1.level3._y = _local1.level3._y - movey;
_local1.level4._y = _local1.level4._y - movey;
_local1.globaly = _local1.globaly - movey;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._y = _local1["enemymc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._y = _local1["itemmc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._y = _local1["fxmc" + i]._y - movey;
}
i++;
}
} else {
_local1.mc_char._y = _local1.mc_char._y + movey;
}
}
if (movey > 0) {
if (_local1.watercollide == true) {
_local1.char.momentumy = 5;
}
if (_local1.mc_char._y > 200) {
_local1.level2._y = _local1.level2._y - movey;
_local1.level3._y = _local1.level3._y - movey;
_local1.level4._y = _local1.level4._y - movey;
_local1.globaly = _local1.globaly - movey;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._y = _local1["enemymc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._y = _local1["itemmc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._y = _local1["fxmc" + i]._y - movey;
}
i++;
}
} else {
_local1.mc_char._y = _local1.mc_char._y + movey;
}
if (_local1.onplatform == "true") {
_local1.char.jumping = "false";
}
}
if (_local1.char.momentumy == 0) {
if (_local1.onplatform == "true") {
_local1.char.jumping = "false";
}
}
_local1.char.momentumy = _local1.char.momentumy + 5;
if (_local1.char.jumping == "false") {
_local1.char.momentumy = 0;
}
}
if (_local1.char.climbing == "true") {
if (_local1.collisiony == "true") {
movey = _local1.ydistcol;
_local1.moveydisp = movey;
_local1.char.momentumy = 0;
} else {
movey = _local1.char.momentumy;
}
_local1.game.chary = _local1.game.chary + movey;
if (movey <= 0) {
if (_local1.mc_char._y < 150) {
_local1.level2._y = _local1.level2._y - movey;
_local1.level3._y = _local1.level3._y - movey;
_local1.level4._y = _local1.level4._y - movey;
_local1.globaly = _local1.globaly - movey;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._y = _local1["enemymc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._y = _local1["itemmc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._y = _local1["fxmc" + i]._y - movey;
}
i++;
}
} else {
_local1.mc_char._y = _local1.mc_char._y + movey;
}
}
if (movey > 0) {
if (_local1.mc_char._y > 200) {
_local1.level2._y = _local1.level2._y - movey;
_local1.level3._y = _local1.level3._y - movey;
_local1.level4._y = _local1.level4._y - movey;
_local1.globaly = _local1.globaly - movey;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._y = _local1["enemymc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._y = _local1["itemmc" + i]._y - movey;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._y = _local1["fxmc" + i]._y - movey;
}
i++;
}
} else {
_local1.mc_char._y = _local1.mc_char._y + movey;
}
if (_local1.onplatform == "true") {
_local1.char.jumping = "false";
}
}
}
if ((((_local1.char.momentum > 0) or (_local1.char.momentum < 0)) or (_local1.xdistcol > 0)) or (_local1.xdistcol < 0)) {
if (_local1.collisionx == "true") {
movecharx = _local1.xdistcol;
_local1.char.momentum = 0;
} else {
movecharx = _local1.char.momentum;
}
_local1.game.charx = _local1.game.charx + movecharx;
if (movecharx > 0) {
if (_local1.collisionx == "false") {
_local1.char.momentum = _local1.char.momentum - 2;
if ((_local1.char.ducking == "true") and (_local1.char.momentum > 2)) {
_local1.char.momentum = _local1.char.momentum - 3;
}
if (_local1.watercollide == true) {
_local1.char.momentum = _local1.char.momentum - 1;
}
}
if (_local1.char.momentum < 0) {
_local1.char.momentum = 0;
}
_local1.char.dir = "right";
if ((_local1.mc_char._x + movecharx) >= 300) {
if (_local1.mc_char._x == 300) {
_local1.level2._x = _local1.level2._x - movecharx;
_local1.level3._x = _local1.level3._x - movecharx;
_local1.level4._x = _local1.level4._x - movecharx;
_local1.globalx = _local1.globalx - movecharx;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x - movecharx;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._x = _local1["itemmc" + i]._x - movecharx;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._x = _local1["fxmc" + i]._x - movecharx;
}
i++;
}
} else {
mcdist2 = 300 - _local1.mc_char._x;
mcdist = movecharx - mcdist2;
_local1.level2._x = _local1.level2._x - mcdist;
_local1.level3._x = _local1.level3._x - mcdist;
_local1.level4._x = _local1.level4._x - mcdist;
_local1.globalx = _local1.globalx - mcdist;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x - mcdist;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._x = _local1["itemmc" + i]._x - mcdist;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._x = _local1["fxmc" + i]._x - mcdist;
}
i++;
}
_local1.mc_char._x = 300;
}
} else {
_local1.mc_char._x = _local1.mc_char._x + movecharx;
}
}
if (movecharx < 0) {
if (_local1.collisionx == "false") {
_local1.char.momentum = _local1.char.momentum + 2;
if ((_local1.char.ducking == "true") and (_local1.char.momentum < -2)) {
_local1.char.momentum = _local1.char.momentum + 3;
}
if (_local1.watercollide == true) {
_local1.char.momentum = _local1.char.momentum + 1;
}
}
if (_local1.char.momentum > 0) {
_local1.char.momentum = 0;
}
_local1.char.dir = "left";
if (((_local1.mc_char._x + movecharx) <= 200) and ((_local1.game.charx + movecharx) >= 200)) {
if (_local1.mc_char._x == 200) {
_local1.level2._x = _local1.level2._x - movecharx;
_local1.level3._x = _local1.level3._x - movecharx;
_local1.level4._x = _local1.level4._x - movecharx;
_local1.globalx = _local1.globalx - movecharx;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x - movecharx;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._x = _local1["itemmc" + i]._x - movecharx;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._x = _local1["fxmc" + i]._x - movecharx;
}
i++;
}
} else {
mcdist2 = 200 - _local1.mc_char._x;
mcdist = movecharx - mcdist2;
_local1.level2._x = _local1.level2._x - mcdist;
_local1.level3._x = _local1.level3._x - mcdist;
_local1.level4._x = _local1.level4._x - mcdist;
_local1.globalx = _local1.globalx - mcdist;
var i = 0;
while (i < _local1.myEnemies.length) {
if (_local1.myEnemies[i][17] == "true") {
_local1["enemymc" + i]._x = _local1["enemymc" + i]._x - mcdist;
}
i++;
}
var i = 0;
while (i < _local1.myItems.length) {
if (_local1.myItems[i][5] == "true") {
_local1["itemmc" + i]._x = _local1["itemmc" + i]._x - mcdist;
}
i++;
}
var i = 0;
while (i < _local1.myFX.length) {
if (_local1.myFX[i][5] == "true") {
_local1["fxmc" + i]._x = _local1["fxmc" + i]._x - mcdist;
}
i++;
}
_local1.mc_char._x = 200;
}
} else {
_local1.mc_char._x = _local1.mc_char._x + movecharx;
}
}
}
if (_local1.char.duckingtimer > 0) {
_local1.char.duckingtimer = _local1.char.duckingtimer - 1;
} else {
_local1.char.ducking = "false";
_local1.char.duckingtimer = 0;
}
if (_local1.char.spewingtimer > 0) {
_local1.char.spewingtimer = _local1.char.spewingtimer - 1;
_local1.spewbuffer = _local1.spewbuffer - 1;
} else {
_local1.char.spewing = "false";
_local1.char.spewingtimer = 0;
}
}
var keyPressed = false;
if (_local1.hitenemy == "false") {
if (Key.isDown(_local1.gamekeys.leftB)) {
if (((_local1.char.momentum > -20) and (_local1.char.ducking == "false")) and (_local1.char.spewing == "false")) {
if ((_local1.char.momentum < 1) and (_local1.char.momentum > -5)) {
_local1.char.momentum = -5;
}
_local1.char.momentum = _local1.char.momentum - 3;
if ((_local1.watercollide == true) and (_local1.char.momentum < -15)) {
_local1.char.momentum = -15;
}
}
}
if (Key.isDown(_local1.gamekeys.rightB)) {
if (((_local1.char.momentum < 20) and (_local1.char.ducking == "false")) and (_local1.char.spewing == "false")) {
if ((_local1.char.momentum > -1) and (_local1.char.momentum < 5)) {
_local1.char.momentum = 5;
}
_local1.char.momentum = _local1.char.momentum + 3;
if ((_local1.watercollide == true) and (_local1.char.momentum > 15)) {
_local1.char.momentum = 15;
}
}
}
if (Key.isDown(_local1.gamekeys.jumpB)) {
if (((_local1.char.jumping == "false") or (_local1.char.climbing == "true")) and (_local1.char.spewing == "false")) {
_local1.char.momentumy = -30;
_local1.char.jumping = "true";
_local1.char.climbing = "false";
if (_local1.char.ducking == "true") {
_local1.char.momentumy = -60;
_local1.char.ducking = "false";
}
}
}
_local1.checkerclimb = false;
if (Key.isDown(_local1.gamekeys.duckB)) {
if (((_local1.char.jumping == "false") and (_local1.char.spewing == "false")) and ((_local1.char.slashing == "false") or (_local1.slashtimer > (_local1.slashnext + 5)))) {
_local1.char.ducking = "true";
_local1.char.duckingtimer = 3;
_local1.char.climbing = "false";
}
if (_local1.char.climbing == "true") {
_local1.char.momentumy = 10;
_local1.checkerclimb = true;
}
}
if (Key.isDown(45)) {
}
if (Key.isDown(_local1.gamekeys.throwB)) {
if (((_local1.char.spewing == "false") and (_local1.char.throwing == "false")) and ((_local1.char.slashing == "false") or (_local1.slashtimer > (_local1.slashnext + 5)))) {
_local1.char.throwing = "true";
_local1.char.climbing = "false";
_local1.char.throwingtimer = 3;
_local1.armdistance = 250;
_local1.armmomentum = 0;
if (_local1.char.dir == "right") {
_local1.armx = _local1.game.charx;
_local1.army = _local1.game.chary;
_local1.mc_arm._x = _local1.mc_char._x;
_local1.mc_arm._y = _local1.mc_char._y;
} else {
_local1.armx = _local1.game.charx + 50;
_local1.army = _local1.game.chary;
_local1.mc_arm._x = _local1.mc_char._x - 50;
_local1.mc_arm._y = _local1.mc_char._y;
}
if (_local1.char.ducking == "true") {
_local1.mc_arm._y = _local1.mc_arm._y + 40;
_local1.army = _local1.army + 40;
}
_local1.armdir = _local1.char.dir;
}
}
if (_local1.slashtimer > 0) {
_local1.slashtimer = _local1.slashtimer + 1;
if (_local1.slashtimer > _local1.slashend) {
_local1.slashtimer = -1;
_local1.slashnext = -2;
_local1.slashend = 0;
_local1.slashcount = 0;
_local1.char.slashing = "false";
}
}
_local1.devoureable = false;
_local2 = 0;
while (_local2 < _local1.myEnemies.length) {
R = _local1.myEnemies[_local2];
xchecker = false;
ychecker = false;
if ((((((_local1.game.charx + 300) > R[2]) and ((_local1.game.charx - 300) < R[2])) and (R[16] != "flying")) and (R[4] < 1)) and (_local1.MyEnemies[_local2][18] == "false")) {
if (((_local1.game.charx - _local1.char.width) < R[2]) and ((_local1.game.charx + _local1.char.width) > R[2])) {
xchecker = true;
}
if ((((_local1.game.chary - _local1.char.height) - 30) < R[3]) and (((_local1.game.chary + _local1.char.height) + 30) > R[3])) {
ychecker = true;
}
}
if ((ychecker == true) and (xchecker == true)) {
_local1.devoureable = true;
}
_local2++;
}
if (((Key.isDown(_local1.gamekeys.actionB) and (_local1.char.spewing == "false")) and (_local1.char.throwing == "false")) and (_local1.char.slashing == "false")) {
actiontaken = false;
if (_local1.char.jumping == "false") {
_local2 = 0;
while (_local2 < _local1.myEnemies.length) {
R = _local1.myEnemies[_local2];
xchecker = false;
ychecker = false;
if ((((_local1.game.charx + 300) > R[2]) and ((_local1.game.charx - 300) < R[2])) and (R[16] != "flying")) {
if (((_local1.game.charx - _local1.char.width) < R[2]) and ((_local1.game.charx + _local1.char.width) > R[2])) {
xchecker = true;
}
if ((((_local1.game.chary - _local1.char.height) - 30) < R[3]) and (((_local1.game.chary + _local1.char.height) + 30) > R[3])) {
ychecker = true;
}
if (((xchecker == true) and (ychecker == true)) and (actiontaken == false)) {
if ((R[4] < 1) and (_local1.MyEnemies[_local2][18] == "false")) {
if (R[12] == "left") {
_local1["enemymc" + _local2].gotoAndStop(9);
} else {
_local1["enemymc" + _local2].gotoAndStop(10);
}
_local1.gameplaying = "false";
_local1.char.momentum = 0;
_local1.mc_char._alpha = 0;
_local1.MyEnemies[_local2][17] = "false";
_local1.MyEnemies[_local2][18] = "true";
actiontaken = true;
_local1.devoureable = false;
if (_local1.game.life < _local1.game.maxlife) {
_local1.game.life = _local1.game.life + 1;
}
}
}
}
_local2++;
}
if ((_local1.switchcollide > -1) and (actiontaken == false)) {
_local2 = _local1.switchcollide;
R = _local1.myItems[_local1.switchcollide];
_local1.myItems[_local2][8] = "true";
var h = 0;
while (h < _local1.myCollision.length) {
if (_local1.myCollision[h][5] == R[9]) {
_local1.myCollision[h][4] = 3;
}
h++;
}
var h = 0;
while (h < _local1.myFX.length) {
if (_local1.myFX[h][8] == R[9]) {
_local1.myFX[h][7] = 2;
_local1["fxmc" + h].gotoAndStop(2);
}
h++;
}
}
}
if (((_local1.laddercollide == true) and (actiontaken == false)) and (_local1.char.climbing == "false")) {
_local1.char.climbing = "true";
_local1.char.momentumy = 0;
_local1.char.momentum = 0;
actiontaken = true;
}
if (((_local1.laddercollide == true) and (actiontaken == false)) and (_local1.char.climbing == "true")) {
_local1.char.momentumy = -10;
actiontaken = true;
_local1.checkerclimb = true;
}
}
if ((_local1.checkerclimb == false) and (_local1.char.climbing == "true")) {
_local1.char.momentumy = 0;
}
if (keycheckSlash < 1) {
keycheckSlash = 3;
}
keycheckSlash = keycheckSlash + 1;
if (Key.isDown(_local1.gamekeys.slashB)) {
keycheckSlash = 1;
}
if (keycheckSlash == 2) {
if ((((_local1.slashcount < 3) and (_local1.slashtimer > _local1.slashnext)) and (_local1.char.spewing == "false")) and (_local1.char.throwing == "false")) {
_local1.char.climbing = "false";
_local1.char.slashing = "true";
_local1.slashcount = _local1.slashcount + 1;
if (_local1.slashcount == 1) {
_local1.slashtimer = 1;
_local1.nextslash = 5;
_local1.slashnext = 5;
_local1.slashend = 10;
}
if (_local1.slashcount == 2) {
_local1.slashtimer = 1;
_local1.nextslash = 5;
_local1.slashnext = 5;
_local1.slashend = 10;
}
if (_local1.slashcount == 3) {
_local1.slashtimer = 1;
_local1.nextslash = 5;
_local1.slashnext = 5;
_local1.slashend = 15;
}
}
}
if ((_local1.char.spewing == "false") and (_local1.char.spewmeter < 100)) {
_local1.char.spewmeter = _local1.char.spewmeter + 0.5;
}
if (Key.isDown(_local1.gamekeys.spewB)) {
if (((_local1.char.jumping == "false") and (_local1.char.spewmeter > 2)) and (_local1.char.climbing == "false")) {
if ((_local1.char.spewing == "false") and (_local1.char.spewmeter > 30)) {
_local1.char.spewmeter = _local1.char.spewmeter - 30;
_local1.char.spewingtimer = 9;
_local1.spewbuffer = 4;
_local1.char.spewing = "true";
_local1.char.ducking = "false";
} else if (_local1.char.spewing == "true") {
_local1.char.spewing = "true";
_local1.char.ducking = "false";
_local1.char.spewingtimer = _local1.char.spewingtimer + 1;
_local1.char.spewmeter = _local1.char.spewmeter - 1;
}
}
}
}
if (_local1.invincable == "true") {
_local1.invictimer = _local1.invictimer - 1;
if (_local1.invictimer < 1) {
_local1.invincable = "false";
}
}
if (_local1.hitenemy == "true") {
_local1.hittimer = _local1.hittimer - 1;
if (_local1.hittimer < 1) {
_local1.hitenemy = "false";
_local1.char.dir = _local1.hitdir;
_local1.char.momentum = 0;
}
}
if (_local1.hitenemy == "false") {
if (_local1.char.climbing == "false") {
if ((_local1.slashtimer < (_local1.slashnext + 5)) and (_local1.char.slashing == "true")) {
if (((_local1.char.momentum > 1) or (_local1.char.momentum < -1)) and (_local1.char.jumping == "false")) {
if (_local1.slashcount == 1) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(19);
} else {
_local1.mc_char.gotoAndStop(20);
}
}
if (_local1.slashcount == 2) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(21);
} else {
_local1.mc_char.gotoAndStop(22);
}
}
if (_local1.slashcount == 3) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(23);
} else {
_local1.mc_char.gotoAndStop(24);
}
}
} else {
if (_local1.slashcount == 1) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(13);
} else {
_local1.mc_char.gotoAndStop(14);
}
}
if (_local1.slashcount == 2) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(15);
} else {
_local1.mc_char.gotoAndStop(16);
}
}
if (_local1.slashcount == 3) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(17);
} else {
_local1.mc_char.gotoAndStop(18);
}
}
}
} else {
if ((_local1.char.ducking == "false") and (_local1.char.spewing == "false")) {
if ((_local1.char.momentum > 7) or (_local1.char.momentum < -7)) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(3);
} else {
_local1.mc_char.gotoAndStop(4);
}
} else if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(1);
} else {
_local1.mc_char.gotoAndStop(2);
}
}
if (_local1.char.spewing == "true") {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(9);
} else {
_local1.mc_char.gotoAndStop(10);
}
}
if ((_local1.char.ducking == "true") and (_local1.char.spewing == "false")) {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(7);
} else {
_local1.mc_char.gotoAndStop(8);
}
}
if (_local1.char.jumping == "true") {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(5);
} else {
_local1.mc_char.gotoAndStop(6);
}
}
}
} else {
if (_local1.char.dir == "right") {
_local1.mc_char.gotoAndStop(25);
} else {
_local1.mc_char.gotoAndStop(26);
}
if ((_local1.char.momentumy != 0) or (_local1.char.momentum != 0)) {
_local1.mc_char.climby.play();
} else {
_local1.mc_char.climby.stop();
}
}
} else if (_local1.hitdir == "right") {
_local1.mc_char.gotoAndStop(11);
} else {
_local1.mc_char.gotoAndStop(12);
}
}
fscommand ("allowscale", false);
fscommand ("allowscale", false);
stop();
_root.switchcollide = -1;
_root.gamekeys = {leftB:37, rightB:39, duckB:40, actionB:38, throwB:65, jumpB:32, slashB:83, spewB:81};
_root.game = {lives:3, prevtile:0, nexttile:600, tile:2, life:12, maxlife:12, spew:100, charx:150, chary:200};
_root.char = {height:87.5, width:42.5, spewmeter:100, dir:"right", momentum:0, momentumy:0, spewing:"false", jumping:"false", ducking:"false", duckingtimer:0, spewingtimer:0, throwing:"false", slashing:"false", climbing:"fasle"};
_root.gameplaying = "true";
_root.checkpointmax = 600;
_root.checkpointmin = 0;
_root.slashnext = 0;
_root.globalx = 0;
_root.globaly = 0;
_root.slashend = 0;
_root.slashtimer = -1;
_root.slashnext = -2;
_root.slashcount = 0;
_root.attachMovie("mc_char", "mc_char", 4999);
_root.mc_char._x = _root.game.charx;
_root.mc_char._y = _root.game.chary;
_root.attachMovie("mc_arm", "mc_arm", 15999);
_root.mc_arm._x = -500;
_root.mc_arm._y = -500;
_root.armx = -500;
_root.army = -500;
_root.MyFX = [[1, 205.5, 79, 1, 1, "false", "false", 0, "none"], [3, 1280, -50, 1, 1, "false", "false", 1, "gate1"], [3, 5610, -1250, 1, 1, "false", "false", 1, "gate2"], [3, 6880, -1250, 1, 1, "false", "false", 1, "gate3"], [3, 9080, 1150, 1, 1, "false", "false", 1, "gate4"], [2, 1880, 350, 1, 1, "false", "false", 0, "none"], [2, 1980, 350, 1, 1, "false", "false", 0, "none"], [2, 2080, 350, 1, 1, "false", "false", 0, "none"], [2, 2180, 350, 1, 1, "false", "false", 0, "none"], [2, 3457, 1400, 1, 1, "false", "false", 0, "none"], [2, 3557, 1400, 1, 1, "false", "false", 0, "none"], [2, 3657, 1400, 1, 1, "false", "false", 0, "none"], [2, 3757, 1400, 1, 1, "false", "false", 0, "none"], [2, 3857, 1400, 1, 1, "false", "false", 0, "none"], [2, 3957, 1400, 1, 1, "false", "false", 0, "none"], [2, 4057, 1400, 1, 1, "false", "false", 0, "none"], [2, 4157, 1400, 1, 1, "false", "false", 0, "none"], [2, 4257, 1400, 1, 1, "false", "false", 0, "none"], [2, 4357, 1400, 1, 1, "false", "false", 0, "none"], [2, 4457, 1400, 1, 1, "false", "false", 0, "none"], [2, 4557, 1400, 1, 1, "false", "false", 0, "none"], [2, 4657, 1400, 1, 1, "false", "false", 0, "none"], [2, 4757, 1400, 1, 1, "false", "false", 0, "none"], [2, 4857, 1400, 1, 1, "false", "false", 0, "none"], [2, 4957, 1400, 1, 1, "false", "false", 0, "none"], [2, 5057, 1400, 1, 1, "false", "false", 0, "none"], [2, 5157, 1400, 1, 1, "false", "false", 0, "none"], [2, 5257, 1400, 1, 1, "false", "false", 0, "none"], [2, 5357, 1400, 1, 1, "false", "false", 0, "none"], [2, 5457, 1400, 1, 1, "false", "false", 0, "none"], [2, 5557, 1400, 1, 1, "false", "false", 0, "none"], [2, 5657, 1400, 1, 1, "false", "false", 0, "none"], [2, 5757, 1400, 1, 1, "false", "false", 0, "none"], [2, 5857, 1400, 1, 1, "false", "false", 0, "none"], [2, 5957, 1400, 1, 1, "false", "false", 0, "none"], [2, 6057, 1400, 1, 1, "false", "false", 0, "none"], [2, 6157, 1400, 1, 1, "false", "false", 0, "none"], [2, 6257, 1400, 1, 1, "false", "false", 0, "none"], [2, 6357, 1400, 1, 1, "false", "false", 0, "none"], [2, 6457, 1400, 1, 1, "false", "false", 0, "none"], [2, 6557, 1400, 1, 1, "false", "false", 0, "none"], [2, 6657, 1400, 1, 1, "false", "false", 0, "none"], [2, 6757, 1400, 1, 1, "false", "false", 0, "none"], [2, 6857, 1400, 1, 1, "false", "false", 0, "none"], [2, 6957, 1400, 1, 1, "false", "false", 0, "none"], [2, 7057, 1400, 1, 1, "false", "false", 0, "none"], [2, 7157, 1400, 1, 1, "false", "false", 0, "none"], [2, 7257, 1400, 1, 1, "false", "false", 0, "none"], [2, 7357, 1400, 1, 1, "false", "false", 0, "none"], [2, 7457, 1400, 1, 1, "false", "false", 0, "none"], [2, 7557, 1400, 1, 1, "false", "false", 0, "none"], [2, 7657, 1400, 1, 1, "false", "false", 0, "none"], [2, 7757, 1400, 1, 1, "false", "false", 0, "none"], [2, 7857, 1400, 1, 1, "false", "false", 0, "none"], [2, 7957, 1400, 1, 1, "false", "false", 0, "none"], [2, 8057, 1400, 1, 1, "false", "false", 0, "none"], [2, 8157, 1400, 1, 1, "false", "false", 0, "none"], [2, 8257, 1400, 1, 1, "false", "false", 0, "none"], [2, 8357, 1400, 1, 1, "false", "false", 0, "none"], [2, 8457, 1400, 1, 1, "false", "false", 0, "none"], [2, 8557, 1400, 1, 1, "false", "false", 0, "none"], [2, 8657, 1400, 1, 1, "false", "false", 0, "none"], [2, 8757, 1400, 1, 1, "false", "false", 0, "none"], [2, 8857, 1400, 1, 1, "false", "false", 0, "none"], [2, 8957, 1400, 1, 1, "false", "false", 0, "none"], [2, 9057, 1400, 1, 1, "false", "false", 0, "none"], [2, 9157, 1400, 1, 1, "false", "false", 0, "none"], [2, 9257, 1400, 1, 1, "false", "false", 0, "none"], [2, 9357, 1400, 1, 1, "false", "false", 0, "none"], [2, 9457, 1400, 1, 1, "false", "false", 0, "none"], [2, 9557, 1400, 1, 1, "false", "false", 0, "none"], [2, 9657, 1400, 1, 1, "false", "false", 0, "none"], [2, 9757, 1400, 1, 1, "false", "false", 0, "none"], [2, 9857, 1400, 1, 1, "false", "false", 0, "none"], [2, 9957, 1400, 1, 1, "false", "false", 0, "none"], [2, 10057, 1400, 1, 1, "false", "false", 0, "none"], [5, 3437, 1450, 1, 1, "false", "false", 0, "none"], [1, 1468, 74, 1, 1, "false", "false", 0]];
var b = 0;
while (b < _root.myFX.length) {
R = _root.myFX[b];
if ((R[1] > (_root.game.charx - 1800)) and (R[1] < (_root.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_root.myFX[b][5] = "true";
_root.attachMovie("fx" + R[0], "fxmc" + b, 7000 + b);
_root["fxmc" + b]._x = R[1] + _root.globalx;
_root["fxmc" + b]._y = R[2] + _root.globaly;
if (R[7] > 0) {
_root["fxmc" + b].gotoAndStop(R[7]);
}
}
} else if (R[5] == "true") {
_root["fxmc" + b].removeMovieClip();
_root.myFX[b][5] = "false";
}
b++;
}
_root.myItems = [[1, 3000, -100, 25, 25, "false", "false", "health", 1], [3, 1520, 310, 1, 1, "false", "false", "trap", 1], [5, 1020, 230, 1, 1, "false", "false", "switch", "false", "gate1"], [5, 3840, 1450, 1, 1, "false", "false", "switch", "false", "gate2"], [5, 6540, 230, 1, 1, "false", "false", "switch", "false", "gate3"], [5, 7280, 230, 1, 1, "false", "false", "switch", "false", "gate4"], [4, 2000, 360, 25, 50, "false", "false", "tiltbarrel", 1], [4, 2200, 360, 25, 50, "false", "false", "tiltbarrel", 1], [6, 2900, 250, 1, 1, "false", "false", "ladder", 1], [6, 2900, 150, 1, 1, "false", "false", "ladder", 1], [6, 5100, 1450, 1, 1, "false", "false", "ladder", 1], [6, 5100, 1350, 1, 1, "false", "false", "ladder", 1], [6, 5100, 1250, 1, 1, "false", "false", "ladder", 1], [6, 5100, 1150, 1, 1, "false", "false", "ladder", 1], [6, 5100, 1050, 1, 1, "false", "false", "ladder", 1], [6, 5100, 950, 1, 1, "false", "false", "ladder", 1], [6, 5100, 850, 1, 1, "false", "false", "ladder", 1], [6, 5100, 750, 1, 1, "false", "false", "ladder", 1], [6, 5100, 650, 1, 1, "false", "false", "ladder", 1], [6, 5100, 550, 1, 1, "false", "false", "ladder", 1], [6, 5100, 450, 1, 1, "false", "false", "ladder", 1], [6, 5100, 350, 1, 1, "false", "false", "ladder", 1], [6, 5100, 250, 1, 1, "false", "false", "ladder", 1], [6, 5100, 150, 1, 1, "false", "false", "ladder", 1], [6, 5100, 50, 1, 1, "false", "false", "ladder", 1], [6, 5100, -50, 1, 1, "false", "false", "ladder", 1], [6, 5100, -150, 1, 1, "false", "false", "ladder", 1], [6, 5100, -250, 1, 1, "false", "false", "ladder", 1], [6, 5100, -350, 1, 1, "false", "false", "ladder", 1], [6, 5100, -450, 1, 1, "false", "false", "ladder", 1], [6, 5100, -550, 1, 1, "false", "false", "ladder", 1], [6, 5100, -650, 1, 1, "false", "false", "ladder", 1], [6, 5100, -750, 1, 1, "false", "false", "ladder", 1], [6, 5100, -850, 1, 1, "false", "false", "ladder", 1], [6, 5100, -950, 1, 1, "false", "false", "ladder", 1], [6, 6300, 1450, 1, 1, "false", "false", "ladder", 1], [6, 6300, 1350, 1, 1, "false", "false", "ladder", 1], [6, 6300, 1250, 1, 1, "false", "false", "ladder", 1], [6, 6300, 1150, 1, 1, "false", "false", "ladder", 1], [6, 6300, 1050, 1, 1, "false", "false", "ladder", 1], [6, 6300, 950, 1, 1, "false", "false", "ladder", 1], [6, 6300, 850, 1, 1, "false", "false", "ladder", 1], [6, 6300, 750, 1, 1, "false", "false", "ladder", 1], [6, 6300, 650, 1, 1, "false", "false", "ladder", 1], [6, 6300, 550, 1, 1, "false", "false", "ladder", 1], [6, 6300, 450, 1, 1, "false", "false", "ladder", 1], [6, 6300, 350, 1, 1, "false", "false", "ladder", 1], [6, 6300, 250, 1, 1, "false", "false", "ladder", 1], [6, 6300, 150, 1, 1, "false", "false", "ladder", 1], [6, 6300, 50, 1, 1, "false", "false", "ladder", 1], [6, 6300, -50, 1, 1, "false", "false", "ladder", 1], [6, 6300, -150, 1, 1, "false", "false", "ladder", 1], [6, 6300, -250, 1, 1, "false", "false", "ladder", 1], [6, 6300, -350, 1, 1, "false", "false", "ladder", 1], [6, 6300, -450, 1, 1, "false", "false", "ladder", 1], [6, 6300, -550, 1, 1, "false", "false", "ladder", 1], [6, 6300, -650, 1, 1, "false", "false", "ladder", 1], [6, 6300, -750, 1, 1, "false", "false", "ladder", 1], [6, 6300, -850, 1, 1, "false", "false", "ladder", 1], [6, 6300, -950, 1, 1, "false", "false", "ladder", 1], [6, 8100, 250, 1, 1, "false", "false", "ladder", 1], [6, 8100, 150, 1, 1, "false", "false", "ladder", 1], [6, 8100, 50, 1, 1, "false", "false", "ladder", 1], [6, 8100, -50, 1, 1, "false", "false", "ladder", 1], [6, 8100, -150, 1, 1, "false", "false", "ladder", 1], [6, 8100, -250, 1, 1, "false", "false", "ladder", 1], [6, 8100, -350, 1, 1, "false", "false", "ladder", 1], [6, 8100, -450, 1, 1, "false", "false", "ladder", 1], [6, 8100, -550, 1, 1, "false", "false", "ladder", 1], [6, 8100, -650, 1, 1, "false", "false", "ladder", 1], [6, 8100, -750, 1, 1, "false", "false", "ladder", 1], [6, 8100, -850, 1, 1, "false", "false", "ladder", 1], [6, 8100, -950, 1, 1, "false", "false", "ladder", 1], [6, 9300, 1450, 1, 1, "false", "false", "ladder", 1], [6, 9300, 1350, 1, 1, "false", "false", "ladder", 1], [6, 9300, 1250, 1, 1, "false", "false", "ladder", 1], [6, 9300, 1150, 1, 1, "false", "false", "ladder", 1], [6, 9300, 1050, 1, 1, "false", "false", "ladder", 1], [6, 9300, 950, 1, 1, "false", "false", "ladder", 1], [6, 9300, 850, 1, 1, "false", "false", "ladder", 1], [6, 9300, 750, 1, 1, "false", "false", "ladder", 1], [6, 9300, 650, 1, 1, "false", "false", "ladder", 1], [6, 9300, 550, 1, 1, "false", "false", "ladder", 1], [6, 9300, 450, 1, 1, "false", "false", "ladder", 1], [6, 9300, 350, 1, 1, "false", "false", "ladder", 1], [6, 9300, 250, 1, 1, "false", "false", "ladder", 1], [7, 1930, 450, 25, 50, "false", "false", "water", 1], [7, 2030, 450, 25, 50, "false", "false", "water", 1], [7, 2130, 450, 25, 50, "false", "false", "water", 1], [7, 2230, 450, 25, 50, "false", "false", "water", 1], [7, 3000, 1700, 600, 150, "false", "false", "water", 1], [7, 3600, 1500, 300, 50, "false", "false", "water", 1], [7, 4000, 1500, 600, 50, "false", "false", "water", 1], [7, 5000, 1500, 600, 50, "false", "false", "water", 1], [7, 6000, 1500, 600, 50, "false", "false", "water", 1], [7, 7000, 1500, 600, 50, "false", "false", "water", 1], [7, 8000, 1500, 600, 50, "false", "false", "water", 1], [7, 9000, 1500, 600, 50, "false", "false", "water", 1], [7, 10000, 1500, 600, 50, "false", "false", "water", 1], [2, 1800, 180, 25, 25, "false", "false", "checkpoint", "number1"], [2, 3600, 180, 25, 25, "false", "false", "checkpoint", "number2"]];
var b = 0;
while (b < _root.myItems.length) {
R = _root.myItems[b];
if ((R[1] > (_root.game.charx - 1800)) and (R[1] < (_root.game.charx + 1800))) {
if ((R[5] == "false") and (R[6] == "false")) {
_root.myItems[b][5] = "true";
_root.attachMovie("item" + R[0], "itemmc" + b, 1000 + b);
_root["itemmc" + b]._x = R[1] + _root.globalx;
_root["itemmc" + b]._y = R[2] + _root.globaly;
}
} else if (R[5] == "true") {
_root["itemmc" + b].removeMovieClip();
_root.myItems[b][5] = "false";
}
b++;
}
_root.hitenemy = "false";
_root.invincable = "false";
_root.myEnemies = [[4, "walk", 800, 340, 1, 550, 1050, "right", 40, 50, 7, 0, "right", 7, 10, 0, "not", "false", "false", false, false, false, 1], [4, "walk", 5400, -860, 1, 5250, 5500, "right", 40, 50, 7, 0, "right", 7, 10, 0, "not", "false", "false", false, false, false, 1], [1, "walk", 3000, 150, 3, 2800, 3200, "left", 40, 60, 15, 0, "left", 9, 10, 0, "flying", "false", "false", false, false, false, 1], [2, "walk", 4500, 1450, 5, 4200, 4800, "left", 40, 60, 15, 0, "left", 9, 10, 0, "flying", "false", "false", false, false, false, 1], [2, "walk", 6500, 1450, 5, 6200, 7800, "left", 40, 60, 15, 0, "left", 9, 10, 0, "flying", "false", "false", false, false, false, 1], [2, "walk", 8100, 1450, 5, 7900, 8800, "left", 40, 60, 15, 0, "left", 9, 10, 0, "flying", "false", "false", false, false, false, 1], [3, "walk", 5900, -990, 7, 5700, 6200, "right", 60, 120, 10, 0, "right", 6, 23, 50, "false", "false", "false", true, false, false, 4], [3, "walk", 6500, -990, 7, 6400, 6800, "right", 60, 120, 10, 0, "right", 6, 23, 50, "false", "false", "false", true, false, false, 4], [3, "walk", 4000, 220, 7, 3800, 4200, "right", 60, 120, 10, 0, "right", 6, 23, 50, "false", "false", "false", true, false, false, 4]];
var b = 0;
while (b < _root.myEnemies.length) {
R = _root.myEnemies[b];
if ((R[2] > (_root.game.charx - 1800)) and (R[2] < (_root.game.charx + 1800))) {
if ((R[17] == "false") and (R[18] == "false")) {
_root.myEnemies[b][17] = "true";
_root.attachMovie("enemy" + R[0], "enemymc" + b, 5000 + b);
_root["enemymc" + b]._x = R[2] + _root.globalx;
_root["enemymc" + b]._y = R[3] + _root.globaly;
if (R[12] == "left") {
if (R[7] == "left") {
_root["enemymc" + b].gotoAndStop(1);
}
if (R[7] == "stunned") {
_root["enemymc" + b].gotoAndStop(3);
}
if (R[7] == "attack") {
_root["enemymc" + b].gotoAndStop(5);
}
if (R[4] < 1) {
_root["enemymc" + b].gotoAndStop(7);
}
} else {
if (R[7] == "right") {
_root["enemymc" + b].gotoAndStop(2);
}
if (R[7] == "stunned") {
_root["enemymc" + b].gotoAndStop(4);
}
if (R[7] == "attack") {
_root["enemymc" + b].gotoAndStop(6);
}
if (R[4] < 1) {
_root["enemymc" + b].gotoAndStop(8);
}
}
}
} else if (R[17] == "true") {
_root["enemymc" + b].removeMovieClip();
_root.myEnemies[b][17] = "false";
}
b++;
}
_root.myCollision = [[0, 30, 250, 900, 1, "none"], [1300, 10, -150, 270, 1, "none"], [1300, 10, 230, 270, 1, "gate1"], [5630, 30, -1380, 270, 1, "none"], [5630, 30, -970, 270, 1, "gate2"], [6900, 30, -1380, 270, 1, "none"], [6900, 30, -970, 270, 1, "gate3"], [9100, 30, 1050, 270, 1, "none"], [9100, 30, 1420, 270, 1, "gate4"], [430, 40, 320, 40, 1, "none"], [1140, 30, 310, 55, 1, "none"], [2575, 75, 310, 55, 1, "none"], [2000, 30, 375, 55, 1, "none"], [2200, 30, 375, 55, 1, "none"], [3350, 40, 320, 40, 1, "none"], [3480, 30, 255, 110, 1, "none"], [930, 930, 400, 60, 1, "none"], [2100, 200, 500, 60, 1, "none"], [3650, 1350, 710, 370, 1, "none"], [5700, 500, 710, 370, 1, "none"], [7800, 1400, 710, 370, 1, "none"], [2500, 2500, -490, 370, 1, "none"], [5700, 500, -490, 370, 1, "none"], [5700, 230, 1000, 1500, 1, "none"], [7200, 800, -490, 370, 1, "none"], [6900, 230, 300, 400, 1, "none"], [4400, 300, -2000, 1200, 1, "none"], [10000, 20000, -1430, 100, 1, "none"], [3300, 200, 1050, 500, 1, "none"], [2150, 200, 1050, 500, 1, "none"], [2300, 550, 2000, 460, 1, "none"], [2000, 2000, 2250, 460, 1, "none"], [7700, 4000, 2000, 460, 1, "none"], [10000, 300, 1080, 500, 1, "none"], [11400, 2000, 710, 370, 1, "none"], [10600, 2400, -490, 370, 1, "none"], [8720, 230, -900, 100, 1, "none"], [9800, 130, -1100, 400, 1, "none"], [12800, 130, 1000, 1500, 1, "none"]];
_root.leftcollision = "false";
_root.rightcollision = "false";
_root.downcollision = "true";
_root.upcollision = "false";
_root.attachMovie("infobar", "infobar", 99999);
_root.attachMovie("level", "level2", 101);
_root.level2._x = -600;
_root.attachMovie("level", "level3", 102);
_root.level3._x = 0;
_root.attachMovie("level", "level4", 103);
_root.level4._x = 600;
_root.level2.gotoAndStop(_root.game.tile - 1);
_root.level3.gotoAndStop(_root.game.tile);
_root.level4.gotoAndStop(_root.game.tile + 1);
_root.currentcheck = "start";
_root.currentcheckmccharx = _root.mc_char._y;
_root.currentcheckmcchary = _root.mc_char._x;
_root.currentcheckx = _root.game.charx;
_root.currentchecky = _root.game.chary;
_root.currentchecklevelx = _root.level3._x;
_root.currentchecklevely = _root.level3._y;
_root.currentcheckglobaly = _root.globaly;
_root.currentcheckglobalx = _root.globalx;
_root.currentcheckcheckpointmax = _root.checkpointmax;
_root.currentcheckcheckpointmin = _root.checkpointmin;
_root.currentcheckpointprevtile = _root.game.prevtile;
_root.currentcheckpointnexttile = _root.game.nexttile;
_root.currentcheckpointtile = _root.game.tile;
Instance of Symbol 98 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.gameplaying == "true") {
_root.GamePlay();
}
}
Instance of Symbol 756 MovieClip in Frame 22
onClipEvent (enterFrame) {
this.removeMovieClip();
}
Symbol 53 Button
on (release) {
_root.play();
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 10) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 10) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 8) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 8) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 7) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 7) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 5) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 5) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 3) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 3) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 2) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 2) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 9) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 9) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 6) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 6) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 4) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 4) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 11) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 11) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 319 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 12) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 12) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 10) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 10) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 8) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 8) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 7) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 7) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 5) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 5) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 3) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 3) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 2) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 2) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 9) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 9) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 6) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 6) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 4) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 4) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 319 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 11) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 11) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 319 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
if (_root.game.lives > 12) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.game.lives > 12) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Symbol 322 MovieClip [item2] Frame 1
stop();
Symbol 345 MovieClip [level] Frame 1
stop();
Symbol 345 MovieClip [level] Frame 2
stop();
Symbol 345 MovieClip [level] Frame 4
Instance of Symbol 182 MovieClip in Symbol 345 MovieClip [level] Frame 4
/* no clip actions */
Instance of Symbol 182 MovieClip in Symbol 345 MovieClip [level] Frame 6
/* no clip actions */
Symbol 358 MovieClip [item5] Frame 1
stop();
Symbol 360 MovieClip [item6] Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 362 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.laddercollide == true) {
this.gotoAndStop(3);
}
if (_root.switchcollide > -1) {
this.gotoAndStop(2);
}
if (_root.devoureable == true) {
this.gotoAndStop(1);
}
}
Symbol 387 MovieClip Frame 4
stop();
Symbol 390 MovieClip Frame 4
stop();
Symbol 397 MovieClip Frame 4
stop();
Symbol 409 MovieClip Frame 8
gotoAndPlay (3);
Symbol 481 MovieClip [mc_char] Frame 1
stop();
Instance of Symbol 348 MovieClip in Symbol 481 MovieClip [mc_char] Frame 1
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 362 MovieClip in Symbol 481 MovieClip [mc_char] Frame 1
onClipEvent (load) {
if (((_root.devoureable == true) or (_root.switchcollide > -1)) or (_root.laddercollide == true)) {
this._alpha = 70;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (((_root.devoureable == true) or (_root.switchcollide > -1)) or (_root.laddercollide == true)) {
this._alpha = 70;
} else {
this._alpha = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 481 MovieClip [mc_char] Frame 2
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 378 MovieClip in Symbol 481 MovieClip [mc_char] Frame 3
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 50 MovieClip in Symbol 481 MovieClip [mc_char] Frame 4
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 381 MovieClip in Symbol 481 MovieClip [mc_char] Frame 5
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 384 MovieClip in Symbol 481 MovieClip [mc_char] Frame 6
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 391 MovieClip in Symbol 481 MovieClip [mc_char] Frame 7
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip in Symbol 481 MovieClip [mc_char] Frame 8
onClipEvent (enterFrame) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (_root.throwing == "true") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 487 Button
on (release) {
_root.game.lives = _root.game.lives + 1;
}
Instance of Symbol 484 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.spewmeter * 1.5;
}
Instance of Symbol 351 MovieClip in Symbol 494 MovieClip [infobar] Frame 1
onClipEvent (enterFrame) {
if (_root.SHOWHP < 4) {
if (_root.SHOWHP == 3) {
this._alpha = 75;
}
if (_root.SHOWHP == 2) {
this._alpha = 50;
}
if (_root.SHOWHP == 1) {
this._alpha = 25;
}
if (_root.SHOWHP <= 0) {
this._alpha = 0;
}
} else {
this._alpha = 100;
}
}
Instance of Symbol 351 MovieClip in Symbol 494 MovieClip [infobar] Frame 1
onClipEvent (enterFrame) {
if (_root.SHOWHP < 8) {
if (_root.SHOWHP == 7) {
this._alpha = 75;
}
if (_root.SHOWHP == 6) {
this._alpha = 50;
}
if (_root.SHOWHP == 5) {
this._alpha = 25;
}
if (_root.SHOWHP <= 4) {
this._alpha = 0;
}
} else {
this._alpha = 100;
}
}
Instance of Symbol 351 MovieClip in Symbol 494 MovieClip [infobar] Frame 1
onClipEvent (enterFrame) {
if (_root.SHOWHP < 12) {
if (_root.SHOWHP == 11) {
this._alpha = 75;
}
if (_root.SHOWHP == 10) {
this._alpha = 50;
}
if (_root.SHOWHP == 9) {
this._alpha = 25;
}
if (_root.SHOWHP <= 8) {
this._alpha = 0;
}
} else {
this._alpha = 100;
}
}
Symbol 526 MovieClip Frame 20
_root.gameplaying = "true";
_root.mc_char._alpha = 100;
_parent.removeMovieClip();
Symbol 531 MovieClip Frame 40
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
Symbol 581 MovieClip Frame 20
_root.gameplaying = "true";
_root.mc_char._alpha = 100;
_parent.removeMovieClip();
Symbol 593 MovieClip Frame 30
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
Symbol 609 MovieClip Frame 5
stop();
Symbol 632 MovieClip Frame 27
_root.gameplaying = "true";
_root.mc_char._alpha = 100;
_parent.removeMovieClip();
Symbol 661 MovieClip Frame 43
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
Symbol 672 MovieClip Frame 43
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
Symbol 695 MovieClip Frame 28
_root.gameplaying = "true";
_root.mc_char._alpha = 100;
_parent.removeMovieClip();
Symbol 707 MovieClip Frame 16
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
Symbol 711 MovieClip [oof] Frame 3
this.removeMovieClip();
Symbol 713 MovieClip [item1] Frame 1
stop();
Symbol 729 MovieClip Frame 25
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
_parent.gotoAndStop(1);
Symbol 736 MovieClip Frame 25
_root.mc_char._alpha = 100;
_root.gameplaying = "true";
_root.death();
_parent.gotoAndStop(1);
Symbol 737 MovieClip [item3] Frame 1
stop();
Symbol 738 MovieClip [item4] Frame 19
gotoAndPlay (1);
Symbol 740 MovieClip [fx1] Frame 4
xxx = random(15);
if (xxx == 1) {
} else {
this.gotoAndPlay(1);
}
Symbol 746 MovieClip Frame 1
stop();
Symbol 747 MovieClip [fx3] Frame 1
stop();
Symbol 753 MovieClip [fx4] Frame 1
stop();