Frame 1
function initKeyBinding() {
dKeyCodeArray = [67, 66, 68, 86, 49, 50, 51, 52, 70, 37, 39, 190, 40, 89, 85, 73, 79, 38];
}
var defaultKeys = new Array(67, 66, 68, 86, 49, 50, 51, 52, 70, 37, 39, 190, 40, 89, 85, 73, 79, 38);
var dKeyCodeArray = new Array();
initKeyBinding();
Frame 2
stop();
Frame 3
function reconfigKeys(which) {
infoPanel.text = "Now press a key to set";
if (!listening) {
blinker._visible = true;
blinker._x = this["cfg" + (which + 1)]._x + 25;
blinker._y = this["cfg" + (which + 1)]._y;
this["disp" + (which + 1)].text = "";
listenIndex = which;
listening = true;
Key.addListener(tempListener);
}
}
function updateKeys() {
i = 1;
while (i <= maxKeys) {
updateInterface(i);
i++;
}
infoPanel.text = "Click to change a key";
blinker._visible = false;
}
function setDefaultKeys() {
dKeyCodeArray.splice(0);
for (i in defaultKeys) {
dKeyCodeArray[i] = defaultKeys[i];
updateInterface(i);
}
infoPanel.text = "Defaults set";
}
function updateInterface(which) {
this["disp" + which].text = displayName(_root.dKeyCodeArray[which - 1]);
this[("disp" + which) + "_1"].text = displayName(_root.dKeyCodeArray[which - 1]);
}
function displayName(which) {
var _local1 = "";
switch (which) {
case 13 :
_local1 = "Enter";
break;
case 16 :
_local1 = "Shift";
break;
case 17 :
_local1 = "Control";
break;
case 32 :
_local1 = "Space";
break;
case 33 :
_local1 = "PageUp";
break;
case 34 :
_local1 = "PageDown";
break;
case 35 :
_local1 = "End";
break;
case 36 :
_local1 = "Home";
break;
case 37 :
_local1 = "Left";
break;
case 38 :
_local1 = "Up";
break;
case 39 :
_local1 = "Right";
break;
case 40 :
_local1 = "Down";
break;
case 45 :
_local1 = "Insert";
break;
case 190 :
_local1 = ".";
break;
default :
_local1 = String.fromCharCode(which);
}
return(_local1);
}
function setKeys() {
i = 0;
while (i < maxKeys) {
j = 0;
while (j < maxKeys) {
if ((dKeyCodeArray[i] == dKeyCodeArray[j]) && (i != j)) {
dKeyCodeArray[j] = defaultKeys[j];
}
j++;
}
i++;
}
Key.removeListener(tempListener);
}
var tempListener = new Object();
var maxKeys = 18;
var listening = false;
var listenIndex = 0;
tempListener.onKeyDown = function () {
blinker._visible = false;
_root.dKeyCodeArray[listenIndex] = Key.getCode();
updateInterface(listenIndex + 1);
listening = false;
infoPanel.text = "Click to change a key";
Key.removeListener(tempListener);
};
updateKeys();
stop();
Instance of Symbol 815 MovieClip in Frame 3
on (release) {
if (!_root.listening) {
_root.setKeys();
_root.gotoAndPlay("menu");
}
}
Instance of Symbol 815 MovieClip in Frame 3
on (release) {
if (!_root.listening) {
_root.setDefaultKeys();
_root.gotoAndPlay("menu");
}
}
Frame 4
function initScreen() {
marioMc._visible = false;
luigiMc._visible = false;
sonicMc._visible = false;
tailsMc._visible = false;
wolverineMc._visible = false;
megamanMc._visible = false;
info.text = "Done";
if (playerOneDone) {
pSelect.gotoAndStop(2);
marioS._alpha = 60;
luigiS._alpha = 100;
updateDetails("luigi");
} else {
pSelect.gotoAndStop(1);
marioS._alpha = 100;
luigiS._alpha = 60;
updateDetails("mario");
}
}
function updateDetails(char) {
details.charName.gotoAndStop(char);
details.charDetails.gotoAndStop(char);
switch (char) {
case "mario" :
details.charHealth.gotoAndStop(2);
details.charEnergy.gotoAndStop(3);
details.charSpeed.gotoAndStop(4);
details.charJump.gotoAndStop(5);
details.charAttack.gotoAndStop(2);
details.charPattack.gotoAndStop(1);
details.charEattack.gotoAndStop(2);
break;
case "luigi" :
details.charHealth.gotoAndStop(2);
details.charEnergy.gotoAndStop(3);
details.charSpeed.gotoAndStop(3);
details.charJump.gotoAndStop(6);
details.charAttack.gotoAndStop(2);
details.charPattack.gotoAndStop(1);
details.charEattack.gotoAndStop(2);
break;
case "sonic" :
details.charHealth.gotoAndStop(3);
details.charEnergy.gotoAndStop(3);
details.charSpeed.gotoAndStop(7);
details.charJump.gotoAndStop(4);
details.charAttack.gotoAndStop(10);
details.charPattack.gotoAndStop(10);
details.charEattack.gotoAndStop(10);
break;
case "tails" :
details.charHealth.gotoAndStop(3);
details.charEnergy.gotoAndStop(3);
details.charSpeed.gotoAndStop(4);
details.charJump.gotoAndStop(7);
details.charAttack.gotoAndStop(10);
details.charPattack.gotoAndStop(10);
details.charEattack.gotoAndStop(10);
break;
case "megaman" :
details.charHealth.gotoAndStop(6);
details.charEnergy.gotoAndStop(5);
details.charSpeed.gotoAndStop(3);
details.charJump.gotoAndStop(2);
details.charAttack.gotoAndStop(3);
details.charPattack.gotoAndStop(10);
details.charEattack.gotoAndStop(4);
break;
case "wolverine" :
details.charHealth.gotoAndStop(4);
details.charEnergy.gotoAndStop(2);
details.charSpeed.gotoAndStop(3);
details.charJump.gotoAndStop(3);
details.charAttack.gotoAndStop(5);
details.charPattack.gotoAndStop(10);
details.charEattack.gotoAndStop(10);
}
}
function selectCharacter(char) {
switch (char) {
case "Mario" :
marioMc._visible = true;
luigiMc._visible = false;
sonicMc._visible = false;
tailsMc._visible = false;
wolverineMc._visible = false;
megamanMc._visible = false;
break;
case "Luigi" :
marioMc._visible = false;
luigiMc._visible = true;
sonicMc._visible = false;
tailsMc._visible = false;
wolverineMc._visible = false;
megamanMc._visible = false;
break;
case "Sonic" :
sonicMc._visible = true;
tailsMc._visible = false;
wolverineMc._visible = false;
megamanMc._visible = false;
marioMc._visible = false;
luigiMc._visible = false;
break;
case "Tails" :
sonicMc._visible = false;
tailsMc._visible = true;
wolverineMc._visible = false;
megamanMc._visible = false;
marioMc._visible = false;
luigiMc._visible = false;
break;
case "Megaman" :
sonicMc._visible = false;
tailsMc._visible = false;
wolverineMc._visible = false;
megamanMc._visible = true;
marioMc._visible = false;
luigiMc._visible = false;
break;
case "Wolverine" :
sonicMc._visible = false;
tailsMc._visible = false;
wolverineMc._visible = true;
megamanMc._visible = false;
marioMc._visible = false;
luigiMc._visible = false;
}
if (playerOneDone) {
playerTwo = char;
assignCharacter(char, 2);
} else {
playerOne = char;
assignCharacter(char, 1);
}
}
function assignCharacter(char, which) {
if (char == "Mario") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:6, jumpstart:-9, gravity:0.5, jump:false, linkage:"Mario", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:70, energyMax:40, lifeMax:3, attackDamage:7, pDamage:10, eDamage:4, punchDistance:20};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:6, jumpstart:-9, gravity:0.5, jump:false, linkage:"Mario", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:70, energyMax:40, lifeMax:3, attackDamage:7, pDamage:10, eDamage:4, punchDistance:20};
}
} else if (char == "Luigi") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:5, jumpstart:-10, gravity:0.5, jump:false, linkage:"Luigi", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:70, energyMax:40, lifeMax:3, attackDamage:7, pDamage:10, eDamage:4, punchDistance:20};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:5, jumpstart:-10, gravity:0.5, jump:false, linkage:"Luigi", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:70, energyMax:40, lifeMax:3, attackDamage:7, pDamage:10, eDamage:4, punchDistance:20};
}
} else if (char == "Sonic") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:8, jumpstart:-10, gravity:0.5, jump:false, linkage:"Sonic", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:90, energyMax:40, lifeMax:3, attackDamage:12, pDamage:0, eDamage:0, punchDistance:0};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:8, jumpstart:-10, gravity:0.5, jump:false, linkage:"Sonic", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:90, energyMax:40, lifeMax:3, attackDamage:12, pDamage:0, eDamage:0, punchDistance:0};
}
} else if (char == "Tails") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:5, jumpstart:-11, gravity:0.5, jump:false, linkage:"Tails", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:90, energyMax:40, lifeMax:3, attackDamage:10, pDamage:0, eDamage:0, punchDistance:0};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:5, jumpstart:-11, gravity:0.5, jump:false, linkage:"Tails", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:90, energyMax:40, lifeMax:3, attackDamage:10, pDamage:0, eDamage:0, punchDistance:0};
}
} else if (char == "Megaman") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:5, jumpstart:-8, gravity:0.5, jump:false, linkage:"Megaman", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:180, energyMax:70, lifeMax:3, attackDamage:10, pDamage:0, eDamage:8, punchDistance:0};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:5, jumpstart:-8, gravity:0.5, jump:false, linkage:"Megaman", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:180, energyMax:70, lifeMax:3, attackDamage:10, pDamage:0, eDamage:8, punchDistance:0};
}
} else if (char == "Wolverine") {
switch (which) {
case 1 :
char1 = {xtile:3, ytile:1, speed:5, jumpstart:-8, gravity:0.5, jump:false, linkage:"Wolverine", vector:"right", frame:"standRight", climb:false, jumpCount:0, healthMax:110, energyMax:30, lifeMax:3, attackDamage:15, pDamage:0, eDamage:0, punchDistance:40};
break;
case 2 :
char2 = {xtile:7, ytile:1, speed:5, jumpstart:-8, gravity:0.5, jump:false, linkage:"Wolverine", vector:"left", frame:"standLeft", climb:false, jumpCount:0, healthMax:110, energyMax:30, lifeMax:3, attackDamage:15, pDamage:0, eDamage:0, punchDistance:40};
}
}
}
var playerOneDone = false;
var playerTwoDone = false;
var playerOne = "";
var playerTwo = "";
var char1;
var char2;
initScreen();
stop();
Instance of Symbol 925 MovieClip "sonicS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.luigiS._alpha = 60;
_root.marioS._alpha = 60;
_root.tailsS._alpha = 60;
_root.megamanS._alpha = 60;
_root.wolverineS._alpha = 60;
_root.updateDetails("sonic");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Sonic");
}
}
Instance of Symbol 929 MovieClip "marioS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.luigiS._alpha = 60;
_root.sonicS._alpha = 60;
_root.tailsS._alpha = 60;
_root.megamanS._alpha = 60;
_root.wolverineS._alpha = 60;
_root.updateDetails("mario");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Mario");
}
}
Instance of Symbol 933 MovieClip "luigiS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.marioS._alpha = 60;
_root.sonicS._alpha = 60;
_root.tailsS._alpha = 60;
_root.megamanS._alpha = 60;
_root.wolverineS._alpha = 60;
_root.updateDetails("luigi");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Luigi");
}
}
Instance of Symbol 937 MovieClip "tailsS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.luigiS._alpha = 60;
_root.sonicS._alpha = 60;
_root.marioS._alpha = 60;
_root.megamanS._alpha = 60;
_root.wolverineS._alpha = 60;
_root.updateDetails("tails");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Tails");
}
}
Instance of Symbol 941 MovieClip "wolverineS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.marioS._alpha = 60;
_root.sonicS._alpha = 60;
_root.tailsS._alpha = 60;
_root.megamanS._alpha = 60;
_root.luigiS._alpha = 60;
_root.updateDetails("wolverine");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Wolverine");
}
}
Instance of Symbol 945 MovieClip "megamanS" in Frame 4
on (rollOver, dragOver) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 100;
_root.marioS._alpha = 60;
_root.sonicS._alpha = 60;
_root.tailsS._alpha = 60;
_root.luigiS._alpha = 60;
_root.wolverineS._alpha = 60;
_root.updateDetails("megaman");
}
}
on (releaseOutside, rollOut, dragOut) {
if (_root.pSelect._currentframe != 3) {
this._alpha = 60;
}
}
on (release) {
if (_root.pSelect._currentframe != 3) {
_root.selectCharacter("Megaman");
}
}
Instance of Symbol 815 MovieClip in Frame 4
on (release) {
if ((!_root.playerOneDone) && (_root.playerOne != "")) {
_root.playerOneDone = true;
_root.initScreen();
} else if ((!_root.playerTwoDone) && (_root.playerTwo != "")) {
_root.playerTwoDone = true;
_root.pSelect.gotoAndStop(3);
_root.info.text = "Start";
} else if (_root.playerTwoDone && (_root.playerOneDone)) {
_root.gotoAndStop("lSelect");
}
}
Frame 5
function gotoScene() {
_root.gotoAndPlay("game");
}
var levelSelected = false;
var level = 0;
info.text = "click level";
loadingTiles._visible = false;
stop();
Instance of Symbol 815 MovieClip in Frame 5
on (release) {
if (_root.levelSelected) {
_root.loadingTiles._visible = true;
_root.loadingTiles.gotoAndPlay(2);
}
}
Instance of Symbol 961 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 1;
_root.char2.ytile = 1;
_root.level = 1;
_root.levelSelected = true;
_root.info.text = "Start";
}
Instance of Symbol 964 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 5;
_root.char2.ytile = 5;
_root.level = 2;
_root.levelSelected = true;
_root.info.text = "Start";
}
Instance of Symbol 967 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 5;
_root.char2.ytile = 5;
_root.level = 3;
_root.levelSelected = true;
_root.info.text = "Start";
}
Instance of Symbol 970 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 5;
_root.char2.ytile = 5;
_root.level = 6;
_root.levelSelected = true;
_root.info.text = "Start";
}
Instance of Symbol 973 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 5;
_root.char2.ytile = 5;
_root.level = 5;
_root.levelSelected = true;
_root.info.text = "Start";
}
Instance of Symbol 976 MovieClip in Frame 5
on (release) {
_root.char1.ytile = 5;
_root.char2.ytile = 5;
_root.level = 4;
_root.levelSelected = true;
_root.info.text = "Start";
}
Frame 6
function playSound(flag, char) {
switch (char.linkage) {
case "Mario" :
if (flag == "KO") {
mlKoSnd.start();
} else if (flag == "jump") {
mlJumpSnd.start();
} else if (flag == "jumponopp") {
mlJumpOnOppSnd.start();
} else if (flag == "attack1") {
mlFireballSnd.start();
}
break;
case "Luigi" :
if (flag == "KO") {
mlKoSnd.start();
} else if (flag == "jump") {
mlJumpSnd.start();
} else if (flag == "jumponopp") {
mlJumpOnOppSnd.start();
} else if (flag == "attack1") {
mlFireballSnd.start();
}
break;
case "Megaman" :
if (flag == "KO") {
mmKoSnd.start();
} else if (flag == "jump") {
mmJumpSnd.start();
} else if (flag == "jumponopp") {
} else if (flag == "attack1") {
mmShootSnd.start();
} else if (flag == "land") {
mmLandSnd.start();
} else if (flag == "attack2") {
mmPowerShotSnd.start();
} else if (flag == "hit1") {
mmBulletHitSnd.start();
} else if (flag == "hit2") {
mmPowerShotHitSnd.start();
}
break;
case "Sonic" :
if (flag == "KO") {
stKoSnd.start();
} else if (flag == "jump") {
stJumpSnd.start();
} else if (flag == "jumponopp") {
stJumpOnOppSnd.start();
} else if (flag == "spin") {
stSpinSnd.start();
}
break;
case "Tails" :
if (flag == "KO") {
stKoSnd.start();
} else if (flag == "jump") {
stJumpSnd.start();
} else if (flag == "jumponopp") {
stJumpOnOppSnd.start();
} else if (flag == "spin") {
stSpinSnd.start();
}
break;
case "Wolverine" :
if (flag == "attack1") {
wolverineClawSwingSnd.start();
} else {
if (flag != "hit1") {
break;
}
wolverineClawHitSnd.start();
}
}
}
function buildMap(map) {
l3Overlap._visible = false;
levelBg.gotoAndStop(game.currentMap);
_root.attachMovie("empty", "tiles", 1);
game.clip = _root.tiles;
var _local6 = map[0].length;
var _local7 = map.length;
var _local4 = 0;
while (_local4 < _local7) {
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = (("t_" + _local4) + "_") + _local3;
game[_local2] = new game["Tile" + map[_local4][_local3]]();
game.clip.attachMovie("tile" + game.currentMap, _local2, (_local4 * 100) + (_local3 * 2));
game.clip[_local2]._x = _local3 * game.tileW;
game.clip[_local2]._y = _local4 * game.tileH;
game.clip[_local2].gotoAndStop(game[_local2].frame);
if (game[_local2].item != undefined) {
game.clip[_local2].attachMovie(game[_local2].item, "item", 1);
}
_local3++;
}
_local4++;
}
if (game.currentMap == 1) {
_root.attachMovie("pit", "pit", 99, {_x:0, _y:580, _xscale:1000, _visible:false});
}
if (game.currentMap == 2) {
_root.attachMovie("lava", "lava", 99, {_x:-460, _y:480});
lava.stayTime = lavaRiseMin + random(lavaRiseInterval);
lava.fallTime = 6 + random(115);
lava.startTime = getTimer();
lava.staying = true;
lava.count = 0;
lava.gotoAndPlay("stay");
}
if (game.currentMap == 4) {
l3Overlap._visible = true;
}
if (game.currentMap == 5) {
_root.attachMovie("flier", "flier", 99, {_x:440, _y:-100});
}
if (game.currentMap == 6) {
levelBg.head1.stayTime = 5 + random(10);
levelBg.head1.startTime = getTimer();
levelBg.head1.count = 0;
levelBg.head2.stayTime = 5 + random(10);
levelBg.head2.startTime = getTimer();
levelBg.head2.count = 0;
}
_root.attachMovie("UI", "UI", 100, {_x:450, _y:25});
game.clip.attachMovie(char1.linkage, "char1", 10000);
game.clip.attachMovie(char2.linkage, "char2", 10001);
UI.p1Display.name.text = "Player 1";
UI.p2Display.name.text = "Player 2";
UI.p1Display.char.gotoAndStop(char1.linkage);
UI.p2Display.char.gotoAndStop(char2.linkage);
UI.p1Display.life.text = char1.lifeMax;
UI.p2Display.life.text = char2.lifeMax;
UI.p1Display.healthPercent.display.text = char1.healthMax;
UI.p1Display.energyPercent.display.text = char1.energyMax;
UI.p2Display.healthPercent.display.text = char2.healthMax;
UI.p2Display.energyPercent.display.text = char2.energyMax;
UI.p1Display.healthMeter.gotoAndStop(1);
UI.p1Display.energyMeter.gotoAndStop(1);
UI.p2Display.healthMeter.gotoAndStop(1);
UI.p2Display.energyMeter.gotoAndStop(1);
char1.clip = game.clip.char1;
char2.clip = game.clip.char2;
char1.life = char1.lifeMax;
char2.life = char2.lifeMax;
char1.health = char1.healthMax;
char1.energy = char1.energyMax;
char2.health = char2.healthMax;
char2.energy = char2.energyMax;
char1.x = (char1.xtile * game.tileW) + (game.tileW / 2);
char1.y = (char1.ytile * game.tileW) + (game.tileW / 2);
char2.x = (char2.xtile * game.tileW) + (game.tileW / 2);
char2.y = (char2.ytile * game.tileW) + (game.tileW / 2);
if (char1.linkage != "Wolverine") {
if (char1.linkage == "Megaman") {
char1.width = 10;
char1.height = 18;
} else if (char2.linkage == "Sonic") {
char2.width = 10;
char2.height = 17;
} else {
char1.width = 10;
char1.height = 15;
}
} else {
char1.width = 10;
char1.height = 19;
}
if (char2.linkage != "Wolverine") {
if (char2.linkage == "Megaman") {
char2.width = 10;
char2.height = 18;
} else if (char2.linkage == "Sonic") {
char2.width = 10;
char2.height = 17;
} else {
char2.width = 10;
char2.height = 15;
}
} else {
char2.width = 10;
char2.height = 19;
}
char1.clip._x = char1.x;
char1.clip._y = char1.y;
char1.clip.gotoAndStop(char1.frame);
char1.xstep = char1.x;
char1.ystep = char1.y;
char2.clip._x = char2.x;
char2.clip._y = char2.y;
char2.clip.gotoAndStop(char2.frame);
char2.xstep = char2.x;
char2.ystep = char2.y;
char2.punchAttack = true;
char2.collideAttack = true;
char2.jumpAttack = true;
char1.punchAttack = true;
char1.collideAttack = true;
char1.jumpAttack = true;
char1.KO = false;
char2.KO = false;
char1.rolling = false;
char2.rolling = false;
char1.flying = false;
char2.flying = false;
char1.fallingThrough = false;
char2.fallingThrough = false;
}
function getMyCorners(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable;
}
function checkIfOnCloud(ob) {
var _local3 = game[(("t_" + ob.downY) + "_") + ob.leftX].cloud;
var _local2 = game[(("t_" + ob.downY) + "_") + ob.rightX].cloud;
if ((_local3 or _local2) and (ob.ytile != ob.downY)) {
if (ob.fallingThrough) {
return(false);
}
return(true);
}
return(false);
}
function checkForSlopes(ob, diry, dirx) {
if (game[(("t_" + (ob.ytile + 1)) + "_") + ob.xtile].slope and (!ob.jump)) {
ob.ytile = ob.ytile + 1;
ob.y = ob.y + game.tileH;
}
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].slope and (diry != -1)) {
if (diry == 1) {
ob.y = ((ob.ytile + 1) * game.tileH) - ob.height;
}
var _local2 = ob.x - (ob.xtile * game.tileW);
ob.onSlope = game[(("t_" + ob.ytile) + "_") + ob.xtile].slope;
ob.jump = false;
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].slope == 1) {
ob.addy = _local2;
ob.clip._y = (((ob.ytile + 1) * game.tileH) - ob.height) - ob.addy;
} else {
ob.addy = game.tileW - _local2;
ob.clip._y = (((ob.ytile + 1) * game.tileH) - ob.height) - ob.addy;
}
} else {
if (((ob.onSlope == 1) and (dirx == 1)) or ((ob.onSlope == -1) and (dirx == -1))) {
ob.ytile = ob.ytile - 1;
ob.y = ob.y - game.tileH;
ob.clip._y = ob.y;
}
ob.onSlope = false;
}
}
function moveChar(ob, dirx, diry, jump, force, offset) {
if (Math.abs(jump) == 1) {
if (ob.energy < 5) {
speed = (ob.jumpspeed / 2) * jump;
} else {
speed = ob.jumpspeed * jump;
}
} else if (!force) {
if (ob.energy < 5) {
speed = ob.speed / 2;
} else {
speed = ob.speed;
}
} else {
speed = offset;
}
getMyCorners(ob.x, ob.y + (speed * diry), ob);
if (diry == -1) {
if (ob.upleft and ob.upright) {
ob.y = ob.y + (speed * diry);
checkForSpikeTile(ob);
} else {
ob.y = (ob.ytile * game.tileH) + ob.height;
ob.jumpspeed = 0;
checkForSpecialTile(ob);
}
} else if (!ob.jump) {
checkForSpikeTile(ob);
}
if (diry == 1) {
if ((ob.downleft and ob.downright) and (!checkIfOnCloud(ob))) {
ob.y = ob.y + (speed * diry);
} else {
ob.y = ((ob.ytile + 1) * game.tileH) - ob.height;
ob.jump = false;
}
if (ob.jump) {
checkForSpikeTile(ob);
checkForEnergyPickup(ob);
}
}
getMyCorners(ob.x + (speed * dirx), ob.y, ob);
if (dirx == -1) {
if ((ob.downleft and ob.upleft) || (ob.onSlope)) {
ob.climb = true;
ob.x = ob.x + (speed * dirx);
fall(ob);
} else {
ob.x = (ob.xtile * game.tileW) + ob.width;
}
}
if (dirx == 1) {
if ((ob.upright and ob.downright) || (ob.onSlope)) {
ob.climb = true;
ob.x = ob.x + (speed * dirx);
fall(ob);
} else {
ob.x = ((ob.xtile + 1) * game.tileW) - ob.width;
}
}
updateChar(ob, dirx, diry);
return(true);
}
function updateChar(ob, dirx, diry) {
ob.clip._x = ob.x;
ob.clip._y = ob.y;
if ((!ob.jump) && (!ob.climb)) {
if (ob.vector == "right") {
if (ob.rolling) {
ob.clip.gotoAndStop("rollRight");
} else if (ob.clip._currentframe != 5) {
ob.clip.gotoAndStop("runRight");
}
} else if (ob.vector == "left") {
if (ob.rolling) {
ob.clip.gotoAndStop("rollLeft");
} else if (ob.clip._currentframe != 6) {
ob.clip.gotoAndStop("runLeft");
}
}
} else if (ob.climb) {
ob.clip.gotoAndStop("climbFast");
ob.clip.clip.play();
} else if (ob.jump && (ob.flying)) {
if (ob.vector == "right") {
ob.clip.gotoAndStop("flyRight");
} else if (ob.vector == "left") {
ob.clip.gotoAndStop("flyLeft");
}
}
ob.xtile = Math.floor(ob.x / game.tileW);
ob.ytile = Math.floor(ob.y / game.tileH);
if (game.currentMap == 4) {
checkForSlopes(ob, diry, dirx);
}
}
function checkForEnergyPickup(ob) {
if (game.currentMap == 3) {
var _local4 = Math.floor(ob.x / game.tileW);
var _local3 = Math.floor(ob.y / game.tileH);
if (ob.linkage != "Megaman") {
if (game[(("t_" + _local3) + "_") + _local4].carrying && (game[(("t_" + _local3) + "_") + _local4].frame == 26)) {
game[(("t_" + _local3) + "_") + _local4].carrying = false;
_root.tiles[(("t_" + _local3) + "_") + _local4].gotoAndStop(game[(("t_" + _local3) + "_") + _local4].noncarryingTile);
_root.tiles[(("t_" + _local3) + "_") + _local4].timer = respawnItemDelay + random(respawnItemDelay);
ob.energy = ob.energy + 25;
if (ob.energy >= ob.energyMax) {
ob.energy = ob.energyMax;
}
energyBoxBreakSnd.start();
ob.jumpspeed = Math.round(ob.jumpstart / 2);
carryingItems.push((("t_" + _local3) + "_") + _local4);
}
}
if (game[(("t_" + _local3) + "_") + _local4].frame == 27) {
trampolineSnd.start();
ob.jumpspeed = -15;
ob.jump = true;
}
} else if (game.currentMap == 4) {
var _local4 = Math.floor(ob.x / game.tileW);
var _local3 = Math.floor(ob.y / game.tileH);
if (ob.linkage != "Megaman") {
if (game[(("t_" + _local3) + "_") + _local4].carrying && (game[(("t_" + _local3) + "_") + _local4].frame == 11)) {
game[(("t_" + _local3) + "_") + _local4].carrying = false;
_root.tiles[(("t_" + _local3) + "_") + _local4].gotoAndStop(game[(("t_" + _local3) + "_") + _local4].noncarryingTile);
_root.tiles[(("t_" + _local3) + "_") + _local4].timer = respawnItemDelay + random(respawnItemDelay);
ob.energy = ob.energy + 25;
if (ob.energy >= ob.energyMax) {
ob.energy = ob.energyMax;
}
energyBoxBreakSnd.start();
ob.jumpspeed = Math.round(ob.jumpstart / 2);
carryingItems.push((("t_" + _local3) + "_") + _local4);
}
}
}
}
function checkForSpikeTile(ob) {
if (game.currentMap == 3) {
var _local6 = Math.floor((ob.y + (2 * ob.height)) / game.tileH);
var _local5 = Math.floor(ob.x / game.tileW);
var _local4 = Math.floor(ob.y / game.tileH);
if (game[(("t_" + _local6) + "_") + _local5].frame == 6) {
ob.jumpspeed = ob.jumpstart;
ob.jump = true;
inflictDamage(ob, 20);
ob.alphaBlink = 0;
ob._alpha = 100;
if (ob == _root.char1) {
clearInterval(alphablinkclearInterval1);
clearInterval(alphablinkInterval1);
alphablinkclearInterval1 = setInterval(attackReset, eattackDelay, "char1", "b", "1");
alphablinkInterval1 = setInterval(alphablinkChar, alphablinkDelay, "char1");
} else {
clearInterval(alphablinkclearInterval2);
clearInterval(alphablinkInterval2);
alphablinkclearInterval2 = setInterval(attackReset, eattackDelay, "char2", "b", "2");
alphablinkInterval2 = setInterval(alphablinkChar, alphablinkDelay, "char2");
}
}
if (game[(("t_" + _local4) + "_") + _local5].carrying) {
var _local3 = false;
switch (game[(("t_" + _local4) + "_") + _local5].frame) {
case 16 :
ob.health = ob.health + 10;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 19 :
ob.health = ob.health + 10;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 22 :
ob.health = ob.health + 10;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 23 :
ob.health = ob.health + 20;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 28 :
ob.health = ob.health + 5;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 29 :
ob.health = ob.health + 10;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
}
if (_local3) {
coinsSnd.start();
game[(("t_" + _local4) + "_") + _local5].carrying = false;
_root.tiles[(("t_" + _local4) + "_") + _local5].gotoAndStop(game[(("t_" + _local4) + "_") + _local5].noncarryingTile);
_root.tiles[(("t_" + _local4) + "_") + _local5].timer = respawnItemDelay + random(respawnItemDelay);
carryingItems.push((("t_" + _local4) + "_") + _local5);
}
}
} else if (game.currentMap == 4) {
var _local5 = Math.floor(ob.x / game.tileW);
var _local4 = Math.floor(ob.y / game.tileH);
if (game[(("t_" + _local4) + "_") + _local5].carrying) {
var _local3 = false;
switch (game[(("t_" + _local4) + "_") + _local5].frame) {
case 4 :
ob.health = ob.health + 5;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 5 :
ob.health = ob.health + 5;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 6 :
ob.health = ob.health + 5;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 7 :
ob.health = ob.health + 5;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 8 :
ob.health = ob.health + 10;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 9 :
ob.health = ob.health + 15;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
break;
case 10 :
ob.health = ob.health + 20;
if (ob.health >= ob.healthMax) {
ob.health = ob.healthMax;
}
_local3 = true;
}
if (_local3) {
coinsSnd.start();
game[(("t_" + _local4) + "_") + _local5].carrying = false;
_root.tiles[(("t_" + _local4) + "_") + _local5].gotoAndStop(game[(("t_" + _local4) + "_") + _local5].noncarryingTile);
_root.tiles[(("t_" + _local4) + "_") + _local5].timer = respawnItemDelay + random(respawnItemDelay);
carryingItems.push((("t_" + _local4) + "_") + _local5);
}
}
}
}
function checkForSpecialTile(ob) {
var _local2 = Math.floor((ob.y - (2 * ob.height)) / game.tileH);
var _local3 = Math.floor(ob.x / game.tileW);
if ((game[(("t_" + _local2) + "_") + _local3].carrying && (game.currentMap != 3)) && (ob.linkage != "Megaman")) {
hitItemBlockSnd.start();
game[(("t_" + _local2) + "_") + _local3].carrying = false;
_root.tiles[(("t_" + _local2) + "_") + _local3].gotoAndStop(game[(("t_" + _local2) + "_") + _local3].noncarryingTile);
_root.tiles[(("t_" + _local2) + "_") + _local3].timer = respawnItemDelay;
_root.tiles.attachMovie("items", "item" + depth, depth);
_root.tiles["item" + depth].index = spawnItems.length;
spawnItems.push("item" + depth);
if (random(2) == 0) {
_root.tiles["item" + depth].movable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "mushroom";
_root.tiles["item" + depth].gotoAndStop("mushroom");
} else {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].type = "flower";
_root.tiles["item" + depth].gotoAndStop("flower");
}
_root.tiles["item" + depth].height = _root.tiles["item" + depth]._height / 2;
_root.tiles["item" + depth].width = _root.tiles["item" + depth]._width / 2;
_root.tiles["item" + depth]._x = _root.tiles[(("t_" + _local2) + "_") + _local3]._x + _root.tiles["item" + depth].width;
_root.tiles["item" + depth]._y = (_root.tiles[(("t_" + _local2) + "_") + _local3]._y - game.tileW) + _root.tiles["item" + depth].height;
depth++;
carryingItems.push((("t_" + _local2) + "_") + _local3);
}
if ((game[(("t_" + _local2) + "_") + _local3].frame == 7) && (game.currentMap == 3)) {
ob.jumpspeed = game.tileH / 3;
inflictDamage(ob, 20);
ob.alphaBlink = 0;
ob.alpha = 100;
if (ob == _root.char1) {
clearInterval(alphablinkclearInterval1);
clearInterval(alphablinkInterval1);
alphablinkclearInterval1 = setInterval(attackReset, eattackDelay, "char1", "b", "1");
alphablinkInterval1 = setInterval(alphablinkChar, alphablinkDelay, "char1");
} else {
clearInterval(alphablinkclearInterval2);
clearInterval(alphablinkInterval2);
alphablinkclearInterval2 = setInterval(attackReset, eattackDelay, "char2", "b", "2");
alphablinkInterval2 = setInterval(alphablinkChar, alphablinkDelay, "char2");
}
}
}
function jump(ob) {
if (!ob.flying) {
ob.jumpspeed = ob.jumpspeed + ob.gravity;
if (ob.jumpspeed > (game.tileH / 3)) {
ob.jumpspeed = game.tileH / 3;
}
if (ob.jumpspeed < 0) {
if ((ob.clip._currentframe != 7) && (ob.clip._currentframe != 8)) {
if (ob.vector == "right") {
ob.clip.gotoAndStop("jumpRight");
} else if (ob.vector == "left") {
ob.clip.gotoAndStop("jumpLeft");
}
}
moveChar(ob, 0, -1, -1);
} else if (ob.jumpspeed > 0) {
if ((ob.clip._currentframe != 9) && (ob.clip._currentframe != 10)) {
if (ob.vector == "right") {
ob.clip.gotoAndStop("fallRight");
} else if (ob.vector == "left") {
ob.clip.gotoAndStop("fallLeft");
}
}
moveChar(ob, 0, 1, 1);
}
}
return(true);
}
function fall(ob) {
ob.climb = false;
if (!ob.jump) {
getMyCorners(ob.x, ob.y + 1, ob);
if ((ob.downleft and ob.downright) and (!checkIfOnCloud(ob))) {
ob.jumpspeed = 0;
ob.jump = true;
}
}
}
function checkUpLadder(ob) {
var _local2 = Math.floor(((ob.y - ob.height) - ob.speed) / game.tileH);
var _local3 = game[(("t_" + _local2) + "_") + ob.xtile].ladder;
if (_local3) {
return(true);
}
return(false);
}
function checkDownLadder(ob) {
var _local2 = Math.floor(((ob.speed + ob.y) + ob.height) / game.tileH);
var _local3 = game[(("t_" + _local2) + "_") + ob.xtile].ladder;
if (_local3) {
return(true);
}
fall(ob);
}
function climb(ob, diry) {
ob.climb = true;
ob.jump = false;
if (ob.energy < 5) {
ob.y = ob.y + ((ob.speed / 2) * diry);
} else {
ob.y = ob.y + (ob.speed * diry);
}
ob.x = (ob.xtile * game.tileW) + (game.tileW / 2);
updateChar(ob, 0, diry);
return(true);
}
function attackReset(ob, which, intvl) {
switch (which) {
case "n" :
ob.nattackReady = true;
clearInterval(_root["nattackInterval" + intvl]);
break;
case "p" :
ob.pattackReady = true;
clearInterval(_root["pattackInterval" + intvl]);
break;
case "e" :
switch (ob) {
case "char1" :
clearInterval(blinkInterval1);
clearInterval(eattackInterval1);
break;
case "char2" :
clearInterval(blinkInterval2);
clearInterval(eattackInterval2);
}
_root[ob].eattackReady = true;
break;
case "b" :
switch (ob) {
case "char1" :
clearInterval(alphablinkInterval1);
break;
case "char2" :
clearInterval(alphablinkInterval2);
}
tiles[ob]._alpha = 100;
clearInterval(_root["alphablinkclearInterval" + intvl]);
break;
case "d" :
clearInterval(_root["fallingThroughInterval" + intvl]);
ob.fallingThrough = false;
}
}
function firePower(ob, bulletId) {
if ((ob.linkage == "Luigi") || (ob.linkage == "Mario")) {
playSound("attack1", ob);
_root.tiles.attachMovie("firePower", "fp" + depth, depth);
if (ob.vector == "right") {
_root.tiles["fp" + depth]._x = ob.x + 10;
_root.tiles["fp" + depth]._y = ob.y;
_root.tiles["fp" + depth].vector = "right";
} else if (ob.vector == "left") {
_root.tiles["fp" + depth]._x = ob.x - 10;
_root.tiles["fp" + depth]._y = ob.y;
_root.tiles["fp" + depth].vector = "left";
}
_root.tiles["fp" + depth].spawner = ob;
_root.tiles["fp" + depth].jumpstart = -8;
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
_root.tiles["fp" + depth].jumpspeed = _root.tiles["fp" + depth].jumpstart;
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
} else if (ob.linkage == "Megaman") {
_root.tiles.attachMovie("mmBullet" + bulletId, "fp" + depth, depth);
if (ob.vector == "right") {
_root.tiles["fp" + depth]._x = ob.x + 10;
_root.tiles["fp" + depth]._y = ob.y;
_root.tiles["fp" + depth].vector = "right";
} else if (ob.vector == "left") {
_root.tiles["fp" + depth]._xscale = -100;
_root.tiles["fp" + depth]._x = ob.x - 10;
_root.tiles["fp" + depth]._y = ob.y;
_root.tiles["fp" + depth].vector = "left";
}
_root.tiles["fp" + depth].spawner = ob;
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
if (bulletId == "n") {
playSound("attack1", ob);
_root.tiles["fp" + depth].damage = 4;
} else if (bulletId == "e") {
playSound("attack2", ob);
_root.tiles["fp" + depth].damage = 25;
}
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
}
}
function clearJump(ob, intvl) {
ob.jumpAttack = true;
clearInterval(_root["jumpattackInterval" + intvl]);
}
function clearCollision(ob, intvl) {
ob.collideAttack = true;
clearInterval(_root["collisionInterval" + intvl]);
}
function clearPunch(ob, intvl) {
ob.punchAttack = true;
clearInterval(_root["punchInterval" + intvl]);
}
function inflictDamage(ob, damage, vect) {
if (vect == undefined) {
vect = -1;
}
ob.health = ob.health - damage;
if ((damage >= 10) && (damage < 20)) {
moveChar(ob, vect, 0, 0, true, 5);
} else if (damage >= 20) {
moveChar(ob, vect, 0, 0, true, 10);
}
if (ob.health <= 0) {
ob.jumpspeed = 2 * ob.jumpstart;
ob.KO = true;
playSound("KO", ob);
}
}
function jumpReset(ob, intvl) {
ob.jumpCount = 2;
switch (intvl) {
case "1" :
clearInterval(jumpInterval1);
break;
case "2" :
clearInterval(jumpInterval2);
}
}
function alphablinkChar(which) {
switch (which) {
case "char1" :
_root.char1.alphaBlink++;
if ((_root.char1.alphaBlink % 2) == 0) {
tiles.char1._alpha = 50;
} else {
tiles.char1._alpha = 100;
}
break;
case "char2" :
_root.char2.alphaBlink++;
if ((_root.char2.alphaBlink % 2) == 0) {
tiles.char2._alpha = 50;
} else {
tiles.char2._alpha = 100;
}
}
}
function checkForPunch() {
if (char1.xtile > char2.xtile) {
if ((char2.vector == "right") && (Math.abs(tiles.char2._x - tiles.char1._x) <= char2.punchDistance)) {
char2.canPunch = true;
}
if ((char1.vector == "left") && (Math.abs(tiles.char1._x - tiles.char2._x) <= char1.punchDistance)) {
char1.canPunch = true;
}
} else if (char1.xtile < char2.xtile) {
if ((char1.vector == "right") && (Math.abs(tiles.char1._x - tiles.char2._x) <= char1.punchDistance)) {
char1.canPunch = true;
}
if ((char2.vector == "left") && (Math.abs(tiles.char2._x - tiles.char1._x) <= char2.punchDistance)) {
char2.canPunch = true;
}
} else if (tiles.char2._x > tiles.char1._x) {
if (char1.vector == "right") {
char1.canPunch = true;
}
if (char2.vector == "left") {
char2.canPunch = true;
}
} else if (tiles.char2._x < tiles.char1._x) {
if (char1.vector == "left") {
char1.canPunch = true;
}
if (char2.vector == "right") {
char2.canPunch = true;
}
} else {
char1.canPunch = true;
char2.canPunch = true;
}
}
function detectKeys() {
if ((!char1.KO) && (!char2.KO)) {
var _local2 = _root.char1;
var _local5 = false;
if (Key.isDown(dKeyCodeArray[2]) and (!_local2.climb)) {
if (!_local2.jump) {
if (Key.isDown(dKeyCodeArray[3])) {
if (!_local2.fallingThrough) {
_local2.fallingThrough = true;
fallingThroughInterval1 = setInterval(attackReset, fallingThroughDelay, _local2, "d", "1");
}
} else {
_local2.jumpCount = 0;
if (_local2.onSlope) {
_local2.y = _local2.y - _local2.addy;
_local2.ytile = Math.floor(_local2.y / game.tileH);
}
_local2.jump = true;
_local2.jumpspeed = _local2.jumpstart;
playSound("jump", _local2);
}
} else {
if (_local2.jumpCount == 2) {
if (_local2.flying) {
_local2.flying = false;
playSound("jump", _local2);
}
}
if ((_local2.energy > 5) && (_local2.jumpCount == -1)) {
if (_local2.linkage == "Tails") {
_local2.flying = true;
} else {
playSound("jump", _local2);
}
_local2.energy = _local2.energy - 5;
_local2.jumpCount = 1;
jumpInterval1 = setInterval(jumpReset, jumpDelay, _local2, "1");
_local2.jumpspeed = _local2.jumpstart;
}
}
} else if (!Key.isDown(dKeyCodeArray[2])) {
if (_local2.jump && (_local2.jumpCount == 0)) {
_local2.jumpCount = -1;
}
}
if (Key.isDown(dKeyCodeArray[3]) and (!_local2.jump)) {
if (!_local2.climb) {
if ((!_local2.jump) and checkDownLadder(_local2)) {
_local5 = _root.climb(_local2, 1);
} else {
if ((Key.isDown(dKeyCodeArray[1]) || (Key.isDown(dKeyCodeArray[0]))) && ((_local2.linkage == "Sonic") || (_local2.linkage == "Tails"))) {
if (!_local2.rolling) {
playSound("spin", _local2);
}
_local2.rolling = true;
} else if (Key.isDown(dKeyCodeArray[1]) || (Key.isDown(dKeyCodeArray[0]))) {
} else if (_local2.vector == "right") {
_local2.clip.gotoAndStop("duckRight");
} else if (_local2.vector == "left") {
_local2.clip.gotoAndStop("duckLeft");
}
_local5 = true;
}
} else if ((!_local2.jump) and checkDownLadder(_local2)) {
_local5 = _root.climb(_local2, 1);
}
} else if (Key.isDown(dKeyCodeArray[3]) && (_local2.flying)) {
getMyCorners(_local2.x, _local2.y + _local2.speed, _local2);
if (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright) {
_local5 = _root.moveChar(_local2, 0, 1);
}
}
if (Key.isDown(dKeyCodeArray[7])) {
if ((_local2.linkage == "Luigi") || (_local2.linkage == "Mario")) {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval1 = setInterval(attackReset, nattackDelay, _local2, "n", "1");
_local2.clip.punch.play();
if (_local2.punchAttack && (_local2.canPunch)) {
if (_local2.vector == "right") {
inflictDamage(_root.char2, 7, 1);
} else {
inflictDamage(_root.char2, 7, -1);
}
_local2.punchAttack = false;
punchInterval1 = setInterval(clearPunch, punchDelay, _local2, "1");
}
if (_local2.punchAttack && (_local2.canPunchFlier)) {
dropStuff();
_local2.punchAttack = false;
punchInterval1 = setInterval(clearPunch, punchDelay, _local2, "1");
}
_local5 = true;
}
} else if (_local2.linkage == "Megaman") {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval1 = setInterval(attackReset, nattackDelay, _local2, "n", "1");
_local2.clip.punch.gotoAndPlay(2);
if (_local2.punchAttack) {
firePower(_local2, "n");
_local2.punchAttack = false;
punchInterval1 = setInterval(clearPunch, punchDelay, _local2, "1");
}
_local5 = true;
}
} else if (_local2.linkage == "Wolverine") {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval1 = setInterval(attackReset, nattackDelay, _local2, "n", "1");
_local2.clip.punch.play();
playSound("attack1", _local2);
if (_local2.punchAttack && (_local2.canPunch)) {
if (_local2.vector == "right") {
inflictDamage(_root.char2, 15, 1);
} else {
inflictDamage(_root.char2, 15, -1);
}
_local2.punchAttack = false;
playSound("hit1", _local2);
punchInterval1 = setInterval(clearPunch, punchDelay, _local2, "1");
}
if (_local2.punchAttack && (_local2.canPunchFlier)) {
dropStuff();
_local2.punchAttack = false;
playSound("hit1", _local2);
punchInterval1 = setInterval(clearPunch, punchDelay, _local2, "1");
}
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[6])) {
if ((_local2.linkage == "Luigi") || (_local2.linkage == "Mario")) {
if ((_local2.pattackReady != false) && (_local2.clip.punch)) {
_local2.pattackReady = false;
firePower(_local2);
pattackInterval1 = setInterval(attackReset, pattackDelay, _local2, "p", "1");
_local2.clip.punch.play();
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[5])) {
if (_local2.linkage == "Megaman") {
if (((_local2.eattackReady != false) && (_local2.clip.punch)) && (_local2.energy > 25)) {
_local2.eattackReady = false;
eattackInterval1 = setInterval(attackReset, nattackDelay, "char1", "e", "1");
firePower(_local2, "e");
_local2.energy = _local2.energy - 25;
_local2.clip.punch.gotoAndPlay(2);
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[1])) {
getMyCorners(_local2.x - _local2.speed, _local2.y, _local2);
if ((!_local2.climb) or (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright)) {
_local2.vector = "right";
_local5 = _root.moveChar(_local2, 1, 0);
}
} else if (Key.isDown(dKeyCodeArray[0])) {
getMyCorners(_local2.x - _local2.speed, _local2.y, _local2);
if ((!_local2.climb) or (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright)) {
_local2.vector = "left";
_local5 = _root.moveChar(_local2, -1, 0);
}
}
if (Key.isDown(dKeyCodeArray[8])) {
if (_local2.flying) {
getMyCorners(_local2.x, _local2.y - _local2.speed, _local2);
if (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright) {
_local5 = _root.moveChar(_local2, 0, -1);
}
} else if ((!_local2.jump) and checkUpLadder(_local2)) {
_local5 = _root.climb(_local2, -1);
}
}
if (_local2.jump) {
_local5 = _root.jump(_local2);
}
if ((!_local5) && (!_local2.climb)) {
_local2.rolling = false;
if ((_local2.clip._currentframe != 1) && (_local2.clip._currentframe != 2)) {
if (_local2.vector == "right") {
_local2.clip.gotoAndStop("standRight");
} else if (_local2.vector == "left") {
_local2.clip.gotoAndStop("standLeft");
}
}
if (_local2.energy < _local2.energyMax) {
_local2.energy = _local2.energy + 0.1;
}
} else if (_local2.climb && (!_local5)) {
_local2.rolling = false;
_local2.clip.clip.stop();
}
if ((_local2.health < _local2.healthMax) && (_local2.linkage == "Wolverine")) {
_local2.health = _local2.health + 0.05;
}
if (lava) {
if (_local2.clip.hitTest(lava)) {
inflictDamage(_local2, _local2.healthMax);
}
}
if (pit) {
if (_local2.clip.hitTest(pit)) {
inflictDamage(_local2, _local2.healthMax);
}
}
_local2 = _root.char2;
_local5 = false;
if (Key.isDown(dKeyCodeArray[11]) and (!_local2.climb)) {
if (!_local2.jump) {
if (Key.isDown(dKeyCodeArray[12])) {
if (!_local2.fallingThrough) {
_local2.fallingThrough = true;
fallingThroughInterval2 = setInterval(attackReset, fallingThroughDelay, _local2, "d", "2");
}
} else {
_local2.jumpCount = 0;
_local2.jump = true;
_local2.jumpspeed = _local2.jumpstart;
playSound("jump", _local2);
}
} else {
if (_local2.jumpCount == 2) {
if (_local2.flying) {
_local2.flying = false;
playSound("jump", _local2);
}
}
if ((_local2.energy > 5) && (_local2.jumpCount == -1)) {
if (_local2.linkage == "Tails") {
_local2.flying = true;
} else {
playSound("jump", _local2);
}
_local2.energy = _local2.energy - 5;
_local2.jumpCount = 1;
jumpInterval2 = setInterval(jumpReset, jumpDelay, _local2, "2");
_local2.jumpspeed = _local2.jumpstart;
}
}
} else if (!Key.isDown(dKeyCodeArray[11])) {
if (_local2.jump && (_local2.jumpCount == 0)) {
_local2.jumpCount = -1;
}
}
if (Key.isDown(dKeyCodeArray[12]) and (!_local2.jump)) {
if (!_local2.climb) {
if ((!_local2.jump) and checkDownLadder(_local2)) {
_local5 = _root.climb(_local2, 1);
} else {
if ((Key.isDown(dKeyCodeArray[10]) || (Key.isDown(dKeyCodeArray[9]))) && ((_local2.linkage == "Sonic") || (_local2.linkage == "Tails"))) {
if (!_local2.rolling) {
playSound("spin", _local2);
}
_local2.rolling = true;
} else if (Key.isDown(dKeyCodeArray[10]) || (Key.isDown(dKeyCodeArray[9]))) {
} else if (_local2.vector == "right") {
_local2.clip.gotoAndStop("duckRight");
} else if (_local2.vector == "left") {
_local2.clip.gotoAndStop("duckLeft");
}
_local5 = true;
}
} else if ((!_local2.jump) and checkDownLadder(_local2)) {
_local5 = _root.climb(_local2, 1);
}
} else if (Key.isDown(dKeyCodeArray[12]) && (_local2.flying)) {
getMyCorners(_local2.x, _local2.y + _local2.speed, _local2);
if (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright) {
_local5 = _root.moveChar(_local2, 0, 1);
}
}
if (Key.isDown(dKeyCodeArray[16])) {
if ((_local2.linkage == "Luigi") || (_local2.linkage == "Mario")) {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval2 = setInterval(attackReset, nattackDelay, _local2, "n", "2");
_local2.clip.punch.play();
if (_local2.punchAttack && (_local2.canPunch)) {
if (_local2.vector == "right") {
inflictDamage(_root.char1, 7, 1);
} else {
inflictDamage(_root.char1, 7, -1);
}
_local2.punchAttack = false;
punchInterval2 = setInterval(clearPunch, punchDelay, _local2, "2");
}
if (_local2.punchAttack && (_local2.canPunchFlier)) {
dropStuff();
_local2.punchAttack = false;
punchInterval2 = setInterval(clearPunch, punchDelay, _local2, "2");
}
_local5 = true;
}
} else if (_local2.linkage == "Megaman") {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval2 = setInterval(attackReset, nattackDelay, _local2, "n", "2");
_local2.clip.punch.gotoAndPlay(2);
if (_local2.punchAttack) {
firePower(_local2, "n");
_local2.punchAttack = false;
punchInterval2 = setInterval(clearPunch, punchDelay, _local2, "2");
}
_local5 = true;
}
} else if (_local2.linkage == "Wolverine") {
if ((_local2.nattackReady != false) && (_local2.clip.punch)) {
_local2.nattackReady = false;
nattackInterval2 = setInterval(attackReset, nattackDelay, _local2, "n", "2");
_local2.clip.punch.play();
playSound("attack1", _local2);
if (_local2.punchAttack && (_local2.canPunch)) {
if (_local2.vector == "right") {
inflictDamage(_root.char1, 15, 1);
} else {
inflictDamage(_root.char1, 15, -1);
}
playSound("hit1", _local2);
_local2.punchAttack = false;
punchInterval2 = setInterval(clearPunch, punchDelay, _local2, "2");
}
if (_local2.punchAttack && (_local2.canPunchFlier)) {
dropStuff();
_local2.punchAttack = false;
playSound("hit1", _local2);
punchInterval2 = setInterval(clearPunch, punchDelay, _local2, "2");
}
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[15])) {
if ((_local2.linkage == "Luigi") || (_local2.linkage == "Mario")) {
if ((_local2.pattackReady != false) && (_local2.clip.punch)) {
_local2.pattackReady = false;
firePower(_local2);
pattackInterval2 = setInterval(attackReset, pattackDelay, _local2, "p", "2");
_local2.clip.punch.play();
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[14])) {
if (_local2.linkage == "Megaman") {
if (((_local2.eattackReady != false) && (_local2.clip.punch)) && (_local2.energy > 25)) {
_local2.eattackReady = false;
eattackInterval2 = setInterval(attackReset, nattackDelay, "char2", "e", "2");
firePower(_local2, "e");
_local2.energy = _local2.energy - 25;
_local2.clip.punch.gotoAndPlay(2);
_local5 = true;
}
}
}
if (Key.isDown(dKeyCodeArray[10])) {
getMyCorners(_local2.x - _local2.speed, _local2.y, _local2);
if ((!_local2.climb) or (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright)) {
_local2.vector = "right";
_local5 = _root.moveChar(_local2, 1, 0);
}
} else if (Key.isDown(dKeyCodeArray[9])) {
getMyCorners(_local2.x - _local2.speed, _local2.y, _local2);
if ((!_local2.climb) or (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright)) {
_local2.vector = "left";
_local5 = _root.moveChar(_local2, -1, 0);
}
}
if (Key.isDown(dKeyCodeArray[17])) {
if (_local2.flying) {
getMyCorners(_local2.x, _local2.y - _local2.speed, _local2);
if (((_local2.downleft and _local2.upleft) and _local2.upright) and _local2.downright) {
_local5 = _root.moveChar(_local2, 0, -1);
}
} else if ((!_local2.jump) and checkUpLadder(_local2)) {
_local5 = _root.climb(_local2, -1);
}
}
if (_local2.jump) {
_local5 = _root.jump(_local2);
}
if ((!_local5) && (!_local2.climb)) {
_local2.rolling = false;
if ((_local2.clip._currentframe != 1) && (_local2.clip._currentframe != 2)) {
if (_local2.vector == "right") {
_local2.clip.gotoAndStop("standRight");
} else if (_local2.vector == "left") {
_local2.clip.gotoAndStop("standLeft");
}
}
if (_local2.energy < _local2.energyMax) {
_local2.energy = _local2.energy + 0.1;
}
} else if (_local2.climb && (!_local5)) {
_local2.rolling = false;
_local2.clip.clip.stop();
}
if ((_local2.health < _local2.healthMax) && (_local2.linkage == "Wolverine")) {
_local2.health = _local2.health + 0.05;
}
if (lava) {
if (_local2.clip.hitTest(lava)) {
inflictDamage(_local2, _local2.healthMax);
}
}
if (pit) {
if (_local2.clip.hitTest(pit)) {
inflictDamage(_local2, _local2.healthMax);
}
}
for (m in movingItems) {
if (_root.tiles[movingItems[m]].damage == undefined) {
_root.tiles[movingItems[m]].jumpspeed = _root.tiles[movingItems[m]].jumpspeed + 2;
if (_root.tiles[movingItems[m]].jumpspeed > (game.tileH * 0.5)) {
_root.tiles[movingItems[m]].jumpspeed = game.tileH * 0.5;
}
if (_root.tiles[movingItems[m]].vector == "right") {
getMyCorners(_root.tiles[movingItems[m]]._x + firePowerSpeed, _root.tiles[movingItems[m]]._y + _root.tiles[movingItems[m]].jumpspeed, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].upright) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x + firePowerSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
} else {
getMyCorners(_root.tiles[movingItems[m]]._x - firePowerSpeed, _root.tiles[movingItems[m]]._y + _root.tiles[movingItems[m]].jumpspeed, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].upleft) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x - firePowerSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
}
getMyCorners(_root.tiles[movingItems[m]]._x, _root.tiles[movingItems[m]]._y + _root.tiles[movingItems[m]].jumpspeed, _root.tiles[movingItems[m]]);
if (((!_root.tiles[movingItems[m]].downleft) || (!_root.tiles[movingItems[m]].downright)) || (checkIfOnCloud(_root.tiles[movingItems[m]]))) {
_root.tiles[movingItems[m]].jumpspeed = _root.tiles[movingItems[m]].jumpstart;
} else {
_root.tiles[movingItems[m]]._y = _root.tiles[movingItems[m]]._y + _root.tiles[movingItems[m]].jumpspeed;
}
_root.tiles[movingItems[m]].xtile = Math.floor(_root.tiles[movingItems[m]]._x / game.tileW);
_root.tiles[movingItems[m]].ytile = Math.floor(_root.tiles[movingItems[m]]._y / game.tileH);
if (((char1.ytile == _root.tiles[movingItems[m]].ytile) && (char1.xtile == _root.tiles[movingItems[m]].xtile)) && (_root.tiles[movingItems[m]].spawner != _root.char1)) {
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char1, 10, 1);
} else {
inflictDamage(_root.char1, 10, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
if (((char2.ytile == _root.tiles[movingItems[m]].ytile) && (char2.xtile == _root.tiles[movingItems[m]].xtile)) && (_root.tiles[movingItems[m]].spawner != _root.char2)) {
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char2, 10, 1);
} else {
inflictDamage(_root.char2, 10, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
if (_root.tiles[movingItems[m]].hitTest(flier.clip)) {
dropStuff();
}
} else if (!_root.tiles[movingItems[m]].sentinel) {
_root.tiles[movingItems[m]].xtile = Math.floor(_root.tiles[movingItems[m]]._x / game.tileW);
_root.tiles[movingItems[m]].ytile = Math.floor(_root.tiles[movingItems[m]]._y / game.tileH);
if (((char1.ytile == _root.tiles[movingItems[m]].ytile) && (char1.xtile == _root.tiles[movingItems[m]].xtile)) && (_root.tiles[movingItems[m]].spawner != _root.char1)) {
if (_root.tiles[movingItems[m]].damage == 4) {
playSound("hit1", _root.tiles[movingItems[m]].spawner);
} else {
playSound("hit2", _root.tiles[movingItems[m]].spawner);
}
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char1, _root.tiles[movingItems[m]].damage, 1);
} else {
inflictDamage(_root.char1, _root.tiles[movingItems[m]].damage, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
if (((char2.ytile == _root.tiles[movingItems[m]].ytile) && (char2.xtile == _root.tiles[movingItems[m]].xtile)) && (_root.tiles[movingItems[m]].spawner != _root.char2)) {
if (_root.tiles[movingItems[m]].damage == 4) {
playSound("hit1", _root.tiles[movingItems[m]].spawner);
} else {
playSound("hit2", _root.tiles[movingItems[m]].spawner);
}
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char2, _root.tiles[movingItems[m]].damage, 1);
} else {
inflictDamage(_root.char2, _root.tiles[movingItems[m]].damage, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
if (_root.tiles[movingItems[m]].hitTest(flier.clip)) {
if (_root.tiles[movingItems[m]].damage == 4) {
playSound("hit1", _root.tiles[movingItems[m]].spawner);
} else {
playSound("hit2", _root.tiles[movingItems[m]].spawner);
}
dropStuff();
}
var _local3 = _root.tiles[movingItems[m]].xtile;
var _local4 = _root.tiles[movingItems[m]].ytile;
if (game.currentMap == 3) {
if (game[(("t_" + _local4) + "_") + _local3].carrying && (game[(("t_" + _local4) + "_") + _local3].frame == 26)) {
game[(("t_" + _local4) + "_") + _local3].carrying = false;
_root.tiles[(("t_" + _local4) + "_") + _local3].gotoAndStop(game[(("t_" + _local4) + "_") + _local3].noncarryingTile);
_root.tiles[(("t_" + _local4) + "_") + _local3].timer = respawnItemDelay + random(respawnItemDelay);
_root.tiles[movingItems[m]].spawner.energy = _root.tiles[movingItems[m]].spawner.energy + 25;
if (_root.tiles[movingItems[m]].spawner.energy >= _root.tiles[movingItems[m]].spawner.energyMax) {
_root.tiles[movingItems[m]].spawner.energy = _root.tiles[movingItems[m]].spawner.energyMax;
}
if (_root.tiles[movingItems[m]].damage == 4) {
playSound("hit1", _root.tiles[movingItems[m]].spawner);
} else {
playSound("hit2", _root.tiles[movingItems[m]].spawner);
}
carryingItems.push((("t_" + _local4) + "_") + _local3);
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
} else if (game.currentMap < 3) {
if (_root.tiles[movingItems[m]].vector == "right") {
_local3 = _root.tiles[movingItems[m]].xtile + 1;
} else {
_local3 = _root.tiles[movingItems[m]].xtile - 1;
}
if (game[(("t_" + _local4) + "_") + _local3].carrying) {
if (_root.tiles[movingItems[m]].damage == 4) {
playSound("hit1", _root.tiles[movingItems[m]].spawner);
} else {
playSound("hit2", _root.tiles[movingItems[m]].spawner);
}
game[(("t_" + _local4) + "_") + _local3].carrying = false;
_root.tiles[(("t_" + _local4) + "_") + _local3].gotoAndStop(game[(("t_" + _local4) + "_") + _local3].noncarryingTile);
_root.tiles[(("t_" + _local4) + "_") + _local3].timer = respawnItemDelay;
_root.tiles.attachMovie("items", "item" + depth, depth);
_root.tiles["item" + depth].index = spawnItems.length;
spawnItems.push("item" + depth);
if (random(2) == 0) {
_root.tiles["item" + depth].movable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "mushroom";
_root.tiles["item" + depth].gotoAndStop("mushroom");
} else {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].type = "flower";
_root.tiles["item" + depth].gotoAndStop("flower");
}
_root.tiles["item" + depth].height = _root.tiles["item" + depth]._height / 2;
_root.tiles["item" + depth].width = _root.tiles["item" + depth]._width / 2;
_root.tiles["item" + depth]._x = _root.tiles[(("t_" + _local4) + "_") + _local3]._x + _root.tiles["item" + depth].width;
_root.tiles["item" + depth]._y = (_root.tiles[(("t_" + _local4) + "_") + _local3]._y - game.tileW) + _root.tiles["item" + depth].height;
depth++;
carryingItems.push((("t_" + _local4) + "_") + _local3);
}
}
if (_root.tiles[movingItems[m]].vector == "right") {
getMyCorners(_root.tiles[movingItems[m]]._x, _root.tiles[movingItems[m]]._y, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].upright) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x + firePowerSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
} else {
getMyCorners(_root.tiles[movingItems[m]]._x, _root.tiles[movingItems[m]]._y, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].upleft) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x - firePowerSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
}
} else {
if (_root.tiles[movingItems[m]].vector == "right") {
getMyCorners(_root.tiles[movingItems[m]]._x + sentinelBulletSpeed, _root.tiles[movingItems[m]]._y + sentinelBulletSpeed, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].downright) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x + sentinelBulletSpeed;
_root.tiles[movingItems[m]]._y = _root.tiles[movingItems[m]]._y + sentinelBulletSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
} else if (_root.tiles[movingItems[m]].vector == "left") {
getMyCorners(_root.tiles[movingItems[m]]._x - sentinelBulletSpeed, _root.tiles[movingItems[m]]._y + sentinelBulletSpeed, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].downleft) {
_root.tiles[movingItems[m]]._x = _root.tiles[movingItems[m]]._x - sentinelBulletSpeed;
_root.tiles[movingItems[m]]._y = _root.tiles[movingItems[m]]._y + sentinelBulletSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
} else {
getMyCorners(_root.tiles[movingItems[m]]._x, _root.tiles[movingItems[m]]._y + sentinelBulletSpeed, _root.tiles[movingItems[m]]);
if (_root.tiles[movingItems[m]].downleft && (_root.tiles[movingItems[m]].downright)) {
_root.tiles[movingItems[m]]._y = _root.tiles[movingItems[m]]._y + sentinelBulletSpeed;
} else {
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
}
_root.tiles[movingItems[m]].xtile = Math.floor(_root.tiles[movingItems[m]]._x / game.tileW);
_root.tiles[movingItems[m]].ytile = Math.floor(_root.tiles[movingItems[m]]._y / game.tileH);
if ((char1.ytile == _root.tiles[movingItems[m]].ytile) && (char1.xtile == _root.tiles[movingItems[m]].xtile)) {
laserHitSnd.start();
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char1, _root.tiles[movingItems[m]].damage, 1);
} else {
inflictDamage(_root.char1, _root.tiles[movingItems[m]].damage, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
if ((char2.ytile == _root.tiles[movingItems[m]].ytile) && (char2.xtile == _root.tiles[movingItems[m]].xtile)) {
laserHitSnd.start();
if (_root.tiles[movingItems[m]].vector == "right") {
inflictDamage(_root.char2, _root.tiles[movingItems[m]].damage, 1);
} else {
inflictDamage(_root.char2, _root.tiles[movingItems[m]].damage, -1);
}
removeMovieClip(_root.tiles[movingItems[m]]);
movingItems.splice(m, 1);
continue;
}
}
}
UI.p1Display.life.text = char1.life;
UI.p2Display.life.text = char2.life;
UI.p1Display.healthPercent.display.text = Math.round(char1.health);
UI.p1Display.energyPercent.display.text = Math.round(char1.energy);
UI.p2Display.healthPercent.display.text = Math.round(char2.health);
UI.p2Display.energyPercent.display.text = Math.round(char2.energy);
UI.p1Display.healthMeter.gotoAndStop(101 - Math.round((char1.health / char1.healthMax) * 100));
UI.p1Display.energyMeter.gotoAndStop(101 - Math.round((char1.energy / char1.energyMax) * 100));
UI.p2Display.healthMeter.gotoAndStop(101 - Math.round((char2.health / char2.healthMax) * 100));
UI.p2Display.energyMeter.gotoAndStop(101 - Math.round((char2.energy / char2.energyMax) * 100));
for (j in carryingItems) {
if (_root.tiles[carryingItems[j]].timer > 0) {
_root.tiles[carryingItems[j]].timer--;
if (_root.tiles[carryingItems[j]].timer == 0) {
_root.tiles[carryingItems[j]].gotoAndStop(game[carryingItems[j]].carryingTile);
game[carryingItems[j]].carrying = true;
carryingItems.splice(j, 1);
}
}
}
for (k in spawnItems) {
if (_root.tiles[spawnItems[k]].movable) {
getMyCorners(_root.tiles[spawnItems[k]]._x, _root.tiles[spawnItems[k]]._y + _root.tiles[spawnItems[k]].speed, _root.tiles[spawnItems[k]]);
if ((_root.tiles[spawnItems[k]].downright && (_root.tiles[spawnItems[k]].downleft)) && (!checkIfOnCloud(_root.tiles[spawnItems[k]]))) {
_root.tiles[spawnItems[k]]._y = _root.tiles[spawnItems[k]]._y + _root.tiles[spawnItems[k]].speed;
} else if (_root.tiles[spawnItems[k]].vector == "right") {
getMyCorners(_root.tiles[spawnItems[k]]._x + _root.tiles[spawnItems[k]].speed, _root.tiles[spawnItems[k]]._y, _root.tiles[spawnItems[k]]);
if (_root.tiles[spawnItems[k]].upright && (_root.tiles[spawnItems[k]].downright)) {
_root.tiles[spawnItems[k]]._x = _root.tiles[spawnItems[k]]._x + _root.tiles[spawnItems[k]].speed;
} else {
_root.tiles[spawnItems[k]].vector = "left";
}
} else if (_root.tiles[spawnItems[k]].vector == "left") {
getMyCorners(_root.tiles[spawnItems[k]]._x - _root.tiles[spawnItems[k]].speed, _root.tiles[spawnItems[k]]._y, _root.tiles[spawnItems[k]]);
if (_root.tiles[spawnItems[k]].upleft && (_root.tiles[spawnItems[k]].downleft)) {
_root.tiles[spawnItems[k]]._x = _root.tiles[spawnItems[k]]._x - _root.tiles[spawnItems[k]].speed;
} else {
_root.tiles[spawnItems[k]].vector = "right";
}
} else if (random(2) == 0) {
_root.tiles[spawnItems[k]].vector = "right";
} else {
_root.tiles[spawnItems[k]].vector = "left";
}
}
if (_root.tiles[spawnItems[k]].dropable) {
getMyCorners(_root.tiles[spawnItems[k]]._x, _root.tiles[spawnItems[k]]._y + _root.tiles[spawnItems[k]].speed, _root.tiles[spawnItems[k]]);
if ((_root.tiles[spawnItems[k]].downright && (_root.tiles[spawnItems[k]].downleft)) && (!checkIfOnCloud(_root.tiles[spawnItems[k]]))) {
_root.tiles[spawnItems[k]]._y = _root.tiles[spawnItems[k]]._y + _root.tiles[spawnItems[k]].speed;
}
}
_root.tiles[spawnItems[k]].xtile = Math.floor(_root.tiles[spawnItems[k]]._x / game.tileW);
_root.tiles[spawnItems[k]].ytile = Math.floor(_root.tiles[spawnItems[k]]._y / game.tileH);
if ((char1.xtile == _root.tiles[spawnItems[k]].xtile) && (char1.ytile == _root.tiles[spawnItems[k]].ytile)) {
if (_root.tiles[spawnItems[k]].type == "mushroom") {
getMushroomSnd.start();
char1.health = char1.health + 40;
if (char1.health >= char1.healthMax) {
char1.health = char1.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "flower") {
getMushroomSnd.start();
char1.energy = char1.energy + 25;
if (char1.energy >= char1.energyMax) {
char1.energy = char1.energyMax;
}
} else if (_root.tiles[spawnItems[k]].type == "sHealth") {
sItemPickupSnd.start();
char1.health = char1.health + 10;
if (char1.health >= char1.healthMax) {
char1.health = char1.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "bHealth") {
bItemPickupSnd.start();
char1.health = char1.health + 80;
if (char1.health >= char1.healthMax) {
char1.health = char1.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "bEnergy") {
bItemPickupSnd.start();
char1.energy = char1.energy + 40;
if (char1.energy >= char1.energyMax) {
char1.energy = char1.energyMax;
}
} else if (_root.tiles[spawnItems[k]].type == "sEnergy") {
sItemPickupSnd.start();
char1.energy = char1.energy + 5;
if (char1.energy >= char1.energyMax) {
char1.energy = char1.energyMax;
}
}
removeMovieClip(_root.tiles[spawnItems[k]]);
spawnItems.splice(k, 1);
continue;
}
if ((char2.xtile == _root.tiles[spawnItems[k]].xtile) && (char2.ytile == _root.tiles[spawnItems[k]].ytile)) {
if (_root.tiles[spawnItems[k]].type == "mushroom") {
getMushroomSnd.start();
char2.health = char2.health + 40;
if (char2.health >= char2.healthMax) {
char2.health = char2.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "flower") {
getMushroomSnd.start();
char2.energy = char2.energy + 25;
if (char2.energy >= char2.energyMax) {
char2.energy = char2.energyMax;
}
} else if (_root.tiles[spawnItems[k]].type == "sHealth") {
sItemPickupSnd.start();
char2.health = char2.health + 10;
if (char2.health >= char2.healthMax) {
char2.health = char2.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "bHealth") {
bItemPickupSnd.start();
char2.health = char2.health + 80;
if (char2.health >= char2.healthMax) {
char2.health = char2.healthMax;
}
} else if (_root.tiles[spawnItems[k]].type == "bEnergy") {
bItemPickupSnd.start();
char2.energy = char2.energy + 40;
if (char2.energy >= char2.energyMax) {
char2.energy = char2.energyMax;
}
} else if (_root.tiles[spawnItems[k]].type == "sEnergy") {
sItemPickupSnd.start();
char2.energy = char2.energy + 5;
if (char2.energy >= char2.energyMax) {
char2.energy = char2.energyMax;
}
}
removeMovieClip(_root.tiles[spawnItems[k]]);
spawnItems.splice(k, 1);
continue;
}
}
char2.canPunch = false;
char1.canPunch = false;
if ((Math.abs(char1.xtile - char2.xtile) < 2) && (Math.abs(char1.ytile - char2.ytile) < 2)) {
if ((char1.xtile == char2.xtile) && (char1.ytile != char2.ytile)) {
if (((char1.ytile > char2.ytile) && (char2.jumpAttack)) && (char2.linkage != "Megaman")) {
char2.jumpAttack = false;
char2.jumpspeed = char2.jumpstart;
inflictDamage(_root.char1, 16);
jumpattackInterval2 = setInterval(clearJump, jumponDelay, _root.char2, "2");
playSound("jumponopp", char2);
} else if (((char1.ytile < char2.ytile) && (char1.jumpAttack)) && (char1.linkage != "Megaman")) {
char1.jumpAttack = false;
char1.jumpspeed = char1.jumpstart;
inflictDamage(_root.char2, 16);
jumpattackInterval1 = setInterval(clearJump, jumponDelay, _root.char1, "1");
playSound("jumponopp", char1);
}
} else if ((char1.ytile == char2.ytile) && (char1.xtile != char2.xtile)) {
checkForPunch();
} else if ((char1.ytile == char2.ytile) && (char1.xtile == char2.xtile)) {
checkForPunch();
if (char1.rolling && (char1.collideAttack)) {
if (char1.vector == "right") {
inflictDamage(_root.char2, 10, 1);
} else {
inflictDamage(_root.char2, 10, -1);
}
char1.collideAttack = false;
collisionInterval1 = setInterval(clearCollision, collisionDelay, _root.char1, "1");
}
if (char2.rolling && (char2.collideAttack)) {
if (char2.vector == "right") {
inflictDamage(_root.char1, 10, 1);
} else {
inflictDamage(_root.char1, 10, -1);
}
char2.collideAttack = false;
collisionInterval2 = setInterval(clearCollision, collisionDelay, _root.char2, "2");
}
}
}
if (game.currentMap == 5) {
var _local8 = {x:flier.clip._x, y:flier.clip._y};
flier.localToGlobal(_local8);
var _local6 = Math.floor((_local8.x + 250) / game.tileW);
var _local7 = Math.floor((_local8.y + 130) / game.tileH);
if (char1.clip.hitTest(flier.clip)) {
if ((((_local7 > char1.ytile) && (char1.jumpAttack)) && (char1.linkage != "Megaman")) && (char1.linkage != "Wolverine")) {
char1.jumpAttack = false;
char1.jumpspeed = char1.jumpstart;
dropStuff();
jumpattackInterval1 = setInterval(clearJump, jumponDelay, _root.char1, "1");
}
}
if (char2.clip.hitTest(flier.clip)) {
if ((((_local7 > char2.ytile) && (char2.jumpAttack)) && (char2.linkage != "Megaman")) && (char2.linkage != "Wolverine")) {
char2.jumpAttack = false;
char2.jumpspeed = char2.jumpstart;
dropStuff();
jumpattackInterval2 = setInterval(clearJump, jumponDelay, _root.char2, "2");
}
}
if (logging) {
trace((((char1.linkage + " : ") + char1.xtile) + " : ") + char1.ytile);
trace((((char2.linkage + " : ") + char2.xtile) + " : ") + char2.ytile);
trace((("f: " + _local6) + " : ") + _local7);
}
if ((char1.ytile == (_local7 + 1)) && (Math.abs(char1.xtile - _local6) < 2)) {
char1.canPunchFlier = false;
if (char1.xtile > _local6) {
if ((char1.vector == "left") && (Math.abs(char1.x - (_local8.x + 250)) <= char1.punchDistance)) {
char1.canPunchFlier = true;
}
} else if (char1.xtile < _local6) {
if ((char1.vector == "right") && (Math.abs(char1.x - (_local8.x + 250)) <= char1.punchDistance)) {
char1.canPunchFlier = true;
}
} else {
char1.canPunchFlier = true;
}
}
if ((char2.ytile == (_local7 + 1)) && (Math.abs(char2.xtile - _local6) < 2)) {
char2.canPunchFlier = false;
if (char2.xtile > _local6) {
if ((char2.vector == "left") && (Math.abs(char2.x - (_local8.x + 250)) <= char2.punchDistance)) {
char2.canPunchFlier = true;
}
} else if (char2.xtile < _local6) {
if ((char2.vector == "right") && (Math.abs(char2.x - (_local8.x + 250)) <= char2.punchDistance)) {
char2.canPunchFlier = true;
}
} else {
char2.canPunchFlier = true;
}
}
}
if (_root.lava) {
lava.count = Math.round((getTimer() - lava.startTime) / 1000);
if (lava.staying) {
if (lava.count >= lava.stayTime) {
lava.staying = false;
lava.startTime = getTimer();
lava.count = 0;
lava.gotoAndPlay("rise");
}
} else if (lava.count >= lava.fallTime) {
lava.count = 0;
lava.startTime = getTimer();
lava.staying = true;
lava.gotoAndPlay("fall");
}
}
if (game.currentMap == 5) {
flier.count = Math.round((getTimer() - flier.startTime) / 1000);
if (flier.relaxing) {
if (flier.count >= flier.stayTime) {
flier.relaxing = false;
flier.startTime = getTimer();
flier.count = 0;
flier.fireTime = 1 + random(9);
flier.play();
}
} else if (flier.count >= flier.fireTime) {
flier.startTime = getTimer();
flier.count = 0;
flier.fireTime = 1 + random(9);
addFlierBullets();
}
}
if (game.currentMap == 6) {
levelBg.head1.count = Math.round((getTimer() - levelBg.head1.startTime) / 1000);
if (levelBg.head1.count >= levelBg.head1.stayTime) {
levelBg.head1.startTime = getTimer();
levelBg.head1.count = 0;
levelBg.head1.play();
}
levelBg.head2.count = Math.round((getTimer() - levelBg.head2.startTime) / 1000);
if (levelBg.head2.count >= levelBg.head2.stayTime) {
levelBg.head2.startTime = getTimer();
levelBg.head2.count = 0;
levelBg.head2.play();
}
}
} else {
if ((char1.KO && (char1.linkage != "Megaman")) && (char1.linkage != "Wolverine")) {
_root.tiles.char1._y = _root.tiles.char1._y + char1.jumpspeed;
if ((char1.linkage != "Mario") && (char1.linkage != "Luigi")) {
char1.clip.gotoAndStop("deathPose");
}
char1.jumpspeed = char1.jumpspeed + char1.speed;
var _local8 = {x:50, y:_root.tiles.char1._y};
_root.tiles.localToGlobal(_local8);
if (_local8.y > 660) {
char1.life = char1.life - 1;
if (char1.life <= 0) {
_root.tiles.removeMovieClip();
_root.UI.removeMovieClip();
_root.lava.removeMovieClip();
_root.pit.removeMovieClip();
delete music;
winner = char2.linkage;
gotoAndStop ("gameOver");
} else {
respawn("char1");
}
char1.KO = false;
}
} else if (char1.KO) {
if (char1.clip._currentframe < 16) {
char1.life = char1.life - 1;
if (char1.life <= 0) {
_root.tiles.removeMovieClip();
_root.UI.removeMovieClip();
_root.lava.removeMovieClip();
_root.pit.removeMovieClip();
delete music;
winner = char2.linkage;
gotoAndStop ("gameOver");
} else {
char1.clip.gotoAndStop("deathPose");
koDelayInterval = setInterval(respawn, koDelay, "char1");
}
}
}
if ((char2.KO && (char2.linkage != "Megaman")) && (char2.linkage != "Wolverine")) {
_root.tiles.char2._y = _root.tiles.char2._y + char2.jumpspeed;
if ((char2.linkage != "Mario") && (char2.linkage != "Luigi")) {
char2.clip.gotoAndStop("deathPose");
}
char2.jumpspeed = char2.jumpspeed + char2.speed;
var _local8 = {x:50, y:_root.tiles.char2._y};
_root.tiles.localToGlobal(_local8);
if (_local8.y > 660) {
char2.life = char2.life - 1;
if (char2.life <= 0) {
_root.tiles.removeMovieClip();
_root.UI.removeMovieClip();
_root.lava.removeMovieClip();
_root.pit.removeMovieClip();
delete music;
winner = char1.linkage;
gotoAndStop ("gameOver");
} else {
respawn("char2");
}
char2.KO = false;
}
} else if (char2.KO) {
if (char2.clip._currentframe < 16) {
char2.life = char2.life - 1;
if (char2.life <= 0) {
_root.tiles.removeMovieClip();
_root.UI.removeMovieClip();
_root.lava.removeMovieClip();
_root.pit.removeMovieClip();
delete music;
winner = char1.linkage;
gotoAndStop ("gameOver");
} else {
char2.clip.gotoAndStop("deathPose");
koDelayInterval = setInterval(respawn, koDelay, "char2");
}
}
}
}
}
function dropStuff() {
var _local2 = 1 + random(80);
if (_local2 < 71) {
var _local3 = {x:flier.clip._x, y:flier.clip._y};
flier.localToGlobal(_local3);
_root.tiles.attachMovie("items", "item" + depth, depth, {_x:_local3.x + 250, _y:_local3.y + 130});
flier.gotoAndPlay(450);
_root.tiles["item" + depth].index = spawnItems.length;
spawnItems.push("item" + depth);
if (_local2 <= 25) {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].dropable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "sHealth";
_root.tiles["item" + depth].gotoAndStop("sHealth");
} else if (_local2 <= 35) {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].dropable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "bHealth";
_root.tiles["item" + depth].gotoAndStop("bHealth");
} else if (_local2 <= 45) {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].dropable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "sEnergy";
_root.tiles["item" + depth].gotoAndStop("sEnergy");
} else if (_local2 <= 70) {
_root.tiles["item" + depth].movable = false;
_root.tiles["item" + depth].dropable = true;
_root.tiles["item" + depth].speed = 4;
_root.tiles["item" + depth].type = "bEnergy";
_root.tiles["item" + depth].gotoAndStop("bEnergy");
}
_root.tiles["item" + depth].height = _root.tiles["item" + depth]._height / 2;
_root.tiles["item" + depth].width = _root.tiles["item" + depth]._width / 2;
depth++;
}
}
function respawn(whom) {
clearInterval(koDelayInterval);
switch (whom) {
case "char1" :
char1.jumpspeed = 0;
char1.xtile = 3;
if (game.currentMap == 2) {
char1.ytile = 5;
} else {
char1.ytile = 1;
}
char1.health = char1.healthMax;
char1.clip._x = (char1.x = (char1.xtile * game.tileW) + (game.tileW / 2));
char1.clip._y = (char1.y = (char1.ytile * game.tileW) + (game.tileW / 2));
char1.clip.gotoAndStop(char1.frame);
fall(_root.char1);
char1.KO = false;
break;
case "char2" :
char2.jumpspeed = 0;
char2.xtile = 7;
if (game.currentMap == 2) {
char2.ytile = 5;
} else {
char2.ytile = 1;
}
char2.health = char2.healthMax;
char2.clip._x = (char2.x = (char2.xtile * game.tileW) + (game.tileW / 2));
char2.clip._y = (char2.y = (char2.ytile * game.tileW) + (game.tileW / 2));
char2.clip.gotoAndStop(char2.frame);
fall(_root.char2);
char2.KO = false;
}
}
function sentinelShoot(which, where) {
var _local5;
var _local4;
var _local2;
var _local3;
if (which == "head1") {
if (where == "down") {
_local5 = 220;
_local4 = 250;
_local2 = "down";
_local3 = 0;
} else {
_local5 = 230;
_local4 = 260;
_local2 = "right";
_local3 = -45;
}
} else if (where == "down") {
_local5 = 650;
_local4 = 680;
_local2 = "down";
_local3 = 0;
} else {
_local5 = 640;
_local4 = 670;
_local2 = "left";
_local3 = 45;
}
_root.tiles.attachMovie("sentinelBullet", "fp" + depth, depth, {_x:_local5, _y:280, _rotation:_local3, vector:_local2, sentinel:true});
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
_root.tiles["fp" + depth].damage = 7;
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
_root.tiles.attachMovie("sentinelBullet", "fp" + depth, depth, {_x:_local4, _y:280, _rotation:_local3, vector:_local2, sentinel:true});
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
_root.tiles["fp" + depth].damage = 7;
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
}
function addFlierBullets() {
flierShootSnd.start();
var _local2 = {x:flier.clip._x, y:flier.clip._y};
flier.localToGlobal(_local2);
_root.tiles.attachMovie("metoolBullet", "fp" + depth, depth, {_x:_local2.x + 250, _y:_local2.y + 130, vector:"right", sentinel:true});
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
_root.tiles["fp" + depth].damage = 10;
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
_root.tiles.attachMovie("metoolBullet", "fp" + depth, depth, {_x:_local2.x + 250, _y:_local2.y + 130, vector:"left", sentinel:true});
_root.tiles["fp" + depth].height = 5;
_root.tiles["fp" + depth].width = 5;
_root.tiles["fp" + depth].damage = 10;
_root.tiles["fp" + depth].index = movingItems.length;
movingItems.push("fp" + depth);
depth++;
}
fscommand ("allowscale", false);
fscommand ("allowscale", false);
var logging = false;
_root.onMouseDown = function () {
logging = true;
};
_root.onMouseUp = function () {
logging = false;
};
var lavaRiseMin = 30;
var koDelay = 2500;
var koDelayInterval;
var lavaRiseInterval = 90;
var pattackDelay = 500;
var nattackDelay = 500;
var eattackDelay = 4000;
var blinkDelay = 500;
var blinkInterval1;
var blinkInterval2;
var alphablinkDelay = 150;
var alphablinkInterval1;
var alphablinkInterval2;
var alphablinkclearInterval1;
var alphablinkclearInterval2;
var respawnItemDelay = 600;
var jumpDelay = 100;
var jumpInterval1;
var jumpInterval2;
var jumponDelay = 500;
var punchDelay = 200;
var collisionDelay = 500;
var fallingThroughDelay = 750;
var fallingThroughInterval1;
var fallingThroughInterval2;
var jumpattackInterval1;
var collisionInterval1;
var jumpattackInterval2;
var collisionInterval2;
var punchInterval1;
var punchInterval2;
var pattackInterval1;
var nattackInterval1;
var eattackInterval1;
var pattackInterval2;
var nattackInterval2;
var eattackInterval2;
var winner = "";
var depth = 11000;
var firePowerSpeed = 6;
var sentinelBulletSpeed = 12;
var movingItems = new Array();
var spawnItems = new Array();
var carryingItems = new Array();
var maxLevels = 6;
var musicLinkArray = new Array(maxLevels);
musicLinkArray[0] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/Super Mario World - World 1.mp3";
musicLinkArray[1] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/Super Mario World - Castle.mp3";
musicLinkArray[2] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/Sonic 2 - Green Hill.mp3";
musicLinkArray[3] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/Sonic 2 - Casino Night.mp3";
musicLinkArray[4] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/Mega Man 7 End Boss.mp3";
musicLinkArray[5] = "http://www.vizzed.com/VizzedBoardFiles/vizzedflashbash/music/X-Men Mutant Apocalypse.mp3";
var music = new Sound();
music.onSoundComplete = function () {
music.start();
};
music.loadSound(musicLinkArray[level - 1], true);
var laserHitSnd = new Sound();
laserHitSnd.attachSound("laserHit");
var getMushroomSnd = new Sound();
getMushroomSnd.attachSound("getMushroom");
var hitItemBlockSnd = new Sound();
hitItemBlockSnd.attachSound("hitItemBlock");
var mlFireballSnd = new Sound();
mlFireballSnd.attachSound("mlFireball");
var mlJumpSnd = new Sound();
mlJumpSnd.attachSound("mlJump");
var mlJumpOnOppSnd = new Sound();
mlJumpOnOppSnd.attachSound("mlJumpOnOpp");
var mlKoSnd = new Sound();
mlKoSnd.attachSound("mlKo");
var mmPowerShotSnd = new Sound();
mmPowerShotSnd.attachSound("mmPowerShot");
var mmPowerShotHitSnd = new Sound();
mmPowerShotHitSnd.attachSound("mmPowerShotHit");
var mmBulletHitSnd = new Sound();
mmBulletHitSnd.attachSound("mmBulletHit");
var mmJumpSnd = new Sound();
mmJumpSnd.attachSound("mmJump");
var mmKoSnd = new Sound();
mmKoSnd.attachSound("mmKo");
var mmLandSnd = new Sound();
mmLandSnd.attachSound("mmLand");
var flierShootSnd = new Sound();
flierShootSnd.attachSound("flierShoot");
var bItemPickupSnd = new Sound();
bItemPickupSnd.attachSound("bItemPickup");
var sItemPickupSnd = new Sound();
sItemPickupSnd.attachSound("sItemPickup");
var mmShootSnd = new Sound();
mmShootSnd.attachSound("mmShoot");
var energyBoxBreakSnd = new Sound();
energyBoxBreakSnd.attachSound("energyBoxBreak");
var coinsSnd = new Sound();
coinsSnd.attachSound("coins");
var trampolineSnd = new Sound();
trampolineSnd.attachSound("trampoline");
var stJumpSnd = new Sound();
stJumpSnd.attachSound("stJump");
var stJumpOnOppSnd = new Sound();
stJumpOnOppSnd.attachSound("stJumpOnOpp");
var stKoSnd = new Sound();
stKoSnd.attachSound("stKo");
var stSpinSnd = new Sound();
stSpinSnd.attachSound("stSpin");
var wolverineClawHitSnd = new Sound();
wolverineClawHitSnd.attachSound("wolverineClawHit");
var wolverineClawSwingSnd = new Sound();
wolverineClawSwingSnd.attachSound("wolverineClawSwing");
myMap1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0], [10, 0, 0, 0, 10, 10, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 9, 0, 15, 14, 0, 0, 0, 0, 0, 0, 0, 15, 22, 22, 14, 0, 0, 2, 3, 0], [10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 13, 13, 13, 11, 0, 0, 0, 0, 0, 0, 15, 22, 22, 14, 0, 0, 6, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 0, 0, 15, 22, 22, 14, 0, 0, 6, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 12, 13, 13, 13, 13, 13, 13, 11, 6, 1, 0], [10, 0, 0, 10, 10, 17, 10, 10, 0, 10, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 10, 0, 0, 15, 22, 22, 22, 22, 22, 22, 14, 6, 1, 0], [10, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 15, 22, 22, 22, 17, 22, 22, 14, 6, 1, 0], [10, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 15, 22, 22, 22, 22, 22, 22, 14, 6, 1, 0], [19, 20, 20, 20, 20, 20, 20, 20, 20, 18, 17, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 15, 22, 22, 22, 22, 22, 22, 14, 6, 1, 0], [23, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0, 0, 0, 0, 0, 0, 15, 8, 22, 22, 22, 14, 0, 0, 0, 0, 15, 22, 22, 22, 22, 22, 22, 14, 6, 1, 0], [23, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0, 0, 0, 0, 0, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 18, 0], [23, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0, 0, 0, 0, 0, 23, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0], [23, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0, 0, 0, 0, 0, 23, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0], [23, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0, 0, 0, 0, 0, 23, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 21, 0]];
myMap2 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 0], [0, 9, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 0], [8, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 5], [17, 18, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 18], [17, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 18], [9, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 9, 4], [0, 19, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0], [0, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 0]];
myMap3 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [22, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0], [12, 2, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 0, 22, 0, 0], [8, 9, 9, 9, 9, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [8, 9, 9, 9, 9, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 19, 19, 0, 0], [12, 2, 2, 2, 2, 2, 2, 3, 16, 0, 12, 2, 4, 21, 21, 21, 21, 21, 21, 5, 2, 2, 2, 2, 2, 2, 3, 0], [8, 9, 9, 9, 9, 9, 9, 10, 16, 0, 8, 9, 10, 0, 0, 0, 0, 0, 0, 8, 9, 9, 9, 9, 9, 9, 10, 0], [8, 9, 9, 13, 14, 9, 9, 10, 16, 0, 8,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
if (level < 3) {
game = {tileW:24, tileH:24, currentMap:level};
} else if (level != 4) {
game = {tileW:32, tileH:32, currentMap:level};
} else {
game = {tileW:32, tileH:32, currentMap:level};
}
switch (game.currentMap) {
case 1 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 31;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = true;
game.Tile1.prototype.frame = 1;
game.Tile2 = function () {
};
game.Tile2.prototype.walkable = true;
game.Tile2.prototype.frame = 2;
game.Tile2.prototype.cloud = true;
game.Tile3 = function () {
};
game.Tile3.prototype.walkable = true;
game.Tile3.prototype.frame = 3;
game.Tile3.prototype.cloud = true;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = true;
game.Tile4.prototype.frame = 4;
game.Tile5 = function () {
};
game.Tile5.prototype.walkable = true;
game.Tile5.prototype.frame = 5;
game.Tile6 = function () {
};
game.Tile6.prototype.walkable = true;
game.Tile6.prototype.frame = 6;
game.Tile7 = function () {
};
game.Tile7.prototype.walkable = true;
game.Tile7.prototype.frame = 7;
game.Tile8 = function () {
};
game.Tile8.prototype.walkable = true;
game.Tile8.prototype.frame = 22;
game.Tile8.prototype.ladder = true;
game.Tile8.prototype.item = "ladder";
game.Tile9 = function () {
};
game.Tile9.prototype.walkable = true;
game.Tile9.prototype.frame = 31;
game.Tile9.prototype.ladder = true;
game.Tile9.prototype.item = "ladder";
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 10;
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.cloud = true;
game.Tile11.prototype.frame = 11;
game.Tile12 = function () {
};
game.Tile12.prototype.walkable = true;
game.Tile12.prototype.cloud = true;
game.Tile12.prototype.frame = 12;
game.Tile13 = function () {
};
game.Tile13.prototype.walkable = true;
game.Tile13.prototype.cloud = true;
game.Tile13.prototype.frame = 13;
game.Tile14 = function () {
};
game.Tile14.prototype.walkable = true;
game.Tile14.prototype.frame = 14;
game.Tile15 = function () {
};
game.Tile15.prototype.walkable = true;
game.Tile15.prototype.frame = 15;
game.Tile16 = function () {
};
game.Tile16.prototype.walkable = true;
game.Tile16.prototype.cloud = true;
game.Tile16.prototype.frame = 16;
game.Tile17 = function () {
};
game.Tile17.prototype.walkable = false;
game.Tile17.prototype.carrying = true;
game.Tile17.prototype.carryingTile = 17;
game.Tile17.prototype.noncarryingTile = 10;
game.Tile17.prototype.frame = 17;
game.Tile18 = function () {
};
game.Tile18.prototype.walkable = true;
game.Tile18.prototype.cloud = true;
game.Tile18.prototype.frame = 18;
game.Tile19 = function () {
};
game.Tile19.prototype.walkable = true;
game.Tile19.prototype.cloud = true;
game.Tile19.prototype.frame = 19;
game.Tile20 = function () {
};
game.Tile20.prototype.walkable = true;
game.Tile20.prototype.cloud = true;
game.Tile20.prototype.frame = 20;
game.Tile21 = function () {
};
game.Tile21.prototype.walkable = true;
game.Tile21.prototype.frame = 21;
game.Tile22 = function () {
};
game.Tile22.prototype.walkable = true;
game.Tile22.prototype.frame = 22;
game.Tile23 = function () {
};
game.Tile23.prototype.walkable = true;
game.Tile23.prototype.frame = 23;
game.Tile24 = function () {
};
game.Tile24.prototype.walkable = true;
game.Tile24.prototype.frame = 24;
game.Tile25 = function () {
};
game.Tile25.prototype.walkable = true;
game.Tile25.prototype.frame = 25;
game.Tile26 = function () {
};
game.Tile26.prototype.walkable = true;
game.Tile26.prototype.frame = 26;
game.Tile27 = function () {
};
game.Tile27.prototype.walkable = true;
game.Tile27.prototype.frame = 27;
game.Tile28 = function () {
};
game.Tile28.prototype.walkable = true;
game.Tile28.prototype.cloud = true;
game.Tile28.prototype.frame = 28;
game.Tile29 = function () {
};
game.Tile29.prototype.walkable = true;
game.Tile29.prototype.cloud = true;
game.Tile29.prototype.frame = 29;
game.Tile30 = function () {
};
game.Tile30.prototype.walkable = false;
game.Tile30.prototype.frame = 30;
game.Tile31 = function () {
};
game.Tile31.prototype.walkable = true;
game.Tile31.prototype.cloud = true;
game.Tile31.prototype.frame = 32;
game.Tile31.prototype.ladder = true;
game.Tile31.prototype.item = "ladder";
break;
case 2 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 20;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.carrying = true;
game.Tile1.prototype.carryingTile = 1;
game.Tile1.prototype.noncarryingTile = 2;
game.Tile1.prototype.frame = 1;
i = 2;
while (i <= 19) {
game["Tile" + i] = function () {
};
game["Tile" + i].prototype.walkable = false;
game["Tile" + i].prototype.frame = i;
i++;
}
break;
case 3 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 30;
game.Tile31 = function () {
};
game.Tile31.prototype.walkable = false;
game.Tile31.prototype.frame = 2;
game.Tile1 = function () {
};
game.Tile1.prototype.item = "rock";
game.Tile1.prototype.frame = 1;
game.Tile1.prototype.walkable = false;
i = 2;
while (i <= 29) {
game["Tile" + i] = function () {
};
if ((((i > 1) && (i < 6)) || (i == 12)) || (i == 21)) {
game["Tile" + i].prototype.cloud = true;
}
if ((((i == 13) || (i == 14)) || (i == 6)) || (i == 7)) {
game["Tile" + i].prototype.walkable = false;
} else {
game["Tile" + i].prototype.walkable = true;
}
game["Tile" + i].prototype.frame = i;
if (((((((i == 16) || (i == 19)) || (i == 22)) || (i == 23)) || (i == 28)) || (i == 29)) || (i == 26)) {
game["Tile" + i].prototype.carrying = true;
game["Tile" + i].prototype.carryingTile = i;
game["Tile" + i].prototype.noncarryingTile = 30;
}
i++;
}
break;
case 4 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 12;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 1;
game.Tile2 = function () {
};
game.Tile2.prototype.walkable = true;
game.Tile2.prototype.slope = -1;
game.Tile2.prototype.frame = 2;
game.Tile3 = function () {
};
game.Tile3.prototype.walkable = true;
game.Tile3.prototype.slope = 1;
game.Tile3.prototype.frame = 3;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = true;
game.Tile4.prototype.slope = -1;
game.Tile4.prototype.frame = 4;
game.Tile4.prototype.carrying = true;
game.Tile4.prototype.carryingTile = 4;
game.Tile4.prototype.noncarryingTile = 2;
game.Tile5 = function () {
};
game.Tile5.prototype.walkable = true;
game.Tile5.prototype.slope = 1;
game.Tile5.prototype.frame = 5;
game.Tile5.prototype.carrying = true;
game.Tile5.prototype.carryingTile = 5;
game.Tile5.prototype.noncarryingTile = 3;
i = 6;
while (i <= 11) {
game["Tile" + i] = function () {
};
game["Tile" + i].prototype.walkable = true;
game["Tile" + i].prototype.frame = i;
game["Tile" + i].prototype.carrying = true;
game["Tile" + i].prototype.carryingTile = i;
game["Tile" + i].prototype.noncarryingTile = 1;
i++;
}
break;
case 5 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 4;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = true;
game.Tile1.prototype.cloud = true;
game.Tile1.prototype.frame = 1;
game.Tile2 = function () {
};
game.Tile2.prototype.walkable = false;
game.Tile2.prototype.frame = 2;
game.Tile3 = function () {
};
game.Tile3.prototype.walkable = false;
game.Tile3.prototype.frame = 3;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = false;
game.Tile4.prototype.frame = 1;
game.Tile4.prototype.ladder = true;
game.Tile4.prototype.item = "ladder_l5";
game.Tile5 = function () {
};
game.Tile5.prototype.walkable = true;
game.Tile5.prototype.frame = 4;
game.Tile5.prototype.ladder = true;
game.Tile5.prototype.item = "ladder_l5";
break;
case 6 :
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
}
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char1);
fall(_root.char2);
stop();
Instance of Symbol 760 MovieClip [empty] "controller" in Frame 6
onClipEvent (enterFrame) {
_root.detectKeys();
}
Frame 7
Mario._visible = false;
Luigi._visible = false;
Tails._visible = false;
Sonic._visible = false;
Megaman._visible = false;
Wolverine._visible = false;
_root[winner]._visible = true;
Instance of Symbol 815 MovieClip in Frame 7
on (release) {
_root.gotoAndStop("menu");
}
Symbol 43 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 43 MovieClip Frame 2
_parent.base._visible = false;
Symbol 86 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 86 MovieClip Frame 2
_parent.base._visible = false;
Symbol 95 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 105 MovieClip Frame 2
_parent.base._visible = false;
Symbol 112 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 112 MovieClip Frame 2
_parent.base._visible = false;
Symbol 126 MovieClip Frame 30
stop();
Symbol 127 MovieClip [Megaman] Frame 1
stop();
Symbol 156 MovieClip [flier] Frame 1
stop();
this.relaxing = true;
this.stayTime = 15 + random(45);
this.fireTime = 1;
this.startTime = getTimer();
this.count = 0;
Symbol 174 MovieClip [mmBullete] Frame 13
gotoAndPlay ("loop");
Symbol 209 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 209 MovieClip Frame 2
_parent.base._visible = false;
Symbol 233 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 233 MovieClip Frame 2
_parent.base._visible = false;
Symbol 238 MovieClip Frame 3
stop();
Symbol 242 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 247 MovieClip Frame 2
_parent.base._visible = false;
Symbol 257 MovieClip Frame 1
_parent.base._visible = true;
stop();
Symbol 257 MovieClip Frame 2
_parent.base._visible = false;
Symbol 270 MovieClip Frame 35
stop();
Symbol 271 MovieClip [Wolverine] Frame 1
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 370 MovieClip [lava] Frame 3
prevFrame();
Symbol 370 MovieClip [lava] Frame 55
prevFrame();
Symbol 370 MovieClip [lava] Frame 57
Symbol 370 MovieClip [lava] Frame 106
this.stayTime = _root.lavaRiseMin + random(_root.lavaRiseInterval);
this.fallTime = 6 + random(115);
this.startTime = getTimer();
this.count = 0;
gotoAndPlay ("stay");
Symbol 500 MovieClip Frame 3
stop();
Symbol 512 MovieClip [Sonic] Frame 1
stop();
Symbol 575 MovieClip [Tails] Frame 1
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 600 MovieClip [Luigi] Frame 1
stop();
Symbol 634 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 1
stop();
Symbol 662 MovieClip [Mario] Frame 1
stop();
Symbol 778 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 70
circuit10.play();
circuit11.play();
Symbol 779 MovieClip Frame 81
circuit8.play();
circuit9.play();
Symbol 779 MovieClip Frame 93
circuit6.play();
circuit7.play();
Symbol 779 MovieClip Frame 105
circuit4.play();
circuit5.play();
Symbol 779 MovieClip Frame 119
circuit2.play();
circuit3.play();
Symbol 779 MovieClip Frame 134
circuit1.play();
Symbol 784 MovieClip Frame 10
circuit10.play();
circuit11.play();
Symbol 784 MovieClip Frame 21
circuit8.play();
circuit9.play();
Symbol 784 MovieClip Frame 33
circuit6.play();
circuit7.play();
Symbol 784 MovieClip Frame 45
circuit4.play();
circuit5.play();
Symbol 784 MovieClip Frame 59
circuit2.play();
circuit3.play();
Symbol 784 MovieClip Frame 74
circuit1.play();
Instance of Symbol 815 MovieClip in Symbol 820 MovieClip Frame 1
on (release) {
getURL ("http://www.vizzed.com/vizzedboard/thread.php?id=3664", "_blank");
}
Instance of Symbol 815 MovieClip in Symbol 820 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("options");
}
Instance of Symbol 815 MovieClip in Symbol 820 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("pselect");
}
Symbol 822 MovieClip Frame 82
circuit10.play();
circuit11.play();
Symbol 822 MovieClip Frame 93
circuit8.play();
circuit9.play();
Symbol 822 MovieClip Frame 105
circuit6.play();
circuit7.play();
Symbol 822 MovieClip Frame 117
circuit4.play();
circuit5.play();
Symbol 822 MovieClip Frame 131
circuit2.play();
circuit3.play();
Symbol 822 MovieClip Frame 146
circuit1.play();
Symbol 845 Button
on (release) {
reconfigKeys(0);
}
Symbol 846 Button
on (release) {
reconfigKeys(1);
}
Symbol 847 Button
on (release) {
reconfigKeys(3);
}
Symbol 855 Button
on (release) {
reconfigKeys(2);
}
Symbol 856 Button
on (release) {
reconfigKeys(8);
}
Symbol 857 Button
on (release) {
reconfigKeys(4);
}
Symbol 864 Button
on (release) {
reconfigKeys(5);
}
Symbol 865 Button
on (release) {
reconfigKeys(6);
}
Symbol 866 Button
on (release) {
reconfigKeys(7);
}
Symbol 870 Button
on (release) {
reconfigKeys(9);
}
Symbol 871 Button
on (release) {
reconfigKeys(10);
}
Symbol 872 Button
on (release) {
reconfigKeys(12);
}
Symbol 876 Button
on (release) {
reconfigKeys(11);
}
Symbol 877 Button
on (release) {
reconfigKeys(17);
}
Symbol 878 Button
on (release) {
reconfigKeys(13);
}
Symbol 882 Button
on (release) {
reconfigKeys(14);
}
Symbol 883 Button
on (release) {
reconfigKeys(15);
}
Symbol 884 Button
on (release) {
reconfigKeys(16);
}
Symbol 958 MovieClip Frame 1
stop();
Symbol 958 MovieClip Frame 5
_root.gotoScene();
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 13
_root.sentinelShoot(this._name, "down");
Symbol 1051 MovieClip Frame 16
stop();
Symbol 1051 MovieClip Frame 28
_root.sentinelShoot(this._name, "side");