Frame 1
fscommand ("showmenu", "true");
fscommand ("fullscreen", "false");
fscommand ("trapallkeys", "true");
fscommand ("allowscale", "false");
_quality = "LOW";
stopAllSounds();
eval ("damage" + p0dmg).removeMovieClip();
eval ("damage" + p1dmg).removeMovieClip();
p0balldmg.removeMovieClip();
p1balldmg.removeMovieClip();
p1hpmug.removeMovieClip();
p0hpmug.removeMovieClip();
menu._visible = false;
fg.removeMovieClip();
p0d._visible = false;
p1d._visible = false;
p0c._visible = false;
p1c._visible = false;
p0b._visible = false;
p1b._visible = false;
p0a._visible = false;
p1a._visible = false;
gamovr._visible = false;
p0leap._visible = false;
p1leap._visible = false;
p0ground._visible = false;
p1ground._visible = false;
p0break._visible = false;
p1break._visible = false;
play();
Frame 2
if (run2._currentframe == run1._currentframe) {
run2.gotoAndPlay((run1._currentframe + 10) % run1._totalframes);
}
Instance of Symbol 4 MovieClip "bar" in Frame 2
onClipEvent (enterFrame) {
this._width = 176 * (1 - (_root.getBytesLoaded() / _root.getBytesTotal()));
}
Instance of Symbol 37 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._x = _root.bar._x - (_root.bar._width / 2);
}
Frame 3
if (getBytesLoaded() != getBytesTotal()) {
gotoAndPlay (2);
} else {
gotoAndPlay (5);
}
Frame 765
function collision(x, y, w, h, b) {
j = 1;
alvls = "opaque.opaque";
s = eval (alvls + j);
c = 0;
while (s != null) {
if ((x <= (s._x + s._width)) && ((x + w) >= s._x)) {
if ((y <= (s._y + s._height)) && ((y + h) >= (s._y + yoffset))) {
if (b == -1) {
return(true);
}
if (b == 0) {
if ((c == 0) || (c > ((s._y - h) + yoffset))) {
c = (s._y - h) + yoffset;
}
} else if (b == 1) {
if ((c == 0) || (c < (s._y + s._height))) {
c = s._y + s._height;
}
} else if (b == 2) {
if ((c == 0) || (c > (s._x + s._width))) {
c = s._x + s._width;
}
} else if (b == 3) {
if ((c == 0) || (c < s._x)) {
c = s._x;
}
}
}
}
j++;
s = eval (alvls + j);
}
if (b == -1) {
return(false);
}
return(c);
}
function dmgcollision(x, y, w, h, s1) {
if ((x <= (s1._x + s1._width)) && ((x + w) >= s1._x)) {
if ((y <= (s1._y + s1._height)) && ((y + h) >= s1._y)) {
return(true);
}
}
return(false);
}
function setShadow(a, b) {
eval (("p" + a) + "b")._visible = b;
eval (("p" + a) + "c")._visible = b;
}
function setState(a, b) {
if (a == 0) {
p0state = b;
} else if (a == 1) {
p1state = b;
}
}
function setJump(a, b) {
if (a == 0) {
p0jump = b;
} else if (a == 1) {
p1jump = b;
}
}
function setDmg(a, b, x, y) {
if (a == 0) {
p0dmg = b;
p0dmgx = x;
p0dmgy = y;
} else if (a == 1) {
p1dmg = b;
p1dmgx = x;
p1dmgy = y;
}
}
function reposDmg(a, x, y) {
if (a == 0) {
eval ("damage" + p0dmg)._x = x + p0dmgx;
eval ("damage" + p0dmg)._y = y + p0dmgy;
} else if (a == 1) {
eval ("damage" + p1dmg)._x = x + p1dmgx;
eval ("damage" + p1dmg)._y = y + p1dmgy;
}
}
function InVertRange(n) {
return(Math.abs(p0a._y - p1a._y) < n);
}
function InHoriRange(n) {
x0 = p0a._x;
x1 = p1a._x;
if (p0a._xscale < 0) {
x0 = x0 - defwidth;
}
if (p1a._xscale < 0) {
x1 = x1 - defwidth;
}
return(Math.abs(x0 - x1) < n);
}
function Ground(a, noplay) {
if ((a == 0) && (p0jump == 0)) {
p0ground._rotation = 0;
if (p0a._xscale < 0) {
p0ground._x = p0a._x - 17;
} else {
p0ground._x = p0a._x + 15;
}
p0ground._y = p0a._y + defheight;
if ((!noplay) || (p0ground._currentframe == p0ground._totalframes)) {
p0ground.gotoAndPlay(1);
}
p0ground._visible = true;
} else if ((a == 1) && (p1jump == 0)) {
p1ground._rotation = 0;
if (p1a._xscale < 0) {
p1ground._x = p1a._x - 17;
} else {
p1ground._x = p1a._x + 15;
}
p1ground._y = p1a._y + defheight;
if ((!noplay) || (p1ground._currentframe == p1ground._totalframes)) {
p1ground.gotoAndPlay(1);
}
p1ground._visible = true;
}
}
function WallG(a, noplay) {
if (a == 0) {
p0ground._rotation = 90;
if (p0a._xscale < 0) {
p0ground._x = p0a._x - 7;
} else {
p0ground._x = p0a._x + 5;
}
p0ground._y = p0a._y + (defheight / 2);
if ((!noplay) || (p0ground._currentframe == p0ground._totalframes)) {
p0ground.gotoAndPlay(1);
}
p0ground._visible = true;
} else if (a == 1) {
p1ground._rotation = 90;
if (p1a._xscale < 0) {
p1ground._x = p1a._x - 7;
} else {
p1ground._x = p1a._x + 5;
}
p1ground._y = p1a._y + (defheight / 2);
if ((!noplay) || (p1ground._currentframe == p1ground._totalframes)) {
p1ground.gotoAndPlay(1);
}
p1ground._visible = true;
}
}
function Leap(a) {
if (a == 0) {
if (p0a._xscale < 0) {
p0leap._x = p0a._x - 17;
} else {
p0leap._x = p0a._x + 15;
}
p0leap._y = p0a._y + defheight;
p0leap.gotoAndPlay(1);
p0leap._visible = true;
} else if (a == 1) {
if (p1a._xscale < 0) {
p1leap._x = p1a._x - 17;
} else {
p1leap._x = p1a._x + 15;
}
p1leap._y = p1a._y + defheight;
p1leap.gotoAndPlay(1);
p1leap._visible = true;
}
}
function Break(a) {
if (a == 0) {
if (p0a._xscale < 0) {
p0break._x = p0a._x - 17;
} else {
p0break._x = p0a._x + 15;
}
p0break._y = p0a._y + defheight;
p0break.gotoAndPlay(1);
p0break._visible = true;
} else if (a == 1) {
if (p1a._xscale < 0) {
p1break._x = p1a._x - 17;
} else {
p1break._x = p1a._x + 15;
}
p1break._y = p1a._y + defheight;
p1break.gotoAndPlay(1);
p1break._visible = true;
}
}
function KeyToString(key) {
if (key == 8) {
return("Backspace");
}
if (key == 20) {
return("Caps Lock");
}
if (key == 17) {
return("Control");
}
if (key == 46) {
return("Delete");
}
if (key == 40) {
return("Down Arrow");
}
if (key == 35) {
return("End");
}
if (key == 13) {
return("Enter");
}
if (key == 27) {
return("Escape");
}
if (key == 36) {
return("Home");
}
if (key == 45) {
return("Insert");
}
if (key == 39) {
return("Right Arrow");
}
if (key == 34) {
return("Page Down");
}
if (key == 33) {
return("Page Up");
}
if (key == 39) {
return("Right Arrow");
}
if (key == 37) {
return("Left Arrow");
}
if (key == 16) {
return("Shift");
}
if (key == 32) {
return("Spacebar");
}
if (key == 9) {
return("Tab");
}
if (key == 38) {
return("Up Arrow");
}
if (key == 18) {
return("Alt");
}
if (key == 106) {
return("Numpad *");
}
if (key == 107) {
return("Numpad +");
}
if (key == 108) {
return("Numpad Enter");
}
if (key == 109) {
return("Numpad -");
}
if (key == 110) {
return("Numpad .");
}
if (key == 111) {
return("Numpad /");
}
if (key == 144) {
return("NumLock");
}
if (key == 186) {
return(": or ;");
}
if (key == 187) {
return("= or +");
}
if (key == 189) {
return("- or _");
}
if (key == 192) {
return("` or ~");
}
if (key == 219) {
return("[ or {");
}
if (key == 220) {
return("\\or |");
}
if (key == 221) {
return("] or }");
}
if (key == 222) {
return("\" or '");
}
if ((key > 95) && (key < 106)) {
return("Numpad " + String(key - 96));
}
if ((key > 111) && (key < 127)) {
return("F" + String(key - 111));
}
return(String.fromCharCode(key));
}
function createSprites() {
_root.attachMovie(("a" + lvl) + "opaque", "opaque", OPAQUE_Z);
opaque._visible = debug;
_root.attachMovie(p0chars, "p0a", P0A_Z);
_root.attachMovie(p0chars, "p0b", P0B_Z);
_root.attachMovie(p0chars, "p0c", P0C_Z);
_root.attachMovie(p0chars, "p0d", P0D_Z);
_root.attachMovie(p1chars, "p1a", P1A_Z);
_root.attachMovie(p1chars, "p1b", P1B_Z);
_root.attachMovie(p1chars, "p1c", P1C_Z);
_root.attachMovie(p1chars, "p1d", P1D_Z);
_root.attachMovie(("a" + lvl) + "fg", "fg", FG_Z);
bg.gotoAndStop(lvl);
bg._visible = !debug;
if (p1chars == p0chars) {
new Color("p0a").setTransform(p0trans);
}
new Color("p0b").setTransform(shadtrans);
new Color("p0c").setTransform(shadtrans);
new Color("p0d").setTransform(invtrans);
new Color("p1b").setTransform(shadtrans);
new Color("p1c").setTransform(shadtrans);
new Color("p1d").setTransform(invtrans);
p0b._alpha = 50;
p0c._alpha = 25;
p1b._alpha = 50;
p1c._alpha = 25;
p0b._visible = false;
p0c._visible = false;
p0d._visible = false;
p1b._visible = false;
p1c._visible = false;
p1d._visible = false;
}
function turnOffSecrets() {
lockSecrets();
unlock(secretmax);
poisonmode = false;
decaymode = false;
stoneskinmode = false;
suddenmode = false;
invismode = false;
blackoutmode = false;
virusmode = false;
icemode = false;
falldeathmode = false;
nofallmode = false;
upsidedownmode = false;
mirrormode = false;
jinxmode = false;
bouncemode = false;
powershmode = false;
jugglemode = false;
morphmode = false;
banzaimode = false;
heatseekmode = false;
}
function p0death() {
p0hp = 0;
p0a.gotoAndPlay("death");
if (soundon) {
p0snd.stop();
p0snd.attachSound("death");
p0snd.start(0.5, 1);
}
p0d._visible = false;
p0state = DEATH;
p0combo = 0;
p1combo = 0;
controlon = false;
p0jump = p0jump * -1;
p0invinc = invinclen;
}
function p1death() {
p1hp = 0;
p1state = DEATH;
p0combo = 0;
p1combo = 0;
p1jump = p1jump * -1;
p1invinc = invinclen;
p1a.gotoAndPlay("death");
p1snd.stop();
p1snd.attachSound("death");
if (soundon) {
p1snd.start(0.5, 1);
}
p1d._visible = false;
controlon = false;
}
function unlock(lvl) {
if ((lvl >= 2) && (suddens == "LOCKED")) {
suddens = "OFF";
}
if ((lvl >= 3) && (stoneskins == "LOCKED")) {
stoneskins = "OFF";
}
if ((lvl >= 4) && (ices == "LOCKED")) {
ices = "OFF";
}
if ((lvl >= 5) && (decays == "LOCKED")) {
decays = "OFF";
}
if ((lvl >= 6) && (bounces == "LOCKED")) {
bounces = "OFF";
}
if ((lvl >= 7) && (nofalls == "LOCKED")) {
nofalls = "OFF";
}
if ((lvl >= 8) && (falldeaths == "LOCKED")) {
falldeaths = "OFF";
}
if ((lvl >= 9) && (viruss == "LOCKED")) {
viruss = "OFF";
}
if ((lvl >= 10) && (powershs == "LOCKED")) {
powershs = "OFF";
}
if ((lvl >= 11) && (jinxs == "LOCKED")) {
jinxs = "OFF";
}
if ((lvl >= 12) && (poisons == "LOCKED")) {
poisons = "OFF";
}
if ((lvl >= 13) && (inviss == "LOCKED")) {
inviss = "OFF";
}
if ((lvl >= 14) && (blackouts == "LOCKED")) {
blackouts = "OFF";
}
if ((lvl >= 15) && (juggles == "LOCKED")) {
juggles = "OFF";
}
if ((lvl >= 16) && (mirrors == "LOCKED")) {
mirrors = "OFF";
}
if ((lvl >= 17) && (upsidedowns == "LOCKED")) {
upsidedowns = "OFF";
}
if ((lvl >= 18) && (banzais == "LOCKED")) {
morphs = "OFF";
}
if ((lvl >= 19) && (banzais == "LOCKED")) {
banzais = "OFF";
}
if ((lvl >= 20) && (heatseeks == "LOCKED")) {
heatseeks = "OFF";
}
if ((lvl >= 21) && (challengex == "LOCKED")) {
challengex = "UNLOCKED";
}
}
function lockSecrets() {
challengex = "LOCKED";
suddens = "LOCKED";
stoneskins = "LOCKED";
ices = "LOCKED";
decays = "LOCKED";
bounces = "LOCKED";
nofalls = "LOCKED";
falldeaths = "LOCKED";
viruss = "LOCKED";
powershs = "LOCKED";
jinxs = "LOCKED";
poisons = "LOCKED";
inviss = "LOCKED";
blackouts = "LOCKED";
juggles = "LOCKED";
mirrors = "LOCKED";
upsidedowns = "LOCKED";
banzais = "LOCKED";
heatseeks = "LOCKED";
}
function setLvl(noplay) {
uin = userin.toUpperCase();
i = secretmax + 1;
while (i <= 21) {
if (uin == getLvl(i)) {
secretlvl = i;
secretmax = Math.max(secretmax, secretlvl);
if (noplay != true) {
gotoSecret(i);
}
fadein.play();
unlock(i);
return(true);
}
i++;
}
return(false);
}
function gotoSecret(lvl) {
gotoAndStop(SECRETS_FRAME + (lvl * 2) +764);
}
function getLvl(lvl) {
if (lvl == 1) {
return(toStr(3029255069884));
}
if (lvl == 2) {
return(toStr(140894049845));
}
if (lvl == 3) {
return(toStr(2497221412));
}
if (lvl == 4) {
return(toStr(161195220));
}
if (lvl == 5) {
return(toStr(14370951207));
}
if (lvl == 6) {
return(toStr(106714521805038));
}
if (lvl == 7) {
return(toStr(4024170925439));
}
if (lvl == 8) {
return(toStr(78023550));
}
if (lvl == 9) {
return(toStr(301530468790));
}
if (lvl == 10) {
return(toStr(2881528538));
}
if (lvl == 11) {
return(toStr(2672347741802));
}
if (lvl == 12) {
return(toStr(285246277337740));
}
if (lvl == 13) {
return(toStr(301769230208));
}
if (lvl == 14) {
return(toStr(58768665758));
}
if (lvl == 15) {
return(toStr(208691560));
}
if (lvl == 16) {
return(toStr(1291103495097));
}
if (lvl == 17) {
return(toStr(6042189852));
}
if (lvl == 18) {
return(toStr(4571324751));
}
if (lvl == 19) {
return(toStr(2495321138));
}
if (lvl == 20) {
return(toStr(24302077414));
}
if (lvl == 21) {
return(toStr(3810354266));
}
}
function tostr(num) {
str = "";
p = 1;
while (num > 0) {
dec = num % Math.pow(MISC_Z, p);
val = dec / Math.pow(MISC_Z, p - 1);
str = String.fromCharCode((val + 39) + MISC_Z) + str;
num = num - dec;
p++;
}
return(str);
}
function p0morph() {
if (p0chars == "arayh1") {
p0chars = "fawn1";
} else {
p0chars = "arayh1";
}
i = p0a._xscale;
x = p0a._x;
y = p0a._y;
_root.attachMovie(p0chars, "p0a", P0A_Z);
p0a._xscale = i;
p0a._x = x;
p0a._y = y;
_root.attachMovie(p0chars, "p0b", P0B_Z);
p0b._xscale = i;
p0b._x = x;
p0b._y = y;
_root.attachMovie(p0chars, "p0c", P0C_Z);
p0c._xscale = i;
p0c._x = x;
p0c._y = y;
_root.attachMovie(p0chars, "p0d", P0D_Z);
p0d._xscale = i;
p0d._x = x;
p0d._y = y;
p0b._visible = false;
p0c._visible = false;
p0d._visible = false;
p0b._alpha = 50;
p0c._alpha = 25;
new Color("p0b").setTransform(shadtrans);
new Color("p0c").setTransform(shadtrans);
new Color("p0d").setTransform(invtrans);
}
function p1morph() {
if (p1chars == "arayh1") {
p1chars = "fawn1";
} else {
p1chars = "arayh1";
}
i = p1a._xscale;
x = p1a._x;
y = p1a._y;
_root.attachMovie(p1chars, "p1a", P1A_Z);
p1a._xscale = i;
p1a._x = x;
p1a._y = y;
_root.attachMovie(p1chars, "p1b", P1B_Z);
p1b._xscale = i;
p1b._x = x;
p1b._y = y;
_root.attachMovie(p1chars, "p1c", P1C_Z);
p1c._xscale = i;
p1c._x = x;
p1c._y = y;
_root.attachMovie(p1chars, "p1d", P1D_Z);
p1d._xscale = i;
p1d._x = x;
p1d._y = y;
p1b._visible = false;
p1c._visible = false;
p1d._visible = false;
p1b._alpha = 50;
p1c._alpha = 25;
new Color("p1b").setTransform(shadtrans);
new Color("p1c").setTransform(shadtrans);
new Color("p1d").setTransform(invtrans);
}
debug = false;
heatseekmode = false;
banzaimode = false;
morphmode = false;
if (startonce == null) {
secretlvl = 1;
secretmax = 1;
lockSecrets();
turnOffSecrets();
}
suddenmode = false;
stoneskinmode = false;
icemode = false;
decaymode = false;
bouncemode = false;
nofallmode = false;
falldeathmode = false;
virusmode = false;
powershmode = false;
jinxmode = false;
poisonmode = false;
invismode = false;
blackoutmode = false;
jugglemode = false;
upsidedownmode = false;
mirrormode = false;
startonce = 2;
p0chars = "arayh1";
p1chars = "arayh1";
normtrans = {RA:100, RB:0, GA:100, GB:0, BA:100, BB:0, AA:100, AB:0};
p0trans = {RA:100, RB:102, GA:100, GB:64, BA:100, BB:255, AA:100, AB:0};
invtrans = {RA:100, RB:255, GA:100, GB:255, BA:100, BB:255, AA:90, AB:0};
shadtrans = {RA:100, RB:100, GA:100, GB:60, BA:100, BB:255, AA:50, AB:0};
redtrans = {RA:100, RB:255, GA:100, GB:0, BA:100, BB:0, AA:100, AB:0};
virustrans = {RA:40, RB:0, GA:100, GB:80, BA:100, BB:40, AA:100, AB:0};
blacktrans = {RA:100, RB:-255, GA:100, GB:-255, BA:100, BB:-255, AA:100, AB:0};
darktrans = {RA:100, RB:-225, GA:100, GB:-225, BA:100, BB:-225, AA:100, AB:0};
p0ais = "human";
p1ais = "human";
p0ai = false;
p1ai = false;
lvls = "treetop";
lvl = 1;
bg.gotoAndStop(1);
p0elite = false;
p1elite = false;
p0hpx = 100;
p1hpx = 100;
dmgop._visible = false;
diff = 0.2;
hyper = false;
soundon = true;
musicon = true;
HPMUG0_Z = 98;
HPMUG1_Z = 99;
p0BALL_Z = 100;
p1BALL_Z = 101;
P1C_Z = 104;
P0C_Z = 105;
P1B_Z = 106;
P0B_Z = 107;
P1A_Z = 108;
P0A_Z = 109;
P1D_Z = 110;
P0D_Z = 111;
FG_Z = 112;
p0BALLDMG_Z = 113;
p1BALLDMG_Z = 114;
MENU_Z = 115;
GAMEOVER_Z = 116;
MISC_Z = 26;
SND_P0_Z = 204;
SND_P1_Z = 205;
SND_P0S_Z = 206;
SND_P1S_Z = 207;
SND_MUSIC_Z = 208;
SND_MENUOK_Z = 209;
SND_MENUBACK_Z = 210;
SND_MENUMUSIC_Z = 211;
SND_LIGHTNING_Z = 212;
OPAQUE_Z = 900;
createEmptyMovieClip("s_music", SND_MUSIC_Z);
createEmptyMovieClip("s_p0", SND_P0_Z);
createEmptyMovieClip("s_p1", SND_P1_Z);
createEmptyMovieClip("s_p0s", SND_P0S_Z);
createEmptyMovieClip("s_p1s", SND_P1S_Z);
createEmptyMovieClip("s_menu_music", SND_MENUMUSIC_Z);
createEmptyMovieClip("s_menu_ok", SND_MENUOK_Z);
createEmptyMovieClip("s_menu_back", SND_MENUBACK_Z);
createEmptyMovieClip("s_lightning", SND_LIGHTNING_Z);
snd_lightning = new Sound(s_lightning);
snd_lightning.attachSound("lightning");
snd_menumusic = new Sound(s_menu_music);
snd_menumusic.attachSound("dark");
snd_ok = new Sound(s_menu_ok);
snd_ok.attachSound("ok");
snd_back = new Sound(s_menu_back);
snd_back.attachSound("back");
p0snd_sword = new Sound(s_p0s);
p0snd_sword.attachSound("sword");
p0snd_sword.setVolume(50);
p1snd_sword = new Sound(s_p1s);
p1snd_sword.attachSound("sword");
p1snd_sword.setVolume(50);
music = new Sound(s_music);
p0snd = new Sound(s_p0);
p1snd = new Sound(s_p1);
p0snd_exp = new Sound(s_p0s);
p0snd_exp.attachSound("explosion");
p1snd_exp = new Sound(s_p1s);
p1snd_exp.attachSound("explosion");
IDLE = 0;
RUN_L = 1;
RUN_R = 2;
SWORD_L = 3;
SWORD_R = 4;
BLOCK = 5;
WALL_L = 6;
WALL_R = 7;
SEISMIC_L = 8;
SEISMIC_R = 9;
BALL_L = 10;
BALL_R = 11;
DAMAGE = 12;
DEATH = 13;
ANCHOR = 14;
WHIP = 15;
ATK6 = 16;
p0dmgpwr = 0;
p1dmgpwr = 0;
p0ballpwr = 38;
p1ballpwr = 38;
hpmax = 460;
shmax = 106;
shmin = 20;
p0combo = 0;
p1combo = 0;
p0chain = 0;
p1chain = 0;
p0KEY_JUMP = 38;
p0KEY_BLOCK = 40;
p0KEY_LEFT = 37;
p0KEY_RIGHT = 39;
p0KEY_ATTACK1 = 100;
p0KEY_ATTACK2 = 101;
p0KEY_ATTACK3 = 102;
p0KEY_ATTACK4 = 97;
p0KEY_ATTACK5 = 98;
p0KEY_ATTACK6 = 99;
p1KEY_JUMP = 87;
p1KEY_BLOCK = 83;
p1KEY_LEFT = 65;
p1KEY_RIGHT = 68;
p1KEY_ATTACK1 = 70;
p1KEY_ATTACK2 = 71;
p1KEY_ATTACK3 = 72;
p1KEY_ATTACK4 = 86;
p1KEY_ATTACK5 = 66;
p1KEY_ATTACK6 = 78;
runspd = 8;
jumpheight = 16;
jumpspd = 30;
initjump = 0;
yoffset = 10;
defheight = 35;
defwidth = 25;
wallheight = 15;
ballheight = 40;
ballwidth = 50;
JUGGLE_FRAME = 218;
SECRETS_FRAME = 50;
FALL_FRAME = 70;
ANCHDONE_FRAME = 297;
BALLDONE_FRAME = 29;
BALLEXP_FRAME = 16;
BALLEND_FRAME = 203;
BALLAIREND_FRAME = 192;
WALLDONE_FRAME = 127;
SWORD1_FRAME = 88;
SWORD2_FRAME = 89;
SWORD3_FRAME = 100;
SWORD4_FRAME = 101;
WHIP_FRAME = 343;
SEISMIC1_FRAME = 140;
SEISMIC2_FRAME = 144;
MOVSLAST_FRAME = 141;
DEATH_FRAME = 535;
balldiaspd = 14;
ballhorspd = 20;
_root.attachMovie("ingamemenu", "menu", MENU_Z);
menu._x = 250;
menu._y = 150;
menu._visible = false;
_root.attachMovie("gameover", "gamovr", GAMEOVER_Z);
gamovr._x = 250;
gamovr._y = 150;
gamovr._visible = false;
cmd = "new";
p1aibk = false;
p0aibk = false;
if (musicon) {
snd_menumusic.start(0, 9999);
}
returnto = "";
pwd = "1234";
Frame 767
controlon = true;
p0ball.removeMovieClip();
p1ball.removeMovieClip();
p0c.gotoAndStop("idle");
p1c.gotoAndStop("idle");
p0d._visible = false;
p1d._visible = false;
p0a._visible = false;
p1a._visible = false;
p0a._xscale = 100;
p1a._xscale = 100;
p0oldframe = 1;
p0oldframe2 = 1;
p1b._xscale = -100;
p1c._xscale = -100;
p1d._xscale = -100;
p1oldframe = 1;
p1oldframe2 = 1;
p0shbreak = false;
p1shbreak = false;
p0upTrig = 0;
p1upTrig = 0;
p0swdTrig = 0;
p1swdTrig = 0;
p0combo = 0;
p1combo = 0;
p0chain = 0;
p1chain = 0;
p0seismicTrig = 0;
p1seismicTrig = 0;
p0anchorTrig = 0;
p1anchorTrig = 0;
p0whipTrig = 0;
p1whipTrig = 0;
p0downTrig = 0;
p1downTrig = 0;
p0wallTrig = 0;
p1wallTrig = 0;
p0atk6Trig = 0;
p1atk6Trig = 0;
p0hp = hpmax;
p1hp = hpmax;
p0sh = shmax;
p1sh = shmax;
p0state = IDLE;
p0jump = 0;
p1state = IDLE;
p1jump = 0;
setShadow(0, false);
setShadow(1, false);
p0hpbar._width = 0;
p1hpbar._width = 0;
p0hpbar2._width = 0;
p1hpbar2._width = 0;
p0leap._visible = false;
p1leap._visible = false;
p0ground._visible = false;
p1ground._visible = false;
p0break._visible = false;
p1break._visible = false;
p0teleport = 0;
p1teleport = 0;
p0invinc = 0;
p1invinc = 0;
invinclen = 25;
swdcost = 1;
seismiccost = 1;
ballcost = 1;
dmgc = 0;
dmgcmax = 6;
p0dmg = -1;
p1dmg = -1;
lastTime = getTimer();
onelastTime = lastTime;
p0oldframe = 1;
p1oldframe = 1;
pause = 0;
music.setVolume(100);
if (returnto == "versus") {
gotoAndPlay (794);
} else if (returnto == "challenge") {
gotoAndPlay (807);
turnOffSecrets();
} else if (returnto == "secrets") {
gotoSecret(secretlvl);
turnOffSecrets();
}
_root.nxtlvl._visible = secretlvl != secretmax;
_root._yscale = 100;
_root._y = 0;
_root._xscale = 100;
_root._x = 0;
Frame 770
stop();
Frame 771
prevFrame();
Frame 776
stop();
Frame 777
prevFrame();
Frame 779
_root.getch = -1;
p0KEY_JUMPs = KeyToString(p0KEY_JUMP);
p0KEY_BLOCKs = KeyToString(p0KEY_BLOCK);
p0KEY_LEFTs = KeyToString(p0KEY_LEFT);
p0KEY_RIGHTs = KeyToString(p0KEY_RIGHT);
p0KEY_ATTACK1s = KeyToString(p0KEY_ATTACK1);
p0KEY_ATTACK2s = KeyToString(p0KEY_ATTACK2);
p0KEY_ATTACK3s = KeyToString(p0KEY_ATTACK3);
p0KEY_ATTACK4s = KeyToString(p0KEY_ATTACK4);
p0KEY_ATTACK5s = KeyToString(p0KEY_ATTACK5);
p0KEY_ATTACK6s = KeyToString(p0KEY_ATTACK6);
p1KEY_JUMPs = KeyToString(p1KEY_JUMP);
p1KEY_BLOCKs = KeyToString(p1KEY_BLOCK);
p1KEY_LEFTs = KeyToString(p1KEY_LEFT);
p1KEY_RIGHTs = KeyToString(p1KEY_RIGHT);
p1KEY_ATTACK1s = KeyToString(p1KEY_ATTACK1);
p1KEY_ATTACK2s = KeyToString(p1KEY_ATTACK2);
p1KEY_ATTACK3s = KeyToString(p1KEY_ATTACK3);
p1KEY_ATTACK4s = KeyToString(p1KEY_ATTACK4);
p1KEY_ATTACK5s = KeyToString(p1KEY_ATTACK5);
p1KEY_ATTACK6s = KeyToString(p1KEY_ATTACK6);
stop();
Frame 780
prevFrame();
Frame 781
if (getch != -1) {
if (getchkey == "PLAYER 1: LEFT") {
p1KEY_LEFT = getch;
} else if (getchkey == "PLAYER 2: LEFT") {
p0KEY_LEFT = getch;
} else if (getchkey == "PLAYER 1: RIGHT") {
p1KEY_RIGHT = getch;
} else if (getchkey == "PLAYER 2: RIGHT") {
p0KEY_RIGHT = getch;
} else if (getchkey == "PLAYER 1: JUMP") {
p1KEY_JUMP = getch;
} else if (getchkey == "PLAYER 2: JUMP") {
p0KEY_JUMP = getch;
} else if (getchkey == "PLAYER 1: SHIELD") {
p1KEY_BLOCK = getch;
} else if (getchkey == "PLAYER 2: SHIELD") {
p0KEY_BLOCK = getch;
} else if (getchkey == "PLAYER 1: ATTACK1") {
p1KEY_ATTACK1 = getch;
} else if (getchkey == "PLAYER 2: ATTACK1") {
p0KEY_ATTACK1 = getch;
} else if (getchkey == "PLAYER 1: ATTACK2") {
p1KEY_ATTACK2 = getch;
} else if (getchkey == "PLAYER 2: ATTACK2") {
p0KEY_ATTACK2 = getch;
} else if (getchkey == "PLAYER 1: ATTACK3") {
p1KEY_ATTACK3 = getch;
} else if (getchkey == "PLAYER 2: ATTACK3") {
p0KEY_ATTACK3 = getch;
} else if (getchkey == "PLAYER 1: ATTACK4") {
p1KEY_ATTACK4 = getch;
} else if (getchkey == "PLAYER 2: ATTACK4") {
p0KEY_ATTACK4 = getch;
} else if (getchkey == "PLAYER 1: ATTACK5") {
p1KEY_ATTACK5 = getch;
} else if (getchkey == "PLAYER 2: ATTACK5") {
p0KEY_ATTACK5 = getch;
} else if (getchkey == "PLAYER 1: ATTACK6") {
p1KEY_ATTACK6 = getch;
} else if (getchkey == "PLAYER 2: ATTACK6") {
p0KEY_ATTACK6 = getch;
}
gotoAndPlay (779);
}
Instance of Symbol 689 MovieClip in Frame 781
onClipEvent (keyUp) {
_root.getch = Key.getCode();
}
Frame 782
gotoAndPlay (781);
Frame 792
stop();
Frame 793
prevFrame();
Frame 794
p0KEY_JUMPs = KeyToString(p0KEY_JUMP);
p0KEY_BLOCKs = KeyToString(p0KEY_BLOCK);
p0KEY_LEFTs = KeyToString(p0KEY_LEFT);
p0KEY_RIGHTs = KeyToString(p0KEY_RIGHT);
p0KEY_ATTACK1s = KeyToString(p0KEY_ATTACK1);
p0KEY_ATTACK2s = KeyToString(p0KEY_ATTACK2);
p0KEY_ATTACK3s = KeyToString(p0KEY_ATTACK3);
p0KEY_ATTACK4s = KeyToString(p0KEY_ATTACK4);
p0KEY_ATTACK5s = KeyToString(p0KEY_ATTACK5);
p0KEY_ATTACK6s = KeyToString(p0KEY_ATTACK6);
p1KEY_JUMPs = KeyToString(p1KEY_JUMP);
p1KEY_BLOCKs = KeyToString(p1KEY_BLOCK);
p1KEY_LEFTs = KeyToString(p1KEY_LEFT);
p1KEY_RIGHTs = KeyToString(p1KEY_RIGHT);
p1KEY_ATTACK1s = KeyToString(p1KEY_ATTACK1);
p1KEY_ATTACK2s = KeyToString(p1KEY_ATTACK2);
p1KEY_ATTACK3s = KeyToString(p1KEY_ATTACK3);
p1KEY_ATTACK4s = KeyToString(p1KEY_ATTACK4);
p1KEY_ATTACK5s = KeyToString(p1KEY_ATTACK5);
p1KEY_ATTACK6s = KeyToString(p1KEY_ATTACK6);
Frame 799
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
if (p0chars == "arayh1") {
p0chr.gotoAndStop(1);
}
if (p0chars == "fawn1") {
p0chr.gotoAndStop(2);
}
if (p0chars == p1chars) {
new Color("p0chr").setTransform(p0trans);
} else {
new Color("p0chr").setTransform(normtrans);
}
stop();
Frame 800
prevFrame();
Frame 805
stop();
Frame 806
prevFrame();
Frame 814
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
chx._visible = challengex == "UNLOCKED";
stop();
Frame 815
prevFrame();
Frame 816
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 817
prevFrame();
Frame 818
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 819
prevFrame();
Frame 820
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 821
prevFrame();
Frame 822
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 823
prevFrame();
Frame 824
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 825
prevFrame();
Frame 826
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 827
prevFrame();
Frame 828
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 829
prevFrame();
Frame 830
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 831
prevFrame();
Frame 832
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 833
prevFrame();
Frame 834
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 835
prevFrame();
Frame 836
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 837
prevFrame();
Frame 838
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 839
prevFrame();
Frame 840
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 841
prevFrame();
Frame 842
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 843
prevFrame();
Frame 844
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 845
prevFrame();
Frame 846
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 847
prevFrame();
Frame 848
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 849
prevFrame();
Frame 850
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 851
prevFrame();
Frame 852
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 853
prevFrame();
Frame 854
if (p1chars == "arayh1") {
p1chr.gotoAndStop(1);
}
if (p1chars == "fawn1") {
p1chr.gotoAndStop(2);
}
txtstr = getLvl(secretlvl);
_root.nxtlvl._visible = secretlvl != secretmax;
Selection.setFocus(inbox);
stop();
Frame 855
prevFrame();
Frame 856
txtstr = getLvl(secretlvl);
stop();
Frame 857
prevFrame();
Frame 861
Selection.setFocus(inbox);
stop();
Frame 862
prevFrame();
Frame 863
score = 0;
if (suddenmode) {
p0hp = 0.1;
p1hp = 0.1;
}
_root.attachMovie(p1chars + "mug", "p1hpmug", HPMUG1_Z);
_root.attachMovie(p0chars + "mug", "p0hpmug", HPMUG0_Z);
if (p0chars == p1chars) {
new Color("p0hpmug").setTransform(p0trans);
}
p1hpmug.stop();
p0hpmug.stop();
p1hpmug._x = 500;
p0hpmug._x = 650;
p1hpmug._y = 0;
p0hpmug._y = 0;
if (p0hp <= hpmax) {
p0hpbar._width = (hpmax - p0hp) * (184 / hpmax);
p0hpbar2._width = 0;
} else {
p0hpbar2._width = Math.min(184, (p0hp - hpmax) * (184 / hpmax));
p0hpbar._width = 0;
}
if (p1hp <= hpmax) {
p1hpbar._width = (hpmax - p1hp) * (184 / hpmax);
p1hpbar2._width = 0;
} else {
p1hpbar2._width = Math.min(184, (p1hp - hpmax) * (184 / hpmax));
p1hpbar._width = 0;
}
p0shbar._width = shmax - p0sh;
p1shbar._width = shmax - p1sh;
gameover = 0;
menu._visible = false;
gamovr._visible = false;
menu.musicons = musicons;
menu.soundons = soundons;
if (lvl == 1) {
p0a._x = 760;
p0a._y = 104;
p1a._x = 65;
p1a._y = 134;
} else if (lvl == 2) {
p0a._x = 740;
p0a._y = 297;
p1a._x = 65;
p1a._y = 297;
} else if (lvl == 3) {
p0a._x = 740;
p0a._y = 157;
p1a._x = 65;
p1a._y = 274;
} else if (lvl == 4) {
p0a._x = 740;
p0a._y = 177;
p1a._x = 65;
p1a._y = 284;
}
p0startx = p0a._x;
p1startx = p1a._x;
p0starty = p0a._y;
p1starty = p1a._y;
p0ceil = 0;
p1ceil = 0;
p0flr = 0;
p1flr = 0;
p0wall = 0;
p1wall = 0;
p0b._x = p0a._x;
p0c._x = p0a._x;
p0d._x = p0a._x;
p0b._y = p0a._y;
p0c._y = p0a._y;
p0d._y = p0a._y;
p1b._x = p1a._x;
p1c._x = p1a._x;
p1d._x = p1a._x;
p1b._y = p1a._y;
p1c._y = p1a._y;
p1d._y = p1a._y;
p1b._xscale = p1a._xscale;
p1c._xscale = p1a._xscale;
p1d._xscale = p1a._xscale;
if (p0chars == "arayh1") {
p0ballpwr = 38;
}
if (p1chars == "arayh1") {
p1ballpwr = 38;
}
if (p0chars == "fawn1") {
p0ballpwr = 24;
}
if (p1chars == "fawn1") {
p1ballpwr = 24;
}
if (soundon) {
snd_lightning.start(0, 1);
}
scoredisp._visible = returnto == "challenge";
scoredisp2._visible = returnto == "challenge";
music.attachSound("music" + lvl);
if (musicon) {
music.start(0, 9999);
}
if (blackoutmode) {
new Color("bg").setTransform(blacktrans);
new Color("fg").setTransform(blacktrans);
} else {
new Color("bg").setTransform(normtrans);
new Color("fg").setTransform(normtrans);
}
if (upsidedownmode) {
_root._yscale = -100;
_root._y = 500;
} else {
_root._yscale = 100;
_root._y = 0;
}
if (mirrormode) {
_root._xscale = -100;
_root._x = 800;
} else {
_root._xscale = 100;
_root._x = 0;
}
if (powershmode) {
SH_PWR = 120;
} else {
SH_PWR = 0;
}
if (poisonmode) {
p0poison = 0;
p1poison = 0;
}
count = 0;
b = null;
bd = null;
stop();
Instance of Symbol 1080 MovieClip "movs" in Frame 863
onClipEvent (enterFrame) {
if ((_root.pause != 1) && (this._currentframe == this._totalframes)) {
_root.gotoAndPlay("game");
}
}
Frame 864
delay = getTimer() - lastTime;
fps = Math.round(1000 / delay);
fps = fps + (("/30 fps (" + Math.max(0, delay - 33)) + ")");
lastTime = getTimer();
p0justblock = false;
p1justblock = false;
if ((((p0c._currentframe >= DEATH_FRAME) || (p1c._currentframe >= DEATH_FRAME)) || ((p0c._currentframe >= DEATH_FRAME) && (p1c._currentframe >= DEATH_FRAME))) && (gameover == 0)) {
p0oldframe = 1;
p0oldframe2 = 1;
p1oldframe = 1;
p1oldframe2 = 1;
p0ceil = 0;
p1ceil = 0;
p0flr = 0;
p1flr = 0;
p0wall = 0;
p1wall = 0;
p0d._visible = false;
p1d._visible = false;
setShadow(0, false);
setShadow(1, false);
gamovr._visible = true;
new Color("bg").setTransform(normtrans);
new Color("fg").setTransform(normtrans);
_root._yscale = 100;
_root._y = 0;
_root._xscale = 100;
_root._x = 0;
gamovr.submitted._visible = false;
gamovr.userbox._visible = returnto == "challenge";
gamovr.submithi._visible = returnto == "challenge";
gameover = 1;
if (p0hp > 0) {
p0jump = 0;
p0a._xscale = 100;
p0a._x = p0startx;
p0a._y = p0starty;
p0a.gotoAndPlay("win");
wins = "PLAYER 2 WINS";
setState(0, IDLE);
} else if (p1hp > 0) {
p1jump = 0;
p1a._xscale = -100;
p1a._x = p1startx;
p1a._y = p1starty;
p1a.gotoAndPlay("win");
wins = "PLAYER 1 WINS";
setState(1, IDLE);
if (returnto == "secrets") {
secretlvl++;
unlock(secretlvl);
secretmax = Math.max(secretmax, secretlvl);
}
} else {
wins = " DRAW GAME";
}
}
if ((musicon && (gameover)) && (music.getVolume() > 10)) {
music.setVolume(music.getVolume() - 1);
}
p0oldx = p0a._x;
p0oldy = p0a._y;
p1oldx = p1a._x;
p1oldy = p1a._y;
i = 0;
pdmg = eval ("damage" + p0dmg);
while ((i < 2) && (gameover == 0)) {
if (i == 1) {
pdmg = p0balldmg;
}
if ((((pdmg != null) && (p1state != DEATH)) && (((p0combo == 0) || (p0combo == 3)) || (((((p0a._currentframe == SWORD1_FRAME) || (p0a._currentframe == SWORD2_FRAME)) || (p0a._currentframe == SWORD3_FRAME)) || (p0a._currentframe == SWORD4_FRAME)) || ((p0a._currentframe >= WHIP_FRAME) && (p0state == WHIP))))) && ((p1invinc == 0) || (p1state == BLOCK))) {
x = p1a._x;
if (p1a._xscale < 0) {
x = x - defwidth;
}
if (dmgcollision(x, p1a._y, defwidth, defheight, pdmg)) {
if (p1state != BLOCK) {
p1a._y = p1a._y - 20;
if ((p0state != WHIP) || (i == 1)) {
p1jump = p1jump * -1;
} else {
p1jump = -1;
p0jump = 1;
}
p1state = DAMAGE;
p1combo = 0;
p1teleport = false;
if ((p0state != WHIP) || (i == 1)) {
p0chain = p0combo;
}
dmgpwr = p0dmgpwr;
p0dmgpwr = Math.floor(p0dmgpwr * Math.max(1, 1 + ((hpmax - p0hp) / hpmax)));
if ((p0combo != 1) || (i == 1)) {
if (p0combo == 2) {
p0dmgpwr = Math.floor(p0dmgpwr / 2);
}
p1invinc = invinclen;
p1a.gotoAndPlay("damage");
if (((p0state == ANCHOR) && (p0chars == "arayh1")) && (i == 0)) {
p0jump = Math.floor(jumpheight / 2);
}
if (jugglemode) {
p1jump = 22;
}
} else {
p1invinc = 3;
if ((p0state != WHIP) || (i == 1)) {
p0dmgpwr = Math.floor(p0dmgpwr / 4);
}
p1a.gotoAndPlay("smdmg");
if (jugglemode) {
p1jump = 22;
}
if ((p0state != BLOCK) && ((p0state != WHIP) || (i == 1))) {
pdmg._x = 800;
pdmg._y = 800;
p0dmg = -1;
pdmg.removeMovieClip();
}
}
if (soundon) {
p1snd.attachSound("damage");
p1snd.start(0, 1);
}
if ((i == 1) && (p0ball._currentframe < BALLEXP_FRAME)) {
p0ball.gotoAndPlay("explode");
if (soundon) {
p0snd_exp.start(0.25, 1);
}
}
if (poisonmode && ((p0dmgpwr > 0) || (i == 1))) {
p1poison++;
} else if (i == 0) {
p1hp = p1hp - p0dmgpwr;
} else {
p1hp = p1hp - eval (p + "ballpwr");
}
p0dmgpwr = dmgpwr;
} else {
if (poisonmode) {
} else if ((p1invinc == 0) && (i == 0)) {
p1hp = p1hp - Math.floor(p0dmgpwr / 4);
} else if ((p1invinc == 0) && (i == 1)) {
p1hp = p1hp - Math.floor(eval (p + "ballpwr") / 4);
}
if (p1invinc != 10) {
p1invinc = 11;
}
if (p0state != BLOCK) {
pdmg._x = 800;
pdmg._y = 800;
p0dmg = -1;
pdmg.removeMovieClip();
}
if ((i == 1) && (p0ball._currentframe < BALLEXP_FRAME)) {
p0ball.gotoAndPlay("explode");
if (soundon) {
p0snd_exp.start(0.25, 1);
}
}
}
if (p1hp <= 0) {
p1death();
}
}
}
i++;
}
i = 0;
pdmg = eval ("damage" + p1dmg);
while ((i < 2) && (gameover == 0)) {
if (i == 1) {
pdmg = p1balldmg;
}
if ((((pdmg != null) && (p0state != DEATH)) && (((p1combo == 0) || (p1combo == 3)) || (((((p1a._currentframe == SWORD1_FRAME) || (p1a._currentframe == SWORD2_FRAME)) || (p1a._currentframe == SWORD3_FRAME)) || (p1a._currentframe == SWORD4_FRAME)) || ((p1a._currentframe >= WHIP_FRAME) && (p1state == WHIP))))) && ((p0invinc == 0) || (p0state == BLOCK))) {
x = p0a._x;
if (p0a._xscale < 0) {
x = x - defwidth;
}
if (dmgcollision(x, p0a._y, defwidth, defheight, pdmg)) {
if (p0state != BLOCK) {
p0a._y = p0a._y - 20;
if ((p1state != WHIP) || (i == 1)) {
p0jump = p0jump * -1;
} else {
p1jump = 1;
p0jump = -1;
}
p0state = DAMAGE;
dmgpwr = p1dmgpwr;
p1dmgpwr = Math.floor(p1dmgpwr * Math.max(1, 1 + ((hpmax - p1hp) / hpmax)));
p0teleport = false;
if ((p1state != WHIP) || (i == 1)) {
p1chain = p1combo;
}
p0combo = 0;
if ((p1combo != 1) || (i == 1)) {
if (p1combo == 2) {
p1dmgpwr = Math.floor(p1dmgpwr / 2);
}
p0invinc = invinclen;
p0a.gotoAndPlay("damage");
if (((p1state == ANCHOR) && (p1chars == "arayh1")) && (i == 0)) {
p1jump = Math.floor(jumpheight / 2);
}
if (jugglemode) {
p0jump = 22;
}
} else {
p0invinc = 3;
if ((p1state != WHIP) || (i == 1)) {
p1dmgpwr = Math.floor(p1dmgpwr / 4);
}
p0a.gotoAndPlay("smdmg");
if (jugglemode) {
p0jump = 22;
}
if ((p1state != BLOCK) && ((p1state != WHIP) || (i == 1))) {
pdmg._x = 800;
pdmg._y = 800;
p1dmg = -1;
pdmg.removeMovieClip();
}
}
if (soundon) {
p0snd.attachSound("damage");
p0snd.start(0, 1);
}
if ((i == 1) && (p1ball._currentframe < BALLEXP_FRAME)) {
p1ball.gotoAndPlay("explode");
if (soundon) {
p1snd_exp.start(0.25, 1);
}
}
if (poisonmode && ((p1dmgpwr > 0) || (i == 1))) {
p0poison++;
} else if (i == 0) {
p0hp = p0hp - p1dmgpwr;
} else {
p0hp = p0hp - eval (p + "ballpwr");
}
p1dmgpwr = dmgpwr;
} else {
if (poisonmode) {
} else if ((p0invinc == 0) && (i == 0)) {
p0hp = p0hp - Math.floor(p1dmgpwr / 4);
} else if ((p0invinc == 0) && (i == 1)) {
p0hp = p0hp - Math.floor(eval (p + "ballpwr") / 4);
}
if (p0invinc != 10) {
p0invinc = 11;
}
if (p1state != BLOCK) {
pdmg._x = 800;
pdmg._y = 800;
p1dmg = -1;
pdmg.removeMovieClip();
}
if ((i == 1) && (p1ball._currentframe < BALLEXP_FRAME)) {
p1ball.gotoAndPlay("explode");
if (soundon) {
p1snd_exp.start(0.25, 1);
}
}
}
if (p0hp <= 0) {
p0death();
}
}
}
i++;
}
if ((((p0a._currentframe == JUGGLE_FRAME) && (jugglemode)) && (p0jump > -11)) && (p0jump != 0)) {
p0a.gotoAndPlay("damage");
}
if ((((p1a._currentframe == JUGGLE_FRAME) && (jugglemode)) && (p1jump > -11)) && (p1jump != 0)) {
p1a.gotoAndPlay("damage");
}
if ((p0state == DAMAGE) && (stoneskinmode)) {
p0a.gotoAndPlay(1);
}
if ((p1state == DAMAGE) && (stoneskinmode)) {
p1a.gotoAndPlay(1);
}
if ((((((p0state == DAMAGE) || (p0state == DEATH)) && (p0a._currentframe != 1)) && ((gameover == 0) || (p0jump != 0))) && (p0a._x > 0)) && (p0a._x < 800)) {
if (p1state == WHIP) {
} else if (jugglemode) {
if (p0a._xscale > 0) {
p0a._x++;
} else {
p0a._x--;
}
} else if (p0invinc == 0) {
if (p0a._xscale > 0) {
p0a._x = p0a._x + 5;
} else {
p0a._x = p0a._x - 5;
}
} else if (p0a._xscale > 0) {
p0a._x = p0a._x + Math.max(5, Math.floor(p0invinc / 2));
} else {
p0a._x = p0a._x - Math.max(5, Math.floor(p0invinc / 2));
}
}
if ((((((p1state == DAMAGE) || (p1state == DEATH)) && (p1a._currentframe != 1)) && ((gameover == 0) || (p1jump != 0))) && (p1a._x > 0)) && (p1a._x < 800)) {
if (p0state == WHIP) {
} else if (jugglemode) {
if (p1a._xscale > 0) {
p1a._x++;
} else {
p1a._x--;
}
} else if (p1invinc == 0) {
if (p1a._xscale > 0) {
p1a._x = p1a._x + 5;
} else {
p1a._x = p1a._x - 5;
}
} else if (p1a._xscale > 0) {
p1a._x = p1a._x + Math.max(5, Math.floor(p1invinc / 2));
} else {
p1a._x = p1a._x - Math.max(5, Math.floor(p1invinc / 2));
}
}
if ((((((p0state == RUN_L) || (p0state == RUN_R)) || (p0state == IDLE)) || (p0state == DAMAGE)) || (p0state == DEATH)) && (eval ("damage" + p0dmg) != null)) {
eval ("damage" + p0dmg)._x = 800;
eval ("damage" + p0dmg)._y = 800;
p0dmg = -1;
eval ("damage" + p0dmg).removeMovieClip();
}
if ((((((p1state == RUN_L) || (p1state == RUN_R)) || (p1state == IDLE)) || (p1state == DAMAGE)) || (p1state == DEATH)) && (eval ("damage" + p1dmg) != null)) {
eval ("damage" + p1dmg)._x = 800;
eval ("damage" + p1dmg)._y = 800;
p1dmg = -1;
eval ("damage" + p1dmg).removeMovieClip();
}
pp = 0;
while (pp <= 1) {
dirchg = false;
p = "p" + pp;
pa = eval (p + "a");
pai = eval (p + "ai");
pelite = eval (p + "elite");
po = "p" + ((pp + 1) % 2);
poa = eval (po + "a");
if ((returnto == "challenge") && (pp == 1)) {
hyper = false;
}
if ((returnto == "challenge") && (pp == 0)) {
hyper = true;
}
vmL = virusmode && (Math.random() < 0.01);
vmR = virusmode && (Math.random() < 0.01);
vmJ = virusmode && (Math.random() < 0.01);
vm1 = virusmode && (Math.random() < 0.01);
vm2 = virusmode && (Math.random() < 0.01);
vm3 = virusmode && (Math.random() < 0.01);
vm4 = virusmode && (Math.random() < 0.01);
vm5 = virusmode && (Math.random() < 0.01);
vm6 = virusmode && (Math.random() < 0.01);
if (virusmode && (count == 0)) {
new Color(pa).setTransform(virustrans);
}
pchars = eval (p + "chars");
runspdbk = runspd;
jumpheightbk = jumpheight;
jumpspdbk = jumpspd;
controlon = gameover == 0;
if (pai && (pelite)) {
runspd = runspd + 8;
jumpheight = jumpheight + 8;
jumpspd = jumpspd + 3;
if (gameover == 0) {
setShadow(pp, true);
}
} else if (hyper) {
runspd = runspd + 6;
jumpheight = jumpheight + 6;
jumpspd = jumpspd + 3;
if (gameover == 0) {
setShadow(pp, true);
}
}
eval (p + "c")._x = eval (p + "b")._x;
eval (p + "c")._y = eval (p + "b")._y;
eval (p + "c")._xscale = eval (p + "b")._xscale;
eval (p + "c").gotoAndStop(eval (p + "oldframe2"));
eval (p + "b")._x = eval (p + "oldx");
eval (p + "b")._y = eval (p + "oldy");
eval (p + "b")._xscale = pa._xscale;
eval (p + "b").gotoAndStop(eval (p + "oldframe"));
if (eval (p + "invinc") > 0) {
if (pp == 0) {
p0invinc--;
} else if (pp == 1) {
p1invinc--;
}
if ((eval (p + "invinc") % 2) == 0) {
eval (p + "d")._visible = false;
} else {
eval (p + "d")._visible = eval (p + "hp") > 0;
}
}
if (pa._currentframe == WHIP_FRAME) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
dmgop.duplicateMovieClip("damage" + (dmgc + dmgOffset), dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 150;
eval ("damage" + dmgc)._height = 30;
if (pa._xscale > 0) {
setDmg(pp, dmgc, -180, 0);
} else {
setDmg(pp, dmgc, 30, 0);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
if (pp == 0) {
p0combo = 1;
} else if (pp == 1) {
p1combo = 1;
}
}
if ((pa._currentframe == SEISMIC1_FRAME) && (pchars != "fawn1")) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 70;
eval ("damage" + dmgc)._height = 95;
if (pa._xscale > 0) {
setDmg(pp, dmgc, -25, -100);
} else {
setDmg(pp, dmgc, -21 - defwidth, -100);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
} else if ((pa._currentframe == (SEISMIC1_FRAME - 5)) && (pchars == "fawn1")) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
setJump(pp, jumpheight);
eval ("damage" + dmgc)._width = 50;
eval ("damage" + dmgc)._height = 75;
if (pa._xscale > 0) {
setDmg(pp, dmgc, -15, -33);
} else {
setDmg(pp, dmgc, -6 - defwidth, -33);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
} else if ((pa._currentframe == SEISMIC2_FRAME) && (pchars == "arayh1")) {
eval ("damage" + eval (p + "dmg")).removeMovieClip();
} else if ((pa._currentframe == (SEISMIC2_FRAME + 8)) && (pchars == "fawn1")) {
eval ("damage" + eval (p + "dmg")).removeMovieClip();
setJump(pp, -4);
}
if (eval (p + "ball")._currentframe == BALLDONE_FRAME) {
eval (p + "ball").removeMovieClip();
eval (p + "balldmg").removeMovieClip();
}
if (((eval (p + "state") == WALL_L) || (eval (p + "state") == WALL_R)) && (pa._currentframe == WALLDONE_FRAME)) {
if (eval (p + "state") == WALL_L) {
pa._x = pa._x + (runspd * 3);
} else if (eval (p + "state") == WALL_R) {
pa._x = pa._x - (runspd * 3);
}
setState(pp, IDLE);
pa.gotoAndPlay("jump");
if (pp == 0) {
p0jump = jumpheight;
} else if (pp == 1) {
p1jump = jumpheight;
}
pa._y = pa._y - (initjump + jumpheight);
if (pp == 0) {
p0wallTrig = 0;
} else if (pp == 1) {
p1wallTrig = 0;
}
}
aiblock = ((pai && (Math.random() < (0.3 * eval (p + "diff")))) && (((((pa._x + (2 * defwidth)) >= (eval (po + "ball")._x + eval (po + "ballx"))) && ((pa._x - defwidth) <= ((eval (po + "ball")._x + eval (po + "ballx")) + eval (po + "balldmg")._height))) && ((pa._y + (2 * defheight)) >= (eval (po + "ball")._y + eval (po + "bally")))) && ((pa._y - defheight) <= ((eval (po + "ball")._y + eval (po + "bally")) + eval (po + "balldmg")._width)))) || (((pai && (eval (po + "state") != BLOCK)) && (eval (p + "invinc") == 0)) && (((((((eval (po + "state") == SEISMIC_L) || (eval (po + "state") == SEISMIC_R)) && (InHoriRange(3 * defwidth))) && ((pa._y + defheight) <= poa._y)) && (Math.random() < 0.3)) || ((((eval (po + "state") == WHIP) && (InHoriRange(7 * defwidth))) && (InVertRange(3 * defheight))) && (Math.random() < 0.3))) || ((((eval (po + "state") == ANCHOR) && (InHoriRange(2 * defwidth))) && ((pa._y - defheight) >= poa._y)) && (Math.random() < 0.3))));
if (pai || (!Key.isDown(eval (p + "KEY_BLOCK")))) {
if (pp == 0) {
p0downTrig = 0;
} else if (pp == 1) {
p1downTrig = 0;
}
}
if ((eval (p + "state") == BLOCK) && ((!controlon) || ((pai || (!Key.isDown(eval (p + "KEY_BLOCK")))) && ((!pai) || (((!aiblock) || (eval (po + "state") == BLOCK)) && (Math.random() < 0.5)))))) {
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("idle");
} else if (eval (p + "jump") > 0) {
pa.gotoAndPlay("jump");
} else if (eval (p + "jump") < 0) {
pa.gotoAndPlay("fall");
}
setState(pp, IDLE);
eval ("damage" + eval (p + "dmg")).removeMovieClip();
}
if ((eval (p + "state") == DAMAGE) && (pa._currentframe == 1)) {
setState(pp, IDLE);
if (eval (p + "jump") > 0) {
pa.gotoAndPlay("jump");
} else if (eval (p + "jump") < 0) {
pa.gotoAndPlay("fall");
}
if (pp == 0) {
p0wallTrig = 0;
} else if (pp == 1) {
p1wallTrig = 0;
}
setShadow(pp, false);
} else if (eval (p + "state") == BLOCK) {
Ground(pp, true);
if (eval (p + "sh") <= 0) {
if (pp == 0) {
p0shbreak = true;
new Color("p0shbar").setTransform(redtrans);
} else if (pp == 1) {
p1shbreak = true;
new Color("p1shbar").setTransform(redtrans);
}
Break(pp);
if (soundon) {
eval (p + "snd").attachSound("damage");
eval (p + "snd").start(0, 1);
}
setState(pp, IDLE);
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("idle");
} else {
pa.gotoAndPlay("fall");
}
}
} else if ((eval (p + "state") == WHIP) && (pa._currentframe != 1)) {
if ((eval (p + "jump") > 1) || (eval (p + "jump") < 0)) {
setJump(pp, 1);
}
pa._y++;
} else if ((eval (p + "state") == ATK6) && (pa._currentframe != 1)) {
if ((eval (p + "jump") > 1) || (eval (p + "jump") < 0)) {
setJump(pp, 1);
}
pa._y++;
}
if (((eval (p + "state") != BLOCK) && (eval (p + "state") != WALL_L)) && (eval (p + "state") != WALL_R)) {
if (((eval (p + "state") == SWORD_L) || (eval (p + "state") == SWORD_R)) && ((pa._currentframe == 1) || ((((pai && (pelite)) && ((pa._y + (3 * defheight)) >= poa._y)) && (Math.random() < 0.4)) && (((poa._x > (pa._x + defwidth)) && (eval (p + "state") == SWORD_L)) || ((poa._x < (pa._x - defwidth)) && (eval (p + "state") == SWORD_R)))))) {
setState(pp, IDLE);
if (eval (p + "jump") != 0) {
pa.gotoAndPlay("fall");
}
eval ("damage" + eval (p + "dmg"))._x = 800;
eval ("damage" + eval (p + "dmg"))._y = 800;
if (pp == 0) {
p0dmg = -1;
} else if (pp == 1) {
p1dmg = -1;
}
eval ("damage" + eval (p + "dmg")).removeMovieClip();
setShadow(pp, false);
if (pp == 0) {
p0combo = 0;
} else if (pp == 1) {
p1combo = 0;
}
}
if ((eval (p + "state") == ANCHOR) && (pa._currentframe == ANCHDONE_FRAME)) {
eval ("damage" + eval (p + "dmg"))._x = 800;
eval ("damage" + eval (p + "dmg"))._y = 800;
if (pp == 0) {
p0dmg = -1;
} else if (pp == 1) {
p1dmg = -1;
}
eval ("damage" + eval (p + "dmg")).removeMovieClip();
} else if ((eval (p + "state") == ANCHOR) && (pa._currentframe == 1)) {
setState(pp, IDLE);
setShadow(pp, false);
} else if ((eval (p + "state") == ATK6) && (pa._currentframe == 1)) {
setState(pp, IDLE);
setJump(pp, -1);
setShadow(pp, false);
eval ("damage" + eval (p + "dmg"))._x = 800;
eval ("damage" + eval (p + "dmg"))._y = 800;
eval ("damage" + eval (p + "dmg")).removeMovieClip();
} else if (((eval (p + "state") == SEISMIC_L) || (eval (p + "state") == SEISMIC_R)) && (pa._currentframe == 1)) {
setState(pp, IDLE);
pa.gotoAndPlay(2);
setShadow(pp, false);
} else if ((eval (p + "state") == WHIP) && (pa._currentframe == 1)) {
setState(pp, IDLE);
eval ("damage" + eval (p + "dmg"))._x = 800;
eval ("damage" + eval (p + "dmg"))._y = 800;
if (pp == 0) {
p0dmg = -1;
} else if (pp == 1) {
p1dmg = -1;
}
eval ("damage" + eval (p + "dmg")).removeMovieClip();
setShadow(pp, false);
if (pp == 0) {
p0combo = 0;
} else if (pp == 1) {
p1combo = 0;
}
} else if (((eval (p + "state") == BALL_L) || (eval (p + "state") == BALL_R)) && ((pa._currentframe == 1) || (pa._currentframe == FALL_FRAME))) {
setState(pp, IDLE);
setShadow(pp, false);
} else if (((eval (p + "state") == BALL_L) || (eval (p + "state") == BALL_R)) && ((pa._currentframe == BALLEND_FRAME) || (pa._currentframe == BALLAIREND_FRAME))) {
if (pchars == "fawn1") {
if (pp == 0) {
_root.attachMovie("ball2", p + "ball", p0BALL_Z);
} else if (pp == 1) {
_root.attachMovie("ball2", p + "ball", p1BALL_Z);
}
} else if (pp == 0) {
_root.attachMovie("ball", p + "ball", p0BALL_Z);
} else if (pp == 1) {
_root.attachMovie("ball", p + "ball", p1BALL_Z);
}
if (eval (p + "state") == BALL_L) {
eval (p + "ball")._x = pa._x - 56;
if (eval (p + "ballair")) {
if (pchars == "fawn1") {
eval (p + "ball")._x = pa._x - 40;
}
if (pp == 0) {
p0ballx = -balldiaspd;
} else if (pp == 1) {
p1ballx = -balldiaspd;
}
} else {
if (pchars == "fawn1") {
eval (p + "ball")._x = pa._x - 95;
}
if (pp == 0) {
p0ballx = -ballhorspd;
} else if (pp == 1) {
p1ballx = -ballhorspd;
}
}
if ((pchars == "fawn1") && (pp == 0)) {
p0ballx = -1;
p0bally = 10;
} else if ((pchars == "fawn1") && (pp == 1)) {
p1ballx = -1;
p1bally = 10;
}
} else if (eval (p + "state") == BALL_R) {
eval (p + "ball")._x = pa._x + 8;
if (eval (p + "ballair")) {
if (pchars == "fawn1") {
eval (p + "ball")._x = pa._x - 50;
}
if (pp == 0) {
p0ballx = balldiaspd;
} else if (pp == 1) {
p1ballx = balldiaspd;
}
} else {
if (pchars == "fawn1") {
eval (p + "ball")._x = pa._x + 10;
}
if (pp == 0) {
p0ballx = ballhorspd;
} else if (pp == 1) {
p1ballx = ballhorspd;
}
}
if ((pchars == "fawn1") && (pp == 0)) {
p0ballx = 1;
p0bally = 10;
} else if ((pchars == "fawn1") && (pp == 1)) {
p1ballx = 1;
p1bally = 10;
}
}
if (eval (p + "ballair")) {
if (pp == 0) {
p0bally = balldiaspd;
} else if (pp == 1) {
p1bally = balldiaspd;
}
eval (p + "ball")._y = pa._y + 18;
if ((pchars == "fawn1") && (pp == 0)) {
p0ballx = 0;
p0bally = 1;
} else if ((pchars == "fawn1") && (pp == 1)) {
p1ballx = 0;
p1bally = 1;
}
} else {
if (pp == 0) {
p0bally = 0;
} else if (pp == 1) {
p1bally = 0;
}
eval (p + "ball")._y = pa._y - 12;
if (pchars == "fawn1") {
eval (p + "ball")._y = eval (p + "ball")._y - 20;
}
}
if (pp == 0) {
dmgop.duplicateMovieClip("p0balldmg", p0BALLDMG_Z);
} else if (pp == 1) {
dmgop.duplicateMovieClip("p1balldmg", p1BALLDMG_Z);
}
eval (p + "balldmg")._visible = debug;
if (pchars == "arayh1") {
eval (p + "balldmg")._width = ballwidth;
eval (p + "balldmg")._height = ballheight;
} else {
eval (p + "balldmg")._width = 85;
eval (p + "balldmg")._height = 85;
}
eval (p + "balldmg")._x = eval (p + "ball")._x;
eval (p + "balldmg")._y = eval (p + "ball")._y;
setShadow(pp, false);
}
goleft = ((pai && (pelite)) && ((((pa._y + (3 * defheight)) < poa._y) && (Math.random() < 0.3)) || (((pa._y + (3 * defheight)) >= poa._y) && ((poa._x <= (pa._x - (2 * defwidth))) || (pa._x > (800 - defwidth)))))) || ((pai && (!pelite)) && ((((eval (p + "state") == RUN_L) || ((pa._xscale > 0) && (Math.random() < 0.4))) || (Math.random() < 0.1)) && (((poa._x < pa._x) || (pa._x > (800 - defwidth))) || (((eval (p + "state") == RUN_L) && (pa._x >= defwidth)) && (Math.random() < 0.8)))));
goright = ((pai && (pelite)) && ((((pa._y + (3 * defheight)) < poa._y) && (Math.random() < 0.3)) || (((pa._y + (3 * defheight)) >= poa._y) && ((poa._x >= (pa._x + (2 * defwidth))) || (pa._x < defwidth))))) || ((pai && (!pelite)) && ((((eval (p + "state") == RUN_R) || ((pa._xscale < 0) && (Math.random() < 0.4))) || (Math.random() < 0.1)) && (((poa._x >= (pa._x - (2 * defwidth))) || (pa._x < defwidth)) || ((eval (p + "state") == RUN_R) && (Math.random() < 0.8)))));
if (((eval (p + "state") != RUN_L) && (eval (p + "state") != RUN_R)) && (eval (p + "state") != IDLE)) {
} else if (controlon && (((((!pai) && (Key.isDown(eval (p + "KEY_LEFT")))) && (!Key.isDown(eval (p + "KEY_RIGHT")))) || (goleft)) || (vmL))) {
if (eval (p + "state") != RUN_L) {
if (eval (p + "jump") == 0) {
if (hyper || (pai && (pelite))) {
pa.gotoAndPlay("dash");
} else {
pa.gotoAndPlay("forward");
}
}
setState(pp, RUN_L);
}
} else if (controlon && (((((!pai) && (Key.isDown(eval (p + "KEY_RIGHT")))) && (!Key.isDown(eval (p + "KEY_LEFT")))) || (goright)) || (vmR))) {
if (eval (p + "state") != RUN_R) {
if (eval (p + "jump") == 0) {
if (hyper || (pai && (pelite))) {
pa.gotoAndPlay("dash");
} else {
pa.gotoAndPlay("forward");
}
}
setState(pp, RUN_R);
}
} else if (eval (p + "state") != IDLE) {
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("idle");
}
setState(pp, IDLE);
}
if (eval (p + "state") == RUN_L) {
if (pa._xscale < 0) {
pa._x = pa._x - defwidth;
pa._xscale = pa._xscale * -1;
dirchg = true;
} else {
pa._x = pa._x - runspd;
}
} else if (eval (p + "state") == RUN_R) {
if (pa._xscale > 0) {
pa._x = pa._x + defwidth;
pa._xscale = pa._xscale * -1;
dirchg = true;
} else {
pa._x = pa._x + runspd;
}
}
if ((eval (p + "swdTrig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK1"))))) {
if (pp == 0) {
p0swdTrig = 0;
} else if (pp == 1) {
p1swdTrig = 0;
}
}
if (((eval (p + "state") != RUN_L) && (eval (p + "state") != RUN_R)) && (eval (p + "state") != IDLE)) {
} else if (((eval (p + "downTrig") != 1) && (!eval (p + "shbreak"))) && (controlon && (((!pai) && (Key.isDown(eval (p + "KEY_BLOCK")))) || (aiblock)))) {
if (pp == 0) {
p0justblock = true;
}
if (pp == 1) {
p1justblock = true;
}
if (pp == 0) {
p0downTrig = 1;
p0dmgpwr = SH_PWR;
} else if (pp == 1) {
p1downTrig = 1;
p1dmgpwr = SH_PWR;
}
if (eval (p + "jump") > 0) {
setJump(pp, -1);
}
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
setState(pp, BLOCK);
pa.gotoAndPlay("block");
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 67;
eval ("damage" + dmgc)._height = 45;
if (pa._xscale > 0) {
setDmg(pp, dmgc, -18, -10);
} else {
setDmg(pp, dmgc, -24 - defwidth, -10);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
}
if ((((eval (p + "swdTrig") != 1) && ((((((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE)) || (eval (p + "state") == SWORD_L)) || (eval (p + "state") == SWORD_R)) && (eval (p + "combo") < 3))) && (controlon)) && (((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK1")))) || (vm1)) || (((((pai && (pelite)) && (!((eval (po + "state") == SEISMIC) && ((pa._y + defheight) < poa._y)))) && (Math.random() < 0.3)) && (pa._x > defwidth)) && (pa._x < (800 - defwidth)))) || ((((pai && (!pelite)) && (((Math.random() < (0.2 * eval (p + "diff"))) && (eval (p + "jump") <= 0)) || ((Math.random() < (0.4 * eval (p + "diff"))) && (InVertRange(2 * defheight))))) && (((poa._x > pa._x) && (pa._xscale < 0)) || ((poa._x < pa._x) && (pa._xscale > 0)))) && (InHoriRange(3 * defwidth))))) {
if (pai && (((Math.random() < (0.05 * eval (p + "diff"))) || (pa._x <= defwidth)) || (pa._x >= (800 - defwidth)))) {
if (pp == 0) {
p0combo = 1;
} else if (pp == 1) {
p1combo = 1;
}
}
if ((pai && (pelite)) || (pai && (Math.random() < (0.05 * eval (p + "diff"))))) {
if (pp == 0) {
p0combo = 2;
} else if (pp == 1) {
p1combo = 2;
}
}
if (eval (p + "combo") > 0) {
eval ("damage" + eval (p + "dmg"))._x = 800;
eval ("damage" + eval (p + "dmg"))._y = 800;
if (pp == 0) {
p0dmg = -1;
} else if (pp == 1) {
p1dmg = -1;
}
eval ("damage" + eval (p + "dmg")).removeMovieClip();
}
if (pa._xscale > 0) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
setState(pp, SWORD_L);
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 80;
eval ("damage" + dmgc)._height = 30;
setDmg(pp, dmgc, -70, 0);
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
if (pp == 0) {
p0dmgpwr = 38;
} else if (pp == 1) {
p1dmgpwr = 38;
}
} else {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
setState(pp, SWORD_R);
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 80;
eval ("damage" + dmgc)._height = 30;
setDmg(pp, dmgc, -10, 0);
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
if (pp == 0) {
p0dmgpwr = 38;
} else if (pp == 1) {
p1dmgpwr = 38;
}
}
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("sword" + eval (p + "combo"));
} else {
pa.gotoAndPlay("sword" + eval (p + "combo"));
}
if (pp == 0) {
p0combo++;
} else if (pp == 1) {
p1combo++;
}
if (soundon) {
eval (p + "snd_sword").start(0, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0swdTrig = 1;
} else if (pp == 1) {
p1swdTrig = 1;
}
}
if ((eval (p + "seismicTrig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK2"))))) {
if (pp == 0) {
p0seismicTrig = 0;
} else if (pp == 1) {
p1seismicTrig = 0;
}
} else if ((((eval (p + "seismicTrig") != 1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK2")))) || (vm2)) || (((((pai && (!pelite)) && (eval (po + "invinc") <= 5)) && (Math.random() < (0.03 * eval (p + "diff")))) && (InHoriRange(3 * defwidth))) && (poa._y <= (pa._y - defheight))))) {
if (pa._xscale > 0) {
setState(pp, SEISMIC_L);
} else {
setState(pp, SEISMIC_R);
}
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("seismic");
} else {
pa.gotoAndPlay("seismic");
}
if (soundon) {
eval (p + "snd").attachSound("seismic");
eval (p + "snd").start(0.5, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0seismicTrig = 1;
p0dmgpwr = 36;
} else if (pp == 1) {
p1seismicTrig = 1;
p1dmgpwr = 36;
}
}
if ((eval (p + "whipTrig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK5"))))) {
if (pp == 0) {
p0whipTrig = 0;
} else if (pp == 1) {
p1whipTrig = 0;
}
} else if ((((eval (p + "whipTrig") != 1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK5")))) || (vm5)) || ((((((((pai && (!pelite)) && (Math.random() < (0.01 * eval (p + "diff")))) && (eval (po + "invinc") <= 5)) && (((poa._x > pa._x) && (pa._xscale < 0)) || ((poa._x < pa._x) && (pa._xscale > 0)))) && (InHoriRange(8 * defwidth))) && (!InHoriRange(2 * defwidth))) && (InVertRange(defHeight))) && (eval (p + "jump") == 0)))) {
setState(pp, WHIP);
pa.gotoAndPlay("whip");
if (soundon) {
eval (p + "snd_sword").start(0, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0whipTrig = 1;
p0dmgpwr = 9;
} else if (pp == 1) {
p1whipTrig = 1;
p1dmgpwr = 9;
}
if (eval (p + "jump") > 0) {
setJump(pp, -1);
}
}
if ((eval (p + "anchorTrig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK4"))))) {
if (pp == 0) {
p0anchorTrig = 0;
} else if (pp == 1) {
p1anchorTrig = 0;
}
} else if ((((eval (p + "anchorTrig") != 1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK4")))) || (vm4)) || ((((((pai && (!pelite)) && (Math.random() < (0.1 * eval (p + "diff")))) && (eval (po + "invinc") <= 5)) && (((pchars == "arayh1") && (InHoriRange(defwidth - 2))) || ((pchars == "fawn1") && (InHoriRange(4 * defwidth))))) && ((pa._y + 5) < poa._y)) && (eval (p + "jump") != 0)))) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
setState(pp, ANCHOR);
pa.gotoAndPlay("anchor");
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 30;
if (pchars == "fawn1") {
eval ("damage" + dmgc)._height = 25;
} else {
eval ("damage" + dmgc)._height = 50;
}
if (pa._xscale > 0) {
setDmg(pp, dmgc, -5, 20);
} else {
setDmg(pp, dmgc, -defwidth, 20);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
if (soundon) {
eval (p + "snd_sword").start(0, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0anchorTrig = 1;
p0dmgpwr = 35;
} else if (pp == 1) {
p1anchorTrig = 1;
p1dmgpwr = 35;
}
setJump(pp, -jumpheight);
pa._y = pa._y + 5;
}
if ((eval (p + "atk6Trig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK6"))))) {
if (pp == 0) {
p0atk6Trig = 0;
} else if (pp == 1) {
p1atk6Trig = 0;
}
} else if ((((eval (p + "atk6Trig") != 1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK6")))) || (vm6)) || ((((((pai && (!pelite)) && (Math.random() < (0.1 * eval (p + "diff")))) && (eval (po + "invinc") <= 5)) && (InHoriRange(defwidth))) && (InVertRange(defheight))) && (eval (p + "jump") != 0)))) {
if (dmgc == eval (po + "dmg")) {
dmgc = (dmgc + 1) % dmgcmax;
}
setState(pp, ATK6);
pa.gotoAndPlay("aerial");
dmgop.duplicateMovieClip("damage" + dmgc, dmgc);
eval ("damage" + dmgc)._visible = debug;
eval ("damage" + dmgc)._width = 50;
if (pchars == "fawn1") {
eval ("damage" + dmgc)._height = 50;
} else {
eval ("damage" + dmgc)._height = 50;
}
if (pa._xscale > 0) {
setDmg(pp, dmgc, -15, -20);
} else {
setDmg(pp, dmgc, -15 - defwidth, -20);
}
reposDmg(pp, pa._x, pa._y);
dmgc = (dmgc + 1) % dmgcmax;
if (soundon) {
eval (p + "snd_sword").start(0, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0atk6Trig = 1;
p0dmgpwr = 22;
} else if (pp == 1) {
p1atk6Trig = 1;
p1dmgpwr = 22;
}
}
if ((eval (p + "ballTrig") == 1) && (pai || (!Key.isDown(eval (p + "KEY_ATTACK3"))))) {
if (pp == 0) {
p0ballTrig = 0;
} else if (pp == 1) {
p1ballTrig = 0;
}
} else if (((((eval (p + "ballTrig") != 1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) && (eval (p + "ball") == null)) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_ATTACK3")))) || (vm3)) || (((((((pai && (!pelite)) && (eval (po + "invinc") <= 5)) && (pa._y <= poa._y)) && (InHoriRange(16 * defwidth))) && ((!InHoriRange(8 * defwidth)) || (pchars == "fawn1"))) && (((poa._x > pa._x) && (pa._xscale < 0)) || ((poa._x < pa._x) && (pa._xscale > 0)))) && (Math.random() < (0.05 * eval (p + "diff")))))) {
if (pa._xscale > 0) {
setState(pp, BALL_L);
} else {
setState(pp, BALL_R);
}
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("ball");
if (pp == 0) {
p0ballair = false;
} else if (pp == 1) {
p1ballair = false;
}
} else {
pa.gotoAndPlay("ballair");
if (pp == 0) {
p0ballair = true;
} else if (pp == 1) {
p1ballair = true;
}
}
if (soundon) {
eval (p + "snd").attachSound("fireball");
eval (p + "snd").start(0, 1);
}
setShadow(pp, true);
if (pp == 0) {
p0ballTrig = 1;
} else if (pp == 1) {
p1ballTrig = 1;
}
}
if (((eval (p + "state") != RUN_L) && (eval (p + "state") != RUN_R)) && (eval (p + "state") != IDLE)) {
} else if ((eval (p + "upTrig") == 1) && (((!controlon) || ((pai || (!Key.isDown(eval (p + "KEY_JUMP")))) && (!pai))) || (pai && (eval (p + "jump") <= 0)))) {
if (pp == 0) {
p0upTrig = 0;
} else if (pp == 1) {
p1upTrig = 0;
}
if (eval (p + "jump") > 0) {
setJump(pp, -1);
}
} else if (((eval (p + "upTrig") != 1) && (controlon)) && (((((!pai) && (Key.isDown(eval (p + "KEY_JUMP")))) || (vmJ)) || ((pai && (pelite)) && (eval (po + "state") == SEISMIC))) || ((pai && (Math.random() < 0.2)) && ((pa._y > poa._y) || ((((pa._y + (5 * defheight)) >= poa._y) && (Math.random() < 0.3)) && (eval (po + "jump") == 0)))))) {
if (eval (p + "jump") == 0) {
Leap(pp);
if (pp == 0) {
p0upTrig = 1;
} else if (pp == 1) {
p1upTrig = 1;
}
pa.gotoAndPlay("jump");
setJump(pp, jumpheight);
pa._y = pa._y - initjump;
}
}
if (startonce > 0) {
startonce--;
}
if (eval (p + "state") == SWORD_L) {
pa._x = pa._x - (runspd * 2);
} else if (eval (p + "state") == SWORD_R) {
pa._x = pa._x + (runspd * 2);
}
if ((eval (p + "state") == ANCHOR) && (pchars == "fawn1")) {
if (pa._xscale > 0) {
pa._x = pa._x - (runspd * 2);
} else {
pa._x = pa._x + (runspd * 2);
}
}
if (((eval (p + "state") == SEISMIC_L) || (eval (p + "state") == SEISMIC_R)) && (pchars == "fawn1")) {
if (pa._currentframe >= (SEISMIC1_FRAME - 6)) {
if (pa._xscale > 0) {
pa._x = pa._x - 2;
} else {
pa._x = pa._x + 2;
}
if ((eval (p + "jump") < 0) && (pa._currentframe <= (SEISMIC2_FRAME + 5))) {
setJump(pp, 0);
}
} else if (pa._xscale > 0) {
pa._x = pa._x - 2;
} else {
pa._x = pa._x + 2;
}
}
if (!dirchg) {
if (eval (p + "state") == BALL_L) {
if (pchars != "fawn1") {
pa._x = pa._x + 6;
}
if ((eval (p + "jump") != 0) || (eval (p + "ballair"))) {
if (eval (p + "ballair")) {
pa._y = pa._y - 6;
if (pchars == "fawn1") {
pa._y = pa._y - 6;
}
} else {
pa._y = pa._y - 1;
}
setJump(pp, 1);
if (pa._currentframe >= BALLAIREND_FRAME) {
pa._x = pa._x - 3;
pa._y = pa._y + 3;
}
} else {
if (pchars == "fawn1") {
pa._x = pa._x + 12;
}
if (pa._currentframe >= BALLEND_FRAME) {
pa._x = pa._x - 3;
}
}
} else if (eval (p + "state") == BALL_R) {
if (pchars != "fawn1") {
pa._x = pa._x - 6;
}
if ((eval (p + "jump") != 0) || (eval (p + "ballair"))) {
if (eval (p + "ballair")) {
pa._y = pa._y - 6;
if (pchars == "fawn1") {
pa._y = pa._y - 6;
}
} else {
pa._y = pa._y - 1;
}
setJump(pp, 1);
if (pa._currentframe >= BALLAIREND_FRAME) {
pa._x = pa._x + 3;
pa._y = pa._y + 3;
}
} else {
if (pchars == "fawn1") {
pa._x = pa._x - 12;
}
if (pa._currentframe >= BALLEND_FRAME) {
pa._x = pa._x + 3;
}
}
}
}
}
if ((icemode && (gameover == 0)) && (eval (p + "jump") == 0)) {
if (eval (p + "hp") > 0) {
if (pa._xscale < 0) {
pa._x = pa._x + 8;
} else {
pa._x = pa._x - 8;
}
} else if (pa._xscale < 0) {
pa._x = pa._x - 8;
} else {
pa._x = pa._x + 8;
}
}
if ((eval (p + "jump") < 0) && (eval (p + "flr") != 0)) {
if (eval (p + "state") == IDLE) {
if (eval (p + "jump") == 0) {
pa.gotoAndPlay("idle");
} else if (eval (p + "jump") > 0) {
pa.gotoAndPlay("jump");
} else if (eval (p + "jump") < 0) {
pa.gotoAndPlay("fall");
}
} else if ((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) {
if (hyper || (pai && (pelite))) {
pa.gotoAndPlay("dash");
} else {
pa.gotoAndPlay("forward");
}
}
if (pp == 0) {
p0teleport = false;
} else if (pp == 1) {
p1teleport = false;
}
setJump(pp, 0);
if (eval (p + "state") == IDLE) {
pa.gotoAndPlay("idle");
}
pa._y = eval (p + "flr") - 1;
} else if ((eval (p + "jump") > 0) && (eval (p + "ceil") != 0)) {
setJump(pp, -1);
pa._y = eval (p + "ceil") + 1;
} else if ((eval (p + "jump") < 0) && (eval (p + "jump") > (-jumpheight))) {
if (((!pai) || (!pelite)) || (!hyper)) {
setJump(pp, eval (p + "jump") - 1);
} else {
setJump(pp, eval (p + "jump") - 2);
}
if (eval (p + "jump") == 0) {
setJump(pp, -1);
}
} else if (eval (p + "jump") > 0) {
if (((!pai) || (!pelite)) || (!hyper)) {
setJump(pp, eval (p + "jump") - 1);
} else {
setJump(pp, eval (p + "jump") - 2);
}
if (eval (p + "jump") == 0) {
setJump(pp, -1);
}
}
if (Math.abs(eval (p + "jump")) <= jumpspd) {
pa._y = pa._y - eval (p + "jump");
} else if (eval (p + "jump") < 0) {
pa._y = pa._y - (-jumpspd);
} else if (eval (p + "jump") > 0) {
pa._y = pa._y - jumpspd;
}
if (pp == 0) {
p0lwall = 0;
} else if (pp == 1) {
p1lwall = 0;
}
x = pa._x;
if (pa._xscale < 0) {
x = x - defwidth;
}
if (eval (p + "oldx") > pa._x) {
if (pp == 0) {
p0lwall = collision(x, eval (p + "oldy"), defwidth, defheight, 2);
} else if (pp == 1) {
p1lwall = collision(x, eval (p + "oldy"), defwidth, defheight, 2);
}
if (((eval (p + "lwall") != 0) && (eval (p + "state") == DAMAGE)) && (pa._xscale < 0)) {
pa._xscale = 100;
pa._x = pa._x - defwidth;
}
} else if (eval (p + "oldx") < pa._x) {
if (pp == 0) {
p0rwall = collision(x, eval (p + "oldy"), defwidth, defheight, 3);
} else if (pp == 1) {
p1rwall = collision(x, eval (p + "oldy"), defwidth, defheight, 3);
}
if (((eval (p + "rwall") != 0) && (eval (p + "state") == DAMAGE)) && (pa._xscale > 0)) {
pa._xscale = -100;
pa._x = pa._x + defwidth;
}
}
if ((((((((eval (p + "wallTrig") != 1) && (eval (p + "upTrig") != 1)) && (pa._x > defwidth)) && (pa._x < (800 - defwidth))) && (eval (p + "jump") != 0)) && (controlon)) && ((((!pai) && (Key.isDown(eval (p + "KEY_JUMP")))) || (vmJ)) || ((pai && (Math.random() < 0.8)) && (poa._y <= pa._y)))) && (pa._y > 0)) {
if ((eval (p + "state") == RUN_L) && (eval (p + "lwall") != 0)) {
if (pp == 0) {
p0wallTrig = 1;
} else if (pp == 1) {
p1wallTrig = 1;
}
if (pp == 0) {
p0upTrig = 1;
} else if (pp == 1) {
p1upTrig = 1;
}
pa._x = eval (p + "lwall") + 1;
pa._y = Math.min(pa._y, collision(eval (p + "lwall"), eval (p + "oldy"), defwidth, defheight, 1) - wallheight);
setState(pp, WALL_L);
pa.gotoAndPlay("wall");
setJump(pp, 4);
WallG(pp);
} else if ((eval (p + "state") == RUN_R) && (eval (p + "rwall") != 0)) {
if (pp == 0) {
p0wallTrig = 1;
} else if (pp == 1) {
p1wallTrig = 1;
}
if (pp == 0) {
p0upTrig = 1;
} else if (pp == 1) {
p1upTrig = 1;
}
pa._x = eval (p + "rwall") - 1;
pa._y = Math.min(pa._y, collision(eval (p + "rwall"), eval (p + "oldy"), defwidth, defheight, 1) - wallheight);
setState(pp, WALL_R);
pa.gotoAndPlay("wall");
setJump(pp, 4);
WallG(pp);
}
}
if (((((((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE)) || ((((eval (p + "state") == DAMAGE) && (pa._currentframe > JUGGLE_FRAME)) && (eval (po + "combo") != 1)) && (eval (po + "combo") != 2))) && (eval (p + "upTrig") != 1)) && (controlon)) && (((!pai) && (Key.isDown(eval (p + "KEY_JUMP")))) || ((((pai && (!pelite)) && (Math.random() < (0.2 * eval (p + "diff")))) && ((pa._y + (5 * defheight)) >= poa._y)) && ((eval (p + "diff") < 2) || (eval (p + "state") != DAMAGE))))) {
if ((!eval (p + "teleport")) || (eval (p + "state") == DAMAGE)) {
if (pp == 0) {
p0teleport = true;
} else if (pp == 1) {
p1teleport = true;
}
if (pp == 0) {
p0upTrig = 1;
} else if (pp == 1) {
p1upTrig = 1;
}
pa.gotoAndPlay("teleport");
setJump(pp, 10);
if ((eval (p + "invinc") == 0) || (eval (p + "state") == DAMAGE)) {
if (eval (p + "state") == DAMAGE) {
setState(pp, IDLE);
pa._y = pa._y + (jumpheight * 4);
setShadow(pp, false);
}
if (pp == 0) {
p0invinc = 5;
} else if (pp == 1) {
p1invinc = 5;
}
}
pa._y = pa._y - (jumpheight * 6);
if (pa._y < -100) {
pa._y = -100;
}
}
}
if (eval (p + "oldx") > pa._x) {
if (eval (p + "lwall") != 0) {
pa._x = eval (p + "lwall") + 1;
if (pa._xscale < 0) {
pa._x = pa._x + defwidth;
}
}
} else if (eval (p + "oldx") < pa._x) {
if (eval (p + "rwall") != 0) {
pa._x = eval (p + "rwall") - 1;
if (pa._xscale > 0) {
pa._x = pa._x - defwidth;
}
}
}
if (((pa._x < (-defwidth)) || (pa._x > (800 + defwidth))) || (pa._y < -500)) {
pa._y = -50;
pa._x = 400;
trace("uh oh");
}
if (pp == 0) {
p0flr = 0;
} else if (pp == 1) {
p1flr = 0;
}
if (eval (p + "oldy") < pa._y) {
x = pa._x;
if (pa._xscale < 0) {
x = x - defwidth;
}
if (pp == 0) {
p0flr = collision(x, pa._y, defwidth, defheight, 0);
} else if (pp == 1) {
p1flr = collision(x, pa._y, defwidth, defheight, 0);
}
if (eval (p + "flr") != 0) {
pa._y = eval (p + "flr") - 1;
if (bouncemode && (gameover == 0)) {
setJump(pp, (-eval (p + "jump")) - 1);
} else {
setJump(pp, 0);
}
Ground(pp);
if ((((eval (p + "state") == SEISMIC_L) || (eval (p + "state") == SEISMIC_R)) && (pchars == "fawn1")) && (pa._currentframe > SEISMIC2_FRAME)) {
pa.gotoAndStop("idle");
}
if (pp == 0) {
p0teleport = false;
} else if (pp == 1) {
p1teleport = false;
}
if (((bouncemode && (gameover == 0)) && (eval (p + "jump") > 0)) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) {
pa.gotoAndPlay("jump");
} else if ((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) {
if (hyper || (pai && (pelite))) {
pa.gotoAndPlay("dash");
} else {
pa.gotoAndPlay("forward");
}
} else if (eval (p + "state") == IDLE) {
pa.gotoAndPlay("idle");
} else if ((eval (p + "state") == SWORD_L) || (eval (p + "state") == SWORD_R)) {
} else if ((eval (p + "state") == SEISMIC_L) || (eval (p + "state") == SEISMIC_R)) {
} else if ((eval (p + "state") == BALL_L) || (eval (p + "state") == BALL_R)) {
} else if (eval (p + "state") == BLOCK) {
} else if (eval (p + "state") == DAMAGE) {
} else if (eval (p + "state") == DEATH) {
}
}
}
if (pp == 0) {
p0ceil = 0;
} else if (pp == 1) {
p1ceil = 0;
}
if (eval (p + "oldy") > pa._y) {
x = pa._x;
if (pa._xscale < 0) {
x = x - defwidth;
}
if (pp == 0) {
p0ceil = collision(x, pa._y, defwidth, defheight, 1);
} else if (pp == 1) {
p1ceil = collision(x, pa._y, defwidth, defheight, 1);
}
if (eval (p + "ceil") != 0) {
pa._y = eval (p + "ceil") + 1;
setJump(pp, -1);
if (pp == 0) {
p0ceil = 0;
} else if (pp == 1) {
p1ceil = 0;
}
}
}
x = pa._x;
if (pa._xscale < 0) {
x = x - defwidth;
}
x = pa._x;
if (pa._xscale < 0) {
x = x - defwidth;
}
d = collision(x, pa._y + 1, defwidth, defheight, 0);
if ((eval (p + "jump") == 0) && (d == 0)) {
setJump(pp, -1);
}
if ((eval (p + "jump") <= -1) && (((eval (p + "state") == RUN_L) || (eval (p + "state") == RUN_R)) || (eval (p + "state") == IDLE))) {
pa.gotoAndPlay("fall");
}
if (((pa._y > 530) && (gameover == 0)) && (eval (p + "hp") > 0)) {
if (falldeathmode && (pp == 0)) {
p0death();
} else if (falldeathmode && (pp == 1)) {
p1death();
} else if (nofallmode) {
setJump(pp, 22);
if (pp == 0) {
p0teleport = 0;
} else {
p1teleport = 0;
}
} else {
pa._y = -30;
}
}
if ((pa._y > 530) && (gameover == 1)) {
pa._y = 531;
}
reposDmg(pp, pa._x, pa._y);
if (eval (p + "ball") != null) {
if (eval (p + "ball")._currentframe < BALLEXP_FRAME) {
b = eval (p + "ball");
bd = eval (p + "balldmg");
b._x = b._x + eval (p + "ballx");
b._y = b._y + eval (p + "bally");
bd._x = bd._x + eval (p + "ballx");
bd._y = bd._y + eval (p + "bally");
if (((pchars == "arayh1") || (heatseekmode)) || (morphmode)) {
if (((b._y > 600) || (collision(b._x, b._y, ballwidth, ballheight, -1))) || (((eval (po + "ball") != null) && ((b._x <= (eval (po + "ball")._x + eval (po + "ball")._width)) && ((b._x + ballwidth) >= eval (po + "ball")._x))) && ((b._y <= (eval (po + "ball")._y + eval (po + "ball")._height)) && ((b._y + ballheight) >= eval (po + "ball")._y)))) {
b.gotoAndPlay("explode");
if (soundon) {
eval (p + "snd_exp").start(0.25, 1);
}
}
}
}
}
runspd = runspdbk;
jumpheight = jumpheightbk;
jumpspd = jumpspdbk;
pp++;
}
p0oldframe = p0a._currentframe;
p0oldframe2 = p0b._currentframe;
p1oldframe = p1a._currentframe;
p1oldframe2 = p1b._currentframe;
p0d.gotoAndStop(p0a._currentframe);
p1d.gotoAndStop(p1a._currentframe);
p0d._xscale = p0a._xscale;
p1d._xscale = p1a._xscale;
p0d._x = p0a._x;
p1d._x = p1a._x;
p0d._y = p0a._y;
p1d._y = p1a._y;
if (p0hp <= hpmax) {
p0hpbar._width = (hpmax - p0hp) * (184 / hpmax);
p0hpbar2._width = 0;
} else {
p0hpbar2._width = Math.min(184, (p0hp - hpmax) * (184 / hpmax));
p0hpbar._width = 0;
}
if (p1hp <= hpmax) {
p1hpbar._width = (hpmax - p1hp) * (184 / hpmax);
p1hpbar2._width = 0;
} else {
p1hpbar2._width = Math.min(184, (p1hp - hpmax) * (184 / hpmax));
p1hpbar._width = 0;
}
if (((p0state != BLOCK) && (p0sh < shmax)) && (p0sh > shmin)) {
p0sh = p0sh + 0.5;
}
if (((p1state != BLOCK) && (p1sh < shmax)) && (p1sh > shmin)) {
p1sh = p1sh + 0.5;
}
if (((p0state != BLOCK) && (p0sh < shmax)) && (p0sh <= shmin)) {
p0sh = p0sh + 0.2;
if (p0sh > shmin) {
p0shbreak = false;
new Color("p0shbar").setTransform(normtrans);
}
}
if (((p1state != BLOCK) && (p1sh < shmax)) && (p1sh <= shmin)) {
p1sh = p1sh + 0.2;
if (p1sh > shmin) {
p1shbreak = false;
new Color("p1shbar").setTransform(normtrans);
}
}
p0shbar._width = (shmax - p0sh) * 2;
p1shbar._width = (shmax - p1sh) * 2;
if (returnto == "challenge") {
score = Math.floor((hpmax * 200) - p0hp);
}
if (invismode) {
p0a._alpha = Math.abs(10 - count) * 2;
p0b._alpha = Math.abs(10 - count) * 2;
p0c._alpha = Math.abs(10 - count) * 2;
p1a._alpha = Math.abs(10 - count) * 2;
p1b._alpha = Math.abs(10 - count) * 2;
p1c._alpha = Math.abs(10 - count) * 2;
}
if (virusmode) {
p0a._rotation = -5 + Math.abs(10 - count);
p1a._rotation = -5 + Math.abs(10 - count);
if (count == 3) {
new Color("p1a").setTransform(normtrans);
}
if ((count == 3) && (p0chars == p1chars)) {
new Color("p0a").setTransform(p0trans);
} else if (count == 3) {
new Color("p0a").setTransform(normtrans);
}
}
if ((poisonmode && (p0hp > 0)) && (p1hp > 0)) {
p0hp = p0hp - (p0poison / 10);
p1hp = p1hp - (p1poison / 10);
if (p0hp <= 0) {
p0death();
}
if (p1hp <= 0) {
p1death();
}
}
if ((decaymode && (p0hp > 0)) && (p1hp > 0)) {
p0hp = p0hp - 0.2;
p1hp = p1hp - 0.2;
if (p0hp <= 0) {
p0death();
}
if (p1hp <= 0) {
p1death();
}
}
if (heatseekmode && (gameover == 0)) {
if (p0ball != null) {
if ((p0ballx <= 9) && (p1a._x > (p0ball._x + p0ball._width))) {
p0ballx = p0ballx + 2;
} else if ((p0ballx >= -9) && (p1a._x < p0ball._x)) {
p0ballx = p0ballx - 2;
}
if ((p0bally <= 9) && (p1a._y > (p0ball._y + p0ball._height))) {
p0bally = p0bally + 2;
} else if ((p0bally >= -9) && (p1a._y < p0ball._y)) {
p0bally = p0bally - 2;
}
}
if (p1ball != null) {
if ((p1ballx <= 9) && (p0a._x > (p1ball._x + p1ball._width))) {
p1ballx = p1ballx + 2;
} else if ((p1ballx >= -9) && (p0a._x < p1ball._x)) {
p1ballx = p1ballx - 2;
}
if ((p1bally <= 9) && (p0a._y > (p1ball._y + p1ball._height))) {
p1bally = p1bally + 2;
} else if ((p1bally >= -9) && (p0a._y < p1ball._y)) {
p1bally = p1bally - 2;
}
}
if (p0ballx < -10) {
p0ballx = -10;
}
if (p0ballx > 10) {
p0ballx = 10;
}
if (p0bally < -10) {
p0bally = -10;
}
if (p0bally > 10) {
p0bally = 10;
}
if (p1ballx < -10) {
p1ballx = -10;
}
if (p1ballx > 10) {
p1ballx = 10;
}
if (p1bally < -10) {
p1bally = -10;
}
if (p1bally > 10) {
p1bally = 10;
}
}
if (banzaimode) {
p0ball._width = p0ball._width + 4;
p0ball._height = p0ball._height + 4;
p0ball._x = p0ball._x - 2;
p0ball._y = p0ball._y - 2;
p0balldmg._width = p0balldmg._width + 4;
p0balldmg._height = p0balldmg._height + 4;
p0balldmg._x = p0balldmg._x - 2;
p0balldmg._y = p0balldmg._y - 2;
p1ball._width = p1ball._width + 4;
p1ball._height = p1ball._height + 4;
p1ball._x = p1ball._x - 2;
p1ball._y = p1ball._y - 2;
p1balldmg._width = p1balldmg._width + 4;
p1balldmg._height = p1balldmg._height + 4;
p1balldmg._x = p1balldmg._x - 2;
p1balldmg._y = p1balldmg._y - 2;
}
if (p0justblock && (jinxmode)) {
p1jump = p1jump * -1;
p0sh = p0sh - 5;
}
if (p1justblock && (jinxmode)) {
p0jump = p0jump * -1;
p1sh = p1sh - 5;
}
if (morphmode && (p0justblock)) {
p0morph();
p0a.gotoAndPlay("block");
}
if (morphmode && (p1justblock)) {
p1morph();
p1a.gotoAndPlay("block");
}
if (powershmode && (p0state == BLOCK)) {
p0sh = p0sh - 3;
} else if (powershmode && (p1state == BLOCK)) {
p1sh = p1sh - 3;
} else if (p0state == BLOCK) {
p0sh--;
} else if (p1state == BLOCK) {
p1sh--;
}
if (p0sh < 0) {
p0sh = 0;
}
if (p1sh < 0) {
p1sh = 0;
}
if (((p0state == ANCHOR) && (p0chars == "arayh1")) && (p0jump == 0)) {
p0jump = -1;
}
if (((p1state == ANCHOR) && (p1chars == "arayh1")) && (p1jump == 0)) {
p1jump = -1;
}
new Color("p0ball").setTransform(new Color("p0a").getTransform());
new Color("p1ball").setTransform(new Color("p1a").getTransform());
count++;
if (count > 20) {
count = 0;
}
Frame 865
gotoAndPlay (864);
Symbol 48 Button
on (release) {
_parent.eval("damage" + p0dmg).removeMovieClip();
_parent.eval("damage" + p1dmg).removeMovieClip();
_parent.p0balldmg.removeMovieClip();
_parent.p1balldmg.removeMovieClip();
_parent.p1hpmug.removeMovieClip();
_parent.p0hpmug.removeMovieClip();
stopAllSounds();
if (_root.musicon) {
_root.snd_menumusic.start(0, 9999);
}
this._visible = false;
_root.fg.removeMovieClip();
_root.gotoAndPlay("menu");
}
Symbol 52 Button
on (release) {
_root.soundon = !_root.soundon;
if (_root.soundon) {
_root.snd_ok.start(0, 1);
}
if (_root.soundon) {
_root.soundons = "ON";
soundons = "ON";
_root.snd_ok.setVolume(100);
_root.snd_back.setVolume(100);
} else {
_root.soundons = "OFF";
soundons = "OFF";
_root.snd_ok.setVolume(0);
_root.snd_back.setVolume(0);
}
}
Symbol 56 Button
on (release) {
_root.snd_ok.start(0, 1);
_root.musicon = !_root.musicon;
if (_root.musicon) {
_root.musicons = "ON";
musicons = "ON";
_root.music.start(0, 9999);
} else {
_root.musicons = "OFF";
musicons = "OFF";
_root.music.stop();
}
}
Symbol 59 Button
on (release) {
this._visible = false;
if (_parent.movs._currentframe == _parent.MOVSLAST_FRAME) {
_parent.play();
_parent.p0ball.play();
_parent.p1ball.play();
menu._visible = false;
if (_parent.p0ground._currentframe < _parent.p0ground._totalframes) {
_parent.p0ground.play();
}
if (_parent.p1ground._currentframe < _parent.p1ground._totalframes) {
_parent.p1ground.play();
}
if (_parent.p0leap._currentframe < _parent.p0leap._totalframes) {
_parent.p0leap.play();
}
if (_parent.p1leap._currentframe < _parent.p1leap._totalframes) {
_parent.p1leap.play();
}
} else {
_parent.movs.play();
}
_parent.fg.play();
_parent.p0a.play();
_parent.p1a.play();
_parent.pause = 0;
}
Symbol 66 Button
on (release) {
_root.getURL("http://arayh.netfirms.com/cgi-bin/hiscore.cgi", "_level1", "POST");
userbox._visible = false;
submithi._visible = false;
submitted._visible = true;
submitted.gotoAndPlay(1);
}
Symbol 73 Button
on (release) {
getURL ("http://arayh.netfirms.com/cgi-bin/hiscore.cgi", "_blank");
}
Symbol 74 MovieClip Frame 161
stop();
Symbol 75 MovieClip [gameover] Frame 1
_root.Selection.setFocus(userbox);
Symbol 77 MovieClip [a1fg] Frame 1
stop();
Symbol 89 MovieClip [ball2] Frame 16
if (_root.soundon) {
s_ballexp = new Sound();
s_ballexp.attachSound("explosion");
s_ballexp.start(0.5, 1);
}
Symbol 89 MovieClip [ball2] Frame 29
stop();
Symbol 277 MovieClip [ball] Frame 15
gotoAndPlay (1);
Symbol 277 MovieClip [ball] Frame 16
if (_root.soundon) {
s_ballexp = new Sound();
s_ballexp.attachSound("explosion");
s_ballexp.start(0.5, 1);
}
Symbol 277 MovieClip [ball] Frame 29
stop();
Symbol 286 MovieClip [arayh1] Frame 25
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 55
gotoAndPlay (42);
Symbol 286 MovieClip [arayh1] Frame 69
gotoAndPlay (67);
Symbol 286 MovieClip [arayh1] Frame 72
gotoAndPlay (70);
Symbol 286 MovieClip [arayh1] Frame 86
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 97
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 109
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 128
gotoAndPlay (67);
Symbol 286 MovieClip [arayh1] Frame 162
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 184
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 195
gotoAndPlay (70);
Symbol 286 MovieClip [arayh1] Frame 206
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 216
gotoAndPlay (209);
Symbol 286 MovieClip [arayh1] Frame 237
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 240
gotoAndPlay (238);
Symbol 286 MovieClip [arayh1] Frame 305
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 331
gotoAndPlay (67);
Symbol 286 MovieClip [arayh1] Frame 361
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 375
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 420
gotoAndPlay (1);
Symbol 286 MovieClip [arayh1] Frame 451
gotoAndPlay (448);
Symbol 286 MovieClip [arayh1] Frame 591
stop();
Symbol 427 MovieClip [fawn1] Frame 25
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 55
gotoAndPlay (42);
Symbol 427 MovieClip [fawn1] Frame 69
gotoAndPlay (67);
Symbol 427 MovieClip [fawn1] Frame 72
gotoAndPlay (70);
Symbol 427 MovieClip [fawn1] Frame 86
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 97
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 109
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 128
gotoAndPlay (67);
Symbol 427 MovieClip [fawn1] Frame 165
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 195
gotoAndPlay (70);
Symbol 427 MovieClip [fawn1] Frame 206
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 216
gotoAndPlay (209);
Symbol 427 MovieClip [fawn1] Frame 237
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 240
gotoAndPlay (238);
Symbol 427 MovieClip [fawn1] Frame 305
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 331
gotoAndPlay (67);
Symbol 427 MovieClip [fawn1] Frame 358
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 375
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 419
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 444
gotoAndPlay (1);
Symbol 427 MovieClip [fawn1] Frame 466
gotoAndPlay (463);
Symbol 427 MovieClip [fawn1] Frame 591
stop();
Symbol 450 Button
on (release) {
gotoAndPlay (734);
}
Symbol 483 Button
on (release) {
gotoAndPlay (734);
}
Symbol 494 MovieClip Frame 3
gotoAndPlay (2);
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 3
stop();
Symbol 521 MovieClip Frame 4
stop();
Symbol 526 MovieClip Frame 10
stop();
Symbol 530 MovieClip Frame 4
stop();
Symbol 536 MovieClip Frame 6
stop();
Symbol 549 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (772);
}
Symbol 552 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (794);
}
Symbol 555 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (807);
}
Symbol 559 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (783);
}
Symbol 562 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (801);
}
Symbol 566 Button
on (release) {
getURL ("http://www.geocites.com/arayh_al/etherena-beta.html", _self);
}
Symbol 570 Button
on (release) {
stopAllSounds();
gotoAndPlay (55);
}
Symbol 573 Button
on (release) {
snd_ok.start(0, 1);
gotoSecret(secretlvl);
}
Symbol 580 Button
on (release) {
snd_back.start(0, 1);
gotoAndPlay (767);
}
Symbol 583 Button
on (release) {
snd_ok.start(0, 1);
gotoAndPlay (779);
}
Symbol 585 Button
on (release) {
soundon = !soundon;
if (soundon) {
snd_ok.start(0, 1);
}
if (soundon) {
soundons = "ON";
_root.snd_ok.setVolume(100);
_root.snd_back.setVolume(100);
} else {
soundons = "OFF";
_root.snd_ok.setVolume(0);
_root.snd_back.setVolume(0);
}
}
Symbol 587 Button
on (release) {
snd_ok.start(0, 1);
musicon = !musicon;
if (musicon) {
musicons = "ON";
snd_menumusic.start(0, 9999);
} else {
musicons = "OFF";
snd_menumusic.stop();
}
}
Symbol 592 Button
on (release) {
snd_back.start(0, 1);
gotoAndPlay (772);
}
Symbol 628 Button
on (release) {
p1KEY_JUMP = 87;
p1KEY_BLOCK = 83;
p1KEY_LEFT = 65;
p1KEY_RIGHT = 68;
p1KEY_ATTACK1 = 70;
p1KEY_ATTACK2 = 71;
p1KEY_ATTACK3 = 72;
p1KEY_ATTACK4 = 86;
p1KEY_ATTACK5 = 66;
p1KEY_ATTACK6 = 78;
gotoAndPlay (779);
}
Symbol 629 Button
on (release) {
p0KEY_JUMP = 38;
p0KEY_BLOCK = 40;
p0KEY_LEFT = 37;
p0KEY_RIGHT = 39;
p0KEY_ATTACK1 = 100;
p0KEY_ATTACK2 = 101;
p0KEY_ATTACK3 = 102;
p0KEY_ATTACK4 = 97;
p0KEY_ATTACK5 = 98;
p0KEY_ATTACK6 = 99;
gotoAndPlay (779);
}
Symbol 631 Button
on (release) {
getchkey = "PLAYER 2: LEFT";
gotoAndPlay (781);
}
Symbol 632 Button
on (release) {
getchkey = "PLAYER 2: RIGHT";
gotoAndPlay (781);
}
Symbol 633 Button
on (release) {
getchkey = "PLAYER 2: JUMP";
gotoAndPlay (781);
}
Symbol 634 Button
on (release) {
getchkey = "PLAYER 2: SHIELD";
gotoAndPlay (781);
}
Symbol 635 Button
on (release) {
getchkey = "PLAYER 2: ATTACK1";
gotoAndPlay (781);
}
Symbol 636 Button
on (release) {
getchkey = "PLAYER 2: ATTACK2";
gotoAndPlay (781);
}
Symbol 637 Button
on (release) {
getchkey = "PLAYER 2: ATTACK3";
gotoAndPlay (781);
}
Symbol 638 Button
on (release) {
getchkey = "PLAYER 2: ATTACK4";
gotoAndPlay (781);
}
Symbol 639 Button
on (release) {
getchkey = "PLAYER 2: ATTACK5";
gotoAndPlay (781);
}
Symbol 640 Button
on (release) {
getchkey = "PLAYER 1: LEFT";
gotoAndPlay (781);
}
Symbol 641 Button
on (release) {
getchkey = "PLAYER 1: RIGHT";
gotoAndPlay (781);
}
Symbol 642 Button
on (release) {
getchkey = "PLAYER 1: JUMP";
gotoAndPlay (781);
}
Symbol 643 Button
on (release) {
getchkey = "PLAYER 1: SHIELD";
gotoAndPlay (781);
}
Symbol 644 Button
on (release) {
getchkey = "PLAYER 1: ATTACK1";
gotoAndPlay (781);
}
Symbol 645 Button
on (release) {
getchkey = "PLAYER 1: ATTACK2";
gotoAndPlay (781);
}
Symbol 646 Button
on (release) {
getchkey = "PLAYER 1: ATTACK3";
gotoAndPlay (781);
}
Symbol 647 Button
on (release) {
getchkey = "PLAYER 1: ATTACK4";
gotoAndPlay (781);
}
Symbol 648 Button
on (release) {
getchkey = "PLAYER 1: ATTACK5";
gotoAndPlay (781);
}
Symbol 649 Button
on (release) {
getchkey = "PLAYER 1: ATTACK6";
gotoAndPlay (781);
}
Symbol 650 Button
on (release) {
getchkey = "PLAYER 2: ATTACK6";
gotoAndPlay (781);
}
Symbol 700 Button
on (release) {
getURL ("http://arayh.iwarp.com/", "_blank");
}
Symbol 703 Button
on (release) {
getURL ("http://arayh.netfirms.com/ethchat.html", "_blank");
}
Symbol 706 Button
on (release) {
snd_back.start(0, 1);
returnto = "";
gotoAndPlay (767);
}
Symbol 719 Button
on (release) {
snd_menumusic.stop();
createSprites();
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = (hpmax * p0hpx) / 100;
p1hp = (hpmax * p1hpx) / 100;
returnto = "versus";
gotoAndPlay (863);
}
Symbol 723 Button
on (release) {
snd_ok.start(0, 1);
hyper = !hyper;
if (hyper) {
hypers = "ON";
} else {
hypers = "OFF";
}
}
Symbol 728 Button
on (release) {
snd_ok.start(0, 1);
if (p1ais == "human") {
p1ais = "cpu easy";
p1ai = true;
p1diff = 0.15;
p1elite = false;
} else if (p1ais == "cpu easy") {
p1ais = "cpu normal";
p1diff = 0.5;
} else if (p1ais == "cpu normal") {
p1ais = "cpu hard";
p1diff = 2;
} else if (p1ais == "cpu hard") {
p1ais = "cpu elite";
p1diff = 3;
p1elite = true;
} else if (p1ais == "cpu elite") {
p1ais = "human";
p1ai = false;
}
}
Symbol 742 Button
on (release) {
snd_ok.start(0, 1);
if (p0hps == "HP: 100%") {
p0hps = "HP: 125%";
p0hpx = 125;
} else if (p0hps == "HP: 125%") {
p0hps = "HP: 150%";
p0hpx = 150;
} else if (p0hps == "HP: 150%") {
p0hps = "HP: 175%";
p0hpx = 175;
} else if (p0hps == "HP: 175%") {
p0hps = "HP: 200%";
p0hpx = 200;
} else if (p0hps == "HP: 200%") {
p0hps = "HP: INF";
p0hpx = 30000;
} else if (p0hps == "HP: INF") {
p0hps = "HP: 25%";
p0hpx = 25;
} else if (p0hps == "HP: 25%") {
p0hps = "HP: 50%";
p0hpx = 50;
} else if (p0hps == "HP: 50%") {
p0hps = "HP: 75%";
p0hpx = 75;
} else if (p0hps == "HP: 75%") {
p0hps = "HP: 100%";
p0hpx = 100;
}
}
Symbol 746 Button
on (release) {
snd_ok.start(0, 1);
if (p0ais == "human") {
p0ais = "cpu easy";
p0ai = true;
p0diff = 0.15;
p0elite = false;
} else if (p0ais == "cpu easy") {
p0ais = "cpu normal";
p0diff = 0.5;
} else if (p0ais == "cpu normal") {
p0ais = "cpu hard";
p0diff = 2;
} else if (p0ais == "cpu hard") {
p0ais = "cpu elite";
p0diff = 3;
p0elite = true;
} else if (p0ais == "cpu elite") {
p0ais = "human";
p0ai = false;
}
}
Symbol 749 Button
on (release) {
snd_ok.start(0, 1);
if (p1hps == "HP: 100%") {
p1hps = "HP: 125%";
p1hpx = 125;
} else if (p1hps == "HP: 125%") {
p1hps = "HP: 150%";
p1hpx = 150;
} else if (p1hps == "HP: 150%") {
p1hps = "HP: 175%";
p1hpx = 175;
} else if (p1hps == "HP: 175%") {
p1hps = "HP: 200%";
p1hpx = 200;
} else if (p1hps == "HP: 200%") {
p1hps = "HP: INF";
p1hpx = 30000;
} else if (p1hps == "HP: INF") {
p1hps = "HP: 25%";
p1hpx = 25;
} else if (p1hps == "HP: 25%") {
p1hps = "HP: 50%";
p1hpx = 50;
} else if (p1hps == "HP: 50%") {
p1hps = "HP: 75%";
p1hpx = 75;
} else if (p1hps == "HP: 75%") {
p1hps = "HP: 100%";
p1hpx = 100;
}
}
Symbol 752 Button
on (release) {
snd_ok.start(0, 1);
if (lvls == "treetop") {
lvls = "pitfall";
lvl = 2;
} else if (lvls == "pitfall") {
lvls = "city";
lvl = 3;
} else if (lvls == "city") {
lvls = "snow";
lvl = 4;
} else if (lvls == "snow") {
lvls = "treetop";
lvl = 1;
}
bg.gotoAndStop(lvl);
}
Symbol 774 Button
on (release) {
snd_ok.start(0, 1);
if (p0chars == "arayh1") {
p0chars = "fawn1";
p0chr.gotoAndStop(2);
} else if (p0chars == "fawn1") {
p0chars = "arayh1";
p0chr.gotoAndStop(1);
}
if (p0chars == p1chars) {
new Color("p0chr").setTransform(p0trans);
} else {
new Color("p0chr").setTransform(normtrans);
}
}
Symbol 775 Button
on (release) {
snd_ok.start(0, 1);
if (p1chars == "arayh1") {
p1chars = "fawn1";
p1chr.gotoAndStop(2);
} else if (p1chars == "fawn1") {
p1chars = "arayh1";
p1chr.gotoAndStop(1);
}
if (p0chars == p1chars) {
new Color("p0chr").setTransform(p0trans);
} else {
new Color("p0chr").setTransform(normtrans);
}
}
Symbol 776 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 2
stop();
Symbol 782 Button
on (release) {
snd_ok.start(0, 1);
returnto = "versus";
gotoAndPlay (858);
}
Symbol 788 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 1
stop();
Symbol 804 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (1);
}
Symbol 805 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (106);
}
Symbol 806 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (202);
}
Symbol 807 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (204);
}
Symbol 808 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (220);
}
Symbol 809 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (245);
}
Symbol 810 Button
on (release) {
_root.snd_ok.start(0, 1);
gotoAndPlay (257);
}
Symbol 813 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 105
gotoAndPlay (1);
Symbol 853 MovieClip Frame 201
gotoAndPlay (106);
Symbol 853 MovieClip Frame 203
stop();
Symbol 853 MovieClip Frame 219
gotoAndPlay (204);
Symbol 853 MovieClip Frame 244
gotoAndPlay (220);
Symbol 853 MovieClip Frame 256
gotoAndPlay (245);
Symbol 853 MovieClip Frame 287
gotoAndPlay (257);
Symbol 863 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = true;
hypers = "ON";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 200%";
p1elite = false;
p1hpx = 200;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 200;
p1hp = hpmax * 2;
returnto = "challenge";
turnOffSecrets();
}
Symbol 864 Button
on (release) {
snd_back.start(0, 1);
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = false;
p0ais = "human";
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
returnto = "";
gotoAndPlay (767);
}
Symbol 867 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
p1ai = false;
p1ais = "human";
p1hps = "HP: 200%";
p1elite = false;
p1hpx = 200;
p0ai = true;
p0ais = "cpu elite";
p0diff = 3;
p0elite = true;
p0hps = "HP: 200%";
p0hpx = 200;
hyper = false;
hypers = "OFF";
lvl = 2;
lvls = "pitfall";
bg.gotoAndStop(lvl);
createSprites();
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 200;
p1hp = hpmax * 2;
returnto = "challenge";
turnOffSecrets();
}
Symbol 868 Button
on (release) {
snd_ok.start(0, 1);
if (p1chars == "arayh1") {
p1chars = "fawn1";
p1chr.gotoAndStop(2);
} else if (p1chars == "fawn1") {
p1chars = "arayh1";
p1chr.gotoAndStop(1);
}
}
Symbol 871 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
p1ai = false;
p1ais = "human";
p1hps = "HP: 200%";
p1elite = false;
p1hpx = 200;
p0ai = true;
p0ais = "cpu elite";
p0diff = 3;
p0elite = true;
p0hps = "HP: 200%";
p0hpx = 200;
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 200;
p1hp = hpmax * 2;
returnto = "challenge";
turnOffSecrets();
blackoutmode = true;
heatseekmode = true;
decaymode = true;
}
Symbol 875 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
suddenmode = true;
}
Symbol 878 Button
on (release) {
snd_back.start(0, 1);
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = false;
p0ais = "human";
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
a2fg._visible = false;
returnto = "";
gotoAndPlay (767);
}
Symbol 881 Button
on (release, keyPress "<Enter>") {
snd_ok.start(0, 1);
setLvl();
if (secretlvl == secretmax) {
_root.nxtlvl._visible = false;
}
}
Symbol 884 Button
on (release) {
snd_ok.start(0, 1);
if (secretlvl < secretmax) {
secretlvl++;
if (secretlvl == secretmax) {
_root.nxtlvl._visible = false;
}
_root.gotoSecret(secretlvl);
}
}
Symbol 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 2
play();
Symbol 889 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 125%";
p1elite = false;
p1hpx = 125;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax;
p1hp = hpmax * 1.25;
returnto = "secrets";
turnOffSecrets();
stoneskinmode = true;
}
Symbol 897 Button
on (release) {
snd_ok.start(0, 1);
secretlvl--;
_root.nxtlvl._visible = true;
_root.gotoSecret(secretlvl);
}
Symbol 899 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 4;
lvls = "snow";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
icemode = true;
}
Symbol 903 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 2;
lvls = "pitfall";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 175%";
p1elite = false;
p1hpx = 175;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax * 1.75;
returnto = "secrets";
turnOffSecrets();
decaymode = true;
}
Symbol 907 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 125%";
p0hpx = 125;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.25;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
bouncemode = true;
}
Symbol 911 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = true;
hypers = "ON";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 125%";
p0hpx = 125;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.25;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
nofallmode = true;
}
Symbol 915 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 25%";
p1elite = false;
p1hpx = 25;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 200;
p1hp = hpmax * 0.25;
returnto = "secrets";
turnOffSecrets();
falldeathmode = true;
}
Symbol 919 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 125%";
p0hpx = 125;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.5;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
virusmode = true;
}
Symbol 923 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 25%";
p1elite = false;
p1hpx = 25;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax * 0.25;
returnto = "secrets";
turnOffSecrets();
powershmode = true;
}
Symbol 927 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = true;
hypers = "ON";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 175%";
p0hpx = 175;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.75;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
jinxmode = true;
}
Symbol 931 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 2;
lvls = "pitfall";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 25%";
p1elite = false;
p1hpx = 25;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax * 0.25;
returnto = "secrets";
turnOffSecrets();
poisonmode = true;
}
Symbol 935 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "snow";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 175%";
p0hpx = 175;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.75;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
invismode = true;
}
Symbol 939 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
blackoutmode = true;
}
Symbol 943 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 2;
lvls = "pitfall";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 25%";
p1elite = false;
p1hpx = 25;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax * 0.25;
returnto = "secrets";
turnOffSecrets();
jugglemode = true;
}
Symbol 947 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 150%";
p1elite = false;
p1hpx = 150;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 100%";
p0hpx = 100;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax;
p1hp = hpmax * 1.5;
returnto = "secrets";
turnOffSecrets();
mirrormode = true;
}
Symbol 951 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 200%";
p1elite = false;
p1hpx = 200;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 175%";
p0hpx = 175;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 1.75;
p1hp = hpmax * 2;
returnto = "secrets";
turnOffSecrets();
upsidedownmode = true;
}
Symbol 955 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 4;
lvls = "snow";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 100%";
p1elite = false;
p1hpx = 100;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax;
returnto = "secrets";
turnOffSecrets();
invismode = true;
blackoutmode = true;
}
Symbol 959 Button
on (release) {
snd_menumusic.stop();
p0chars = "arayh1";
hyper = false;
hypers = "OFF";
lvl = 3;
lvls = "city";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 25%";
p1elite = false;
p1hpx = 25;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 10;
p1hp = hpmax * 0.25;
returnto = "secrets";
turnOffSecrets();
powershmode = true;
}
Symbol 963 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = true;
hypers = "ON";
lvl = 2;
lvls = "pitfall";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 50%";
p1elite = false;
p1hpx = 50;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 200%";
p0hpx = 200;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 2;
p1hp = hpmax * 0.5;
returnto = "secrets";
turnOffSecrets();
jugglemode = true;
bouncemode = true;
decaymode = true;
}
Symbol 967 Button
on (release) {
snd_menumusic.stop();
p0chars = "fawn1";
hyper = false;
hypers = "OFF";
lvl = 1;
lvls = "treetop";
bg.gotoAndStop(lvl);
createSprites();
p1ai = false;
p1ais = "human";
p1hps = "HP: 200%";
p1elite = false;
p1hpx = 200;
p0ai = true;
p0ais = "cpu hard";
p0diff = 2;
p0elite = false;
p0hps = "HP: 300%";
p0hpx = 300;
gotoAndPlay (863);
p0a.gotoAndPlay("intro");
p1a.gotoAndPlay("intro");
p1a._xscale = p1a._xscale * -1;
p0a._visible = true;
p1a._visible = true;
p0hp = hpmax * 3.25;
p1hp = hpmax * 2;
returnto = "secrets";
turnOffSecrets();
blackoutmode = true;
heatseekmode = true;
decaymode = true;
}
Symbol 972 Button
on (release) {
getURL ("http://arayh.netfirms.com/mf800x600.jpg", "_blank");
}
Symbol 975 Button
on (release) {
getURL ("http://arayh.netfirms.com/mf1024x768.jpg", "_blank");
}
Symbol 987 Button
on (release) {
snd_ok.start(0, 1);
if (suddens != "LOCKED") {
suddenmode = !suddenmode;
if (suddenmode) {
suddens = "ON";
} else {
suddens = "OFF";
}
}
}
Symbol 991 Button
on (release) {
snd_ok.start(0, 1);
if (stoneskins != "LOCKED") {
stoneskinmode = !stoneskinmode;
if (stoneskinmode) {
stoneskins = "ON";
} else {
stoneskins = "OFF";
}
}
}
Symbol 996 Button
on (release) {
snd_ok.start(0, 1);
if (ices != "LOCKED") {
icemode = !icemode;
if (icemode) {
ices = "ON";
} else {
ices = "OFF";
}
}
}
Symbol 1000 Button
on (release) {
snd_ok.start(0, 1);
if (decays != "LOCKED") {
decaymode = !decaymode;
if (decaymode) {
decays = "ON";
} else {
decays = "OFF";
}
}
}
Symbol 1004 Button
on (release) {
snd_ok.start(0, 1);
if (nofalls != "LOCKED") {
nofallmode = !nofallmode;
if (nofallmode) {
nofalls = "ON";
} else {
nofalls = "OFF";
}
}
}
Symbol 1008 Button
on (release) {
snd_ok.start(0, 1);
if (falldeaths != "LOCKED") {
falldeathmode = !falldeathmode;
if (falldeathmode) {
falldeaths = "ON";
} else {
falldeaths = "OFF";
}
}
}
Symbol 1012 Button
on (release) {
snd_ok.start(0, 1);
if (viruss != "LOCKED") {
virusmode = !virusmode;
if (virusmode) {
viruss = "ON";
} else {
viruss = "OFF";
}
}
}
Symbol 1016 Button
on (release) {
snd_ok.start(0, 1);
if (powershs != "LOCKED") {
powershmode = !powershmode;
if (powershmode) {
powershs = "ON";
} else {
powershs = "OFF";
}
}
}
Symbol 1020 Button
on (release) {
snd_ok.start(0, 1);
if (jinxs != "LOCKED") {
jinxmode = !jinxmode;
if (jinxmode) {
jinxs = "ON";
} else {
jinxs = "OFF";
}
}
}
Symbol 1024 Button
on (release) {
snd_ok.start(0, 1);
if (poisons != "LOCKED") {
poisonmode = !poisonmode;
if (poisonmode) {
poisons = "ON";
} else {
poisons = "OFF";
}
}
}
Symbol 1028 Button
on (release) {
snd_ok.start(0, 1);
if (inviss != "LOCKED") {
invismode = !invismode;
if (invismode) {
inviss = "ON";
} else {
inviss = "OFF";
}
}
}
Symbol 1032 Button
on (release) {
snd_ok.start(0, 1);
if (blackouts != "LOCKED") {
blackoutmode = !blackoutmode;
if (blackoutmode) {
blackouts = "ON";
} else {
blackouts = "OFF";
}
}
}
Symbol 1036 Button
on (release) {
snd_ok.start(0, 1);
if (juggles != "LOCKED") {
jugglemode = !jugglemode;
if (jugglemode) {
juggles = "ON";
} else {
juggles = "OFF";
}
}
}
Symbol 1040 Button
on (release) {
snd_ok.start(0, 1);
if (mirrors != "LOCKED") {
mirrormode = !mirrormode;
if (mirrormode) {
mirrors = "ON";
} else {
mirrors = "OFF";
}
}
}
Symbol 1044 Button
on (release) {
snd_ok.start(0, 1);
if (upsidedowns != "LOCKED") {
upsidedownmode = !upsidedownmode;
if (upsidedownmode) {
upsidedowns = "ON";
} else {
upsidedowns = "OFF";
}
}
}
Symbol 1049 Button
on (release) {
snd_ok.start(0, 1);
if (heatseeks != "LOCKED") {
heatseekmode = !heatseekmode;
if (heatseekmode) {
heatseeks = "ON";
} else {
heatseeks = "OFF";
}
}
}
Symbol 1052 Button
on (release) {
snd_ok.start(0, 1);
if (banzais != "LOCKED") {
banzaimode = !banzaimode;
if (banzaimode) {
banzais = "ON";
} else {
banzais = "OFF";
}
}
}
Symbol 1053 Button
on (release) {
snd_back.start(0, 1);
returnto = "versus";
gotoAndPlay (767);
}
Symbol 1058 Button
on (release) {
snd_ok.start(0, 1);
if (bounces != "LOCKED") {
bouncemode = !bouncemode;
if (bouncemode) {
bounces = "ON";
} else {
bounces = "OFF";
}
}
}
Symbol 1059 Button
on (release, keyPress "<Enter>") {
snd_ok.start(0, 1);
if (setLvl(true)) {
_root.gotoAndPlay("secrets");
}
}
Symbol 1063 Button
on (release, keyPress "<Enter>") {
snd_ok.start(0, 1);
turnOffSecrets();
}
Symbol 1067 Button
on (release) {
snd_ok.start(0, 1);
if (morphs != "LOCKED") {
morphmode = !morphmode;
if (morphmode) {
morphs = "ON";
} else {
morphs = "OFF";
}
}
}
Symbol 1080 MovieClip Frame 141
stop();
Symbol 1084 Button
on (release, keyPress "<Enter>") {
if (((pause != 1) && (p0hp > 0)) && (p1hp > 0)) {
menu._visible = true;
if (movs._currentframe == MOVSLAST_FRAME) {
stop();
p0a.stop();
p1a.stop();
p0ball.stop();
p1ball.stop();
p0ground.stop();
p1ground.stop();
p0leap.stop();
p1leap.stop();
} else {
movs.stop();
}
fg.stop();
p0a.stop();
p1a.stop();
pause = 1;
} else if ((p0hp > 0) && (p1hp > 0)) {
menu._visible = false;
if (movs._currentframe == MOVSLAST_FRAME) {
play();
p0a.play();
p1a.play();
p0ball.play();
p1ball.play();
if (p0ground._currentframe < p0ground._totalframes) {
p0ground.play();
}
if (p1ground._currentframe < p1ground._totalframes) {
p1ground.play();
}
if (p0leap._currentframe < p0leap._totalframes) {
p0leap.play();
}
if (p1leap._currentframe < p1leap._totalframes) {
p1leap.play();
}
} else {
movs.play();
}
fg.play();
p0a.play();
p1a.play();
pause = 0;
}
}