Frame 1
function doSomething() {
getURL ("http://www.myroidtypecomics.com/", _blank);
}
function doSomething2() {
getURL ("http://www.milliemegavolte.com/", _blank);
}
function doSomething3() {
getURL ("http://www.freewebs.com/snowfender", _blank);
}
function doSomething4() {
getURL ("http://www.torikamal.com/", _blank);
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Visit Myroid-Type Comics", doSomething);
Functioned2 = new ContextMenuItem("Visit Millie Megavolte Official Site", doSomething2);
Functioned3 = new ContextMenuItem("Visit Snowfender's page", doSomething3);
Functioned4 = new ContextMenuItem("Visit Tori Kamal's page", doSomething4);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
_root.menu = MENU;
Frame 3
percent_done = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loadbar._xscale = percent_done;
if (percent_done != 100) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Frame 9
stopAllSounds();
gotoAndPlay (41);
Frame 41
_quality = "MEDIUM";
Frame 201
_global.g_difficulty = 0;
_global.g_candive = 0;
_global.g_costume = 0;
_global.g_lcostume = 0;
_global.g_char = 0;
_global.g_cosunlock = Array(12);
_global.g_timetaken = 0;
_global.g_gameprogress = 0;
_global.g_savefile = 0;
_global.g_saveloc = 0;
_global.g_sound = 0;
_global.g_music = 0;
_global.g_left = 37;
_global.g_right = 39;
_global.g_up = 38;
_global.g_down = 40;
_global.g_action = 65;
_global.g_jump = 83;
_global.g_attack = 68;
_global.g_throw = 70;
_global.g_boomiebits = 0;
_global.g_wallkick = 0;
_global.g_lberserk = 0;
g_costume = 0;
g_lcostume = 0;
g_candive = 0;
g_difficulty = 0;
g_char = 1;
a = 0;
while (a < 12) {
g_cosunlock[a] = true;
a++;
}
g_timetaken = 0;
g_gameprogress = 0;
g_savefile = 0;
g_saveloc = 0;
g_sound = 0;
g_music = 0;
g_left = 37;
g_right = 39;
g_up = 38;
g_down = 40;
g_action = 65;
g_jump = 83;
g_attack = 68;
g_throw = 70;
g_boomiebits = 1;
g_wallkick = 0;
g_lberserk = 0;
socean = new Sound();
socean.attachSound("wind4");
socean.start(0, 999);
_quality = "MEDIUM";
loadgame = false;
Frame 350
Key.removeListener(keyListener);
f1char.text = "";
f1loc.text = "New Game";
f1time.text = "";
f1diff.text = "";
f2char.text = "";
f2loc.text = "New Game";
f2time.text = "";
f2diff.text = "";
f3char.text = "";
f3loc.text = "New Game";
f3time.text = "";
f3diff.text = "";
local_data = SharedObject.getLocal("millie6saves");
if (local_data.data.init == undefined) {
local_data.clear();
local_data.data.init = true;
local_data.data.k_up = 38;
local_data.data.k_down = 40;
local_data.data.k_left = 37;
local_data.data.k_right = 39;
local_data.data.k_action = 65;
local_data.data.k_jump = 83;
local_data.data.k_attack = 68;
local_data.data.k_throw = 70;
local_data.data.save1_started = false;
local_data.data.save1_loc = 0;
local_data.data.save1_char = 0;
local_data.data.save1_gprog = 0;
local_data.data.save1_diff = 0;
local_data.data.save1_timetaken = 0;
local_data.data.save1_costume = 0;
local_data.data.save2_started = false;
local_data.data.save2_loc = 0;
local_data.data.save2_char = 0;
local_data.data.save2_gprog = 0;
local_data.data.save2_diff = 0;
local_data.data.save2_timetaken = 0;
local_data.data.save2_costume = 0;
local_data.data.save3_started = false;
local_data.data.save3_loc = 0;
local_data.data.save3_char = 0;
local_data.data.save3_gprog = 0;
local_data.data.save3_diff = 0;
local_data.data.save3_timetaken = 0;
local_data.data.save3_costume = 0;
local_data.data.cosunlock_0 = true;
local_data.data.cosunlock_1 = false;
local_data.data.cosunlock_2 = false;
local_data.data.cosunlock_3 = false;
local_data.data.cosunlock_4 = false;
local_data.data.cosunlock_5 = false;
local_data.data.cosunlock_6 = false;
local_data.data.cosunlock_7 = false;
local_data.data.cosunlock_8 = false;
local_data.data.cosunlock_9 = false;
local_data.data.cosunlock_10 = false;
local_data.data.cosunlock_11 = false;
local_data.data.cosunlock_12 = false;
local_data.flush();
}
g_cosunlock[0] = local_data.data.cosunlock_0;
g_cosunlock[1] = local_data.data.cosunlock_1;
g_cosunlock[2] = local_data.data.cosunlock_2;
g_cosunlock[3] = local_data.data.cosunlock_3;
g_cosunlock[4] = local_data.data.cosunlock_4;
g_cosunlock[5] = local_data.data.cosunlock_5;
g_cosunlock[6] = local_data.data.cosunlock_6;
g_cosunlock[7] = local_data.data.cosunlock_7;
g_cosunlock[8] = local_data.data.cosunlock_8;
g_cosunlock[9] = local_data.data.cosunlock_9;
g_cosunlock[10] = local_data.data.cosunlock_10;
g_cosunlock[11] = local_data.data.cosunlock_11;
g_cosunlock[12] = local_data.data.cosunlock_12;
g_left = local_data.data.k_left;
g_right = local_data.data.k_right;
g_up = local_data.data.k_up;
g_down = local_data.data.k_down;
g_action = local_data.data.k_action;
g_jump = local_data.data.k_jump;
g_attack = local_data.data.k_attack;
g_throw = local_data.data.k_throw;
if (local_data.data.save1_started == true) {
if (local_data.data.save1_char == 0) {
f1char.text = "Millie";
} else {
f1char.text = "Lance";
}
switch (local_data.data.save1_loc) {
case 1 :
f1loc.text = "Ogg'Khar's Pit";
break;
case 2 :
f1loc.text = "The Depths";
break;
case 3 :
f1loc.text = "The Underneath";
break;
default :
f1loc.text = "???";
}
gametime = Math.ceil(local_data.data.save1_timetaken / 30);
t_minutes = Math.floor(gametime / 60);
t_seconds = gametime % 60;
f1time.text = (t_minutes + ":") + ((t_seconds < 10) ? ("0" + t_seconds) : (t_seconds));
switch (local_data.data.save1_diff) {
case 0 :
f1diff.text = "Normal";
break;
case 1 :
f1diff.text = "Easy";
break;
case 2 :
f1diff.text = "Hard";
break;
case 3 :
f1diff.text = "Very Hard";
}
} else {
del1._x = -900;
}
if (local_data.data.save2_started == true) {
if (local_data.data.save2_char == 0) {
f2char.text = "Millie";
} else {
f2char.text = "Lance";
}
switch (local_data.data.save2_loc) {
case 1 :
f2loc.text = "Ogg'Khar's Pit";
break;
case 2 :
f2loc.text = "The Depths";
break;
case 3 :
f2loc.text = "The Underneath";
break;
default :
f2loc.text = "???";
}
gametime = Math.ceil(local_data.data.save2_timetaken / 30);
t_minutes = Math.floor(gametime / 60);
t_seconds = gametime % 60;
f2time.text = (t_minutes + ":") + ((t_seconds < 10) ? ("0" + t_seconds) : (t_seconds));
switch (local_data.data.save2_diff) {
case 0 :
f2diff.text = "Normal";
break;
case 1 :
f2diff.text = "Easy";
break;
case 2 :
f2diff.text = "Hard";
break;
case 3 :
f2diff.text = "Very Hard";
}
} else {
del2._x = -900;
}
if (local_data.data.save3_started == true) {
if (local_data.data.save3_char == 0) {
f3char.text = "Millie";
} else {
f3char.text = "Lance";
}
switch (local_data.data.save3_loc) {
case 1 :
f3loc.text = "Ogg'khar's Pit";
break;
case 2 :
f3loc.text = "The Depths";
break;
case 3 :
f3loc.text = "The Underneath";
break;
default :
f3loc.text = "???";
}
gametime = Math.ceil(local_data.data.save3_timetaken / 30);
t_minutes = Math.floor(gametime / 60);
t_seconds = gametime % 60;
f3time.text = (t_minutes + ":") + ((t_seconds < 10) ? ("0" + t_seconds) : (t_seconds));
switch (local_data.data.save3_diff) {
case 0 :
f3diff.text = "Normal";
break;
case 1 :
f3diff.text = "Easy";
break;
case 2 :
f3diff.text = "Hard";
break;
case 3 :
f3diff.text = "Very Hard";
}
} else {
del3._x = -900;
}
if (g_sound == 0) {
optSFX._x = 88;
} else {
optSFX._x = 120;
}
if (g_music == 0) {
optMusic._x = 88;
} else {
optMusic._x = 120;
}
if (_quality == "LOW") {
optQuality._x = 88;
} else {
qualmark._x = 120;
}
stop();
Frame 352
txtBout.text = "Up";
keycount = 0;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (keycount == 0) {
g_up = Key.getCode();
keycount = 1;
txtBout.text = "Down";
} else if (keycount == 1) {
g_down = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Left";
} else if (keycount == 2) {
g_left = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Right";
} else if (keycount == 3) {
g_right = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Action";
} else if (keycount == 4) {
g_action = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Jump";
} else if (keycount == 5) {
g_jump = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Attack";
} else if (keycount == 6) {
g_attack = Key.getCode();
keycount = keycount + 1;
txtBout.text = "Boomie Bits";
} else if (keycount == 7) {
g_throw = Key.getCode();
keycount = 0;
local_data = SharedObject.getLocal("millie6saves");
local_data.data.k_up = g_up;
local_data.data.k_down = g_down;
local_data.data.k_left = g_left;
local_data.data.k_right = g_right;
local_data.data.k_action = g_action;
local_data.data.k_jump = g_jump;
local_data.data.k_attack = g_attack;
local_data.data.k_throw = g_throw;
local_data.flush();
gotoAndStop (350);
}
};
Key.addListener(keyListener);
stop();
Frame 353
gotoAndPlay (352);
Frame 371
socean.stop();
if (loadgame == false) {
gotoAndPlay (379);
} else {
if (g_gameprogress > 6) {
g_wallkick = 1;
}
gotoAndPlay (464);
}
Frame 372
qualityholder = _quality;
_quality = "HIGH";
Frame 379
if (g_sound == 0) {
swind4 = new Sound();
swind4.attachSound("wind4");
swind4.start(0, 999);
stick = new Sound();
stick.attachSound("tick");
}
Frame 380
msgstring = "Press Action (Default: A) to continue conversations.";
msgpos = 0;
cango = false;
Frame 381
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 382
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Mean blue and black things deep in depths again. Causing trouble and being dickheads. They mean to me.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (381);
}
Frame 433
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 434
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Doing strange things too. Talking weird words. Dancing.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (433);
}
Frame 435
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 436
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "You mean there're demons here too?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (435);
}
Frame 437
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 438
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I am not talking to buttface girl. Talking to nice man here.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (437);
}
Frame 439
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 440
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Maybe nice man go and kill meanies for me? They took my hammer.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (439);
}
Frame 441
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 442
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Start with mean girl. I do not like her.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (441);
}
Frame 443
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 444
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "How can I be nice to you if you're such a jerk!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (443);
}
Frame 445
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 446
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "If you get hammer for me I be nice to you from now on, mean girl.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (445);
}
Frame 447
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 448
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "You go now please. Kill blue things and get my hammer back.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (447);
}
Frame 449
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 450
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (449);
}
Frame 451
stop();
Frame 463
swind4.stop();
gotoAndPlay (464);
Frame 464
M_STAND = 1;
M_RUN = 3;
M_SKID = 5;
M_JUMP = 7;
M_FALL = 9;
M_STAB = 11;
M_RSTAB = 13;
M_BLOCK = 15;
M_KICK = 17;
M_SKYDIVE = 19;
M_EXECUTE = 21;
M_UPPERCUT = 23;
M_DIE = 25;
M_BALANCE = 27;
M_TREAD = 29;
M_SWIM = 31;
M_DANCE = 33;
M_PUSH = 35;
M_HANG = 37;
M_CLIMB = 39;
M_HURT = 41;
B_WIDTH = 480;
B_HEIGHT = 360;
Floor._visible = false;
if (g_sound == 0) {
sSwipe = new Sound();
sSwipe.attachSound("Swipe");
sSwipe2 = new Sound();
sSwipe2.attachSound("Swipe2");
sskidshort = new Sound();
sskidshort.attachSound("skidshort");
spunchhit = new Sound();
spunchhit.attachSound("punchhit");
spunchhit2 = new Sound();
spunchhit2.attachSound("punchhit2");
ssplash = new Sound();
ssplash.attachSound("splash");
sBubbles = new Sound();
sBubbles.attachSound("Bubbles");
simpale = new Sound();
simpale.attachSound("impale");
sbthirst = new Sound();
sbthirst.attachSound("bthirst");
scrit = new Sound();
scrit.attachSound("crit");
srockstep1 = new Sound();
srockstep1.attachSound("rockstep1");
sswingknife = new Sound();
sswingknife.attachSound("swingknife");
sbones = new Sound();
sbones.attachSound("bones");
sSwordhit = new Sound();
sSwordhit.attachSound("Swordhit");
sswordcut = new Sound();
sswordcut.attachSound("swordcut");
sbang1 = new Sound();
sbang1.attachSound("bang1");
sboingreduced = new Sound();
sboingreduced.attachSound("boingreduced");
sSlowWhoosh = new Sound();
sSlowWhoosh.attachSound("SlowWhoosh");
ssplash_1 = new Sound();
ssplash_1.attachSound("splash_1");
sflowing = new Sound(mcflowing);
sflowing.attachSound("flowing");
stomb = new Sound();
stomb.attachSound("tomb");
sbomb = new Sound();
sbomb.attachSound("bomb");
stick = new Sound();
stick.attachSound("tick");
sthud = new Sound();
sthud.attachSound("thud");
ssquish = new Sound();
ssquish.attachSound("squish");
slock = new Sound();
slock.attachSound("lock");
sFireball = new Sound();
sFireball.attachSound("Fireball");
sahiwai = new Sound();
sahiwai.attachSound("ahiwai");
ejump = new Sound();
ejump.attachSound("");
eidle = new Sound();
eidle.attachSound("");
epush = new Sound();
epush.attachSound("");
ehurt = new Sound(mchurt);
ehurt.attachSound("");
edie = new Sound();
edie.attachSound("");
}
if (g_music == 0) {
sbgm = new Sound(mcbgm);
}
ENEINDEX = 0;
Frame 465
if ((g_music == 0) && (g_saveloc == 0)) {
switch (g_gameprogress) {
case 0 :
sbgm.attachSound("mm6_Underneath");
break;
case 5 :
sbgm.attachSound("mm6_Underneath");
break;
case 6 :
sbgm.attachSound("mm6_Underneath");
break;
case 8 :
sbgm.attachSound("mm6_Underneath");
break;
}
sbgm.start(0, 9999);
}
soundtimer = 0;
deathtimer = 0;
fadetoblack = 0;
skidtimer = 0;
dancetimer = 0;
stonesound = 0;
hurtsound = false;
burnsound = 0;
lavaburn = false;
wallkick = 0;
nextscene = "";
nospawn = 0;
cutcontrol = false;
WaterFore._y = 600;
WaterFore._yscale = 100;
WaterFore_y = 3000;
WaterFore_level = 3000;
WaterFore._visible = false;
watersound = 0;
msgstring = "";
msgpos = 0;
var conversation = Array(50);
conv_holder = 0;
cango = false;
keyready = false;
a = 0;
while (a <= 49) {
conversation[a * 2] = "";
conversation[(a * 2) + 1] = 1;
a++;
}
pContainer.removeMovieClip();
if (g_char == 0) {
if (((((g_costume != 2) && (g_costume != 4)) && (g_costume != 7)) && (g_costume != 8)) && (g_costume != 9)) {
pContainer.attachMovie("MillieContainer", "pChild", 0);
} else {
pContainer.attachMovie("MillieDressContainer", "pChild", 0);
}
} else if (g_char == 1) {
pContainer.attachMovie("LanceContainer", "pChild", 0);
}
if (g_char == 0) {
nPlate.gotoAndStop(1);
} else {
nPlate.gotoAndStop(4);
}
pContainer.health = pContainer.pChild.maxhealth;
pContainer.alive = true;
pContainer.rage = 0;
pContainer.berserk = false;
pContainer.runspeed = 0;
pContainer.velocity = 0;
pContainer.ready = 0;
rock0.myx = -940;
rock0.myy = -256;
plat0.myx = -500;
plat0.myy = -500;
a = 0;
while (a < 5) {
_root["hang" + a].myx = -100;
_root["hang" + a].myy = -100;
_root["hang" + a].gotoAndStop(1);
_root["bounce" + a].myx = -100;
_root["bounce" + a].myy = -100;
_root["uCatcher" + a].myx = -100;
_root["uCatcher" + a].myy = -100;
_root["uCatcher" + a]._xscale = 100;
_root["uCatcher" + a]._visible = false;
_root["npc" + a].myx = -100;
_root["npc" + a].myy = -100;
_root["npc" + a].dir = false;
_root["npc" + a].baseNPC = 1;
_root["npc" + a].gotoAndStop(1);
if (a < 3) {
_root["switch" + a].myx = -100;
_root["switch" + a].myy = -100;
_root["switch" + a].mystate = false;
_root["lava" + a].myx = -500;
_root["lava" + a].myy = 0;
}
if (a < 4) {
_root["drop" + a].myx = -500;
_root["drop" + a].myy = -500;
}
a++;
}
a = 0;
while (a < 10) {
_root["Ene" + a].removeMovieClip();
_root["Ene" + a]._x = -1000;
_root["Ene" + a].myx = -1000;
_root["Ene" + a]._y = -1000;
_root["Ene" + a].myy = -1000;
_root["Ene" + a].health = 10;
_root["Ene" + a].alive = true;
_root["Ene" + a].active = false;
_root["Ene" + a].flicker = 0;
a++;
}
if (g_saveloc == 0) {
if (g_gameprogress == 0) {
Millie_x = 300;
Millie_y = 352;
Floor.gotoAndStop(3);
Fore.gotoAndStop(3);
bFore.gotoAndStop(3);
para0.gotoAndStop(3);
para1.gotoAndStop(3);
npc0.myx = 160;
npc0.myy = 352;
npc0.baseNPC = 8;
npc0.gotoAndStop(8);
uCatcher0.myx = 112;
uCatcher0.myy = 352;
uCatcher0._xscale = 300;
uCatcher1.myx = 224;
uCatcher1.myy = 352;
uCatcher1._xscale = 200;
uCatcher2.myx = 416;
uCatcher2.myy = 384;
uCatcher2._xscale = 300;
uCatcher3.myx = 608;
uCatcher3.myy = 416;
uCatcher3._xscale = 300;
conversation[0] = "\"How to Play: A Crash Course\"\nMove with the arrow keys and jump with S.";
conversation[1] = 1;
conversation[2] = "Use Action (default: A) to inspect, use, and perform actions in general.";
conversation[3] = 1;
conversation[4] = "Attack with D. You can do different moves by holding up or down or attacking in the air.";
conversation[5] = 1;
conversation[6] = "To block, hold D + UP. Not all enemy attacks can be blocked.";
conversation[7] = 1;
conversation[8] = "Try saving your game at Ogg'Khar's bed over there. Press A while standing in front of it.";
conversation[9] = 1;
} else if (g_gameprogress == 5) {
Millie_x = 16;
Millie_y = 800;
Floor.gotoAndStop(20);
Fore.gotoAndStop(20);
bFore.gotoAndStop(20);
para0.gotoAndStop(4);
para1.gotoAndStop(4);
uCatcher0.myx = 1472;
uCatcher0.myy = 480;
uCatcher0._xscale = 200;
uCatcher1.myx = 544;
uCatcher1.myy = 800;
uCatcher1._xscale = 200;
ENEINDEX = 4;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 1664;
Ene0.myy = 480;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 1120;
Ene1.myy = 256;
Ene2.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene2.myx = 736;
Ene2.myy = 288;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 320;
Ene3.myy = 320;
} else if (g_gameprogress == 6) {
Millie_x = 320;
Millie_y = 736;
Floor.gotoAndStop(22);
Fore.gotoAndStop(22);
bFore.gotoAndStop(22);
para0.gotoAndStop(4);
para1.gotoAndStop(4);
WaterFore_y = 784;
WaterFore_level = 784;
WaterFore._visible = true;
uCatcher0.myx = 192;
uCatcher0.myy = 736;
uCatcher0._xscale = 300;
} else if (g_gameprogress == 8) {
Millie_x = 300;
Millie_y = 352;
Floor.gotoAndStop(3);
Fore.gotoAndStop(3);
bFore.gotoAndStop(3);
para0.gotoAndStop(3);
para1.gotoAndStop(3);
npc0.myx = 160;
npc0.myy = 352;
npc0.baseNPC = 8;
npc0.gotoAndStop(8);
uCatcher0.myx = 112;
uCatcher0.myy = 352;
uCatcher0._xscale = 300;
uCatcher1.myx = 224;
uCatcher1.myy = 352;
uCatcher1._xscale = 200;
uCatcher2.myx = 416;
uCatcher2.myy = 384;
uCatcher2._xscale = 300;
uCatcher3.myx = 608;
uCatcher3.myy = 416;
uCatcher3._xscale = 300;
}
} else if (g_saveloc == 1) {
g_saveloc = 0;
Millie_x = 640;
Millie_y = 416;
Floor.gotoAndStop(3);
Fore.gotoAndStop(3);
bFore.gotoAndStop(3);
para0.gotoAndStop(3);
para1.gotoAndStop(3);
if (g_music == 0) {
sbgm.attachSound("mm6_Underneath");
sbgm.start(0, 9999);
}
npc0.myx = 160;
npc0.myy = 352;
npc0.baseNPC = 8;
npc0.gotoAndStop(8);
if ((g_gameprogress > 0) && (g_gameprogress < 7)) {
npc1.myx = 256;
npc1.myy = 352;
if (g_char == 0) {
npc1.baseNPC = 4;
npc1.gotoAndStop(5);
} else {
npc1.baseNPC = 10;
npc1.gotoAndStop(10);
}
}
uCatcher0.myx = 112;
uCatcher0.myy = 352;
uCatcher0._xscale = 300;
uCatcher1.myx = 224;
uCatcher1.myy = 352;
uCatcher1._xscale = 200;
uCatcher2.myx = 416;
uCatcher2.myy = 384;
uCatcher2._xscale = 300;
uCatcher3.myx = 608;
uCatcher3.myy = 416;
uCatcher3._xscale = 300;
} else if (g_saveloc == 2) {
g_saveloc = 0;
Millie_x = 1184;
Millie_y = 1344;
Floor.gotoAndStop(12);
Fore.gotoAndStop(12);
bFore.gotoAndStop(12);
para0.gotoAndStop(4);
para1.gotoAndStop(4);
if (g_music == 0) {
sbgm.attachSound("mm6_Underneath");
sbgm.start(0, 9999);
}
uCatcher0.myx = 1152;
uCatcher0.myy = 1344;
uCatcher0._xscale = 200;
if (g_gameprogress < 3) {
WaterFore_y = 1360;
WaterFore_level = 1360;
WaterFore._visible = true;
} else {
WaterFore_y = 1664;
WaterFore_level = 1664;
WaterFore._visible = true;
}
plat0.myx = 208;
plat0.myy = 864;
plat0.updown = true;
plat0.dir = true;
plat0.lowbound = 832;
plat0.highbound = 1344;
bounce0.myx = 768;
bounce0.myy = 1344;
ENEINDEX = 1;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 448;
Ene0.myy = 1344;
} else if (g_saveloc == 3) {
g_saveloc = 0;
Millie_x = 576;
Millie_y = 800;
Floor.gotoAndStop(20);
Fore.gotoAndStop(20);
bFore.gotoAndStop(20);
para0.gotoAndStop(4);
para1.gotoAndStop(4);
if (g_music == 0) {
sbgm.attachSound("mm6_Underneath");
sbgm.start(0, 9999);
}
uCatcher0.myx = 1472;
uCatcher0.myy = 480;
uCatcher0._xscale = 200;
uCatcher1.myx = 544;
uCatcher1.myy = 800;
uCatcher1._xscale = 200;
ENEINDEX = 4;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 1664;
Ene0.myy = 480;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 1120;
Ene1.myy = 256;
Ene2.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene2.myx = 736;
Ene2.myy = 288;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 320;
Ene3.myy = 320;
}
pContainer._xscale = 100;
pContainer._yscale = 100;
es = 0;
while (es < ENEINDEX) {
_root["Ene" + es].health = _root["Ene" + es].EneChild.health;
_root["Ene" + es].alive = true;
_root["Ene" + es].active = true;
_root["Ene" + es].walkspeed = _root["Ene" + es].EneChild.walkspeed;
es++;
}
Frame 466
function pContainerEvents() {
if (Key.isDown(16)) {
}
if (((Key.isDown(g_up) && (Key.isDown(g_down) == false)) && (GrassCollide(0))) && (pContainer.hanging == 0)) {
pContainer.atktype = 0;
pContainer.velocity = 0;
pContainer.ready = 0;
pContainer.hanging = 1;
srockstep1.start();
}
if (((pContainer.swimming != 0) && (Key.isDown(g_down))) && (g_candive == 1)) {
pContainer.swimming = 0;
}
if (((pContainer.hanging == 1) && (Key.isDown(g_down))) && (Key.isDown(g_up) == false)) {
pContainer.hanging = 0;
}
if (((Key.isDown(g_jump) && (pContainer.swimming != 2)) && (CollisionDetect(Millie_x, Millie_y - 75) == false)) && (lavaburn == false)) {
if (((pContainer.velocity == 0) && (pContainer.ready == 0)) && (pContainer.hanging == 0)) {
if (Key.isDown(g_down) == false) {
pContainer.atktype = 0;
pContainer.atimer = 0;
pContainer.velocity = -pContainer.pChild.jumpinit;
jumpsound = Math.round(Math.random() * 4);
if (jumpsound == 3) {
if (g_char == 1) {
ejump.attachSound("emote_lance_jump0");
} else {
ejump.attachSound("emote_millie_jump0");
}
ejump.start();
} else if (jumpsound == 4) {
if (g_char == 1) {
ejump.attachSound("emote_lance_jump1");
} else {
ejump.attachSound("emote_millie_jump1");
}
ejump.start();
} else {
sSlowWhoosh.start();
}
} else if ((Key.isDown(g_down) && (pContainer.rage == 30)) && (pContainer.berserk == false)) {
if ((g_char == 0) || ((g_char == 1) && (g_lberserk == 1))) {
scrit.start();
pContainer.berserk = true;
if (g_char == 0) {
if (g_costume == 0) {
g_costume = 1;
}
if (g_costume == 2) {
g_costume = 3;
}
nPlate.gotoAndStop(2);
} else {
nPlate.gotoAndStop(5);
}
}
}
} else if (((g_wallkick == 1) && (Millie_y > 0)) && (pContainer.velocity > 0)) {
if ((((pContainer.dir && (CollisionDetect(dLeft_x, dLeft_y))) && (CollisionDetect(dLeft_x, dDown_y))) && (Key.isDown(g_left))) && (wallkick != 1)) {
sthud.start();
pContainer.runspeed = 15;
pContainer.velocity = -pContainer.pChild.jumpinit;
wallkick = 1;
pContainer.atktype = 0;
pContainer.diveready = 0;
} else if (((((pContainer.dir == false) && (CollisionDetect(dRight_x, dRight_y))) && (CollisionDetect(dRight_x, dDown_y))) && (Key.isDown(g_right))) && (wallkick != 2)) {
sthud.start();
pContainer.runspeed = -15;
pContainer.velocity = -pContainer.pChild.jumpinit;
wallkick = 2;
pContainer.atktype = 0;
pContainer.diveready = 0;
}
}
}
if ((((((g_boomiebits == 1) && (Key.isDown(g_throw))) && (pContainer.rage >= 15)) && (objBits.inuse == false)) && (pContainer.hanging == 0)) && (pContainer.swimming == 0)) {
sSwipe.start();
pContainer.rage = pContainer.rage - 15;
objBits.myx = Millie_x;
objBits.myy = Millie_y - 50;
objBits.inuse = true;
objBits.gotoAndStop(2);
objBits.xvel = 0;
objBits.yvel = 0;
if (pContainer.dir == false) {
objBits.xvel = 20;
} else {
objBits.xvel = -20;
}
objBits.yvel = -5;
if (Key.isDown(g_up) && (Key.isDown(g_down) == false)) {
objBits.xvel = 0;
objBits.yvel = -20;
}
if ((Key.isDown(g_up) == false) && (Key.isDown(g_down))) {
objBits.xvel = 0;
objBits.yvel = 20;
}
}
if ((Key.isDown(g_attack) && (pContainer.swimming == 0)) && (pContainer.hanging == 0)) {
if ((pContainer.ready == 0) && (pContainer.velocity == 0)) {
if (((Math.abs(pContainer.runspeed) >= pContainer.pChild.maxrun) && (pContainer.pChild._currentframe != M_SKID)) && (pContainer.pChild._currentframe != (M_SKID + 1))) {
if (pContainer.atktype != 2) {
pContainer.atktype = 2;
pContainer.atimer = 1;
sswingknife.start();
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_RSTAB + 1);
} else {
pContainer.pChild.gotoAndStop(M_RSTAB);
}
} else if (((pContainer.runspeed == 0) && (Key.isDown(g_up) == false)) && ((Key.isDown(g_down) == false) || (Key.isDown(g_down) && (pContainer.rage < 10)))) {
if (pContainer.atktype != 1) {
pContainer.atktype = 1;
pContainer.atimer = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_STAB + 1);
} else {
pContainer.pChild.gotoAndStop(M_STAB);
}
} else if ((Key.isDown(g_up) && (Key.isDown(g_down) == false)) && (pContainer.runspeed == 0)) {
if (pContainer.atktype != 3) {
pContainer.atktype = 3;
pContainer.atimer = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_BLOCK + 1);
} else {
pContainer.pChild.gotoAndStop(M_BLOCK);
}
} else if ((Key.isDown(g_down) && (Key.isDown(g_up) == false)) && (pContainer.runspeed == 0)) {
if (pContainer.rage < 10) {
pContainer.atktype = 0;
} else {
if (pContainer.atktype != 4) {
pContainer.atktype = 4;
pContainer.atimer = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_KICK + 1);
} else {
pContainer.pChild.gotoAndStop(M_KICK);
}
}
}
} else if (pContainer.ready == 1) {
if ((((Key.isDown(g_down) && (pContainer.rage > 9)) == false) && ((Key.isDown(g_up) && (pContainer.rage > 1)) == false)) && (pContainer.diveready == 0)) {
if (pContainer.atktype != 5) {
pContainer.atktype = 5;
pContainer.atimer = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_SKYDIVE + 1);
} else {
pContainer.pChild.gotoAndStop(M_SKYDIVE);
}
} else if (((Key.isDown(g_down) && (Key.isDown(g_up) == false)) && (pContainer.rage > 9)) && (pContainer.velocity > -2)) {
if ((pContainer.atktype != 6) && (pContainer.diveready == 0)) {
sSwipe.start();
pContainer.atktype = 6;
pContainer.atimer = 1;
pContainer.velocity = -8;
pContainer.diveready = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_EXECUTE + 1);
} else {
pContainer.pChild.gotoAndStop(M_EXECUTE);
}
} else if (Key.isDown(g_up) && (pContainer.rage > 1)) {
if (pContainer.atktype != 7) {
sSwipe.start();
pContainer.atktype = 7;
pContainer.atimer = 1;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_UPPERCUT + 1);
} else {
pContainer.pChild.gotoAndStop(M_UPPERCUT);
}
}
}
}
if ((Key.isDown(g_left) && (Key.isDown(g_right) == false)) && (Millie_x > 8)) {
if (pContainer.runspeed > 0) {
pContainer.runspeed = pContainer.runspeed - (pContainer.rconst * 2);
if (pContainer.ready == 0) {
pContainer.atktype = 0;
if ((pContainer.watermult == 1) && (pContainer.hanging == 0)) {
pContainer.pChild.gotoAndStop(M_SKID);
if (skidtimer == 0) {
sskidshort.start();
skidtimer = 1;
}
}
}
} else if (pContainer.runspeed > (-pContainer.pChild.maxrun)) {
skidtimer = 0;
pContainer.runspeed = pContainer.runspeed - pContainer.rconst;
} else if ((pContainer.runspeed > ((-pContainer.pChild.maxrun) - 4)) && (pContainer.atktype == 2)) {
skidtimer = 0;
pContainer.runspeed = pContainer.runspeed - pContainer.rconst;
}
pContainer.dir = true;
if ((pContainer.ready == 0) && (pContainer.atktype == 0)) {
if ((pContainer.swimming == 0) && (pContainer.hanging == 0)) {
if (((pContainer.pChild._currentframe != (M_RUN + 1)) && (pContainer.pChild._currentframe != (M_PUSH + 1))) && (pContainer.runspeed < 0)) {
pContainer.pChild.gotoAndStop(M_RUN + 1);
}
} else if (pContainer.swimming > 0) {
if ((pContainer.pChild._currentframe != (M_SWIM + 1)) && (pContainer.runspeed < 0)) {
pContainer.pChild.gotoAndStop(M_SWIM + 1);
}
} else if (pContainer.hanging == 1) {
if ((pContainer.pChild._currentframe != (M_CLIMB + 1)) && (pContainer.runspeed < 0)) {
pContainer.pChild.gotoAndStop(M_CLIMB + 1);
}
}
}
} else if ((Key.isDown(g_right) && (Key.isDown(g_left) == false)) && (Millie_x < (Floor._width - 8))) {
if (pContainer.runspeed < 0) {
pContainer.runspeed = pContainer.runspeed + (pContainer.rconst * 2);
if (pContainer.ready == 0) {
pContainer.atktype = 0;
if ((pContainer.watermult == 1) && (pContainer.hanging == 0)) {
pContainer.pChild.gotoAndStop(M_SKID + 1);
if (skidtimer == 0) {
skidtimer = 1;
sskidshort.start();
}
}
}
} else if (pContainer.runspeed < pContainer.pChild.maxrun) {
skidtimer = 0;
pContainer.runspeed = pContainer.runspeed + pContainer.rconst;
} else if ((pContainer.runspeed < (pContainer.pChild.maxrun + 4)) && (pContainer.atktype == 2)) {
skidtimer = 0;
pContainer.runspeed = pContainer.runspeed + pContainer.rconst;
}
pContainer.dir = false;
if ((pContainer.ready == 0) && (pContainer.atktype == 0)) {
if ((pContainer.swimming == 0) && (pContainer.hanging == 0)) {
if (((pContainer.pChild._currentframe != M_RUN) && (pContainer.pChild._currentframe != M_PUSH)) && (pContainer.runspeed > 0)) {
pContainer.pChild.gotoAndStop(M_RUN);
}
} else if (pContainer.swimming > 0) {
if ((pContainer.pChild._currentframe != M_SWIM) && (pContainer.runspeed > 0)) {
pContainer.pChild.gotoAndStop(M_SWIM);
}
} else if (pContainer.hanging == 1) {
if ((pContainer.pChild._currentframe != M_CLIMB) && (pContainer.runspeed > 0)) {
pContainer.pChild.gotoAndStop(M_CLIMB);
}
}
}
}
}
function pContainerHandler() {
if (pContainer.ready == 0) {
stopper = 0;
while ((CollisionDetect(Millie_x, Millie_y) && (CollisionDetect(dUp_x, dUp_y) == false)) && (stopper < 32)) {
stopper = stopper + 1;
Millie_y = Millie_y - 1;
pContainer.ready = 0;
wallkick = 0;
pContainer.diveready = 0;
}
stopper = 0;
while (((CollisionDetect(Millie_x, Millie_y + 1, true) == false) && (CollisionDetect(dDown_x, dDown_y) == true)) && (stopper < 32)) {
stopper = stopper + 1;
Millie_y = Millie_y + 1;
pContainer.ready = 0;
wallkick = 0;
pContainer.diveready = 0;
}
stopper = 0;
while (((CollisionDetect(Millie_x, Millie_y - 40) || (CollisionDetect(Millie_x, Millie_y - 70))) && (CollisionDetectEnemy(Millie_x, Millie_y) == false)) && (stopper < 75)) {
stopper = stopper + 1;
Millie_y = Millie_y + 1;
pContainer.ready = 0;
wallkick = 0;
pContainer.diveready = 0;
}
if (CollisionDetect(Millie_x, Millie_y - 70) && (CollisionDetectEnemy(Millie_x, Millie_y))) {
if (CollisionDetect(Millie_x - 64, Millie_y - 40) == false) {
stopper = 0;
while ((CollisionDetect(Millie_x, Millie_y - 70) && (CollisionDetectEnemy(Millie_x, Millie_y))) && (stopper < 96)) {
stopper = stopper + 1;
Millie_x = Millie_x - 1;
}
} else {
stopper = 0;
while ((CollisionDetect(Millie_x, Millie_y - 70) && (CollisionDetectEnemy(Millie_x, Millie_y))) && (stopper < 96)) {
stopper = stopper + 1;
Millie_x = Millie_x + 1;
}
}
}
}
if ((pContainer.velocity != 0) && (pContainer.ready == 0)) {
pContainer.ready = 1;
}
if ((Millie_y < WaterFore_y) && (pContainer.watermult == 0.5)) {
pContainer.swimming = 0;
pContainer.watermult = 1;
}
if ((Millie_y >= WaterFore_y) && (pContainer.watermult == 1)) {
pContainer.watermult = 0.5;
Millie_y = Millie_y + 2;
if (pContainer.velocity > 2) {
pContainer.velocity = 2;
}
ssplash.start();
}
if ((((((Millie_y > (WaterFore_y + 40)) && (Millie_y <= (WaterFore_y + 50))) && (pContainer.velocity > -1)) && (pContainer.swimming != 1)) && ((g_candive == 0) || (pContainer.atktype != 6))) && ((g_candive == 0) || (Key.isDown(g_down) == false))) {
Millie_y = WaterFore_y + 50;
pContainer.atktype = 0;
pContainer.swimming = 1;
}
if ((((pContainer.alive && (Millie_y > (WaterFore_y + 50))) && (pContainer.swimming == 0)) && (g_candive == 0)) && (pContainer.velocity > 0)) {
pContainer.atktype = 0;
pContainer.swimming = 2;
}
if ((Millie_y < (WaterFore_y + 40)) && (pContainer.swimming != 0)) {
pContainer.swimming = 0;
}
if (pContainer.hanging == 0) {
if ((pContainer.swimming != 2) && (pContainer.ready == 0)) {
if ((CollisionDetect(Millie_x, Millie_y + 2) == false) && (pContainer.velocity == 0)) {
pContainer.velocity = 2;
}
} else if (pContainer.swimming == 2) {
if ((CollisionDetect(dUp_x, dUp_y - 2) == false) && (pContainer.velocity == 0)) {
pContainer.velocity = -2;
}
}
}
if ((pContainer.runspeed != 0) || (pContainer.runoffset != 0)) {
modspeed = pContainer.runspeed + pContainer.runoffset;
a = 0;
while (a < ENEINDEX) {
if (((_root["Ene" + a].hitTest(pContainer._x - 16, pContainer._y - 40) || (_root["Ene" + a].hitTest(pContainer._x + 16, pContainer._y - 40))) && (Math.abs(_root["Ene" + a].myx - Millie_x) < 128)) && (_root["Ene" + a].alive)) {
if ((modspeed < 0) && (_root["Ene" + a].myx < Millie_x)) {
if (pContainer.runoffset == 0) {
pContainer.runspeed = 0;
}
modspeed = 0;
}
if ((modspeed > 0) && (_root["Ene" + a].myx > Millie_x)) {
if (pContainer.runoffset == 0) {
pContainer.runspeed = 0;
}
modspeed = 0;
}
}
a++;
}
if (((((CollisionDetectSpecial(dLeft_x, dLeft_y) && (rock0.myx > 16)) && (CollisionDetect(rock0.myx - 33, rock0.myy - 16) == false)) && (pContainer.runspeed < 0)) && (rock0.myy > (Millie_y - 3))) && (rock0.myy < (Millie_y + 3))) {
pContainer.runspeed = -1;
modspeed = -1;
rock0.myx = rock0.myx - 1;
if (pContainer.velocity == 0) {
pContainer.pChild.gotoAndStop(M_PUSH + 1);
}
if (stonesound == 0) {
pushsound = Math.round(Math.random() * 4);
if (pushsound == 3) {
if (g_char == 1) {
epush.attachSound("emote_lance_push0");
} else {
epushy.attachSound("emote_millie_push0");
}
epush.start();
} else if (pushsound == 4) {
if (g_char == 1) {
epush.attachSound("emote_lance_push1");
} else {
epush.attachSound("emote_millie_push1");
}
epush.start();
}
stomb.start();
stonesound = 1;
}
} else if (((((CollisionDetectSpecial(dRight_x, dRight_y) && (rock0.myx < (Floor._width - 16))) && (CollisionDetect(rock0.myx + 33, rock0.myy - 16) == false)) && (pContainer.runspeed > 0)) && (rock0.myy > (Millie_y - 3))) && (rock0.myy < (Millie_y + 3))) {
pContainer.runspeed = 1;
modspeed = 1;
rock0.myx = rock0.myx + 1;
if (pContainer.velocity == 0) {
pContainer.pChild.gotoAndStop(M_PUSH);
}
if (stonesound == 0) {
pushsound = Math.round(Math.random() * 4);
if (pushsound == 3) {
if (g_char == 1) {
epush.attachSound("emote_lance_push0");
} else {
epushy.attachSound("emote_millie_push0");
}
epush.start();
} else if (pushsound == 4) {
if (g_char == 1) {
epush.attachSound("emote_lance_push1");
} else {
epush.attachSound("emote_millie_push1");
}
epush.start();
}
stomb.start();
stonesound = 1;
}
} else if (((CollisionDetect(dLeft_x, dLeft_y) || (CollisionDetect(dLeft_x, dUp_y))) && (modspeed < 0)) || ((CollisionDetect(dRight_x, dRight_y) || (CollisionDetect(dRight_x, dUp_y))) && (modspeed > 0))) {
if (pContainer.runoffset == 0) {
pContainer.runspeed = 0;
}
modspeed = 0;
}
if ((Millie_x + modspeed) < 8) {
Millie_x = 8;
modspeed = 0;
if (pContainer.runoffset == 0) {
pContainer.runspeed = 0;
}
}
if ((Millie_x + modspeed) > (Floor._width - 8)) {
Millie_x = Floor._width - 8;
modspeed = 0;
if (pContainer.runoffset == 0) {
pContainer.runspeed = 0;
}
}
if ((pContainer.hanging == 1) && (pContainer.runspeed != 0)) {
if (pContainer.dir && (Key.isDown(g_left))) {
pContainer.runspeed = -3;
modspeed = -3;
} else if ((pContainer.dir == false) && (Key.isDown(g_right))) {
pContainer.runspeed = 3;
modspeed = 3;
}
if (GrassCollide(pContainer.runspeed) == false) {
pContainer.runspeed = 0;
modspeed = 0;
}
}
if ((pContainer.atktype == 3) || (pContainer.atktype == 4)) {
pContainer.runspeed = 0;
modspeed = pContainer.runoffset;
}
Millie_x = Millie_x + (modspeed * pContainer.watermult);
if (((Key.isDown(g_left) == false) && (Key.isDown(g_right) == false)) || (pContainer.alive == false)) {
if (pContainer.runspeed > 0) {
pContainer.runspeed = pContainer.runspeed - 1;
} else if (pContainer.runspeed < 0) {
pContainer.runspeed = pContainer.runspeed + 1;
}
if ((Math.abs(pContainer.runspeed) > 0) && (Math.abs(pContainer.runspeed) < 1)) {
pContainer.runspeed = 0;
}
}
if (((Math.abs(pContainer.runspeed) > pContainer.pChild.maxrun) && (pContainer.velocity == 0)) && (pContainer.atktype != 2)) {
if (pContainer.runspeed > 0) {
pContainer.runspeed = pContainer.runspeed - 1;
} else {
pContainer.runspeed = pContainer.runspeed + 1;
}
}
}
if (((pContainer.velocity < -8) && (Key.isDown(g_jump) == false)) && (pContainer.swimming != 2)) {
pContainer.velocity = -8;
}
if ((pContainer.ready == 1) && (pContainer.velocity < 1)) {
Millie_y = Millie_y + pContainer.velocity;
if (pContainer.atktype == 0) {
if (pContainer.alive) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_JUMP + 1);
} else {
pContainer.pChild.gotoAndStop(M_JUMP);
}
} else if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_DIE + 1);
} else {
pContainer.pChild.gotoAndStop(M_DIE);
}
}
}
if (CollisionDetect(dUp_x, dUp_y + pContainer.velocity) && (pContainer.hanging == 0)) {
groundsetter = 0;
DetEvents();
while (((CollisionDetect(dUp_x, dUp_y + groundsetter) == false) && (groundsetter > pContainer.velocity)) && (groundsetter > -32)) {
groundsetter = groundsetter - 1;
}
Millie_y = Millie_y + (groundsetter + 1);
if (pContainer.velocity < 0) {
pContainer.velocity = 2;
}
if (pContainer.swimming != 0) {
Millie_y = Millie_y + 1;
pContainer.swimming = 2;
}
}
if (CollisionDetect(Millie_x, Millie_y + pContainer.velocity) && (pContainer.ready == 1)) {
pContainer.velocity = 0;
pContainer.ready = 0;
wallkick = 0;
pContainer.diveready = 0;
groundsetter = 0;
while ((CollisionDetect(Millie_x, Millie_y + groundsetter) == false) && (groundsetter < 32)) {
groundsetter = groundsetter + 1;
}
Millie_y = Millie_y + groundsetter;
if (pContainer.alive) {
if (pContainer.dir == false) {
pContainer.pChild.gotoAndStop(M_STAND);
} else {
pContainer.pChild.gotoAndStop(M_STAND + 1);
}
} else if (pContainer.dir == false) {
pContainer.pChild.gotoAndStop(M_DIE);
} else {
pContainer.pChild.gotoAndStop(M_DIE + 1);
}
if (pContainer.swimming == 0) {
srockstep1.start();
}
}
if (pContainer.velocity > 0) {
Millie_y = Millie_y + (pContainer.velocity * pContainer.watermult);
if (pContainer.atktype == 0) {
if (pContainer.alive) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_FALL + 1);
} else {
pContainer.pChild.gotoAndStop(M_FALL);
}
} else if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_DIE + 1);
} else {
pContainer.pChild.gotoAndStop(M_DIE);
}
}
}
if (((pContainer.ready == 0) && (pContainer.runspeed == 0)) && (pContainer.atktype == 0)) {
if (dancetimer < 901) {
dancetimer = dancetimer + 1;
}
if (pContainer.alive) {
if ((pContainer.swimming == 0) && (pContainer.hanging == 0)) {
if (pContainer.runoffset != 0) {
if (pContainer.runoffset > 0) {
pContainer.pChild.gotoAndStop(M_RUN + 1);
} else {
pContainer.pChild.gotoAndStop(M_RUN);
}
} else if ((CollisionDetect(Millie_x + 16, Millie_y + 8) == false) && (pContainer.dir == false)) {
pContainer.pChild.gotoAndStop(M_BALANCE);
} else if ((CollisionDetect(Millie_x - 16, Millie_y + 8) == false) && (pContainer.dir)) {
pContainer.pChild.gotoAndStop(M_BALANCE + 1);
} else if (((pContainer.health / pContainer.pChild.maxhealth) * 100) <= 10) {
if (hurtsound == false) {
if (g_char == 0) {
ehurt.attachSound("emote_millie_heavy");
} else {
ehurt.attachSound("emote_lance_heavy");
}
ehurt.start(0, 999);
hurtsound = true;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_HURT + 1);
} else {
pContainer.pChild.gotoAndStop(M_HURT);
}
} else if (dancetimer == 899) {
idlepick = Math.round(Math.random() * 6);
if (g_char == 0) {
if (idlepick == 6) {
eidle.attachSound("emote_millie_idle0");
eidle.start();
dancetimer = 450;
} else if (idlepick == 5) {
eidle.attachSound("emote_millie_idle1");
eidle.start();
dancetimer = 450;
} else if (idlepick == 4) {
eidle.attachSound("emote_millie_idle2");
eidle.start();
dancetimer = 450;
}
} else if (idlepick == 6) {
eidle.attachSound("emote_lance_idle0");
eidle.start();
dancetimer = 450;
} else if (idlepick == 5) {
eidle.attachSound("emote_lance_idle1");
eidle.start();
dancetimer = 450;
} else if (idlepick == 4) {
eidle.attachSound("emote_lance_idle2");
eidle.start();
dancetimer = 450;
} else if (idlepick == 3) {
eidle.attachSound("emote_lance_idle3");
eidle.start();
dancetimer = 450;
}
} else if (dancetimer > 899) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_DANCE + 1);
} else {
pContainer.pChild.gotoAndStop(M_DANCE);
}
} else if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_STAND + 1);
} else {
pContainer.pChild.gotoAndStop(M_STAND);
}
} else if (pContainer.swimming > 0) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_TREAD + 1);
} else {
pContainer.pChild.gotoAndStop(M_TREAD);
}
} else if (pContainer.hanging == 1) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_HANG + 1);
} else {
pContainer.pChild.gotoAndStop(M_HANG);
}
}
} else if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_DIE + 1);
} else {
pContainer.pChild.gotoAndStop(M_DIE);
}
} else {
dancetimer = 0;
}
if (pContainer.flicker > 0) {
pContainer.flicker = pContainer.flicker - 1;
if (pContainer._visible) {
pContainer._visible = false;
} else {
pContainer._visible = true;
}
}
if ((pContainer.flicker == 0) && (pContainer._visible == false)) {
pContainer._visible = true;
}
if ((pContainer.swimming != 2) && (pContainer.ready == 1)) {
if (pContainer.velocity < 30) {
pContainer.velocity = pContainer.velocity + 1;
}
if (pContainer.velocity == 0) {
pContainer.velocity = 2;
}
} else if (pContainer.swimming == 2) {
if ((pContainer.velocity > -10) && (pContainer.velocity != 0)) {
pContainer.velocity = pContainer.velocity - 1;
}
}
if ((pContainer.atimer > 0) && (pContainer.atktype != 0)) {
pContainer.atimer = pContainer.atimer + 1;
}
if ((pContainer.atimer > 18) && (pContainer.atktype == 1)) {
pContainer.atimer = 0;
pContainer.atktype = 0;
}
if ((pContainer.atimer > 11) && (pContainer.atktype == 4)) {
pContainer.atimer = 0;
pContainer.atktype = 0;
}
if ((pContainer.atimer == 8) && (pContainer.atktype == 6)) {
pContainer.velocity = 20;
}
if ((pContainer.atktype == 1) && ((pContainer.atimer == 2) || (pContainer.atimer == 9))) {
sswingknife.start();
}
if ((pContainer.atktype == 4) && (pContainer.atimer == 4)) {
sSwipe.start();
}
if (Key.isDown(g_attack) == false) {
if ((pContainer.atktype == 1) || (pContainer.atktype == 4)) {
if (pContainer.atimer > 18) {
pContainer.atimer = 0;
pContainer.atktype = 0;
}
} else {
pContainer.atimer = 0;
pContainer.atktype = 0;
}
}
if ((((((pContainer.pChild._currentframe == M_RUN) || (pContainer.pChild._currentframe == (M_RUN + 1))) || (pContainer.pChild._currentframe == M_RSTAB)) || (pContainer.pChild._currentframe == (M_RSTAB + 1))) || (pContainer.pChild._currentframe == M_CLIMB)) || (pContainer.pChild._currentframe == (M_CLIMB + 1))) {
pContainer.rsound = pContainer.rsound + 1;
if (pContainer.hanging == 0) {
if ((pContainer.rsound == 5) || (pContainer.rsound == 15)) {
srockstep1.start();
}
if (pContainer.rsound > 19) {
pContainer.rsound = 0;
}
} else {
if ((pContainer.rsound == 1) || (pContainer.rsound == 11)) {
srockstep1.start();
}
if (pContainer.rsound > 21) {
pContainer.rsound = 0;
}
}
} else {
pContainer.rsound = 0;
}
if ((pContainer.pChild._currentframe == M_SWIM) || (pContainer.pChild._currentframe == (M_SWIM + 1))) {
pContainer.ssound = pContainer.ssound + 1;
if (pContainer.ssound == 1) {
ssplash_1.start();
}
if (pContainer.ssound > 25) {
pContainer.ssound = 0;
}
} else {
pContainer.ssound = 0;
}
if (pContainer.ragecounter > 0) {
pContainer.ragecounter = pContainer.ragecounter - 1;
}
if (((pContainer.rage > 0) && (pContainer.ragecounter == 0)) && (pContainer.berserk == true)) {
pContainer.rage = pContainer.rage - 1;
pContainer.ragecounter = 5;
}
if (pContainer.rage < 0) {
pContainer.rage = 0;
}
if (pContainer.berserk && (pContainer.rage <= 0)) {
sbang1.start();
pContainer.berserk = false;
if (g_costume == 1) {
g_costume = 0;
}
if (g_costume == 3) {
g_costume = 2;
}
if (g_char == 0) {
nPlate.gotoAndStop(1);
} else {
nPlate.gotoAndStop(4);
}
}
if ((pContainer.health <= 0) && (pContainer.alive == true)) {
simpale.start();
if (g_char == 0) {
edie.attachSound("emote_millie_cry");
} else {
edie.attachSound("emote_lance_cry");
}
edie.start();
pContainer.atktype = 0;
pContainer.health = 0;
pContainer.rage = 0;
pContainer.flicker = 0;
pContainer._visible = true;
pContainer.hanging = 0;
pContainer.swimming = 0;
pContainer.alive = false;
if (g_char == 0) {
nPlate.gotoAndStop(3);
} else {
nPlate.gotoAndStop(6);
}
}
}
function BoomieHandler() {
if (objBits.xtimer > 0) {
objBits.xtimer = objBits.xtimer + 1;
if (objBits.xtimer == 2) {
sbomb.start();
if (pContainer.hitTest(objBits)) {
pContainer.flicker = 10;
pContainer.health = pContainer.health - 20;
}
a = 0;
while (a < ENEINDEX) {
if ((_root["Ene" + a].hitTest(objBits) && (_root["Ene" + a].EneChild.bombimmune == false)) && (_root["Ene" + a].alive)) {
multiplier = 1;
if (pContainer.berserk) {
multiplier = 2;
}
switch (g_difficulty) {
case 1 :
multiplier = multiplier * 1.5;
break;
case 2 :
multiplier = multiplier * 0.8;
break;
case 3 :
multiplier = multiplier * 0.5;
break;
default :
multiplier = multiplier * 1;
}
_root["Ene" + a].health = _root["Ene" + a].health - Math.floor(30 * multiplier);
_root["Ene" + a].flicker = 10;
}
a++;
}
}
if (objBits.xtimer == 13) {
objBits.xtimer = 0;
objBits.xvel = 0;
objBits.yvel = 0;
objBits.myx = -100;
objBits.myy = -100;
objBits.inuse = false;
objBits.gotoAndStop(1);
}
} else {
objBits.myx = objBits.myx + objBits.xvel;
objBits.myy = objBits.myy + objBits.yvel;
if (objBits.yvel < 30) {
objBits.yvel = objBits.yvel + 1;
}
if ((CollisionDetect(objBits.myx, objBits.myy) || (objBits.myx < 0)) || (objBits.myx > Floor._width)) {
objBits.xtimer = 1;
objBits.gotoAndStop(3);
objBits.xvel = 0;
objBits.yvel = 0;
}
a = 0;
while (a < ENEINDEX) {
if (_root["Ene" + a].hitTest(objBits._x, objBits._y) && (_root["Ene" + a].alive)) {
objBits.xtimer = 1;
objBits.gotoAndStop(3);
objBits.xvel = 0;
objBits.yvel = 0;
}
a++;
}
}
}
function EnemyEvents(EneObj) {
if (EneObj.hitTest(pContainer) && (pContainer.alive)) {
if ((EneObj.EneChild.physimmune == false) && (((EneObj._x < pContainer._x) && (pContainer.dir)) || ((EneObj._x > pContainer._x) && (pContainer.dir == false)))) {
ragemult = 1;
if (pContainer.berserk) {
ragemult = 0;
}
multiplier = 1;
if (pContainer.berserk) {
multiplier = 2;
}
switch (g_difficulty) {
case 1 :
multiplier = multiplier * 1.5;
break;
case 2 :
multiplier = multiplier * 0.8;
break;
case 3 :
multiplier = multiplier * 0.5;
break;
default :
multiplier = multiplier * 1;
}
if ((pContainer.atktype == 1) && ((pContainer.atimer == 6) || (pContainer.atimer == 12))) {
EneObj.health = EneObj.health - Math.round((pContainer.pChild.atk / 2) * multiplier);
EneObj.flicker = 10;
pContainer.rage = pContainer.rage + (2 * ragemult);
pContainer.health = pContainer.health + (4 * (1 - ragemult));
sSwordhit.start();
}
if ((pContainer.atktype == 2) && (EneObj.flicker == 0)) {
EneObj.health = EneObj.health - Math.round(pContainer.pChild.atk * multiplier);
EneObj.flicker = 10;
pContainer.rage = pContainer.rage + (3 * ragemult);
pContainer.health = pContainer.health + (10 * (1 - ragemult));
pContainer.runspeed = 0;
sSwordhit.start();
} else if ((pContainer.atktype == 4) && (pContainer.atimer == 6)) {
EneObj.health = EneObj.health - Math.round(pContainer.pChild.atk * multiplier);
EneObj.flicker = 10;
pContainer.rage = pContainer.rage - (10 * ragemult);
if (EneObj.EneChild.cankick) {
if (Millie_x < EneObj.myx) {
EneObj.dir = false;
} else {
EneObj.dir = true;
}
}
if (EneObj.EneChild.atimer > 0) {
if (EneObj.dir) {
EneObj.EneChild.gotoAndStop(4);
} else {
EneObj.EneChild.gotoAndStop(3);
}
}
if ((Math.random() * 2) > 1) {
spunchhit.start();
} else {
spunchhit2.start();
}
} else if ((((pContainer.atktype == 5) && (EneObj.flicker == 0)) && (pContainer.velocity > 0)) && (Millie_y < (EneObj.myy + 40))) {
EneObj.health = EneObj.health - Math.round(pContainer.velocity * multiplier);
EneObj.flicker = 10;
pContainer.rage = pContainer.rage + (Math.round(pContainer.velocity / 2) * ragemult);
if (pContainer.berserk) {
pContainer.health = pContainer.health + Math.round(pContainer.velocity / 2);
}
sSwordhit.start();
} else if ((((pContainer.atktype == 6) && (EneObj.flicker == 0)) && (pContainer.velocity > 0)) && (Millie_y < (EneObj.myy + 40))) {
if (pContainer.berserk) {
EneObj.health = EneObj.health - Math.round(pContainer.pChild.atk * 6);
pContainer.rage = 0;
simpale.start();
} else {
EneObj.health = EneObj.health - Math.round(pContainer.pChild.atk * 2);
pContainer.rage = pContainer.rage - 10;
sbthirst.start();
}
EneObj.flicker = 10;
}
}
if (((pContainer.atktype == 7) && (EneObj.flicker == 0)) && (EneObj.EneChild.physimmune == false)) {
ragemult = 1;
if (pContainer.berserk) {
ragemult = 0;
}
multiplier = 1;
switch (g_difficulty) {
case 1 :
multiplier = multiplier * 1.5;
break;
case 2 :
multiplier = multiplier * 0.8;
break;
case 3 :
multiplier = multiplier * 0.5;
break;
default :
multiplier = multiplier * 1;
}
if (pContainer.berserk) {
EneObj.health = EneObj.health - Math.round((pContainer.pChild.atk / 1.5) * multiplier);
} else {
EneObj.health = EneObj.health - Math.ceil((pContainer.pChild.atk / 3) * multiplier);
}
EneObj.flicker = 4;
pContainer.rage = pContainer.rage - (2 * ragemult);
if (pContainer.berserk) {
pContainer.health = pContainer.health + 2;
}
sSwordhit.start();
}
if (((EneObj.EneChild.canattack && (pContainer.flicker == 0)) && (EneObj.EneChild.atimer == EneObj.EneChild.astrike)) && (((pContainer._x < EneObj._x) && (EneObj.dir)) || ((pContainer._x > EneObj._x) && (EneObj.dir == false)))) {
if (pContainer.hanging == 1) {
pContainer.hanging = 0;
Millie_y = Millie_y + 10;
}
if (((pContainer.atktype == 3) && (EneObj.EneChild.crusher == false)) && (((pContainer._x < EneObj._x) && (pContainer.dir == false)) || ((pContainer._x > EneObj._x) && (pContainer.dir)))) {
pContainer.flicker = 4;
sswordcut.start();
} else {
pContainer.flicker = 10;
sSwordhit.start();
diffmult = 1;
switch (g_difficulty) {
case 1 :
diffmult = 0.667;
break;
case 2 :
diffmult = 1.5;
break;
case 3 :
diffmult = 2;
break;
default :
diffmult = 1;
}
pContainer.health = pContainer.health - Math.ceil(EneObj.EneChild.atk * diffmult);
pContainer.rage = pContainer.rage + 5;
}
}
}
EnemyAct(EneObj.EneChild);
if (EneObj.EneChild.atimer > 0) {
EneObj.EneChild.atimer = EneObj.EneChild.atimer + 1;
}
if (EneObj.EneChild.atimer > EneObj.EneChild.amax) {
if (EneObj.dir) {
EneObj.EneChild.gotoAndStop(2);
} else {
EneObj.EneChild.gotoAndStop(1);
}
EneObj.EneChild.atimer = 0;
}
if (EneObj.flicker > 0) {
EneObj.flicker = EneObj.flicker - 1;
if (EneObj._visible) {
EneObj._visible = false;
} else {
EneObj._visible = true;
}
}
if ((EneObj.flicker == 0) && (EneObj._visible == false)) {
EneObj._visible = true;
}
if ((EneObj.health <= 0) && (EneObj.alive == true)) {
if (EneObj.dir) {
EneObj.EneChild.gotoAndStop(6);
} else {
EneObj.EneChild.gotoAndStop(5);
}
EneObj.alive = false;
EneObj.flicker = 0;
EneObj._visible = true;
EneObj.health = 0;
_root["s" + EneObj.EneChild.deathnoise].start();
if ((Math.random() * 2) > 1) {
pContainer.health = pContainer.health + 5;
}
}
}
function EnemyAct(Enemy) {
EnePar = Enemy._parent;
if ((Enemy.classname == "ground_walk") && (Enemy.atimer == 0)) {
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy - 1) == true) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy - 1;
}
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy + 1) == false) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy + 1;
}
if (((Enemy.atimer == 0) && (EnePar.hitTest(pContainer))) && (pContainer.alive)) {
if (Enemy.canturn) {
if ((EnePar._x < pContainer._x) && (EnePar.dir)) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
}
if (EnePar.dir) {
Enemy.gotoAndStop(4);
} else {
Enemy.gotoAndStop(3);
}
Enemy.atimer = 1;
} else {
if ((((pContainer.alive && (Millie_y > (EnePar.myy - EnePar._height))) && (Millie_y < (EnePar.myy + 10))) && (Millie_x > (EnePar.myx - 240))) && (Millie_x < (EnePar.myx + 240))) {
if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
} else {
if (EnePar.dir && (((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true))) || ((EnePar.myx - 10) < 16))) {
EnePar.dir = false;
}
if ((EnePar.dir == false) && (((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true))) || ((EnePar.myx + 10) > (Floor._width - 16)))) {
EnePar.dir = true;
}
}
if (((EnePar.dir && ((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true)))) == false) && (((EnePar.dir == false) && ((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true)))) == false)) {
if (EnePar.dir) {
Enemy.gotoAndStop(2);
EnePar.myx = EnePar.myx - Enemy.walkspeed;
} else {
Enemy.gotoAndStop(1);
EnePar.myx = EnePar.myx + Enemy.walkspeed;
}
}
}
} else if ((Enemy.classname == "ground_facer") && (Enemy.atimer == 0)) {
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy - 1) == true) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy - 1;
}
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy + 1) == false) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy + 1;
}
if (((Enemy.atimer == 0) && (Math.abs(EnePar.myx - Millie_x) < EnePar._width)) && (pContainer.alive)) {
if (Enemy.canturn) {
if ((EnePar._x <= pContainer._x) && (EnePar.dir)) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
}
if (EnePar.dir) {
Enemy.gotoAndStop(4);
} else {
Enemy.gotoAndStop(3);
}
Enemy.atimer = 1;
} else {
if (pContainer.alive) {
if (Millie_x <= EnePar.myx) {
EnePar.dir = true;
}
if (Millie_x > EnePar.myx) {
EnePar.dir = false;
}
}
if (EnePar.dir && (((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true))) || ((EnePar.myx - 10) < 16))) {
EnePar.dir = false;
}
if ((EnePar.dir == false) && (((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true))) || ((EnePar.myx + 10) > (Floor._width - 16)))) {
EnePar.dir = true;
}
if (((EnePar.dir && ((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true)))) == false) && (((EnePar.dir == false) && ((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || (CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true)))) == false)) {
if (EnePar.dir) {
Enemy.gotoAndStop(2);
EnePar.myx = EnePar.myx - Enemy.walkspeed;
} else {
Enemy.gotoAndStop(1);
EnePar.myx = EnePar.myx + Enemy.walkspeed;
}
}
}
} else if (Enemy.classname == "ground_spikes") {
if (Enemy.atimer == 0) {
if ((((Enemy.atimer == 0) && (Math.abs(EnePar.myx - Millie_x) <= ((EnePar._width / 2) + 2))) && (EnePar.hitTest(pContainer))) && (pContainer.alive)) {
if (((Millie_y < (EnePar.myy + 10)) && (pContainer.velocity >= 0)) || ((Millie_y > (EnePar.myy + 50)) && (pContainer.velocity <= 0))) {
Enemy.atimer = 1;
}
}
} else if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
} else if (Enemy.classname == "popspike") {
if (Enemy.atimer == 0) {
Enemy.gotoAndStop(3);
Enemy.atimer = 1;
} else if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
} else if (Enemy.classname == "blockrock") {
} else if (Enemy.classname == "bouncerock") {
EnePar.myx = EnePar.myx + EnePar.xvel;
EnePar.myy = EnePar.myy + EnePar.yvel;
if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
if (EnePar.alive) {
Enemy.gotoAndStop(1);
}
if (EnePar.yvel < 10) {
EnePar.yvel = EnePar.yvel + 1;
}
if ((EnePar.myx > 0) && (CollisionDetectEnemy(EnePar.myx, EnePar.myy))) {
sthud.start();
EnePar.yvel = -EnePar.yvel;
}
if (((EnePar.myx > 0) && (EnePar.alive == true)) && (CollisionDetectEnemy(EnePar.myx, EnePar.myy - 64))) {
sthud.start();
EnePar.health = 0;
EnePar.alive = false;
Enemy.gotoAndStop(5);
}
if (((((Enemy.atimer == 0) && ((EnePar.myx + 32) >= dLeft_x)) && ((EnePar.myx - 32) <= dRight_x)) && (EnePar.myy >= dUp_y)) && ((EnePar.myy - 64) <= dDown_y)) {
Enemy.atimer = 1;
}
} else if (Enemy.classname == "firegel") {
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy - 1) == true) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy - 1;
}
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy + 1) == false) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy + 1;
}
if (((((((((Enemy.atimer == 0) && (Enemy.burntimer == 0)) && (pContainer._x > (EnePar._x - 240))) && (pContainer._x < (EnePar._x + 240))) && (pContainer._y > (EnePar._y - 180))) && (pContainer._y < (EnePar._y + 180))) && (pContainer.velocity != 0)) && (pContainer.alive)) || (Enemy.burntimer > 0)) {
Enemy.burntimer = Enemy.burntimer + 1;
if ((EnePar._x < pContainer._x) && EnePar.dir) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
if (Enemy.burntimer == 1) {
spyre.start();
Enemy.physimmune = true;
Enemy.bombimmune = true;
if (EnePar.dir) {
Enemy.gotoAndStop(8);
} else {
Enemy.gotoAndStop(7);
}
}
if ((EnePar.hitTest(pContainer) && (pContainer._x > (EnePar._x - 106))) && (pContainer._x < (EnePar._x + 106))) {
if (pContainer.hanging == 1) {
pContainer.hanging = 0;
Millie_y = Millie_y + 10;
}
if (burnsound == 0) {
burnsound = 1;
sFireball.start();
}
pContainer.health = pContainer.health - 1;
}
if (Enemy.burntimer >= 69) {
Enemy.burntimer = 0;
Enemy.physimmune = false;
Enemy.bombimmune = false;
if (EnePar.dir) {
Enemy.gotoAndStop(2);
} else {
Enemy.gotoAndStop(1);
}
}
} else if (((Enemy.atimer == 0) && EnePar.hitTest(pContainer)) && pContainer.alive) {
if ((EnePar._x < pContainer._x) && EnePar.dir) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
if (EnePar.dir) {
Enemy.gotoAndStop(4);
} else {
Enemy.gotoAndStop(3);
}
Enemy.atimer = 1;
} else if (Enemy.atimer == 0) {
if ((((pContainer.alive && (Millie_y > (EnePar.myy - EnePar._height))) && (Millie_y < (EnePar.myy + 10))) && (Millie_x > (EnePar.myx - 240))) && (Millie_x < (EnePar.myx + 240))) {
if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
} else {
if (EnePar.dir && (((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true)) || ((EnePar.myx - 10) < 16))) {
EnePar.dir = false;
}
if ((EnePar.dir == false) && (((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true)) || ((EnePar.myx + 10) > (Floor._width - 16)))) {
EnePar.dir = true;
}
}
if (((EnePar.dir && ((CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx - 10, EnePar.myy - 16, true))) == false) && (((EnePar.dir == false) && ((CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx + 10, EnePar.myy - 16, true))) == false)) {
if (EnePar.dir) {
Enemy.gotoAndStop(2);
EnePar.myx = EnePar.myx - Enemy.walkspeed;
} else {
Enemy.gotoAndStop(1);
EnePar.myx = EnePar.myx + Enemy.walkspeed;
}
}
}
} else if (Enemy.classname == "rockgel") {
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy - 1) == true) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy - 1;
}
stopper = 0;
while ((CollisionDetectEnemy(EnePar.myx, EnePar.myy + 1) == false) && (stopper < 32)) {
stopper = stopper + 1;
EnePar.myy = EnePar.myy + 1;
}
if ((((((Enemy.charging == false) && (Enemy.atimer == 0)) && pContainer.alive) && (pContainer._y > (EnePar._y - 96))) && (pContainer._y < (EnePar._y + 96))) && (((pContainer._x > (EnePar._x - 260)) && (pContainer._x < (EnePar._x - 176))) || ((pContainer._x > (EnePar._x + 176)) && (pContainer._x < (EnePar._x + 260))))) {
if (EnePar._x < pContainer._x) {
EnePar.dir = false;
} else {
EnePar.dir = true;
}
sSwipe.start();
Enemy.charging = true;
Enemy.walkspeed = 14;
}
if ((((Enemy.charging && EnePar.hitTest(pContainer)) && pContainer.alive) && (pContainer.flicker == 0)) && ((((pContainer._x < EnePar._x) && (pContainer._x > (EnePar._x - 64))) && EnePar.dir) || (((pContainer._x > EnePar._x) && (pContainer._x < (EnePar._x + 64))) && (EnePar.dir == false)))) {
Enemy.charging = false;
Enemy.walkspeed = 4;
if (((g_difficulty < 3) && (pContainer.atktype == 3)) && (((pContainer._x < EnePar._x) && (pContainer.dir == false)) || ((pContainer._x > EnePar._x) && pContainer.dir))) {
pContainer.flicker = 4;
sswordcut.start();
} else {
pContainer.flicker = 10;
sSwordhit.start();
diffmult = 1;
switch (g_difficulty) {
case 1 :
diffmult = 0.667;
break;
case 2 :
diffmult = 1.5;
break;
case 3 :
diffmult = 2;
break;
default :
diffmult = 1;
}
pContainer.health = pContainer.health - Math.ceil(Enemy.atk * diffmult);
pContainer.rage = pContainer.rage + 5;
}
}
if ((((Enemy.atimer == 0) && (Enemy.charging == false)) && EnePar.hitTest(pContainer)) && pContainer.alive) {
Enemy.charging = false;
Enemy.walkspeed = 4;
if ((EnePar._x < pContainer._x) && EnePar.dir) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
if (EnePar.dir) {
Enemy.gotoAndStop(4);
} else {
Enemy.gotoAndStop(3);
}
Enemy.atimer = 1;
} else if (Enemy.atimer == 0) {
if ((((pContainer.alive && (Millie_y > (EnePar.myy - EnePar._height))) && (Millie_y < (EnePar.myy + 10))) && (Millie_x > (EnePar.myx - 240))) && (Millie_x < (EnePar.myx + 240))) {
if (Enemy.charging == false) {
if (Millie_x < EnePar.myx) {
EnePar.dir = true;
} else {
EnePar.dir = false;
}
} else if ((Millie_x < (EnePar.myx - 64)) && (EnePar.dir == false)) {
EnePar.dir = true;
Enemy.charging = false;
Enemy.walkspeed = 8;
} else if ((Millie_x > (EnePar.myx + 64)) && EnePar.dir) {
EnePar.dir = false;
Enemy.charging = false;
Enemy.walkspeed = 8;
}
} else {
if (EnePar.dir && (((CollisionDetectEnemy(EnePar.myx - 15, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx - 15, EnePar.myy - 16, true)) || ((EnePar.myx - 14) < 16))) {
EnePar.dir = false;
Enemy.charging = false;
Enemy.walkspeed = 4;
}
if ((EnePar.dir == false) && (((CollisionDetectEnemy(EnePar.myx + 15, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx + 15, EnePar.myy - 16, true)) || ((EnePar.myx + 14) > (Floor._width - 16)))) {
EnePar.dir = true;
Enemy.charging = false;
Enemy.walkspeed = 4;
}
}
if (((EnePar.dir && ((CollisionDetectEnemy(EnePar.myx - 15, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx - 15, EnePar.myy - 16, true))) == false) && (((EnePar.dir == false) && ((CollisionDetectEnemy(EnePar.myx + 15, EnePar.myy + 16) == false) || CollisionDetectEnemy(EnePar.myx + 15, EnePar.myy - 16, true))) == false)) {
if (EnePar.dir) {
if (Enemy.charging) {
Enemy.gotoAndStop(8);
} else {
Enemy.gotoAndStop(2);
}
EnePar.myx = EnePar.myx - Enemy.walkspeed;
} else {
if (Enemy.charging) {
Enemy.gotoAndStop(7);
} else {
Enemy.gotoAndStop(1);
}
EnePar.myx = EnePar.myx + Enemy.walkspeed;
}
}
}
} else if (Enemy.classname == "ahiwai") {
if (EnePar.myx < 600) {
EnePar.myx = EnePar.myx + (Enemy.walkspeed * 2);
}
if (Enemy.bosstimer < 600) {
if ((lava0._currentframe < 85) || (lava0._currentframe > 168)) {
lava0.gotoAndPlay(85);
}
if (EnePar.myx >= 600) {
if (EnePar.myy < 422) {
EnePar.myy = EnePar.myy + Enemy.walkspeed;
} else {
if (((Enemy.atimer == 0) && EnePar.hitTest(pContainer)) && pContainer.alive) {
if ((EnePar._x < pContainer._x) && EnePar.dir) {
EnePar.dir = false;
} else if ((EnePar._x > pContainer._x) && (EnePar.dir == false)) {
EnePar.dir = true;
}
if (EnePar.dir) {
Enemy.gotoAndStop(3);
} else {
Enemy.gotoAndStop(4);
}
Enemy.atimer = 1;
}
Enemy.bosstimer = Enemy.bosstimer + 1;
}
}
} else if (Enemy.bosstimer < 850) {
if (EnePar.myy > -50) {
EnePar.myy = EnePar.myy - Enemy.walkspeed;
} else {
if (Enemy.bosstimer == 600) {
lava0.gotoAndPlay(60);
lava0.myx = Millie_x;
} else if (Enemy.bosstimer == 660) {
lava1.gotoAndPlay(60);
lava1.myx = Millie_x + 96;
} else if (Enemy.bosstimer == 720) {
lava2.gotoAndPlay(60);
lava2.myx = Millie_x - 96;
}
if (Enemy.bosstimer == 715) {
lava0.gotoAndPlay(1);
lava0.myx = -500;
} else if (Enemy.bosstimer == 775) {
lava1.gotoAndPlay(1);
lava1.myx = -500;
} else if (Enemy.bosstimer == 835) {
lava2.gotoAndPlay(1);
lava2.myx = -500;
}
Enemy.bosstimer = Enemy.bosstimer + 1;
}
} else {
sahiwai.start();
Enemy.bosstimer = 0;
lava0.gotoAndPlay(85);
lava0.myx = 696;
}
}
}
function MoveEverything() {
ref_x = Millie_x - pContainer._x;
ref_y = Millie_y - pContainer._y;
i = 0;
while (i < ENEINDEX) {
if (_root["Ene" + i].active) {
_root["Ene" + i]._x = _root["Ene" + i].myx - ref_x;
_root["Ene" + i]._y = _root["Ene" + i].myy - ref_y;
}
i++;
}
if (WaterFore_y < WaterFore_level) {
WaterFore_y = WaterFore_y + 2;
} else if (WaterFore_y > WaterFore_level) {
WaterFore_y = WaterFore_y - 4;
}
if ((WaterFore_y == WaterFore_level) && (watersound == 1)) {
watersound = 0;
sflowing.stop();
}
WaterFore._y = WaterFore_y - ref_y;
if (WaterFore._y < -420) {
WaterBottom._y = 0;
} else {
WaterBottom._y = WaterFore._y + 420;
}
rock0._x = rock0.myx - ref_x;
rock0._y = rock0.myy - ref_y;
plat0._x = plat0.myx - ref_x;
plat0._y = plat0.myy - ref_y;
objBits._x = objBits.myx - ref_x;
objBits._y = objBits.myy - ref_y;
a = 0;
while (a < 5) {
_root["hang" + a]._x = _root["hang" + a].myx - ref_x;
_root["hang" + a]._y = _root["hang" + a].myy - ref_y;
_root["bounce" + a]._x = _root["bounce" + a].myx - ref_x;
_root["bounce" + a]._y = _root["bounce" + a].myy - ref_y;
_root["uCatcher" + a]._x = _root["uCatcher" + a].myx - ref_x;
_root["uCatcher" + a]._y = _root["uCatcher" + a].myy - ref_y;
_root["npc" + a]._x = _root["npc" + a].myx - ref_x;
_root["npc" + a]._y = _root["npc" + a].myy - ref_y;
if (a < 3) {
_root["switch" + a]._x = _root["switch" + a].myx - ref_x;
_root["switch" + a]._y = _root["switch" + a].myy - ref_y;
_root["lava" + a]._x = _root["lava" + a].myx - ref_x;
_root["lava" + a]._y = 0;
}
if (a < 4) {
_root["drop" + a]._x = _root["drop" + a].myx - ref_x;
_root["drop" + a]._y = _root["drop" + a].myy - ref_y;
}
a++;
}
}
function DetEvents() {
dDown_x = Millie_x;
dDown_y = Millie_y + 8;
dUp_x = Millie_x;
dUp_y = Millie_y - 75;
dLeft_x = Millie_x - 16;
dLeft_y = Millie_y - 40;
dRight_x = Millie_x + 16;
dRight_y = Millie_y - 40;
}
function CollisionDetect(raw_x, raw_y) {
if (raw_x < 0) {
raw_x = 4;
}
if (raw_x > Floor._width) {
raw_x = Floor._width - 4;
}
if (raw_y < 0) {
raw_y = 4;
}
if (raw_y > Floor._height) {
raw_y = Floor._height - 4;
}
if (Floor.hitTest(raw_x, raw_y, true)) {
return(true);
}
if ((((raw_x > plat0.myx) && (raw_x < (plat0.myx + 64))) && (raw_y > plat0.myy)) && (raw_y < (plat0.myy + 32))) {
return(true);
}
if (drop0.myx > 0) {
a = 0;
while (a < 4) {
if (((((raw_x > _root["drop" + a].myx) && (raw_x < (_root["drop" + a].myx + 96))) && (raw_y > _root["drop" + a].myy)) && (raw_y < (_root["drop" + a].myy + 32))) && (_root["drop" + a]._currentframe < 116)) {
return(true);
}
a++;
}
}
if ((raw_y > (WaterFore_y + 50)) && (pContainer.swimming == 1)) {
return(true);
}
if ((((raw_x > (rock0.myx - 33)) && (raw_x < (rock0.myx + 33))) && (raw_y < (rock0.myy + 1))) && (raw_y > (rock0.myy - 64))) {
return(true);
}
return(false);
}
function CollisionDetectEnemy(raw_x, raw_y) {
if (raw_x < 0) {
raw_x = 4;
}
if (raw_x > Floor._width) {
raw_x = Floor._width - 4;
}
if (raw_y < 0) {
raw_y = 4;
}
if (raw_y > Floor._height) {
raw_y = Floor._height - 4;
}
if (Floor.hitTest(raw_x, raw_y, true)) {
return(true);
}
if ((((raw_x > plat0.myx) && (raw_x < (plat0.myx + 64))) && (raw_y > plat0.myy)) && (raw_y < (plat0.myy + 32))) {
return(true);
}
if (drop0.myx > 0) {
a = 0;
while (a < 4) {
if (((((raw_x > _root["drop" + a].myx) && (raw_x < (_root["drop" + a].myx + 96))) && (raw_y > _root["drop" + a].myy)) && (raw_y < (_root["drop" + a].myy + 32))) && (_root["drop" + a]._currentframe < 116)) {
return(true);
}
a++;
}
}
if ((((raw_x > (rock0.myx - 33)) && (raw_x < (rock0.myx + 33))) && (raw_y < (rock0.myy + 1))) && (raw_y > (rock0.myy - 64))) {
return(true);
}
return(false);
}
function CollisionDetectSpecial(raw_x, raw_y) {
if ((((raw_x > (rock0.myx - 33)) && (raw_x < (rock0.myx + 33))) && (raw_y < (rock0.myy + 1))) && (raw_y > (rock0.myy - 65))) {
return(true);
}
return(false);
}
function GrassCollide(modx) {
b = 0;
while (b < 5) {
if (((((Millie_x + modx) > (_root["hang" + b].myx - 2)) && ((Millie_x + modx) < (_root["hang" + b].myx + _root["hang" + b]._width))) && ((Millie_y - 60) > _root["hang" + b].myy)) && ((Millie_y - 60) < (_root["hang" + b].myy + 24))) {
Millie_y = _root["hang" + b].myy + 80;
return(true);
}
b++;
}
return(false);
}
function ForeDisplay() {
if (Millie_x < 240) {
pContainer._x = Millie_x;
} else if ((Millie_x >= 240) && (Millie_x < (Floor._width - 240))) {
pContainer._x = 240;
} else if (Millie_x >= (Floor._width - 240)) {
pContainer._x = 480 - (Floor._width - Millie_x);
}
if (Millie_y < 216) {
pContainer._y = Millie_y;
} else if ((Millie_y >= 216) && (Millie_y < (Floor._height - 144))) {
pContainer._y = 216;
} else if (Millie_y >= (Floor._height - 144)) {
pContainer._y = 360 - (Floor._height - Millie_y);
}
Fore._x = -(Millie_x - pContainer._x);
Fore._y = -(Millie_y - pContainer._y);
bFore._x = Fore._x;
bFore._y = Fore._y;
}
function Parallax() {
if (Millie_x < 240) {
para1._x = (-(0 / (Floor._width - 480))) * (para1._width - 500);
} else if (Millie_x < (Floor._width - 240)) {
para1._x = (-((Millie_x - 240) / (Floor._width - 480))) * (para1._width - 500);
} else {
para1._x = (-(((Floor._width - 240) - 240) / (Floor._width - 480))) * (para1._width - 500);
}
if (Millie_y < 216) {
para1._y = (-(0 / (Floor._height - 360))) * (para1._height - 380);
} else if (Millie_y < (Floor._height - 144)) {
para1._y = (-((Millie_y - 216) / (Floor._height - 360))) * (para1._height - 380);
} else {
para1._y = (-(((Floor._height - 144) - 216) / (Floor._height - 360))) * (para1._height - 380);
}
}
function BounceCheck() {
bnum = 0;
supervel = 23;
bnum = 0;
while (bnum < 5) {
if (_root["bounce" + bnum].hitTest(pContainer._x, pContainer._y + pContainer.velocity) && (pContainer.velocity > 0)) {
if (Floor._currentframe == 6) {
supervel = 25;
}
if (Floor._currentframe == 7) {
supervel = 25;
} else if (Floor._currentframe == 8) {
supervel = 32;
} else if (Floor._currentframe == 12) {
supervel = 23;
} else if (Floor._currentframe == 16) {
supervel = 23;
}
if (pContainer.atktype == 6) {
pContainer.velocity = (-supervel) - 5;
} else {
pContainer.velocity = -supervel;
}
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_JUMP + 1);
} else {
pContainer.pChild.gotoAndStop(M_JUMP);
}
pContainer.atktype = 0;
_root["bounce" + bnum].play();
sboingreduced.start();
pContainer.ready = 0;
wallkick = 0;
pContainer.diveready = 0;
}
bnum++;
}
}
function RockHandler() {
if ((Floor.hitTest(rock0.myx - 31, rock0.myy + 2, true) == false) && (Floor.hitTest(rock0.myx + 31, rock0.myy + 2, true) == false)) {
rock0.myy = rock0.myy + 8;
while (Floor.hitTest(rock0.myx - 31, rock0.myy - 1, true) || (Floor.hitTest(rock0.myx + 31, rock0.myy - 1, true))) {
rock0.myy = rock0.myy - 1;
}
}
}
function LavaHandler() {
if (Floor._currentframe == 8) {
if ((lava0._currentframe < 85) || (lava0._currentframe > 168)) {
lava0.gotoAndPlay(85);
}
if (rock0.myx > 766) {
lava0.myx = -500;
}
}
if ((pContainer._y > (WaterFore._y + 10)) && (WaterFore._visible == true)) {
pContainer.health = pContainer.health - 1;
if (burnsound == 0) {
burnsound = 1;
sFireball.start();
}
}
cancelburn = true;
a = 0;
while (a < 3) {
if ((((_root["lava" + a].myx > 0) && (_root["lava" + a]._currentframe > 83)) && (_root["lava" + a]._currentframe < 169)) && (Math.abs(_root["lava" + a].myx - Millie_x) < 42)) {
pContainer.health = pContainer.health - 3;
pContainer.runspeed = 0;
lavaburn = true;
cancelburn = false;
if (Millie_x < _root["lava" + a].myx) {
Millie_x = Millie_x - 2;
} else {
Millie_x = Millie_x + 2;
}
if ((pContainer.swimming == 0) && (pContainer.velocity != 0)) {
pContainer.velocity = 20;
}
if (burnsound == 0) {
burnsound = 1;
sFireball.start();
}
}
a++;
}
if (cancelburn == true) {
lavaburn = false;
}
if (burnsound > 0) {
burnsound = burnsound + 1;
}
if (burnsound == 22) {
burnsound = 0;
}
}
function PlatHandler() {
if (plat0.waittimer > 0) {
plat0.waittimer = plat0.waittimer - 1;
} else if ((plat0.updown == false) && (plat0.dir == true)) {
plat0.myx = plat0.myx - plat0.movespeed;
if ((((Millie_x > plat0.myx) && (Millie_x < (plat0.myx + 64))) && (Millie_y > (plat0.myy - 1))) && (Millie_y < (plat0.myy + 32))) {
Millie_x = Millie_x - plat0.movespeed;
}
a = 0;
while (a < ENEINDEX) {
if ((((_root["Ene" + a].myx > plat0.myx) && (_root["Ene" + a].myx < (plat0.myx + 64))) && (_root["Ene" + a].myy > (plat0.myy - 1))) && (_root["Ene" + a].myy < (plat0.myy + 32))) {
_root["Ene" + a].myx = _root["Ene" + a].myx - plat0.movespeed;
}
a++;
}
if (plat0.myx <= plat0.lowbound) {
plat0.dir = false;
plat0.waittimer = 60;
}
} else if ((plat0.updown == false) && (plat0.dir == false)) {
plat0.myx = plat0.myx + plat0.movespeed;
if ((((Millie_x > plat0.myx) && (Millie_x < (plat0.myx + 64))) && (Millie_y > (plat0.myy - 1))) && (Millie_y < (plat0.myy + 32))) {
Millie_x = Millie_x + plat0.movespeed;
}
a = 0;
while (a < ENEINDEX) {
if ((((_root["Ene" + a].myx > plat0.myx) && (_root["Ene" + a].myx < (plat0.myx + 64))) && (_root["Ene" + a].myy > (plat0.myy - 1))) && (_root["Ene" + a].myy < (plat0.myy + 32))) {
_root["Ene" + a].myx = _root["Ene" + a].myx + plat0.movespeed;
}
a++;
}
if (plat0.myx >= plat0.highbound) {
plat0.dir = true;
plat0.waittimer = 60;
}
} else if ((plat0.updown == true) && (plat0.dir == false)) {
plat0.myy = plat0.myy - plat0.movespeed;
if ((((Millie_x > plat0.myx) && (Millie_x < (plat0.myx + 64))) && (Millie_y > (plat0.myy - 1))) && (Millie_y < (plat0.myy + 32))) {
Millie_y = Millie_y - plat0.movespeed;
}
a = 0;
while (a < ENEINDEX) {
if ((((_root["Ene" + a].myx > plat0.myx) && (_root["Ene" + a].myx < (plat0.myx + 64))) && (_root["Ene" + a].myy > (plat0.myy - 1))) && (_root["Ene" + a].myy < (plat0.myy + 32))) {
_root["Ene" + a].myy = _root["Ene" + a].myy - plat0.movespeed;
}
a++;
}
if (plat0.myy <= plat0.lowbound) {
plat0.dir = true;
plat0.waittimer = 60;
}
} else if ((plat0.updown == true) && (plat0.dir == true)) {
plat0.myy = plat0.myy + plat0.movespeed;
if ((((Millie_x > plat0.myx) && (Millie_x < (plat0.myx + 64))) && (Millie_y > (plat0.myy - 1))) && (Millie_y < (plat0.myy + 32))) {
Millie_y = Millie_y + plat0.movespeed;
}
a = 0;
while (a < ENEINDEX) {
if ((((_root["Ene" + a].myx > plat0.myx) && (_root["Ene" + a].myx < (plat0.myx + 64))) && (_root["Ene" + a].myy > (plat0.myy - 1))) && (_root["Ene" + a].myy < (plat0.myy + 32))) {
_root["Ene" + a].myy = _root["Ene" + a].myy + plat0.movespeed;
}
a++;
}
if (plat0.myy >= plat0.highbound) {
plat0.dir = false;
plat0.waittimer = 60;
}
}
}
function CheckStageChange() {
willchange = Floor._currentframe;
haschanged = false;
if (((Floor._currentframe == 7) && (g_gameprogress == 0)) && (Ene4.alive == false)) {
g_gameprogress = 1;
plat0.myx = -500;
plat0.myy = -500;
WaterFore_level = 720;
sflowing.start(0, 99);
watersound = 1;
} else if (((Floor._currentframe == 8) && (g_gameprogress == 1)) && (Ene4.alive == false)) {
g_gameprogress = 2;
sflowing.start(0, 3);
} else if (((Floor._currentframe == 14) && (g_gameprogress == 2)) && (Ene2.alive == false)) {
g_gameprogress = 3;
sflowing.start(0, 3);
} else if (((Floor._currentframe == 17) && (g_gameprogress == 3)) && (Ene3.alive == false)) {
g_gameprogress = 4;
sflowing.start(0, 3);
} else if ((((Floor._currentframe == 21) && (g_gameprogress == 5)) && (Ene0.alive == false)) && (nextscene == "")) {
sahiwai.start();
sbgm.stop();
nextscene = "M2 Slain";
}
if (Key.isDown(g_action)) {
if (keyready == false) {
if (Floor._currentframe == 1) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
conversation[0] = "It's an entryway but it might as well be painted on as you cannot enter.";
conversation[1] = 1;
} else if (uCatcher1.hitTest(pContainer._x, pContainer._y)) {
Floor.gotoAndStop(2);
Fore.gotoAndStop(2);
bFore.gotoAndStop(2);
Millie_x = 64;
Millie_y = 256;
if (pContainer.runspeed < 0) {
pContainer.runspeed = -pContainer.runspeed;
}
haschanged = true;
}
} else if (Floor._currentframe == 3) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
if (Millie_x < npc0.myx) {
npc0.gotoAndStop(npc0.baseNPC + 1);
} else {
npc0.gotoAndStop(npc0.baseNPC);
}
if (g_gameprogress == 8) {
if (g_char == 0) {
conversation[0] = "No more demons here, not-so-mean girl. Ogg'khar need alone time now, bye bye.";
conversation[1] = 24;
} else {
conversation[0] = "Demons all gone, small man. Ogg'khar need polish other hammer, hurr hurr hurr. You leave now.";
conversation[1] = 24;
}
} else if (g_gameprogress == 0) {
if (g_char == 0) {
conversation[0] = "What you want, green-haired girl? There are no blue things in here. Go!";
conversation[1] = 24;
} else {
conversation[0] = "Be careful when fighting blue things, little man. Do not leave me alone with sour girl.";
conversation[1] = 24;
}
} else if (g_char == 0) {
conversation[0] = "Why do you still fight now that you have man, mean girl?";
conversation[1] = 24;
conversation[2] = "Who, Lance? No way, big guy. It's not like that.";
conversation[3] = 16;
conversation[4] = "You need man in your life, mean girl. Maybe make you not so mean.";
conversation[5] = 24;
} else {
conversation[0] = "Green-haired girl is mean and ugly, small man. Why are you friends?";
conversation[1] = 24;
conversation[2] = "Friends? Bah! She has stolen my life from me, ogre! She is no friend of mine.";
conversation[3] = 9;
conversation[4] = "Little green man once told me she does not \"put out\", whatever that mean. Be careful.";
conversation[5] = 24;
}
} else if (uCatcher1.hitTest(pContainer._x, pContainer._y)) {
if (g_gameprogress == 8) {
nextscene = "M4 Continued";
cutcontrol = true;
pContainer.runspeed = 0;
} else if (g_gameprogress == 0) {
conversation[0] = "You try to pull the door open but it doesn't budge.";
conversation[1] = 1;
conversation[2] = "That closed for a reason. Maybe I open it later for you.";
conversation[3] = 24;
} else if (g_char == 0) {
if (Millie_x < npc1.myx) {
npc1.gotoAndStop(npc1.baseNPC + 1);
} else {
npc1.gotoAndStop(npc1.baseNPC);
}
conversation[0] = "Ah! How goes the search? I have been speaking with our tall friend here.";
conversation[1] = 3;
conversation[2] = "Small man says he wants tea. Is he a man-lover, mean girl?";
conversation[3] = 24;
} else {
conversation[0] = "Mmmff... go away...";
conversation[1] = 23;
}
} else if (uCatcher2.hitTest(pContainer._x, pContainer._y)) {
conversation[0] = "You step behind the privacy screen.";
conversation[1] = 1;
nextscene = "costume";
} else if (uCatcher3.hitTest(pContainer._x, pContainer._y)) {
if (g_char == 0) {
conversation[0] = "This thing reeks! I hope I can sleep without gagging to death.";
conversation[1] = 2;
conversation[2] = "Game saved!";
conversation[3] = 1;
} else {
conversation[0] = "Oh, how I long for my bed at home...";
conversation[1] = 14;
conversation[2] = "Game saved!";
conversation[3] = 1;
}
AutoSave(1);
cutcontrol = true;
pContainer.runspeed = 0;
nextscene = "Rest";
}
} else if (Floor._currentframe == 4) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
if (g_gameprogress == 7) {
nextscene = "M3 Hammer";
cutcontrol = true;
pContainer.runspeed = 0;
} else {
Floor.gotoAndStop(3);
Fore.gotoAndStop(3);
bFore.gotoAndStop(3);
Millie_x = Floor._width - 16;
Millie_y = 384;
if (pContainer.runspeed > 0) {
pContainer.runspeed = -pContainer.runspeed;
}
haschanged = true;
}
}
} else if (Floor._currentframe == 7) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
if (Millie_x < npc0.myx) {
npc0.gotoAndStop(npc0.baseNPC + 1);
} else {
npc0.gotoAndStop(npc0.baseNPC);
}
if (g_gameprogress == 0) {
if (g_char == 0) {
conversation[0] = "Oh good, you're here. Beyond this lake of death rests a fragile rock.";
conversation[1] = 3;
conversation[2] = "Be a good lass and blow it up with some Boomie Bits, would you? It may open our path.";
conversation[3] = 3;
conversation[4] = "When your Pulse Meter (red bar) is at least half full you can throw Boomie Bits. Press F to throw.";
conversation[5] = 1;
} else {
conversation[0] = "Lance, come here. I need you to do something for me.";
conversation[1] = 19;
conversation[2] = "On the other side of this lava pool is a cracked boulder. Go blow it up since you've got Boomie.";
conversation[3] = 19;
conversation[4] = "When your Pulse Meter (red bar) is at least half full you can throw Boomie Bits. Press F to throw.";
conversation[5] = 1;
}
} else if (g_char == 0) {
conversation[0] = "Good work, Millie. The lava level has lowered in the other areas as well.";
conversation[1] = 3;
conversation[2] = "I shall rejoin your search once I have spoken with Ogg'khar once more.";
conversation[3] = 5;
} else {
conversation[0] = "Hey, you did it! The lava level dropped in the other areas too.";
conversation[1] = 16;
conversation[2] = "I'll catch up to you later. I'm going back to see Ogg'khar again.";
conversation[3] = 19;
}
}
} else if (Floor._currentframe == 9) {
if (switch0.hitTest(pContainer._x, pContainer._y)) {
if ((g_char == 0) && (g_cosunlock[2] == false)) {
g_cosunlock[2] = true;
stomb.start();
switch0.mystate = true;
switch0.gotoAndStop(5);
conversation[0] = "Huh. So do pants come with this getup or not?";
conversation[1] = 2;
conversation[2] = "You found: Quester's Outfit!";
conversation[3] = 1;
} else if ((g_char == 1) && (g_cosunlock[10] == false)) {
g_cosunlock[10] = true;
stomb.start();
switch0.mystate = true;
switch0.gotoAndStop(5);
conversation[0] = "Could it be? The orange pants of a true warrior!";
conversation[1] = 5;
conversation[2] = "You found: Dragon Pants!";
conversation[3] = 1;
} else {
conversation[0] = "It's empty.";
conversation[1] = 1;
}
}
} else if (Floor._currentframe == 12) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
conversation[0] = "The Whisper Stone soothes your spirits and saves your game.";
conversation[1] = 1;
AutoSave(2);
cutcontrol = true;
pContainer.runspeed = 0;
nextscene = "Rest";
}
} else if (Floor._currentframe == 20) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
Floor.gotoAndStop(23);
Fore.gotoAndStop(23);
bFore.gotoAndStop(23);
Millie_x = 160;
Millie_y = 384;
haschanged = true;
}
if (uCatcher1.hitTest(pContainer._x, pContainer._y)) {
conversation[0] = "The Whisper Stone soothes your spirits and saves your game.";
conversation[1] = 1;
AutoSave(3);
cutcontrol = true;
pContainer.runspeed = 0;
nextscene = "Rest";
}
} else if (Floor._currentframe == 22) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
if (g_char == 0) {
conversation[0] = "This thing wasn't so tough. Score one for me!";
conversation[1] = 22;
conversation[2] = "Lance thinks he's such hot shit. Maybe I should write a book about all the wussy monsters I've killed.";
conversation[3] = 2;
} else if (g_char == 1) {
if (g_cosunlock[9] == false) {
g_cosunlock[9] = true;
conversation[0] = "How fortunate! Perhaps I could fashion a set of armor out of this one.";
conversation[1] = 5;
conversation[2] = "You found: Ahiwai Armor!";
conversation[3] = 1;
} else {
conversation[0] = "No hard feelings, old friend. I hope our paths do not cross again upon your next rebirth!";
conversation[1] = 3;
}
}
}
} else if (Floor._currentframe == 23) {
if (uCatcher0.hitTest(pContainer._x, pContainer._y)) {
Floor.gotoAndStop(20);
Fore.gotoAndStop(20);
bFore.gotoAndStop(20);
Millie_x = 1504;
Millie_y = 480;
haschanged = true;
}
if (switch0.hitTest(pContainer._x, pContainer._y)) {
if (g_wallkick == 0) {
g_wallkick = 1;
g_gameprogress = 7;
stomb.start();
switch0.mystate = true;
switch0.gotoAndStop(5);
conversation[0] = "You found: Shock Soles!";
conversation[1] = 1;
conversation[2] = "These shock springs allow you to jump off of walls. Hold into a wall and press jump to leap!";
conversation[3] = 1;
conversation[4] = "While wall jumping you can't hit the same wall or direction twice in a row.";
conversation[5] = 1;
} else {
conversation[0] = "It's empty.";
conversation[1] = 1;
}
}
}
}
keyready = true;
} else {
keyready = false;
}
if (Millie_y > (Floor._height + 40)) {
if (Floor._currentframe == 20) {
if (g_gameprogress == 5) {
Floor.gotoAndStop(21);
Fore.gotoAndStop(21);
bFore.gotoAndStop(21);
Millie_x = 240;
Millie_y = 5;
haschanged = true;
} else {
Floor.gotoAndStop(22);
Fore.gotoAndStop(22);
bFore.gotoAndStop(22);
Millie_x = 240;
Millie_y = 5;
haschanged = true;
}
}
}
if (((Millie_x > 12) && (Millie_x < (Floor._width - 12))) && (haschanged == false)) {
return(undefined);
}
if (Millie_x >= (Floor._width - 12)) {
if (Floor._currentframe == 2) {
Floor.gotoAndStop(3);
Fore.gotoAndStop(3);
bFore.gotoAndStop(3);
Millie_x = 16;
Millie_y = 352;
haschanged = true;
} else if (Floor._currentframe == 3) {
Floor.gotoAndStop(4);
Fore.gotoAndStop(4);
bFore.gotoAndStop(4);
Millie_x = 96;
Millie_y = 384;
haschanged = true;
} else if (Floor._currentframe == 4) {
if (Millie_y < 600) {
Floor.gotoAndStop(5);
Fore.gotoAndStop(5);
bFore.gotoAndStop(5);
Millie_x = 16;
Millie_y = 416;
haschanged = true;
} else {
Floor.gotoAndStop(9);
Fore.gotoAndStop(9);
bFore.gotoAndStop(9);
Millie_x = 16;
Millie_y = 320;
haschanged = true;
}
} else if (Floor._currentframe == 5) {
Floor.gotoAndStop(6);
Fore.gotoAndStop(6);
bFore.gotoAndStop(6);
Millie_x = 16;
Millie_y = 384;
haschanged = true;
} else if (Floor._currentframe == 6) {
if (Millie_y < 500) {
Floor.gotoAndStop(7);
Fore.gotoAndStop(7);
bFore.gotoAndStop(7);
Millie_x = 16;
Millie_y = 352;
haschanged = true;
} else {
Floor.gotoAndStop(8);
Fore.gotoAndStop(8);
bFore.gotoAndStop(8);
Millie_x = 16;
Millie_y = 256;
haschanged = true;
}
} else if (Floor._currentframe == 10) {
Floor.gotoAndStop(4);
Fore.gotoAndStop(4);
bFore.gotoAndStop(4);
Millie_x = 16;
Millie_y = 1056;
haschanged = true;
} else if (Floor._currentframe == 11) {
Floor.gotoAndStop(10);
Fore.gotoAndStop(10);
bFore.gotoAndStop(10);
Millie_x = 16;
Millie_y = 672;
haschanged = true;
} else if (Floor._currentframe == 12) {
if (Millie_y < 600) {
Floor.gotoAndStop(11);
Fore.gotoAndStop(11);
bFore.gotoAndStop(11);
Millie_x = 16;
Millie_y = 960;
haschanged = true;
} else {
Floor.gotoAndStop(15);
Fore.gotoAndStop(15);
bFore.gotoAndStop(15);
Millie_x = 16;
Millie_y = 448;
haschanged = true;
}
} else if (Floor._currentframe == 13) {
Floor.gotoAndStop(12);
Fore.gotoAndStop(12);
bFore.gotoAndStop(12);
Millie_x = 16;
Millie_y = 832;
haschanged = true;
} else if (Floor._currentframe == 14) {
Floor.gotoAndStop(13);
Fore.gotoAndStop(13);
bFore.gotoAndStop(13);
Millie_x = 16;
Millie_y = 448;
haschanged = true;
} else if (Floor._currentframe == 15) {
Floor.gotoAndStop(16);
Fore.gotoAndStop(16);
bFore.gotoAndStop(16);
Millie_x = 16;
Millie_y = 288;
haschanged = true;
} else if (Floor._currentframe == 16) {
Floor.gotoAndStop(17);
Fore.gotoAndStop(17);
bFore.gotoAndStop(17);
Millie_x = 16;
Millie_y = 576;
haschanged = true;
} else if (Floor._currentframe == 18) {
Floor.gotoAndStop(16);
Fore.gotoAndStop(16);
bFore.gotoAndStop(16);
Millie_x = 16;
Millie_y = 1184;
haschanged = true;
} else if (Floor._currentframe == 19) {
if (Millie_y < 400) {
Floor.gotoAndStop(18);
Fore.gotoAndStop(18);
bFore.gotoAndStop(18);
Millie_x = 16;
Millie_y = 256;
haschanged = true;
} else if (g_gameprogress == 4) {
cutcontrol = true;
nextscene = "M1 Summon";
} else {
Floor.gotoAndStop(20);
Fore.gotoAndStop(20);
bFore.gotoAndStop(20);
Millie_x = 16;
Millie_y = 800;
haschanged = true;
}
} else if (Floor._currentframe == 22) {
Floor.gotoAndStop(23);
Fore.gotoAndStop(23);
bFore.gotoAndStop(23);
Millie_x = 16;
Millie_y = 992;
haschanged = true;
}
} else if (Millie_x <= 12) {
if (Floor._currentframe == 2) {
pContainer.runspeed = 0;
Millie_x = 16;
if (g_char == 0) {
conversation[0] = "There's no way I'm going out there with that stupid war party looking for us.";
conversation[1] = 2;
} else {
conversation[0] = "I cannot risk being caught by the Guard. It would be best to stay hidden.";
conversation[1] = 5;
}
} else if (Floor._currentframe == 3) {
Floor.gotoAndStop(2);
Fore.gotoAndStop(2);
bFore.gotoAndStop(2);
Millie_x = Floor._width - 16;
Millie_y = 800;
haschanged = true;
} else if (Floor._currentframe == 4) {
if (Millie_y > 500) {
Floor.gotoAndStop(10);
Fore.gotoAndStop(10);
bFore.gotoAndStop(10);
Millie_x = Floor._width - 16;
Millie_y = 512;
haschanged = true;
}
} else if (Floor._currentframe == 5) {
Floor.gotoAndStop(4);
Fore.gotoAndStop(4);
bFore.gotoAndStop(4);
Millie_x = Floor._width - 16;
Millie_y = 480;
haschanged = true;
} else if (Floor._currentframe == 6) {
Floor.gotoAndStop(5);
Fore.gotoAndStop(5);
bFore.gotoAndStop(5);
Millie_x = Floor._width - 16;
Millie_y = 416;
haschanged = true;
} else if (Floor._currentframe == 7) {
Floor.gotoAndStop(6);
Fore.gotoAndStop(6);
bFore.gotoAndStop(6);
Millie_x = Floor._width - 16;
Millie_y = 352;
haschanged = true;
} else if (Floor._currentframe == 8) {
Floor.gotoAndStop(6);
Fore.gotoAndStop(6);
bFore.gotoAndStop(6);
Millie_x = Floor._width - 16;
Millie_y = 736;
haschanged = true;
} else if (Floor._currentframe == 9) {
Floor.gotoAndStop(4);
Fore.gotoAndStop(4);
bFore.gotoAndStop(4);
Millie_x = Floor._width - 16;
Millie_y = 992;
haschanged = true;
} else if (Floor._currentframe == 10) {
Floor.gotoAndStop(11);
Fore.gotoAndStop(11);
bFore.gotoAndStop(11);
Millie_x = Floor._width - 16;
Millie_y = 256;
haschanged = true;
} else if (Floor._currentframe == 11) {
Floor.gotoAndStop(12);
Fore.gotoAndStop(12);
bFore.gotoAndStop(12);
Millie_x = Floor._width - 16;
Millie_y = 224;
haschanged = true;
} else if (Floor._currentframe == 12) {
Floor.gotoAndStop(13);
Fore.gotoAndStop(13);
bFore.gotoAndStop(13);
Millie_x = Floor._width - 16;
Millie_y = 704;
haschanged = true;
} else if (Floor._currentframe == 13) {
Floor.gotoAndStop(14);
Fore.gotoAndStop(14);
bFore.gotoAndStop(14);
Millie_x = Floor._width - 16;
Millie_y = 256;
haschanged = true;
} else if (Floor._currentframe == 15) {
Floor.gotoAndStop(12);
Fore.gotoAndStop(12);
bFore.gotoAndStop(12);
Millie_x = Floor._width - 16;
Millie_y = 1600;
haschanged = true;
} else if (Floor._currentframe == 16) {
if (Millie_y < 700) {
Floor.gotoAndStop(15);
Fore.gotoAndStop(15);
bFore.gotoAndStop(15);
Millie_x = Floor._width - 16;
Millie_y = 288;
haschanged = true;
} else {
Floor.gotoAndStop(18);
Fore.gotoAndStop(18);
bFore.gotoAndStop(18);
Millie_x = Floor._width - 16;
Millie_y = 1120;
haschanged = true;
}
} else if (Floor._currentframe == 17) {
Floor.gotoAndStop(16);
Fore.gotoAndStop(16);
bFore.gotoAndStop(16);
Millie_x = Floor._width - 16;
Millie_y = 384;
haschanged = true;
} else if (Floor._currentframe == 18) {
Floor.gotoAndStop(19);
Fore.gotoAndStop(19);
bFore.gotoAndStop(19);
Millie_x = Floor._width - 16;
Millie_y = 288;
haschanged = true;
} else if (Floor._currentframe == 20) {
Floor.gotoAndStop(19);
Fore.gotoAndStop(19);
bFore.gotoAndStop(19);
Millie_x = Floor._width - 16;
Millie_y = 1920;
haschanged = true;
} else if (Floor._currentframe == 23) {
Floor.gotoAndStop(22);
Fore.gotoAndStop(22);
bFore.gotoAndStop(22);
Millie_x = Floor._width - 16;
Millie_y = 704;
haschanged = true;
}
}
if (haschanged == false) {
return(undefined);
}
dontspawn = false;
if (Floor._currentframe == nospawn) {
dontspawn = true;
}
makenospawn = true;
a = 0;
while (a < ENEINDEX) {
if (_root["Ene" + a].alive) {
makenospawn = false;
}
a++;
}
if (makenospawn == true) {
nospawn = willchange;
} else {
nospawn = 0;
}
fAutoIn.gotoAndPlay(1);
pContainer.velocity = 0;
pContainer.ready = 0;
pContainer.diveready = 0;
pContainer.atktype = 0;
ec = 0;
while (ec < 10) {
_root["Ene" + ec]._x = -1000;
_root["Ene" + ec].myx = -1000;
_root["Ene" + ec]._y = -1000;
_root["Ene" + ec].myy = -1000;
_root["Ene" + ec].health = 10;
_root["Ene" + ec].alive = true;
_root["Ene" + ec].active = false;
_root["Ene" + ec].flicker = 0;
_root["Ene" + ec].removeMovieClip();
ec++;
}
WaterFore_y = 3000;
WaterFore_level = 3000;
WaterFore._visible = false;
a = 0;
while (a < 5) {
_root["bounce" + a].myx = -100;
_root["bounce" + a].myy = -100;
_root["uCatcher" + a].myx = -100;
_root["uCatcher" + a].myy = -100;
_root["uCatcher" + a]._xscale = 100;
_root["hang" + a].myx = -100;
_root["hang" + a].myy = -100;
_root["hang" + a].gotoAndStop(1);
_root["npc" + a].myx = -100;
_root["npc" + a].myy = -100;
_root["npc" + a].dir = false;
_root["npc" + a].baseNPC = 1;
_root["npc" + a].gotoAndStop(1);
if (a < 3) {
_root["switch" + a].myx = -100;
_root["switch" + a].myy = -100;
_root["switch" + a].mystate = false;
_root["switch" + a].gotoAndStop(1);
_root["lava" + a].myx = -500;
_root["lava" + a].myy = 0;
}
if (a < 4) {
_root["drop" + a].myx = -500;
_root["drop" + a].myy = -500;
}
a++;
}
rock0.myx = -100;
rock0.myy = -100;
plat0.myx = -500;
plat0.myy = -500;
pContainer._xscale = 100;
pContainer._yscale = 100;
if (Floor._currentframe == 1) {
para0.gotoAndStop(1);
para1.gotoAndStop(1);
} else if (Floor._currentframe == 9) {
para0.gotoAndStop(5);
para1.gotoAndStop(5);
} else if ((Floor._currentframe == 4) || (Floor._currentframe == 7)) {
para0.gotoAndStop(2);
para1.gotoAndStop(2);
} else if (((Floor._currentframe < 12) || (Floor._currentframe == 19)) || (Floor._currentframe == 23)) {
para0.gotoAndStop(3);
para1.gotoAndStop(3);
} else {
para0.gotoAndStop(4);
para1.gotoAndStop(4);
}
ENEINDEX = 0;
if (Floor._currentframe == 1) {
uCatcher0.myx = 64;
uCatcher0.myy = 416;
uCatcher0._xscale = 200;
uCatcher1.myx = 1696;
uCatcher1.myy = 608;
uCatcher1._xscale = 200;
} else if (Floor._currentframe == 2) {
} else if (Floor._currentframe == 3) {
npc0.myx = 160;
npc0.myy = 352;
npc0.baseNPC = 8;
npc0.gotoAndStop(8);
if ((g_gameprogress > 0) && (g_gameprogress < 8)) {
npc1.myx = 256;
npc1.myy = 352;
if (g_char == 0) {
npc1.baseNPC = 4;
npc1.gotoAndStop(5);
} else {
npc1.baseNPC = 10;
npc1.gotoAndStop(10);
}
}
uCatcher0.myx = 112;
uCatcher0.myy = 352;
uCatcher0._xscale = 300;
uCatcher1.myx = 224;
uCatcher1.myy = 352;
uCatcher1._xscale = 200;
uCatcher2.myx = 416;
uCatcher2.myy = 384;
uCatcher2._xscale = 300;
uCatcher3.myx = 608;
uCatcher3.myy = 416;
uCatcher3._xscale = 300;
} else if (Floor._currentframe == 4) {
if (g_gameprogress < 2) {
WaterFore_y = 656;
WaterFore_level = 656;
WaterFore._visible = true;
} else {
WaterFore_y = 1104;
WaterFore_level = 1104;
WaterFore._visible = true;
}
rock0.myx = 1760;
rock0.myy = 864;
uCatcher0.myx = 64;
uCatcher0.myy = 384;
uCatcher0._xscale = 200;
ENEINDEX = 5;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 672;
Ene0.myy = 640;
Ene1.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene1.myx = 992;
Ene1.myy = 640;
Ene2.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene2.myx = 1856;
Ene2.myy = 608;
Ene3.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene3.myx = 736;
Ene3.myy = 992;
Ene4.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene4.myx = 992;
Ene4.myy = 1056;
} else if (Floor._currentframe == 5) {
WaterFore_y = 464;
WaterFore_level = 464;
WaterFore._visible = true;
drop0.myx = 992;
drop0.myy = 448;
lava0.myx = 288;
lava1.myx = 704;
lava2.myx = 1024;
ENEINDEX = 1;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 736;
Ene0.myy = 416;
} else if (Floor._currentframe == 6) {
if (g_gameprogress == 0) {
WaterFore_y = 400;
WaterFore_level = 400;
WaterFore._visible = true;
plat0.myx = 320;
plat0.myy = 384;
plat0.updown = false;
plat0.dir = true;
plat0.lowbound = 192;
plat0.highbound = 1152;
} else {
WaterFore_y = 752;
WaterFore_level = 752;
WaterFore._visible = true;
}
ENEINDEX = 3;
Ene0.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene0.myx = 352;
Ene0.myy = 512;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 576;
Ene1.myy = 640;
Ene2.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene2.myx = 1024;
Ene2.myy = 672;
lava0.myx = 352;
lava1.myx = 992;
bounce0.myx = 224;
bounce0.myy = 736;
} else if (Floor._currentframe == 7) {
if (g_gameprogress == 0) {
WaterFore_y = 400;
WaterFore_level = 400;
WaterFore._visible = true;
plat0.myx = 1472;
plat0.myy = 352;
plat0.updown = false;
plat0.dir = true;
plat0.lowbound = 864;
plat0.highbound = 1984;
uCatcher0.myx = 768;
uCatcher0.myy = 352;
uCatcher0._xscale = 200;
npc1.myx = 800;
npc1.myy = 352;
if (g_char == 0) {
npc1.baseNPC = 4;
npc1.gotoAndStop(4);
} else {
npc1.baseNPC = 2;
npc1.gotoAndStop(2);
}
} else {
WaterFore_y = 720;
WaterFore_level = 720;
WaterFore._visible = true;
}
lava0.myx = 544;
lava1.myx = 960;
ENEINDEX = 4;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 384;
Ene0.myy = 384;
Ene1.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene1.myx = 2112;
Ene1.myy = 352;
Ene2.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene2.myx = 1312;
Ene2.myy = 640;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 1664;
Ene3.myy = 704;
if (g_gameprogress == 0) {
ENEINDEX = 5;
Ene4.attachMovie("objBlockRock", "EneChild", 0);
Ene4.myx = 2368;
Ene4.myy = 256;
}
bounce0.myx = 544;
bounce0.myy = 672;
bounce1.myx = 960;
bounce1.myy = 672;
} else if (Floor._currentframe == 8) {
WaterFore_y = 880;
WaterFore_level = 880;
WaterFore._visible = true;
lava0.myx = 768;
rock0.myx = 608;
rock0.myy = 864;
ENEINDEX = 4;
Ene0.attachMovie("Ene_SkelStalkerCont", "EneChild", 0);
Ene0.myx = 448;
Ene0.myy = 864;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 736;
Ene1.myy = 384;
Ene2.attachMovie("Ene_JuggernautCont", "EneChild", 0);
Ene2.myx = 1088;
Ene2.myy = 512;
Ene3.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene3.myx = 1376;
Ene3.myy = 480;
if (g_gameprogress == 1) {
ENEINDEX = 5;
Ene4.attachMovie("objBlockRock", "EneChild", 0);
Ene4.myx = 1696;
Ene4.myy = 320;
}
bounce0.myx = 192;
bounce0.myy = 832;
} else if (Floor._currentframe == 9) {
switch0.myx = 416;
switch0.myy = 256;
if (((g_char == 0) && (g_cosunlock[2] == false)) || ((g_char == 1) && (g_cosunlock[10] == false))) {
switch0.mystate = false;
switch0.gotoAndStop(1);
} else {
switch0.mystate = true;
switch0.gotoAndStop(5);
}
} else if (Floor._currentframe == 10) {
lava0.myx = 384;
lava1.myx = 928;
lava2.myx = 1600;
ENEINDEX = 5;
Ene0.attachMovie("Ene_JuggernautCont", "EneChild", 0);
Ene0.myx = 400;
Ene0.myy = 640;
Ene1.attachMovie("Ene_SkelStalkerCont", "EneChild", 0);
Ene1.myx = 608;
Ene1.myy = 672;
Ene2.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene2.myx = 896;
Ene2.myy = 608;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 1376;
Ene3.myy = 576;
Ene4.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene4.myx = 1760;
Ene4.myy = 512;
} else if (Floor._currentframe == 11) {
WaterFore_y = 1040;
WaterFore_level = 1040;
WaterFore._visible = true;
lava0.myx = 352;
lava1.myx = 896;
ENEINDEX = 4;
Ene0.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene0.myx = 576;
Ene0.myy = 288;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 800;
Ene1.myy = 576;
Ene2.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene2.myx = 448;
Ene2.myy = 864;
Ene3.attachMovie("Ene_SkelStalkerCont", "EneChild", 0);
Ene3.myx = 640;
Ene3.myy = 832;
} else if (Floor._currentframe == 12) {
uCatcher0.myx = 1152;
uCatcher0.myy = 1344;
uCatcher0._xscale = 200;
if (g_gameprogress < 3) {
WaterFore_y = 1360;
WaterFore_level = 1360;
WaterFore._visible = true;
} else {
WaterFore_y = 1664;
WaterFore_level = 1664;
WaterFore._visible = true;
}
plat0.myx = 208;
plat0.myy = 864;
plat0.updown = true;
plat0.dir = true;
plat0.lowbound = 832;
plat0.highbound = 1344;
bounce0.myx = 768;
bounce0.myy = 1344;
ENEINDEX = 1;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 448;
Ene0.myy = 1344;
} else if (Floor._currentframe == 13) {
lava0.myx = 384;
lava1.myx = 992;
lava2.myx = 2016;
ENEINDEX = 7;
Ene0.attachMovie("Ene_JuggernautCont", "EneChild", 0);
Ene0.myx = 416;
Ene0.myy = 608;
Ene1.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene1.myx = 736;
Ene1.myy = 672;
Ene2.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene2.myx = 960;
Ene2.myy = 640;
Ene3.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene3.myx = 1280;
Ene3.myy = 704;
Ene4.attachMovie("Ene_SkelStalkerCont", "EneChild", 0);
Ene4.myx = 1696;
Ene4.myy = 704;
Ene5.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene5.myx = 1888;
Ene5.myy = 736;
Ene6.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene6.myx = 2272;
Ene6.myy = 736;
} else if (Floor._currentframe == 14) {
plat0.myx = 576;
plat0.myy = 320;
plat0.updown = true;
plat0.dir = true;
plat0.lowbound = 256;
plat0.highbound = 768;
ENEINDEX = 2;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 384;
Ene0.myy = 832;
Ene1.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene1.myx = 704;
Ene1.myy = 768;
if (g_gameprogress == 2) {
ENEINDEX = 3;
Ene2.attachMovie("objBlockRock", "EneChild", 0);
Ene2.myx = 128;
Ene2.myy = 736;
}
} else if (Floor._currentframe == 15) {
WaterFore_y = 624;
WaterFore_level = 624;
WaterFore._visible = true;
lava0.myx = 480;
lava1.myx = 1184;
lava2.myx = 1888;
drop0.myx = 320;
drop0.myy = 544;
drop1.myx = 544;
drop1.myy = 608;
drop2.myx = 1632;
drop2.myy = 576;
drop3.myx = 2080;
drop3.myy = 384;
ENEINDEX = 2;
Ene0.attachMovie("Ene_JuggernautCont", "EneChild", 0);
Ene0.myx = 1376;
Ene0.myy = 544;
Ene1.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene1.myx = 1888;
Ene1.myy = 480;
} else if (Floor._currentframe == 16) {
if (g_gameprogress < 4) {
WaterFore_y = 528;
WaterFore_level = 528;
WaterFore._visible = true;
} else {
WaterFore_y = 1264;
WaterFore_level = 1264;
WaterFore._visible = true;
}
bounce0.myx = 992;
bounce0.myy = 1152;
ENEINDEX = 6;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 416;
Ene0.myy = 416;
Ene1.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene1.myx = 832;
Ene1.myy = 512;
Ene2.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene2.myx = 1408;
Ene2.myy = 384;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 288;
Ene3.myy = 1152;
Ene4.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene4.myx = 512;
Ene4.myy = 1120;
Ene5.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene5.myx = 992;
Ene5.myy = 1152;
} else if (Floor._currentframe == 17) {
WaterFore_y = 688;
WaterFore_level = 688;
WaterFore._visible = true;
drop0.myx = 704;
drop0.myy = 576;
ENEINDEX = 3;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 448;
Ene0.myy = 544;
Ene1.attachMovie("Ene_JuggernautCont", "EneChild", 0);
Ene1.myx = 1344;
Ene1.myy = 640;
Ene2.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene2.myx = 1600;
Ene2.myy = 672;
if (g_gameprogress == 3) {
ENEINDEX = 4;
Ene3.attachMovie("objBlockRock", "EneChild", 0);
Ene3.myx = 1824;
Ene3.myy = 608;
}
} else if (Floor._currentframe == 18) {
WaterFore_y = 1232;
WaterFore_level = 1232;
WaterFore._visible = true;
lava0.myx = 288;
lava1.myx = 576;
lava2.myx = 1184;
drop0.myx = 1312;
drop0.myy = 448;
plat0.myx = 192;
plat0.myy = 704;
plat0.updown = true;
plat0.dir = true;
plat0.lowbound = 640;
plat0.highbound = 1152;
ENEINDEX = 6;
Ene0.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene0.myx = 768;
Ene0.myy = 1152;
Ene1.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene1.myx = 384;
Ene1.myy = 1216;
Ene2.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene2.myx = 768;
Ene2.myy = 640;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 992;
Ene3.myy = 640;
Ene4.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene4.myx = 1152;
Ene4.myy = 320;
Ene5.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene5.myx = 320;
Ene5.myy = 224;
} else if (Floor._currentframe == 19) {
lava0.myx = 96;
lava1.myx = 384;
ENEINDEX = 3;
Ene0.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene0.myx = 224;
Ene0.myy = 288;
Ene1.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene1.myx = 288;
Ene1.myy = 864;
Ene2.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene2.myx = 256;
Ene2.myy = 1440;
} else if (Floor._currentframe == 20) {
uCatcher0.myx = 1472;
uCatcher0.myy = 480;
uCatcher0._xscale = 200;
uCatcher1.myx = 544;
uCatcher1.myy = 800;
uCatcher1._xscale = 200;
ENEINDEX = 4;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 1664;
Ene0.myy = 480;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 1120;
Ene1.myy = 256;
Ene2.attachMovie("Ene_SkelGuardCont", "EneChild", 0);
Ene2.myx = 736;
Ene2.myy = 288;
Ene3.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene3.myx = 320;
Ene3.myy = 320;
} else if (Floor._currentframe == 21) {
if (g_music == 0) {
sbgm.stop();
sbgm.attachSound("mm6_Ahiwai");
sbgm.start(0, 999);
}
WaterFore_y = 416;
WaterFore_level = 416;
WaterFore._visible = true;
pContainer.runoffset = -9;
ENEINDEX = 1;
Ene0.attachMovie("Boss_AhiwaiCont", "EneChild", 0);
Ene0.myx = -200;
Ene0.myy = 128;
sahiwai.start();
} else if (Floor._currentframe == 22) {
WaterFore_y = 784;
WaterFore_level = 784;
WaterFore._visible = true;
uCatcher0.myx = 192;
uCatcher0.myy = 736;
uCatcher0._xscale = 300;
} else if (Floor._currentframe == 23) {
WaterFore_y = 1136;
WaterFore_level = 1136;
WaterFore._visible = true;
uCatcher0.myx = 128;
uCatcher0.myy = 384;
uCatcher0._xscale = 200;
lava0.myx = 736;
lava1.myx = 1376;
switch0.myx = 544;
switch0.myy = 1088;
if (g_wallkick == 0) {
switch0.mystate = false;
switch0.gotoAndStop(1);
} else {
switch0.mystate = true;
switch0.gotoAndStop(5);
}
ENEINDEX = 6;
Ene0.attachMovie("Ene_FireGelCont", "EneChild", 0);
Ene0.myx = 1216;
Ene0.myy = 736;
Ene1.attachMovie("Ene_RockGelCont", "EneChild", 0);
Ene1.myx = 1184;
Ene1.myy = 352;
Ene2.attachMovie("Ene_SkelStalkerCont", "EneChild", 0);
Ene2.myx = 960;
Ene2.myy = 320;
Ene3.attachMovie("Ene_SkelMaceCont", "EneChild", 0);
Ene3.myx = 512;
Ene3.myy = 384;
}
if (dontspawn == false) {
qs = 0;
while (qs < ENEINDEX) {
_root["Ene" + qs].health = _root["Ene" + qs].EneChild.health;
_root["Ene" + qs].alive = true;
_root["Ene" + qs].active = true;
_root["Ene" + qs].walkspeed = _root["Ene" + qs].EneChild.walkspeed;
qs++;
}
} else {
qs = 0;
while (qs < ENEINDEX) {
_root["Ene" + qs].health = 0;
_root["Ene" + qs].alive = false;
_root["Ene" + qs].active = true;
_root["Ene" + qs].walkspeed = 0;
if (_root["Ene" + qs].dir) {
_root["Ene" + qs].EneChild.gotoAndStop(6);
} else {
_root["Ene" + qs].EneChild.gotoAndStop(5);
}
qs++;
}
}
ForeDisplay();
MoveEverything();
Parallax();
}
function AutoSave(newsaveloc) {
local_data = SharedObject.getLocal("millie6saves");
if (g_savefile == 1) {
local_data.data.save1_started = true;
local_data.data.save1_loc = newsaveloc;
local_data.data.save1_char = g_char;
local_data.data.save1_gprog = g_gameprogress;
local_data.data.save1_diff = g_difficulty;
local_data.data.save1_timetaken = g_timetaken;
if (g_char == 0) {
local_data.data.save1_costume = g_costume;
} else {
local_data.data.save1_costume = g_lcostume;
}
} else if (g_savefile == 2) {
local_data.data.save2_started = true;
local_data.data.save2_loc = newsaveloc;
local_data.data.save2_char = g_char;
local_data.data.save2_gprog = g_gameprogress;
local_data.data.save2_diff = g_difficulty;
local_data.data.save2_timetaken = g_timetaken;
if (g_char == 0) {
local_data.data.save2_costume = g_costume;
} else {
local_data.data.save2_costume = g_lcostume;
}
} else if (g_savefile == 3) {
local_data.data.save3_started = true;
local_data.data.save3_loc = newsaveloc;
local_data.data.save3_char = g_char;
local_data.data.save3_gprog = g_gameprogress;
local_data.data.save3_diff = g_difficulty;
local_data.data.save3_timetaken = g_timetaken;
if (g_char == 0) {
local_data.data.save3_costume = g_costume;
} else {
local_data.data.save3_costume = g_lcostume;
}
}
local_data.data.cosunlock_0 = g_cosunlock[0];
local_data.data.cosunlock_1 = g_cosunlock[1];
local_data.data.cosunlock_2 = g_cosunlock[2];
local_data.data.cosunlock_3 = g_cosunlock[3];
local_data.data.cosunlock_4 = g_cosunlock[4];
local_data.data.cosunlock_5 = g_cosunlock[5];
local_data.data.cosunlock_6 = g_cosunlock[6];
local_data.data.cosunlock_7 = g_cosunlock[7];
local_data.data.cosunlock_8 = g_cosunlock[8];
local_data.data.cosunlock_9 = g_cosunlock[9];
local_data.data.cosunlock_10 = g_cosunlock[10];
local_data.data.cosunlock_11 = g_cosunlock[11];
local_data.data.cosunlock_12 = g_cosunlock[12];
local_data.data.k_up = g_up;
local_data.data.k_down = g_down;
local_data.data.k_left = g_left;
local_data.data.k_right = g_right;
local_data.data.k_action = g_action;
local_data.data.k_jump = g_jump;
local_data.data.k_attack = g_attack;
local_data.data.k_throw = g_throw;
local_data.flush();
}
ForeDisplay();
MoveEverything();
Parallax();
if (pContainer.alive && (cutcontrol == false)) {
pContainerEvents();
}
pContainerHandler();
if (objBits.inuse == true) {
BoomieHandler();
}
i = 0;
while (i < ENEINDEX) {
if (_root["Ene" + i].alive) {
EnemyEvents(_root["Ene" + i]);
}
i++;
}
DetEvents();
BounceCheck();
if (rock0.myx > 0) {
RockHandler();
}
if (pContainer.alive) {
LavaHandler();
}
if (plat0.myx > 0) {
PlatHandler();
}
if (fadetoblack == 0) {
CheckStageChange();
}
Frame 467
g_timetaken = g_timetaken + 1;
if (soundtimer > 0) {
soundtimer = soundtimer - 1;
}
if (stonesound > 0) {
stonesound = stonesound + 1;
}
if (stonesound > 21) {
stonesound = 0;
}
if (((hurtsound == true) && (pContainer.pChild._currentframe != M_HURT)) && (pContainer.pChild._currentframe != (M_HURT + 1))) {
hurtsound = false;
ehurt.stop();
}
if (pContainer.rage > 30) {
pContainer.rage = 30;
}
if (pContainer.health > 100) {
pContainer.health = 100;
}
bHP._xscale = Math.round((pContainer.health / pContainer.pChild.maxhealth) * 100);
if (((pContainer.health / pContainer.pChild.maxhealth) * 100) > 30) {
bHP.gotoAndStop(3);
} else if (((pContainer.health / pContainer.pChild.maxhealth) * 100) > 10) {
bHP.gotoAndStop(2);
} else {
bHP.gotoAndStop(1);
}
bPP._xscale = Math.round((pContainer.rage / 30) * 100);
if (pContainer.rage > 20) {
bPP.gotoAndStop(3);
} else if (pContainer.rage > 10) {
bPP.gotoAndStop(2);
} else {
bPP.gotoAndStop(1);
}
bcap0.gotoAndStop(nPlate._currentframe);
bcap1.gotoAndStop(nPlate._currentframe);
if (pContainer.alive == false) {
deathtimer = deathtimer + 1;
if (pContainer.watermult == 0.5) {
pContainer._y = pContainer._y + 2;
}
}
if ((pContainer.alive == false) && (deathtimer > 60)) {
if (fadetoblack < 30) {
fadetoblack = fadetoblack + 1;
fAutoIn.gotoAndStop(fadetoblack + 8);
gotoAndPlay (466);
} else {
nextscene = "Died";
gotoAndPlay (472);
}
} else if (conversation[0] != "") {
if (pContainer.ready == 0) {
if (pContainer.dir) {
pContainer.pChild.gotoAndStop(M_STAND + 1);
} else {
pContainer.pChild.gotoAndStop(M_STAND);
}
}
hurtsound = false;
ehurt.stop();
msgstring = conversation[0];
msgpos = 0;
conv_holder = 0;
gotoAndPlay (468);
} else if (nextscene == "costume") {
hurtsound = false;
ehurt.stop();
gotoAndStop (470);
} else if (nextscene != "") {
if (fadetoblack < 30) {
fadetoblack = fadetoblack + 1;
fAutoIn.gotoAndStop(fadetoblack + 8);
gotoAndPlay (466);
} else {
gotoAndPlay (472);
}
} else {
gotoAndPlay (466);
}
Frame 468
charBox.gotoAndStop(conversation[(conv_holder * 2) + 1]);
if (charBox._currentframe == 1) {
sBox.gotoAndStop(3);
} else {
sBox.gotoAndStop(2);
}
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 469
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (msgpos.isNaN()) {
msgpos = 0;
}
if (Key.isDown(g_action)) {
if (keyready == false) {
keyready = true;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = false;
}
if (cango) {
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
conv_holder = conv_holder + 1;
if (conversation[conv_holder * 2] != "") {
msgstring = conversation[conv_holder * 2];
gotoAndPlay (468);
} else {
a = 0;
while (a <= conv_holder) {
conversation[a * 2] = "";
conversation[(a * 2) + 1] = 1;
a++;
}
gotoAndPlay (466);
}
} else {
gotoAndPlay (468);
}
Frame 470
if (g_char == 0) {
cost0.text = "Millie's Clothes";
if (g_cosunlock[0] == true) {
cost1.text = "Demonic Form";
} else {
cost1.text = "???";
}
if (g_cosunlock[1] == true) {
cost2.text = "Casual Clothes";
} else {
cost2.text = "???";
}
if (g_cosunlock[2] == true) {
cost3.text = "Quester's Outfit";
} else {
cost3.text = "???";
}
if (g_cosunlock[3] == true) {
cost4.text = "Anne's Clothes";
} else {
cost4.text = "???";
}
if (g_cosunlock[4] == true) {
cost5.text = "Rain Apparel";
} else {
cost5.text = "???";
}
if (g_cosunlock[5] == true) {
cost6.text = "Angel's Dress";
} else {
cost6.text = "???";
}
if (g_cosunlock[6] == true) {
cost7.text = "Magician's Dress";
} else {
cost7.text = "???";
}
} else if (g_char == 1) {
cost0.text = "Lance's Clothes";
if (g_cosunlock[7] == true) {
cost1.text = "Demonic Form";
} else {
cost1.text = "???";
}
if (g_cosunlock[8] == true) {
cost2.text = "Mask of Undeath";
} else {
cost2.text = "???";
}
if (g_cosunlock[9] == true) {
cost3.text = "Ahiwai Armor";
} else {
cost3.text = "???";
}
if (g_cosunlock[10] == true) {
cost4.text = "Dragon Pants";
} else {
cost4.text = "???";
}
if (g_cosunlock[11] == true) {
cost5.text = "Faeden's Coat";
} else {
cost5.text = "???";
}
if (g_cosunlock[12] == true) {
cost6.text = "Black Jacket";
} else {
cost6.text = "???";
}
cost7.text = "";
box1._y = -1000;
}
pContainer.runspeed = 0;
pContainer.dir = false;
pContainer.pChild.gotoAndStop(1);
stop();
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
_root.g_costume = 0;
_root.g_lcostume = 0;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (_root.g_char == 0) {
_root.g_costume = 0;
} else {
_root.g_lcostume = 0;
}
this.gotoAndStop(3);
this._parent.play();
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[0] == true)) {
_root.g_costume = 2;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[7] == true)) {
_root.g_lcostume = 1;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[0] == true)) || ((_root.g_char == 1) && (g_cosunlock[7] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[1] == true)) {
_root.g_costume = 4;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[8] == true)) {
_root.g_lcostume = 2;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[1] == true)) || ((_root.g_char == 1) && (g_cosunlock[8] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[2] == true)) {
_root.g_costume = 5;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[9] == true)) {
_root.g_lcostume = 3;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[2] == true)) || ((_root.g_char == 1) && (g_cosunlock[9] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[3] == true)) {
_root.g_costume = 6;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[10] == true)) {
_root.g_lcostume = 4;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[3] == true)) || ((_root.g_char == 1) && (g_cosunlock[10] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[4] == true)) {
_root.g_costume = 7;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[11] == true)) {
_root.g_lcostume = 5;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[4] == true)) || ((_root.g_char == 1) && (g_cosunlock[11] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip in Frame 470
on (rollOver) {
this.gotoAndStop(2);
if ((_root.g_char == 0) && (g_cosunlock[5] == true)) {
_root.g_costume = 8;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
} else if ((_root.g_char == 1) && (g_cosunlock[12] == true)) {
_root.g_lcostume = 6;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if (((_root.g_char == 0) && (g_cosunlock[5] == true)) || ((_root.g_char == 1) && (g_cosunlock[12] == true))) {
this.gotoAndStop(3);
this._parent.play();
}
}
Instance of Symbol 1360 MovieClip "box1" in Frame 470
on (rollOver) {
if (_root.g_char == 0) {
this.gotoAndStop(2);
if (g_cosunlock[6] == true) {
_root.g_costume = 9;
this._parent.pContainer.pChild.gotoAndStop(3);
this._parent.pContainer.pChild.gotoAndStop(1);
}
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.g_char == 0) && (g_cosunlock[6] == true)) {
this.gotoAndStop(3);
this._parent.play();
}
}
Frame 471
pContainer.removeMovieClip();
if (g_char == 0) {
if (((((g_costume != 2) && (g_costume != 4)) && (g_costume != 7)) && (g_costume != 8)) && (g_costume != 9)) {
pContainer.attachMovie("MillieContainer", "pChild", 0);
} else {
pContainer.attachMovie("MillieDressContainer", "pChild", 0);
}
}
nextscene = "";
gotoAndPlay (466);
Frame 472
if (g_costume == 1) {
g_costume = 0;
} else if (g_costume == 3) {
g_costume = 2;
}
switch (nextscene) {
case "Rest" :
pContainer.health = 100;
pContainer.rage = 0;
nextscene = "";
fadetoblack = 0;
cutcontrol = false;
gotoAndPlay (466);
break;
case "Died" :
stopAllSounds();
gotoAndPlay (473);
break;
case "M1 Summon" :
sbgm.stop();
gotoAndPlay (476);
break;
case "M2 Slain" :
gotoAndPlay (886);
break;
case "M3 Hammer" :
sbgm.stop();
gotoAndPlay (1003);
break;
case "M4 Continued" :
sbgm.stop();
gotoAndPlay (1063);
break;
default :
fadetoblack = 0;
gotoAndPlay (466);
}
Frame 473
emock = new Sound();
if (g_char == 0) {
emock.attachSound("emote_lance_mock");
} else {
emock.attachSound("emote_millie_mock");
}
emock.start();
mockcount = 0;
Frame 475
mockcount = mockcount + 1;
if (((g_char == 1) && (mockcount == 90)) || ((g_char == 0) && (mockcount == 170))) {
diedin.play();
}
if (((g_char == 1) && (mockcount > 120)) || ((g_char == 0) && (mockcount > 200))) {
gotoAndPlay (201);
} else {
gotoAndPlay (474);
}
Frame 476
if (g_sound == 0) {
swind4 = new Sound();
swind4.attachSound("wind4");
swind4.start(0, 999);
}
Frame 504
msgstring = "Rise, Fire Fiend! Mythic monstrosity! Come forth from the depths of nightmares!";
msgpos = 0;
cango = false;
Frame 505
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 506
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "We're demons and stuff! You have to! Rise, Ahiwai!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (505);
}
Frame 550
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 551
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "We've been screaming for hours. Maybe this won't work?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (550);
}
Frame 552
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 553
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "No... they couldn't possibly. Gem Head, perhaps, but the Ahiwai?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (552);
}
Frame 580
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 581
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Isn't that a monster or something? I read a book once where a hero killed one and used the body to...";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (580);
}
Frame 582
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 583
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "...make a sword... and... shield...";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (582);
}
Frame 584
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 585
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "YOU?! You're the hero I read about? That's my favorite book! But... but you're a total prick! This sucks!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (584);
}
Frame 586
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 587
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "The man I read about was handsome, brave, and chivalrous! Do you know how many times I got off on that? Lots!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (586);
}
Frame 588
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 589
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "You and a thousand others! Come now, we must stop them before that beast is summoned!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (588);
}
Frame 590
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 591
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Oh sure, change the subject.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (590);
}
Frame 592
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 593
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "*sigh* Well, come on.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (592);
}
Frame 594
swind4.stop();
if (g_sound == 0) {
sahiwai = new Sound();
sahiwai.attachSound("ahiwai");
sexplode1 = new Sound();
sexplode1.attachSound("explode1");
sFireball = new Sound();
sFireball.attachSound("Fireball");
sbomb = new Sound();
sbomb.attachSound("bomb");
ssplash = new Sound();
ssplash.attachSound("splash");
}
Frame 595
if (g_sound == 0) {
sexplode1.start();
}
Frame 650
if (g_sound == 0) {
sahiwai.start();
}
Frame 710
if (g_sound == 0) {
sFireball.start();
}
Frame 726
if (g_sound == 0) {
ssplash.start();
}
Frame 745
if (g_sound == 0) {
sFireball.start();
}
Frame 760
if (g_sound == 0) {
sbomb.start();
}
Frame 779
if (g_sound == 0) {
sFireball.start();
}
Frame 805
if (g_sound == 0) {
sbomb.start();
}
Frame 840
if (g_sound == 0) {
sahiwai.start();
}
Frame 871
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 872
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
g_gameprogress = 5;
g_timetaken = g_timetaken + 385;
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (871);
}
Frame 885
gotoAndPlay (464);
Frame 886
if (g_sound == 0) {
swind4 = new Sound();
swind4.attachSound("wind4");
swind4.start(0, 999);
}
Frame 933
msgstring = "Well, that takes care of my little demon problem. Now to solve my little problem of being a fugitive, LANCE.";
msgpos = 0;
cango = false;
Frame 934
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 935
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Hmhmhahahahahaha.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (934);
}
Frame 936
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 937
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "What the fuck are you laughing about?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (936);
}
Frame 938
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 939
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I remember you now. You sent me a rather... interesting letter a while ago. Oh yes.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (938);
}
Frame 940
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 941
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "\"Dear Sir LeTourre, I am a swordsman myself. Your stories have touched me in a way I've never known before.\"";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (940);
}
Frame 942
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 943
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Okay, shut up, we both know what I wrote!";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (942);
}
Frame 944
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 945
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "\"The very idea of your glistening body atop a proud steed lit only by the pale dawn is enough to...\"";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (944);
}
Frame 946
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 947
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Hey! I was just a stupid girl, alright? Can we just go now?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (946);
}
Frame 948
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 949
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "You have a very lustful mind, my lady. I only hope that you can control yourself around me until our work is done.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (948);
}
Frame 950
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 951
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "If I wasn't dying of embarrassment right now you'd be at the bottom of a fucking lava pool, buddy.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (950);
}
Frame 952
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 953
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I got his hammer. Let's get the hell out of here.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (952);
}
Frame 990
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 991
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
g_gameprogress = 6;
g_timetaken = g_timetaken + 85;
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (990);
}
Frame 1002
swind4.stop();
gotoAndPlay (464);
Frame 1003
if (g_sound == 0) {
swind4 = new Sound();
swind4.attachSound("wind4");
swind4.start(0, 999);
}
Frame 1030
msgstring = "Here's your hammer.";
msgpos = 0;
cango = false;
Frame 1031
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1032
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Ahh! Good little girl. We are friends now. Nice man, too.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1031);
}
Frame 1033
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1034
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I will do a favor for you and nice man.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1033);
}
Frame 1035
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1036
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "You are looking for blue things? The blue things first came though hole in wall.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1035);
}
Frame 1037
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1038
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I put up a door to stop them. Now that you here, I open it for you.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1037);
}
Frame 1039
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1040
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "There is a lot more blue things where that came from. You go now.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1039);
}
Frame 1041
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1042
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Ogg'khar, why are all these demons here?";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1041);
}
Frame 1043
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1044
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "I do not know. They just appeared and were dickheads.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1043);
}
Frame 1045
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1046
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "Pfft, like that helps. Thanks anyway, Oggy. Let's go, Lance.";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1045);
}
Frame 1047
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1048
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
g_gameprogress = 8;
g_timetaken = g_timetaken + 30;
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
play();
} else {
gotoAndPlay (1047);
}
Frame 1062
swind4.stop();
gotoAndPlay (464);
Frame 1090
msgstring = "To be continued...";
msgpos = 0;
cango = false;
Frame 1091
if (msgpos < msgstring.length) {
stick.start();
txtBox.text = txtBox.text + (msgstring.charAt(msgpos) + msgstring.charAt(msgpos + 1));
}
Frame 1092
g_timetaken = g_timetaken + 1;
if (msgpos < msgstring.length) {
msgpos = msgpos + 2;
}
if (Key.isDown(g_action)) {
if (keyready == 0) {
keyready = 1;
if (msgpos >= (msgstring.length - 1)) {
cango = true;
}
}
} else {
keyready = 0;
}
if (cango) {
txtBox.text = "";
msgstring = "";
msgpos = 0;
cango = false;
gotoAndPlay (41);
} else {
gotoAndPlay (1091);
}
Symbol 11 Button
on (release) {
getURL ("http://www.milliemegavolte.com/", _blank);
}
Symbol 14 Button
on (release) {
getURL ("http://www.myroidtypecomics.com/", _blank);
}
Symbol 1478 MovieClip [__Packages.Warrior] Frame 0
class Warrior extends MovieClip
{
function Warrior () {
super();
}
var health = 100;
var maxhealth = 100;
var rage = 0;
var alive = true;
var myx = 0;
var myy = 0;
var atk = 10;
var flicker = 0;
var velocity = 0;
var jumpinit = 5;
var gconst = 1;
var watermult = 1;
var swimming = 0;
var hanging = 0;
var runspeed = 0;
var runoffset = 0;
var rconst = 1;
var maxrun = 4;
var rsound = 0;
var dir = false;
var ready = 0;
var atimer = 0;
var atktype = 0;
var berserk = false;
var ragecounter = 0;
var healthcounter = 0;
}
Symbol 1479 MovieClip [__Packages.cMillie] Frame 0
class cMillie extends Warrior
{
function cMillie () {
super();
}
var maxhealth = 100;
var atk = 10;
var gconst = 1;
var jumpinit = 15;
var rconst = 1;
var maxrun = 8;
}
Symbol 1480 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
function Enemy () {
super();
}
var health = 10;
var alive = true;
var active = true;
var classname = "";
var myx = 0;
var myy = 0;
var canattack = true;
var canturn = true;
var cankick = true;
var deathnoise = "";
var dir = false;
var walkspeed = 0;
var flicker = 0;
var atk = 10;
var atimer = 0;
var amax = 10;
var astrike = 0;
var xvel = 0;
var yvel = 0;
var physimmune = false;
var crusher = false;
var bombimmune = false;
}
Symbol 1481 MovieClip [__Packages.SkelMace] Frame 0
class SkelMace extends Enemy
{
function SkelMace () {
super();
}
var health = 30;
var walkspeed = 3;
var classname = "ground_walk";
var atk = 10;
var atimer = 0;
var amax = 32;
var astrike = 26;
var deathnoise = "bones";
var crusher = true;
}
Symbol 1482 MovieClip [__Packages.Juggernaut] Frame 0
class Juggernaut extends Enemy
{
function Juggernaut () {
super();
}
var health = 80;
var walkspeed = 4;
var classname = "ground_walk";
var atk = 10;
var atimer = 0;
var amax = 35;
var astrike = 28;
var deathnoise = "bones";
var cankick = false;
}
Symbol 1483 MovieClip [__Packages.SkelStalker] Frame 0
class SkelStalker extends Enemy
{
function SkelStalker () {
super();
}
var health = 40;
var walkspeed = 7;
var classname = "ground_walk";
var atk = 8;
var atimer = 0;
var amax = 29;
var astrike = 20;
var deathnoise = "bones";
}
Symbol 1484 MovieClip [__Packages.FireGel] Frame 0
class FireGel extends Enemy
{
function FireGel () {
super();
}
var health = 30;
var walkspeed = 6;
var classname = "firegel";
var atk = 12;
var atimer = 0;
var burntimer = 0;
var amax = 32;
var astrike = 21;
var deathnoise = "squish";
var cankick = false;
}
Symbol 1485 MovieClip [__Packages.RockGel] Frame 0
class RockGel extends Enemy
{
function RockGel () {
super();
}
var health = 60;
var walkspeed = 4;
var classname = "rockgel";
var atk = 15;
var atimer = 0;
var amax = 34;
var astrike = 28;
var deathnoise = "squish";
var charging = false;
}
Symbol 1486 MovieClip [__Packages.SkelGuard] Frame 0
class SkelGuard extends Enemy
{
function SkelGuard () {
super();
}
var health = 30;
var walkspeed = 3;
var classname = "ground_walk";
var atk = 10;
var atimer = 0;
var amax = 35;
var astrike = 28;
var deathnoise = "bones";
}
Symbol 1487 MovieClip [__Packages.Ahiwai] Frame 0
class Ahiwai extends Enemy
{
function Ahiwai () {
super();
}
var health = 500;
var walkspeed = 4;
var classname = "ahiwai";
var atk = 20;
var atimer = 0;
var amax = 43;
var astrike = 39;
var deathnoise = "";
var bosstimer = 0;
var cankick = false;
var crusher = true;
var bombimmune = true;
}
Symbol 1488 MovieClip [__Packages.Spider] Frame 0
class Spider extends Enemy
{
function Spider () {
super();
}
var health = 20;
var walkspeed = 4;
var classname = "ground_walk";
var atk = 5;
var atimer = 0;
var amax = 30;
var astrike = 26;
var deathnoise = "bthirst";
}
Symbol 1489 MovieClip [__Packages.NPC] Frame 0
class NPC extends MovieClip
{
function NPC () {
super();
}
var myx = 0;
var myy = 0;
var baseNPC = 1;
}
Symbol 1490 MovieClip [__Packages.Spikes] Frame 0
class Spikes extends Enemy
{
function Spikes () {
super();
}
var health = 10;
var walkspeed = 0;
var classname = "ground_spikes";
var atk = 50;
var atimer = 0;
var amax = 2;
var astrike = 2;
var deathnoise = "";
var physimmune = true;
var crusher = true;
}
Symbol 1491 MovieClip [__Packages.BlockRock] Frame 0
class BlockRock extends Enemy
{
function BlockRock () {
super();
}
var health = 10;
var walkspeed = 0;
var classname = "blockrock";
var atk = 0;
var atimer = 0;
var amax = 90;
var astrike = 90;
var deathnoise = "";
var physimmune = true;
}
Symbol 1492 MovieClip [__Packages.MiscObj] Frame 0
class MiscObj extends MovieClip
{
function MiscObj () {
super();
}
var myx = 0;
var myy = 0;
}
Symbol 1493 MovieClip [__Packages.PopSpike] Frame 0
class PopSpike extends Enemy
{
function PopSpike () {
super();
}
var health = 10;
var walkspeed = 0;
var classname = "popspike";
var atk = 20;
var atimer = 0;
var amax = 60;
var astrike = 46;
var deathnoise = "";
var physimmune = true;
var crusher = true;
}
Symbol 1494 MovieClip [__Packages.Switch] Frame 0
class Switch extends MovieClip
{
function Switch () {
super();
}
var myx = 0;
var myy = 0;
var mystate = false;
}
Symbol 1495 MovieClip [__Packages.BoomieBits] Frame 0
class BoomieBits extends MovieClip
{
function BoomieBits () {
super();
}
var myx = 0;
var myy = 0;
var xvel = 0;
var yvel = 0;
var xtimer = 0;
var inuse = false;
}
Symbol 1496 MovieClip [__Packages.platform] Frame 0
class platform extends MovieClip
{
function platform () {
super();
}
var myx = -500;
var myy = -500;
var dir = false;
var updown = false;
var highbound = 0;
var lowbound = 0;
var movespeed = 4;
var waittimer = 0;
}
Symbol 23 Button
on (release) {
play();
}
Symbol 37 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 37 MovieClip Frame 2
gotoAndPlay (1);
Symbol 37 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 37 MovieClip Frame 4
gotoAndPlay (3);
Symbol 37 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 37 MovieClip Frame 6
gotoAndPlay (5);
Symbol 37 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 37 MovieClip Frame 8
gotoAndPlay (7);
Symbol 48 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 48 MovieClip Frame 2
gotoAndPlay (1);
Symbol 48 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 48 MovieClip Frame 4
gotoAndPlay (3);
Symbol 48 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 48 MovieClip Frame 6
gotoAndPlay (5);
Symbol 48 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 48 MovieClip Frame 8
gotoAndPlay (7);
Symbol 59 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 59 MovieClip Frame 2
gotoAndPlay (1);
Symbol 59 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 59 MovieClip Frame 4
gotoAndPlay (3);
Symbol 59 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 59 MovieClip Frame 6
gotoAndPlay (5);
Symbol 59 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 59 MovieClip Frame 8
gotoAndPlay (7);
Symbol 70 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 70 MovieClip Frame 2
gotoAndPlay (1);
Symbol 70 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 70 MovieClip Frame 4
gotoAndPlay (3);
Symbol 70 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 70 MovieClip Frame 6
gotoAndPlay (5);
Symbol 70 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 70 MovieClip Frame 8
gotoAndPlay (7);
Symbol 80 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 80 MovieClip Frame 2
gotoAndPlay (1);
Symbol 80 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 80 MovieClip Frame 4
gotoAndPlay (3);
Symbol 80 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 80 MovieClip Frame 6
gotoAndPlay (5);
Symbol 80 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 80 MovieClip Frame 8
gotoAndPlay (7);
Symbol 91 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 91 MovieClip Frame 2
gotoAndPlay (1);
Symbol 91 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 91 MovieClip Frame 4
gotoAndPlay (3);
Symbol 91 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 91 MovieClip Frame 6
gotoAndPlay (5);
Symbol 91 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 91 MovieClip Frame 8
gotoAndPlay (7);
Symbol 102 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 102 MovieClip Frame 2
gotoAndPlay (1);
Symbol 102 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 102 MovieClip Frame 4
gotoAndPlay (3);
Symbol 102 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 102 MovieClip Frame 6
gotoAndPlay (5);
Symbol 102 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 102 MovieClip Frame 8
gotoAndPlay (7);
Symbol 106 MovieClip Frame 8
stop();
Symbol 107 MovieClip Frame 8
stop();
Symbol 120 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 120 MovieClip Frame 2
gotoAndPlay (1);
Symbol 120 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 120 MovieClip Frame 4
gotoAndPlay (3);
Symbol 120 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 120 MovieClip Frame 6
gotoAndPlay (5);
Symbol 120 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 120 MovieClip Frame 8
gotoAndPlay (7);
Symbol 121 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 5
stop();
Symbol 139 MovieClip Frame 12
stop();
Symbol 157 MovieClip Frame 22
stop();
Symbol 167 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 167 MovieClip Frame 2
gotoAndPlay (1);
Symbol 167 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 167 MovieClip Frame 4
gotoAndPlay (3);
Symbol 167 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 167 MovieClip Frame 6
gotoAndPlay (5);
Symbol 167 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 167 MovieClip Frame 8
gotoAndPlay (7);
Symbol 178 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 178 MovieClip Frame 2
gotoAndPlay (1);
Symbol 178 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 178 MovieClip Frame 4
gotoAndPlay (3);
Symbol 178 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 178 MovieClip Frame 6
gotoAndPlay (5);
Symbol 178 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 178 MovieClip Frame 8
gotoAndPlay (7);
Symbol 191 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 191 MovieClip Frame 2
gotoAndPlay (1);
Symbol 191 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 191 MovieClip Frame 4
gotoAndPlay (3);
Symbol 191 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 191 MovieClip Frame 6
gotoAndPlay (5);
Symbol 191 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 191 MovieClip Frame 8
gotoAndPlay (7);
Symbol 202 MovieClip Frame 1
switch (_root.g_costume) {
case 0 :
break;
case 1 :
gotoAndPlay (3);
break;
case 2 :
gotoAndPlay (5);
break;
case 3 :
gotoAndPlay (7);
break;
case 4 :
gotoAndStop (9);
break;
case 5 :
gotoAndStop (10);
break;
case 6 :
gotoAndStop (11);
break;
case 7 :
gotoAndStop (12);
break;
case 8 :
gotoAndStop (13);
break;
case 9 :
gotoAndStop (14);
}
Symbol 202 MovieClip Frame 2
gotoAndPlay (1);
Symbol 202 MovieClip Frame 3
if (_root.g_costume == 0) {
gotoAndPlay (1);
}
Symbol 202 MovieClip Frame 4
gotoAndPlay (3);
Symbol 202 MovieClip Frame 5
if (_root.g_costume == 3) {
gotoAndPlay (7);
}
Symbol 202 MovieClip Frame 6
gotoAndPlay (5);
Symbol 202 MovieClip Frame 7
if (_root.g_costume == 2) {
gotoAndPlay (5);
}
Symbol 202 MovieClip Frame 8
gotoAndPlay (7);
Symbol 203 MovieClip Frame 20
gotoAndPlay (10);
Symbol 207 MovieClip Frame 40
gotoAndPlay (16);
Symbol 208 MovieClip [MillieContainer] Frame 1
#initclip 20
Object.registerClass("MillieContainer", cMillie);
#endinitclip
stop();
Symbol 215 MovieClip Frame 8
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 219 MovieClip Frame 5
stop();
Symbol 221 MovieClip Frame 5
stop();
Symbol 225 MovieClip Frame 12
stop();
Symbol 243 MovieClip Frame 22
stop();
Symbol 247 MovieClip Frame 20
gotoAndPlay (10);
Symbol 251 MovieClip Frame 40
gotoAndPlay (16);
Symbol 252 MovieClip [MillieDressContainer] Frame 1
#initclip 21
Object.registerClass("MillieDressContainer", cMillie);
#endinitclip
stop();
Symbol 262 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 270 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 278 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 285 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 292 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 300 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 308 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 316 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 324 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 332 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 336 MovieClip Frame 8
stop();
Symbol 337 MovieClip Frame 8
stop();
Symbol 347 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 348 MovieClip Frame 5
stop();
Symbol 356 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 358 MovieClip Frame 7
stop();
Symbol 363 MovieClip Frame 12
stop();
Symbol 373 MovieClip Frame 24
stop();
Symbol 382 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 390 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}
Symbol 397 MovieClip Frame 50
gotoAndPlay (16);
Symbol 398 MovieClip [LanceContainer] Frame 1
#initclip 22
Object.registerClass("LanceContainer", cMillie);
#endinitclip
stop();
Symbol 445 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 452 MovieClip Frame 11
stop();
Symbol 453 MovieClip [Ene_SkelGuardCont] Frame 1
#initclip 28
Object.registerClass("Ene_SkelGuardCont", SkelGuard);
#endinitclip
stop();
Symbol 477 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 484 MovieClip Frame 11
stop();
Symbol 485 MovieClip [Ene_SkelMaceCont] Frame 1
#initclip 23
Object.registerClass("Ene_SkelMaceCont", SkelMace);
#endinitclip
stop();
Symbol 508 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 516 MovieClip Frame 13
stop();
Symbol 517 MovieClip [Ene_JuggernautCont] Frame 1
#initclip 24
Object.registerClass("Ene_JuggernautCont", Juggernaut);
#endinitclip
stop();
Symbol 535 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 542 MovieClip Frame 11
stop();
Symbol 543 MovieClip [Ene_SkelStalkerCont] Frame 1
#initclip 25
Object.registerClass("Ene_SkelStalkerCont", SkelStalker);
#endinitclip
stop();
Symbol 573 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 583 MovieClip Frame 19
stop();
Symbol 596 MovieClip Frame 24
gotoAndPlay (9);
Symbol 597 MovieClip [Ene_FireGelCont] Frame 1
#initclip 26
Object.registerClass("Ene_FireGelCont", FireGel);
#endinitclip
stop();
Symbol 627 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 6;
gotoAndPlay (6);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 11;
gotoAndPlay (11);
break;
case 3 :
this._parent.atimer = 16;
gotoAndPlay (16);
}
Symbol 636 MovieClip Frame 15
stop();
Symbol 650 MovieClip [Ene_RockGelCont] Frame 1
#initclip 27
Object.registerClass("Ene_RockGelCont", RockGel);
#endinitclip
stop();
Symbol 681 MovieClip Frame 19
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 23;
gotoAndPlay (23);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 28;
gotoAndPlay (28);
break;
case 3 :
this._parent.atimer = 33;
gotoAndPlay (33);
}
Symbol 713 MovieClip Frame 61
stop();
Symbol 714 MovieClip [Boss_AhiwaiCont] Frame 1
#initclip 29
Object.registerClass("Boss_AhiwaiCont", Ahiwai);
#endinitclip
stop();
Symbol 733 MovieClip Frame 2
switch (_root.g_difficulty) {
case 0 :
this._parent.atimer = 5;
gotoAndPlay (5);
break;
case 1 :
break;
case 2 :
this._parent.atimer = 9;
gotoAndPlay (9);
break;
case 3 :
this._parent.atimer = 13;
gotoAndPlay (13);
}
Symbol 738 MovieClip Frame 7
stop();
Symbol 739 MovieClip [Ene_SpiderContainer] Frame 1
#initclip 30
Object.registerClass("Ene_SpiderContainer", Spider);
#endinitclip
stop();
Symbol 758 MovieClip [miscNPC] Frame 1
#initclip 31
Object.registerClass("miscNPC", NPC);
#endinitclip
stop();
Symbol 761 MovieClip [objRock] Frame 1
#initclip 35
Object.registerClass("objRock", MiscObj);
#endinitclip
Symbol 763 MovieClip [objSpikes] Frame 1
#initclip 32
Object.registerClass("objSpikes", Spikes);
#endinitclip
stop();
Symbol 765 MovieClip [objBlockRock] Frame 1
#initclip 33
Object.registerClass("objBlockRock", BlockRock);
#endinitclip
stop();
Symbol 767 MovieClip [objSpikesDown] Frame 1
#initclip 34
Object.registerClass("objSpikesDown", Spikes);
#endinitclip
stop();
Symbol 779 MovieClip [objHang] Frame 1
#initclip 37
Object.registerClass("objHang", MiscObj);
#endinitclip
stop();
Symbol 791 MovieClip [Ene_StalacspikeCont] Frame 1
#initclip 36
Object.registerClass("Ene_StalacspikeCont", PopSpike);
#endinitclip
stop();
Symbol 842 Button
on (release) {
if (local_data.data.save1_started == false) {
loadgame = false;
g_savefile = 1;
gotoAndStop (351);
} else {
g_char = local_data.data.save1_char;
g_saveloc = local_data.data.save1_loc;
g_gameprogress = local_data.data.save1_gprog;
g_difficulty = local_data.data.save1_diff;
g_timetaken = local_data.data.save1_timetaken;
if (g_char == 0) {
g_costume = local_data.data.save1_costume;
} else {
g_lcostume = local_data.data.save1_costume;
}
g_savefile = 1;
loadgame = true;
gotoAndPlay (354);
}
}
Symbol 847 Button
on (release) {
if (local_data.data.save2_started == false) {
loadgame = false;
g_savefile = 2;
gotoAndStop (351);
} else {
g_char = local_data.data.save2_char;
g_saveloc = local_data.data.save2_loc;
g_gameprogress = local_data.data.save2_gprog;
g_difficulty = local_data.data.save2_diff;
g_timetaken = local_data.data.save2_timetaken;
if (g_char == 0) {
g_costume = local_data.data.save2_costume;
} else {
g_lcostume = local_data.data.save2_costume;
}
g_savefile = 2;
loadgame = true;
gotoAndPlay (354);
}
}
Symbol 852 Button
on (release) {
if (local_data.data.save3_started == false) {
loadgame = false;
g_savefile = 3;
gotoAndStop (351);
} else {
g_char = local_data.data.save3_char;
g_saveloc = local_data.data.save3_loc;
g_gameprogress = local_data.data.save3_gprog;
g_difficulty = local_data.data.save3_diff;
g_timetaken = local_data.data.save3_timetaken;
if (g_char == 0) {
g_costume = local_data.data.save3_costume;
} else {
g_lcostume = local_data.data.save3_costume;
}
g_savefile = 3;
loadgame = true;
gotoAndPlay (354);
}
}
Symbol 861 Button
on (release) {
socean.stop();
gotoAndStop (372);
}
Symbol 866 Button
on (release) {
del1._x = -900;
f1char.text = "";
f1loc.text = "New Game";
f1time.text = "";
f1diff.text = "";
local_data.data.save1_started = false;
local_data.data.save1_loc = 0;
local_data.data.save1_char = 0;
local_data.data.save1_gprog = 0;
local_data.data.save1_diff = 0;
local_data.data.save1_timetaken = 0;
local_data.data.save1_costume = 0;
local_data.flush();
}
Symbol 867 Button
on (release) {
del2._x = -900;
f2char.text = "";
f2loc.text = "New Game";
f2time.text = "";
f2diff.text = "";
local_data.data.save2_started = false;
local_data.data.save2_loc = 0;
local_data.data.save2_char = 0;
local_data.data.save2_gprog = 0;
local_data.data.save2_diff = 0;
local_data.data.save2_timetaken = 0;
local_data.data.save2_costume = 0;
local_data.flush();
}
Symbol 868 Button
on (release) {
del3._x = -900;
f3char.text = "";
f3loc.text = "New Game";
f3time.text = "";
f3diff.text = "";
local_data.data.save3_started = false;
local_data.data.save3_loc = 0;
local_data.data.save3_char = 0;
local_data.data.save3_gprog = 0;
local_data.data.save3_diff = 0;
local_data.data.save3_timetaken = 0;
local_data.data.save3_costume = 0;
local_data.flush();
}
Symbol 876 Button
on (release) {
socean.stop();
socean.start(0, 999);
optMusic._x = 88;
g_music = 0;
}
Symbol 881 Button
on (release) {
socean.stop();
optMusic._x = 120;
g_music = 1;
}
Symbol 886 Button
on (release) {
optQuality._x = 88;
_quality = "LOW";
}
Symbol 890 Button
on (release) {
optQuality._x = 120;
_quality = "MEDIUM";
}
Symbol 891 Button
on (release) {
optSFX._x = 88;
g_sound = 0;
}
Symbol 892 Button
on (release) {
optSFX._x = 120;
g_sound = 1;
}
Symbol 898 Button
on (release) {
gotoAndPlay (352);
}
Symbol 906 Button
on (release) {
g_difficulty = 1;
gotoAndPlay (354);
}
Symbol 911 Button
on (release) {
g_difficulty = 0;
gotoAndPlay (354);
}
Symbol 916 Button
on (release) {
g_difficulty = 2;
gotoAndPlay (354);
}
Symbol 921 Button
on (release) {
g_difficulty = 3;
gotoAndPlay (354);
}
Symbol 931 Button
on (release) {
socean = new Sound();
socean.attachSound("wind4");
if (g_music == 0) {
socean.start(0, 999);
}
_quality = qualityholder;
gotoAndStop (350);
}
Symbol 936 Button
on (release) {
gotoAndStop (377);
}
Symbol 941 Button
on (release) {
gotoAndStop (376);
}
Symbol 946 Button
on (release) {
gotoAndStop (375);
}
Symbol 951 Button
on (release) {
gotoAndStop (374);
}
Symbol 956 Button
on (release) {
gotoAndStop (373);
}
Symbol 961 Button
on (release) {
gotoAndStop (378);
}
Symbol 1073 Button
on (release) {
g_char = 0;
play();
}
Symbol 1078 Button
on (release) {
g_char = 1;
play();
}
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1091 MovieClip Frame 1
stop();
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1108 MovieClip [objChest] Frame 1
#initclip 47
Object.registerClass("objChest", Switch);
#endinitclip
stop();
Symbol 1109 MovieClip [OmniContainer] Frame 1
#initclip 38
Object.registerClass("OmniContainer", Warrior);
#endinitclip
stop();
Symbol 1110 MovieClip [OmniEneContainer] Frame 1
#initclip 39
Object.registerClass("OmniEneContainer", Enemy);
#endinitclip
Symbol 1121 MovieClip [objShimmerPetal] Frame 1
#initclip 40
Object.registerClass("objShimmerPetal", MiscObj);
#endinitclip
stop();
Symbol 1121 MovieClip [objShimmerPetal] Frame 10
gotoAndStop (1);
Symbol 1123 MovieClip [miscUpCatcher] Frame 1
#initclip 41
Object.registerClass("miscUpCatcher", MiscObj);
#endinitclip
Symbol 1126 MovieClip [objSwitch] Frame 1
#initclip 42
Object.registerClass("objSwitch", Switch);
#endinitclip
stop();
Symbol 1150 MovieClip Frame 12
stop();
Symbol 1151 MovieClip [objBoomie] Frame 1
#initclip 43
Object.registerClass("objBoomie", BoomieBits);
#endinitclip
stop();
Symbol 1157 MovieClip Frame 11
stop();
Symbol 1201 MovieClip [objLavaCascade] Frame 1
#initclip 44
Object.registerClass("objLavaCascade", MiscObj);
#endinitclip
Symbol 1224 MovieClip [objDropBox] Frame 1
#initclip 45
Object.registerClass("objDropBox", MiscObj);
#endinitclip
Symbol 1231 MovieClip [objPlatform] Frame 1
#initclip 46
Object.registerClass("objPlatform", platform);
#endinitclip
Symbol 1255 MovieClip Frame 1
stop();
Symbol 1301 MovieClip Frame 1
stop();
Symbol 1308 MovieClip Frame 1
stop();
Symbol 1311 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1323 MovieClip Frame 1
stop();
Symbol 1325 MovieClip Frame 7
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1353 MovieClip Frame 1
stop();
Symbol 1360 MovieClip Frame 1
stop();
Symbol 1370 MovieClip Frame 30
stop();
Symbol 1370 MovieClip Frame 60
stop();
Symbol 1415 MovieClip Frame 1
switch (_root.g_lcostume) {
case 0 :
stop();
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (6);
break;
case 6 :
gotoAndStop (7);
}