Frame 1
stopAllSounds();
h1 = getBytesLoaded();
h2 = getBytesTotal();
title_bustershot._y = 312;
title_bustershot._x = 40 + Math.round((h1 / h2) * 400);
Frame 2
stopAllSounds();
if (_totalframes > _framesloaded) {
gotoAndPlay (1);
}
Frame 5
var f;
var ftimer;
var fpace;
var ftremble;
var fflash;
var ffroze;
var fdiff;
var fstages;
var fmode;
var camx;
var camy;
var camxm;
var camym;
var h1;
var h2;
var h3;
var h4;
var h5;
var h6;
var h7;
var h8;
var pcharge;
var plives;
var pcontinues;
var pmemory;
var plevel;
var pbolts;
var pspecial;
var pauxillary;
var pact;
var ple;
var inv;
var pan;
var bustert;
var weap1;
var weap2;
var weap1c;
var weap2c;
var weapt;
var feight;
var icem;
lvlr = new Array(18);
var kaux;
var kjump;
var kattack;
var kspec1;
var kspec2;
var kpre1;
var kpre2;
var kpre3;
var kcrush;
var kup;
var kdown;
var kleft;
var kright;
var kpause;
var cwp;
wpre = new Array(6);
var wpage;
var pnumber;
pc = new Array(11);
px = new Array(11);
py = new Array(11);
pxs = new Array(11);
pys = new Array(11);
pm = new Array(11);
pf = new Array(11);
pd = new Array(11);
pg = new Array(11);
plr = new Array(11);
pll = new Array(11);
plt1 = new Array(11);
plt2 = new Array(11);
pls1 = new Array(11);
pls2 = new Array(11);
phit = new Array(11);
pice = new Array(11);
var snumber;
var snumberassist;
sc = new Array(30);
sx = new Array(30);
sy = new Array(30);
ssx = new Array(30);
ssy = new Array(30);
sf = new Array(30);
sd = new Array(30);
slr = new Array(30);
slt1 = new Array(30);
slt2 = new Array(30);
slt3 = new Array(30);
slt4 = new Array(30);
var bttop;
var btbottom;
var btleft;
var btright;
var bttop2;
var btbottom2;
var btleft2;
var btright2;
var bnum;
var bxm;
var bym;
bt = new Array(12);
ba = new Array(12);
bf = new Array(12);
bx = new Array(12);
by = new Array(12);
bxs = new Array(12);
bys = new Array(12);
bt1 = new Array(12);
bt2 = new Array(12);
bt3 = new Array(12);
bt4 = new Array(12);
bt5 = new Array(12);
BGM_Theme = new Sound(this);
BGM_Theme.attachSound("Theme - Disturbed - Indestructible.mp3");
BGM_DrLight = new Sound(this);
BGM_DrLight.attachSound("Dr Light - Mega Man and Bass - Roll's Theme.mp3");
BGM_Upgrades = new Sound(this);
BGM_Upgrades.attachSound("Upgrades - Cave Story - Gestation.mp3");
BGM_StageSelect = new Sound(this);
BGM_StageSelect.attachSound("Stage Select - Mega Man 4 - Prologue 2.mp3");
BGM_Intro = new Sound(this);
BGM_Intro.attachSound("Intro - Mega Man X3 - Toxic Seahorse.mp3");
BGM_Boss3 = new Sound(this);
BGM_Boss3.attachSound("Boss 3 - Thunder Force V - Duel Of Top.mp3");
Frame 6
kaux = 13;
kjump = 83;
kattack = 68;
kspec1 = 69;
kspec2 = 70;
kpre1 = 49;
kpre2 = 50;
kpre3 = 51;
kcrush = 16;
kup = 38;
kdown = 40;
kleft = 37;
kright = 39;
kpause = 8;
Frame 7
SND_Alarm1 = new Sound(this);
SND_Alarm1.attachSound("MM9 - Alarm 1.wav");
SND_Alarm2 = new Sound(this);
SND_Alarm2.attachSound("MM9 - Alarm 2.wav");
SND_Balloon1 = new Sound(this);
SND_Balloon1.attachSound("MM9 - Balloon 1.wav");
SND_Balloon2 = new Sound(this);
SND_Balloon2.attachSound("MM9 - Balloon 2.wav");
SND_Blip1 = new Sound(this);
SND_Blip1.attachSound("MM9 - Blip 1.wav");
SND_Blip2 = new Sound(this);
SND_Blip2.attachSound("MM9 - Blip 2.wav");
SND_Blip3 = new Sound(this);
SND_Blip3.attachSound("MM9 - Blip 3.wav");
SND_Blip4 = new Sound(this);
SND_Blip4.attachSound("MM9 - Blip 4.wav");
SND_Blip5 = new Sound(this);
SND_Blip5.attachSound("MM9 - Blip 5.wav");
SND_Blip6 = new Sound(this);
SND_Blip6.attachSound("MM9 - Blip 6.wav");
SND_Blip7 = new Sound(this);
SND_Blip7.attachSound("MM9 - Blip 7.wav");
SND_Blip8 = new Sound(this);
SND_Blip8.attachSound("MM9 - Blip 8.wav");
SND_BoomHiss1 = new Sound(this);
SND_BoomHiss1.attachSound("MM9 - Boom Hiss 1.wav");
SND_Bounce1 = new Sound(this);
SND_Bounce1.attachSound("MM9 - Bounce 1.wav");
SND_Bounce2 = new Sound(this);
SND_Bounce2.attachSound("MM9 - Bounce 2.wav");
SND_Bounce3 = new Sound(this);
SND_Bounce3.attachSound("MM9 - Bounce 3.wav");
SND_Bounce4 = new Sound(this);
SND_Bounce4.attachSound("MM9 - Bounce 4.wav");
SND_Bounce5 = new Sound(this);
SND_Bounce5.attachSound("MM9 - Bounce 5.wav");
SND_Bounce6 = new Sound(this);
SND_Bounce6.attachSound("MM9 - Bounce 6.wav");
SND_Bounce7 = new Sound(this);
SND_Bounce7.attachSound("MM9 - Bounce 7.wav");
SND_Bounce8 = new Sound(this);
SND_Bounce8.attachSound("MM9 - Bounce 8.wav");
SND_Bzzzz1 = new Sound(this);
SND_Bzzzz1.attachSound("MM9 - Bzzzz 1.wav");
SND_CrushBlock1 = new Sound(this);
SND_CrushBlock1.attachSound("MM9 - Crush Block 1.wav");
SND_CrushBlock2 = new Sound(this);
SND_CrushBlock2.attachSound("MM9 - Crush Block 2.wav");
SND_CrushBlock3 = new Sound(this);
SND_CrushBlock3.attachSound("MM9 - Crush Block 3.wav");
SND_CrushBlock4 = new Sound(this);
SND_CrushBlock4.attachSound("MM9 - Crush Block 4.wav");
SND_CrushBlockLong1 = new Sound(this);
SND_CrushBlockLong1.attachSound("MM9 - Crush Block Long 1.wav");
SND_Death1 = new Sound(this);
SND_Death1.attachSound("MM9 - Death 1.wav");
SND_Deflect1 = new Sound(this);
SND_Deflect1.attachSound("MM9 - Deflect 1.wav");
SND_Deflect2 = new Sound(this);
SND_Deflect2.attachSound("MM9 - Deflect 2.wav");
SND_Deflect3 = new Sound(this);
SND_Deflect3.attachSound("MM9 - Deflect 3.wav");
SND_Dig1 = new Sound(this);
SND_Dig1.attachSound("MM9 - Dig 1.wav");
SND_Disappear1 = new Sound(this);
SND_Disappear1.attachSound("MM9 - Disappearing Block 1.wav");
SND_Door1 = new Sound(this);
SND_Door1.attachSound("MM9 - Door 1.wav");
SND_Explosion1 = new Sound(this);
SND_Explosion1.attachSound("MM9 - Explosion 1.wav");
SND_Explosion2 = new Sound(this);
SND_Explosion2.attachSound("MM9 - Explosion 2.wav");
SND_Explosion3 = new Sound(this);
SND_Explosion3.attachSound("MM9 - Explosion 3.wav");
SND_Explosion4 = new Sound(this);
SND_Explosion4.attachSound("MM9 - Explosion 4.wav");
SND_Explosion5 = new Sound(this);
SND_Explosion5.attachSound("MM9 - Explosion 5.wav");
SND_Explosion6 = new Sound(this);
SND_Explosion6.attachSound("MM9 - Explosion 6.wav");
SND_Explosion7 = new Sound(this);
SND_Explosion7.attachSound("MM9 - Explosion 7.wav");
SND_Explosion8 = new Sound(this);
SND_Explosion8.attachSound("MM9 - Explosion 8.wav");
SND_Fire1 = new Sound(this);
SND_Fire1.attachSound("MM9 - Fire 1.wav");
SND_Health1 = new Sound(this);
SND_Health1.attachSound("MM9 - Health Up 1.wav");
SND_Health2 = new Sound(this);
SND_Health2.attachSound("MM9 - Health Up 2.wav");
SND_Health3 = new Sound(this);
SND_Health3.attachSound("MM9 - Health Up 3.wav");
SND_Hit1 = new Sound(this);
SND_Hit1.attachSound("MM9 - Hit 1.wav");
SND_Hit2 = new Sound(this);
SND_Hit2.attachSound("MM9 - Hit 2.wav");
SND_Hit3 = new Sound(this);
SND_Hit3.attachSound("MM9 - Hit 3.wav");
SND_Hit4 = new Sound(this);
SND_Hit4.attachSound("MM9 - Hit 4.wav");
SND_Hit5 = new Sound(this);
SND_Hit5.attachSound("MM9 - Hit 5.wav");
SND_Hit6 = new Sound(this);
SND_Hit6.attachSound("MM9 - Hit 6.wav");
SND_Hit7 = new Sound(this);
SND_Hit7.attachSound("MM9 - Hit 7.wav");
SND_JumpLand1 = new Sound(this);
SND_JumpLand1.attachSound("MM9 - Jump Land 1.wav");
SND_JumpLand2 = new Sound(this);
SND_JumpLand2.attachSound("MM9 - Jump Land 2.wav");
SND_LilLaser1 = new Sound(this);
SND_LilLaser1.attachSound("MM9 - Lil Laser 1.wav");
SND_LilLaser2 = new Sound(this);
SND_LilLaser2.attachSound("MM9 - Lil Laser 2.wav");
SND_LilShot1 = new Sound(this);
SND_LilShot1.attachSound("MM9 - Lil Shot 1.wav");
SND_LilShot2 = new Sound(this);
SND_LilShot2.attachSound("MM9 - Lil Shot 2.wav");
SND_LilShot3 = new Sound(this);
SND_LilShot3.attachSound("MM9 - Lil Shot 3.wav");
SND_Missile1 = new Sound(this);
SND_Missile1.attachSound("MM9 - Missile 1.wav");
SND_Missile2 = new Sound(this);
SND_Missile2.attachSound("MM9 - Missile 2.wav");
SND_Protoman1 = new Sound(this);
SND_Protoman1.attachSound("MM9 - Protoman 1.wav");
SND_Shing1 = new Sound(this);
SND_Shing1.attachSound("MM9 - Shing 1.wav");
SND_Shing2 = new Sound(this);
SND_Shing2.attachSound("MM9 - Shing 2.wav");
SND_Shing3 = new Sound(this);
SND_Shing3.attachSound("MM9 - Shing 3.wav");
SND_Splash1 = new Sound(this);
SND_Splash1.attachSound("MM9 - Splash 1.wav");
SND_Splash2 = new Sound(this);
SND_Splash2.attachSound("MM9 - Splash 2.wav");
SND_Static1 = new Sound(this);
SND_Static1.attachSound("MM9 - Static 1.wav");
SND_Teleport1 = new Sound(this);
SND_Teleport1.attachSound("MM9 - Teleport 1.wav");
SND_Teleport2 = new Sound(this);
SND_Teleport2.attachSound("MM9 - Teleport 2.wav");
SND_Teleport3 = new Sound(this);
SND_Teleport3.attachSound("MM9 - Teleport 3.wav");
SND_Weird1 = new Sound(this);
SND_Weird1.attachSound("MM9 - Weird 1.wav");
SND_Weird2 = new Sound(this);
SND_Weird2.attachSound("MM9 - Weird 2.wav");
SND_Weird3 = new Sound(this);
SND_Weird3.attachSound("MM9 - Weird 3.wav");
SND_Wily1 = new Sound(this);
SND_Wily1.attachSound("MM9 - Wily Saucer 1.wav");
SND_Wily2 = new Sound(this);
SND_Wily2.attachSound("MM9 - Wily Saucer 2.wav");
SND_Zap1 = new Sound(this);
SND_Zap1.attachSound("MM9 - Zap 1.wav");
SND_Zap2 = new Sound(this);
SND_Zap2.attachSound("MM9 - Zap 2.wav");
SND_Zap3 = new Sound(this);
SND_Zap3.attachSound("MM9 - Zap 3.wav");
SND_Zap4 = new Sound(this);
SND_Zap4.attachSound("MM9 - Zap 4.wav");
Frame 10
function controlmegaman() {
h1 = 1;
switch (pd[1]) {
case 1 :
pf[1] = 2 + (200 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) and (feight < 1)) or ((Key.isDown(kleft) and (plr[1] == 1)) and (feight < 1))) and (pact == 0)) {
pd[1] = 2;
plt1[1] = 0;
}
if ((Key.isDown(kdown) and Key.isDown(kjump)) and (pact == 0)) {
Spawn_SmokePuff();
pd[1] = 4;
pact = 1;
plt1[1] = 0;
pls1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
break;
case 2 :
pf[1] = 4 + (200 * plr[1]);
px[1] = (px[1] + 1) - (2 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
plt1[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 0;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) or (Key.isDown(kleft) and (plr[1] == 1))) and (pact == 0)) and (plt1[1] > 1)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
if ((Key.isDown(kdown) and Key.isDown(kjump)) and (pact == 0)) {
Spawn_SmokePuff();
pd[1] = 4;
pact = 1;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 3 :
if ((fpace > 0) and (fpace < 4)) {
pf[1] = 6 + (200 * plr[1]);
}
if ((fpace > 3) and (fpace < 7)) {
pf[1] = 8 + (200 * plr[1]);
}
if ((fpace > 6) and (fpace < 10)) {
pf[1] = 10 + (200 * plr[1]);
}
if ((fpace > 9) and (fpace < 13)) {
pf[1] = 8 + (200 * plr[1]);
}
px[1] = (px[1] + 8) - (16 * plr[1]);
if (icem != 0) {
if ((plr[1] == 0) and (icem < 0)) {
px[1] = px[1] + icem;
}
if ((plr[1] == 1) and (icem > 0)) {
px[1] = px[1] + icem;
}
}
py[1]++;
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if ((Key.isDown(kleft) and (plr[1] == 1)) or (Key.isDown(kright) and (plr[1] == 0))) {
plt1[1] = 0;
}
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 50;
}
if ((Key.isDown(kdown) and Key.isDown(kjump)) and (pact == 0)) {
Spawn_SmokePuff();
pd[1] = 4;
pact = 1;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 4 :
pf[1] = 12 + (200 * plr[1]);
px[1] = (px[1] + 14) - (28 * plr[1]);
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if (Key.isDown(kdown) and Key.isDown(kjump)) {
plt1[1] = 0;
pact = 1;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 4) {
pd[1] = 1;
}
break;
case 5 :
pf[1] = 34 + (200 * plr[1]);
px[1] = ((px[1] + 12) + lvlr[10]) - ((24 + (2 * lvlr[10])) * plr[1]);
plt1[1]++;
if ((Key.isDown(kspec1) and (weap1 == 51)) or (Key.isDown(kspec2) and (weap2 == 51))) {
plt1[1] = 3;
pact = 1;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 7) {
pd[1] = 4;
}
break;
case 6 :
pf[1] = 36 + (200 * plr[1]);
px[1] = (px[1] + 11) - (22 * plr[1]);
if (((fpace == 1) or (fpace == 5)) or (face == 9)) {
Spawn_SmokePuff();
}
pan = 84;
pg[1] = 2;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit1b();
pll[h2] = pll[h2] - plt2[1];
if (pll[h2] > 0) {
pd[1] = 1;
plt1[1] = 2;
}
}
h2++;
}
pact = 1;
if (Key.isDown(kjump)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
plt1[1]--;
if (plt1[1] < 1) {
pd[1] = 1;
}
break;
case 7 :
pf[1] = 38 + (200 * plr[1]);
px[1] = (px[1] + 14) - (28 * plr[1]);
if (((fpace == 1) or (fpace == 5)) or (face == 9)) {
Spawn_SmokePuff();
}
pan = 98;
pg[1] = 2;
pact = 1;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
Spawn_Mega_BusterSus5b();
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 5);
} else {
pd[1] = 1;
plt1[1] = 2;
}
}
h2++;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (Key.isDown(kdown)) {
plt1[1] = plt1[1] - 0.5;
}
plt1[1]++;
if (plt1[1] > 6) {
pd[1] = 1;
pf[1] = 2 + (200 * plr[1]);
}
break;
case 8 :
if ((fpace > 0) and (fpace < 4)) {
pf[1] = 74 + (200 * plr[1]);
}
if ((fpace > 3) and (fpace < 7)) {
pf[1] = 76 + (200 * plr[1]);
}
if ((fpace > 6) and (fpace < 10)) {
pf[1] = 78 + (200 * plr[1]);
}
if ((fpace > 9) and (fpace < 13)) {
pf[1] = 76 + (200 * plr[1]);
}
px[1] = (px[1] + 10) - (20 * plr[1]);
plt1[1]++;
if (((fpace == 1) or (fpace == 5)) or (face == 9)) {
Spawn_SmokePuff();
}
pan = 116;
pg[1] = 2;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit4b();
pll[h2] = (pll[h2] - 20) - (2 * lvlr[10]);
if (pll[h2] > 0) {
pd[1] = 1;
plt1[1] = 2;
}
}
h2++;
}
pact = 1;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
plt1[1]++;
if (plt1[1] > 40) {
pd[1] = 1;
pf[1] = 2 + (200 * plr[1]);
}
break;
case 9 :
pf[1] = 40 + (200 * plr[1]);
px[1] = (px[1] + 11) - (22 * plr[1]);
plt1[1]++;
if ((fpace == 2) or (fpace == 8)) {
Spawn_SmokePuff();
}
if ((((fpace == 3) or (fpace == 7)) or (face == 11)) and (sc[snumber] == 0)) {
sc[snumber] = 132;
sd[snumber] = 2;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
sy[snumber] = py[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
isn();
}
pan = 123;
pg[1] = 4;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2b();
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
plt1[1]++;
}
h2++;
}
pact = 1;
if (Key.isDown(kjump)) {
pd[1] = 37;
pact = 1;
py[1] = py[1] - 2;
}
plt1[1]++;
if (plt1[1] > 34) {
sc[snumber] = 132;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
isn();
pd[1] = 1;
pf[1] = 2 + (200 * plr[1]);
}
break;
case 31 :
pf[1] = 22 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kjump) and (plt1[1] < -5)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 12) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 12) {
plt1[1] = 12;
}
}
break;
case 32 :
if (plt1[1] < 3) {
pf[1] = 24 + (200 * plr[1]);
} else {
pf[1] = 26 + (200 * plr[1]);
}
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (pls1[1] < 1) {
if (Key.isDown(kup)) {
plt1[1]++;
py[1] = py[1] - 4;
}
if (Key.isDown(kdown)) {
plt1[1]++;
py[1] = py[1] + 4;
}
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] > 5) {
plt1[1] = 0;
}
break;
case 33 :
pf[1] = 28 + (200 * plr[1]);
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (Key.isDown(kup)) {
plt1[1]--;
}
if (Key.isDown(kdown)) {
plt1[1]++;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] < 1) {
pd[1] = 1;
plt1[1] = 0;
pf[1] = 2 + (200 * plr[1]);
py[1] = py[1] - 30;
}
if (plt1[1] > 5) {
pd[1] = 32;
plt1[1] = 0;
py[1] = py[1] + 20;
}
break;
case 34 :
pf[1] = 30 + (200 * plr[1]);
px[1] = (px[1] - 1) + (2 * plr[1]);
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] > 6) {
pd[1] = 31;
plt1[1] = 0;
lvlr_5();
}
break;
case 35 :
pf[1] = 54 + (200 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
py[1] = py[1] + plt1[1];
pcharge = 0;
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 7) - (14 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 7) - (14 * plr[1]);
}
if ((Key.isDown(kspec1) and (weap1 == 102)) or (Key.isDown(kspec2) and (weap2 == 102))) {
pd[1] = 31;
plt1[1] = -2;
pls1[1] = 4;
}
if (plt1[1] < 10) {
plt1[1] = plt1[1] + 1;
if (plt1[1] > 10) {
plt1[1] = 10;
}
}
ple = (ple - 3) + lvlr[10];
if (ple < 3) {
pd[1] = 31;
plt1[1] = -2;
pls1[1] = 4;
}
break;
case 36 :
pf[1] = 56 + (200 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
py[1] = py[1] + plt1[1];
pcharge = 0;
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 7) - (14 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 7) - (14 * plr[1]);
}
if (Key.isDown(kjump) and (plt1[1] < -5)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 10) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 10) {
plt1[1] = 10;
}
}
pmeleeattackhit();
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
Spawn_Mega_BusterHit1b();
if (pg[h2] < 1) {
pll[h2] = (pll[h2] - 10) - (2 * lvlr[10]);
Spawn_Mega_BusterHit1b();
} else {
pll[h2] = (pll[h2] - 5) - lvlr[10];
}
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
plt1[1] = -5 - lvlr[10];
}
pact = 1;
ple = (ple - 3) + lvlr[10];
if (ple < 3) {
pd[1] = 31;
plt1[1] = -2;
pls1[1] = 4;
}
break;
case 37 :
pf[1] = 40 + (200 * plr[1]);
px[1] = ((px[1] + 8) + lvlr[10]) - ((16 + (2 * lvlr[10])) * plr[1]);
py[1] = (py[1] - 4) - (lvlr[10] / 2);
plt1[1]++;
if ((((fpace == 3) or (fpace == 7)) or (face == 11)) and (sc[snumber] == 0)) {
sc[snumber] = 132;
sd[snumber] = 2;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
sy[snumber] = py[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
isn();
}
pan = 123;
pg[1] = 4;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 3;
plt1[1]++;
}
h2++;
}
pact = 1;
plt1[1]++;
if (plt1[1] > 34) {
sc[snumber] = 132;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
isn();
pd[1] = 31;
plt1[1] = 1;
pf[1] = 22 + (200 * plr[1]);
}
break;
case 40 :
pf[1] = 20 + (200 * plr[1]);
py[1] = py[1] - 10;
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (plt2[1] > 0) {
plt2[1]--;
}
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = px[1] - 3;
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = px[1] + 3;
}
plt1[1]--;
if ((plt1[1] < -60) or (py[1] < (camym + 40))) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
pf[1] = 20 + (200 * plr[1]);
px[1] = (px[1] + 10) - (20 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (plt2[1] > 0) {
plt2[1]--;
}
if (Key.isDown(kup)) {
py[1] = py[1] - 3;
}
if (Key.isDown(kdown)) {
py[1] = py[1] + 3;
}
plt1[1]--;
if (!(((plt1[1] < -60) or (px[1] < 40)) or (px[1] > (camxm - 40)))) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
mega_chargeup();
mega_attacks();
if ((pls1[1] > 0) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
mega_attackframes();
if (pls1[1] == 6) {
if (sc[snumber] == 0) {
mega_weaponstartup();
pcharge = 0;
isn();
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
blocktouchtest();
if ((bttop < 1) and (pd[1] < 31)) {
switch (pd[1]) {
case 1 :
pd[1] = 31;
plt1[1] = 1;
break;
case 2 :
pd[1] = 31;
plt1[1] = 1;
break;
case 3 :
pd[1] = 31;
plt1[1] = 1;
break;
case 4 :
pd[1] = 31;
plt1[1] = 1;
break;
case 5 :
pd[1] = 31;
plt1[1] = 1;
break;
case 6 :
pd[1] = 31;
plt1[1] = 1;
break;
case 7 :
pd[1] = 31;
plt1[1] = 1;
break;
case 8 :
pd[1] = 31;
plt1[1] = 1;
break;
case 9 :
pd[1] = 37;
}
}
if (bttop > 0) {
py[1] = bttop2;
switch (pd[1]) {
case 31 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 35 :
plt1[1] = -8;
Spawn_SmokePuff();
SND_JumpLand1.start();
if (Key.isDown(kjump)) {
pd[1] = 36;
plt1[1] = -10;
lvlr_15();
}
break;
case 36 :
plt1[1] = -8;
pd[1] = 35;
Spawn_SmokePuff();
SND_JumpLand1.start();
if (Key.isDown(kjump)) {
pd[1] = 36;
plt1[1] = -10;
lvlr_15();
}
break;
case 37 :
pd[1] = 9;
py[1] = bttop2;
Spawn_SmokePuff();
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
}
if (((btbottom > 0) and (plt1[1] < 1)) and (pd[1] > 30)) {
switch (pd[1]) {
case 31 :
pd[1] = 31;
plt1[1] = 1;
break;
case 35 :
pd[1] = 35;
plt1[1] = 1;
break;
case 36 :
pd[1] = 36;
plt1[1] = 1;
break;
case 37 :
pd[1] = 1;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
switch (pd[1]) {
case 9 :
plr[1] = 1;
break;
case 37 :
plr[1] = 1;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if (btright > 0) {
px[1] = btright2;
switch (pd[1]) {
case 9 :
plr[1] = 0;
break;
case 37 :
plr[1] = 0;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if ((btleft > 0) and (btright > 0)) {
pll[1] = -1;
pd[1] = 100;
}
if (bxm != 0) {
px[1] = px[1] + bxm;
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
if (Key.isDown(kpre1)) {
cwp = 1;
mega_switch_weapons();
calc_weapon_cost();
}
if (Key.isDown(kpre2)) {
cwp = 2;
mega_switch_weapons();
calc_weapon_cost();
}
if (Key.isDown(kpre3)) {
cwp = 3;
mega_switch_weapons();
calc_weapon_cost();
}
}
function mega_attacks() {
isn();
if (((pls1[1] < 2) and (sc[snumber] == 0)) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
if (Key.isDown(kattack)) {
pls1[1] = 7;
pan = 1;
}
if (((Key.isDown(kspec1) and (ple > weap1c)) and (weap1 > 0)) and (weapt < 1)) {
pls1[1] = 7;
h2 = weap1;
pan = weap1;
ple = ple - weap1c;
}
if (((Key.isDown(kspec2) and (ple > weap2c)) and (weap2 > 0)) and (weapt < 1)) {
pls1[1] = 7;
h2 = weap2;
pan = weap2;
ple = ple - weap2c;
}
if (Key.isDown(kcrush)) {
if ((lvlr[6] > 0) and (ple > 99)) {
pls1[1] = 7;
pan = 140;
}
if ((lvlr[12] > 0) and (ple > 799)) {
pls1[1] = 7;
pan = 141;
}
if (((lvlr[18] > 0) and (ple > 199)) and (pll[1] < 300)) {
pls1[1] = 7;
pan = 142;
}
}
}
}
function mega_chargeup() {
if (pcharge < 70) {
pcharge++;
if ((lvlr[4] > 0) and ((fpace == 1) or (fpace == 7))) {
pcharge = pcharge + lvlr[4];
if (pcharge > 70) {
pcharge = 70;
}
}
}
if (((pcharge > 40) and (sc[snumber] == 0)) and (((fpace == 1) or (fpace == 5)) or (fpace == 9))) {
sc[snumber] = 503;
sx[snumber] = (px[1] + 16) - random(33);
sy[snumber] = (py[1] - 4) - random(38);
slt1[snumber] = 0;
isn();
}
if (((pcharge == 70) and (sc[snumber] == 0)) and ((fpace == 2) or (fpace == 8))) {
sc[snumber] = 504;
sx[snumber] = (px[1] + 16) - random(33);
sy[snumber] = (py[1] - 10) - random(38);
slt1[snumber] = 0;
isn();
}
}
function mega_switch_weapons() {
switch (cwp) {
case 1 :
weap1 = wpre[1];
weap2 = wpre[2];
return;
case 2 :
weap1 = wpre[3];
weap2 = wpre[4];
return;
case 3 :
weap1 = wpre[5];
weap2 = wpre[6];
}
}
function helper_reset() {
if (pc[11] > 0) {
if ((pd[1] < 32) or (pd[1] > 34)) {
px[11] = px[1];
py[11] = py[1];
plr[11] = plr[1];
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
}
plt1[11] = 0;
} else {
px[11] = -2000;
py[11] = 2000;
plr[11] = plr[1];
pd[11] = 1;
plt1[11] = 0;
}
} else {
pf[11] = 1;
px[11] = -2000;
py[11] = 2000;
plr[11] = plr[1];
pd[11] = 1;
plt1[11] = 0;
}
}
function mega_shoty() {
sy[snumber] = py[1] - 30;
if (((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) {
sy[snumber] = py[1] - 40;
}
}
function mega_8wayaim() {
slr[snumber] = plr[1];
if (Key.isDown(kright)) {
slr[snumber] = 0;
}
if (Key.isDown(kleft)) {
slr[snumber] = 1;
}
if (Key.isDown(kup)) {
slr[snumber] = 2;
}
if (Key.isDown(kdown)) {
slr[snumber] = 3;
}
if (Key.isDown(kright) and Key.isDown(kup)) {
slr[snumber] = 4;
}
if (Key.isDown(kright) and Key.isDown(kdown)) {
slr[snumber] = 5;
}
if (Key.isDown(kleft) and Key.isDown(kup)) {
slr[snumber] = 6;
}
if (Key.isDown(kleft) and Key.isDown(kdown)) {
slr[snumber] = 7;
}
}
function mega_attackframes() {
switch (pan) {
case 1 :
pf[1] = pf[1] + 40;
return;
case 2 :
pf[1] = pf[1] + 40;
return;
case 3 :
pf[1] = pf[1] + 40;
return;
case 21 :
pf[1] = pf[1] + 40;
return;
case 22 :
pf[1] = pf[1] + 80;
return;
case 23 :
pf[1] = pf[1] + 40;
return;
case 24 :
pf[1] = pf[1] + 80;
return;
case 25 :
pf[1] = pf[1] + 80;
return;
case 26 :
pf[1] = pf[1] + 40;
return;
case 27 :
pf[1] = pf[1] + 40;
return;
case 28 :
pf[1] = pf[1] + 40;
return;
case 29 :
pf[1] = pf[1] + 40;
return;
case 30 :
pf[1] = pf[1] + 40;
return;
case 31 :
pf[1] = pf[1] + 80;
return;
case 32 :
pf[1] = pf[1] + 80;
return;
case 33 :
pf[1] = pf[1] + 80;
return;
case 34 :
pf[1] = pf[1] + 40;
return;
case 35 :
pf[1] = pf[1] + 40;
return;
case 36 :
pf[1] = pf[1] + 80;
return;
case 37 :
pf[1] = pf[1] + 40;
return;
case 38 :
pf[1] = pf[1] + 40;
return;
case 39 :
pf[1] = pf[1] + 40;
return;
case 40 :
pf[1] = pf[1] + 80;
return;
case 41 :
pf[1] = pf[1] + 40;
return;
case 42 :
pf[1] = 32 + (200 * plr[1]);
return;
case 43 :
pf[1] = pf[1] + 40;
return;
case 44 :
pf[1] = pf[1] + 40;
return;
case 45 :
pf[1] = pf[1] + 40;
return;
case 46 :
pf[1] = pf[1] + 40;
return;
case 47 :
pf[1] = pf[1] + 40;
return;
case 48 :
pf[1] = pf[1] + 80;
return;
case 49 :
pf[1] = pf[1] + 80;
return;
case 50 :
pf[1] = pf[1] + 40;
return;
case 51 :
return;
case 52 :
pf[1] = pf[1] + 40;
return;
case 53 :
pf[1] = pf[1] + 40;
return;
case 54 :
pf[1] = pf[1] + 80;
return;
case 55 :
pf[1] = pf[1] + 80;
return;
case 56 :
pf[1] = pf[1] + 80;
return;
case 57 :
pf[1] = pf[1] + 40;
return;
case 58 :
pf[1] = pf[1] + 40;
return;
case 59 :
pf[1] = pf[1] + 40;
return;
case 60 :
pf[1] = pf[1] + 40;
return;
case 61 :
pf[1] = pf[1] + 40;
return;
case 62 :
pf[1] = pf[1] + 40;
return;
case 63 :
pf[1] = pf[1] + 40;
return;
case 64 :
pf[1] = pf[1] + 80;
return;
case 65 :
pf[1] = pf[1] + 40;
return;
case 66 :
pf[1] = pf[1] + 40;
return;
case 67 :
pf[1] = pf[1] + 80;
return;
case 68 :
pf[1] = pf[1] + 40;
return;
case 69 :
pf[1] = pf[1] + 80;
return;
case 70 :
pf[1] = pf[1] + 40;
return;
case 71 :
pf[1] = pf[1] + 40;
return;
case 72 :
pf[1] = pf[1] + 80;
return;
case 73 :
pf[1] = pf[1] + 40;
return;
case 74 :
pf[1] = pf[1] + 80;
return;
case 75 :
pf[1] = pf[1] + 80;
return;
case 76 :
pf[1] = pf[1] + 80;
return;
case 77 :
pf[1] = pf[1] + 80;
return;
case 78 :
pf[1] = pf[1] + 40;
return;
case 79 :
pf[1] = pf[1] + 40;
return;
case 80 :
pf[1] = pf[1] + 40;
return;
case 81 :
pf[1] = pf[1] + 80;
return;
case 82 :
pf[1] = pf[1] + 80;
return;
case 83 :
pf[1] = pf[1] + 80;
return;
case 84 :
return;
case 85 :
pf[1] = pf[1] + 80;
return;
case 86 :
pf[1] = pf[1] + 80;
return;
case 87 :
pf[1] = pf[1] + 40;
return;
case 88 :
pf[1] = pf[1] + 40;
return;
case 89 :
pf[1] = pf[1] + 40;
return;
case 90 :
pf[1] = pf[1] + 40;
return;
case 91 :
pf[1] = pf[1] + 40;
return;
case 92 :
pf[1] = pf[1] + 40;
return;
case 93 :
pf[1] = pf[1] + 40;
return;
case 94 :
pf[1] = pf[1] + 40;
return;
case 95 :
pf[1] = pf[1] + 40;
return;
case 96 :
pf[1] = pf[1] + 40;
return;
case 97 :
pf[1] = pf[1] + 40;
return;
case 98 :
if (pd[1] != 7) {
pf[1] = pf[1] + 80;
}
return;
case 99 :
pf[1] = pf[1] + 40;
return;
case 100 :
pf[1] = pf[1] + 80;
return;
case 101 :
pf[1] = pf[1] + 40;
return;
case 102 :
pf[1] = pf[1] + 80;
return;
case 103 :
pf[1] = pf[1] + 40;
return;
case 111 :
pf[1] = pf[1] + 80;
return;
case 112 :
pf[1] = pf[1] + 40;
return;
case 113 :
pf[1] = pf[1] + 40;
return;
case 114 :
pf[1] = pf[1] + 80;
return;
case 115 :
pf[1] = pf[1] + 40;
return;
case 116 :
pf[1] = pf[1] + 80;
return;
case 117 :
pf[1] = pf[1] + 80;
return;
case 118 :
return;
case 119 :
pf[1] = pf[1] + 40;
return;
case 120 :
pf[1] = pf[1] + 80;
return;
case 121 :
pf[1] = pf[1] + 40;
return;
case 122 :
pf[1] = pf[1] + 80;
return;
case 123 :
pf[1] = pf[1] + 80;
return;
case 124 :
pf[1] = pf[1] + 80;
return;
case 125 :
pf[1] = pf[1] + 80;
return;
case 126 :
pf[1] = pf[1] + 40;
return;
case 127 :
pf[1] = pf[1] + 80;
return;
case 128 :
pf[1] = pf[1] + 40;
return;
case 129 :
pf[1] = pf[1] + 80;
return;
case 130 :
pf[1] = pf[1] + 40;
return;
case 140 :
pf[1] = pf[1] + 40;
return;
case 141 :
pf[1] = pf[1] + 40;
return;
case 142 :
pf[1] = pf[1] + 80;
}
}
function lvlr_5() {
if (lvlr[5] > 0) {
pcharge = pcharge + (5 * lvlr[5]);
if (pcharge > 70) {
pcharge = 70;
}
}
}
function lvlr_8() {
if ((lvlr[8] > 0) and (pg[h1] < 1)) {
pll[h1] = pll[h1] - (10 * lvlr[8]);
}
}
function lvlr_15() {
if (lvlr[15] > 0) {
plt1[1]--;
}
}
function lvlr_16() {
if (lvlr[16] > 0) {
pll[1] = pll[1] + (5 * lvlr[16]);
}
}
function lvlr_17() {
if (lvlr[17] > 0) {
pll[1] = pll[1] + (34 * lvlr[17]);
}
}
function mega_weaponstartup() {
switch (pan) {
case 1 :
Spawn_Mega_Busters_Normal();
return;
case 21 :
SND_LilShot3.start();
sc[snumber] = 21;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 7;
slr[snumber] = plr[1];
isn();
sc[snumber] = 22;
sd[snumber] = 0;
slr[snumber] = 0;
sx[snumber] = px[1];
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 7;
weapt = 30;
return;
case 22 :
sc[snumber] = 23;
sx[snumber] = px[1];
mega_shoty();
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -14;
slt2[snumber] = 1;
if (Key.isDown(kdown)) {
slt1[snumber] = 0;
slt2[snumber] = 0;
sx[snumber] = (px[1] + 6) - (12 * plr[1]);
sy[snumber] = py[1] - 10;
}
weapt = 30;
return;
case 23 :
SND_Deflect3.start();
sc[snumber] = 24;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 7;
slr[snumber] = plr[1];
weapt = 30;
return;
case 24 :
SND_LilShot1.start();
sc[snumber] = 25;
sx[snumber] = px[1];
mega_shoty();
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 1;
slt1[snumber] = 0;
if (plr[1] == 0) {
slt2[snumber] = 4.7;
} else {
slt2[snumber] = 1.55;
}
slt3[snumber] = (px[1] + 120) - (240 * plr[1]);
slt4[snumber] = sy[snumber];
weapt = 40;
return;
case 25 :
SND_Dig1.start();
sc[snumber] = 26;
sx[snumber] = px[1];
mega_shoty();
ssx[snumber] = 28;
ssy[snumber] = 56;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -10;
slt2[snumber] = 0;
weapt = 40;
return;
case 26 :
SND_Zap1.start();
sc[snumber] = 27;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 16;
ssy[snumber] = 32;
sd[snumber] = 1;
slr[snumber] = plr[1];
isn();
sc[snumber] = 27;
sd[snumber] = 2;
slr[snumber] = 0;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] - 10;
ssx[snumber] = 6;
ssy[snumber] = 30;
isn();
sc[snumber] = 27;
sd[snumber] = 2;
slr[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] - 10;
ssx[snumber] = 6;
ssy[snumber] = 30;
weapt = 40;
return;
case 27 :
SND_LilLaser1.start();
sc[snumber] = 28;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 15;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 4.5;
isn();
sc[snumber] = 28;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 15;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 6;
isn();
sc[snumber] = 28;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 15;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 3;
if (lvlr[10] > 2) {
isn();
sc[snumber] = 28;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 7;
ssy[snumber] = 15;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 7.5;
}
weapt = 40;
return;
case 28 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 29;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
ssx[snumber] = 5;
ssy[snumber] = 10;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_LilShot1.start();
sc[snumber] = 30;
sx[snumber] = (px[1] + 25) - (50 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 36;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 31;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
ssx[snumber] = 25;
ssy[snumber] = 50;
}
mega_shoty();
slr[snumber] = plr[1];
weapt = 10;
return;
case 29 :
SND_Bounce3.start();
sc[snumber] = 32;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 12;
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -6;
weapt = 30;
return;
case 30 :
SND_LilShot1.start();
sc[snumber] = 33;
sx[snumber] = (px[1] + 7) - (14 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 10;
ssx[snumber] = 14;
ssy[snumber] = 20;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 1;
sd[snumber] = 32;
weapt = 40;
return;
case 31 :
SND_LilShot1.start();
sc[snumber] = 34;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
ssx[snumber] = 44;
ssy[snumber] = 92;
sd[snumber] = 1;
slt1[snumber] = 0;
weapt = 40;
return;
case 32 :
SND_Shing3.start();
feight = 8;
sc[snumber] = 35;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 28;
mega_8wayaim();
weapt = 5;
return;
case 33 :
SND_LilShot1.start();
sc[snumber] = 36;
sx[snumber] = px[1];
mega_shoty();
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 1;
slt1[snumber] = 0;
if (plr[1] == 0) {
slt2[snumber] = 4.7;
} else {
slt2[snumber] = 1.55;
}
slt3[snumber] = (px[1] + 140) - (280 * plr[1]);
slt4[snumber] = sy[snumber];
weapt = 5;
return;
case 34 :
SND_Shing1.start();
sc[snumber] = 37;
sx[snumber] = px[1];
mega_shoty();
slt1[snumber] = 0;
weapt = 40;
return;
case 35 :
SND_Zap3.start();
sc[snumber] = 38;
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 6;
ssx[snumber] = 20;
ssy[snumber] = 20;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
weapt = 35;
return;
case 36 :
SND_Hit4.start();
sc[snumber] = 39;
sx[snumber] = (px[1] + 34) - (68 * plr[1]);
mega_shoty();
ssx[snumber] = 20;
ssy[snumber] = 32;
slr[snumber] = plr[1];
slt1[snumber] = 1;
weapt = 40;
return;
case 37 :
SND_LilShot1.start();
sc[snumber] = 40;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 12;
ssy[snumber] = 24;
sd[snumber] = 1;
slr[snumber] = plr[1];
weapt = 20;
return;
case 38 :
SND_LilShot1.start();
sc[snumber] = 41;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
if (fpace < 7) {
sy[snumber] = sy[snumber] - 5;
} else {
sy[snumber] = sy[snumber] + 5;
}
slr[snumber] = plr[1];
ssx[snumber] = 16;
ssy[snumber] = 14;
if (lvlr[10] > 0) {
isn();
h4 = random(100);
if ((h4 < (lvlr[10] * 15)) and (sc[snumber] == 0)) {
sc[snumber] = 41;
sx[snumber] = (px[1] + 12) - (24 * plr[1]);
mega_shoty();
if (fpace > 6) {
sy[snumber] = sy[snumber] - 10;
} else {
sy[snumber] = sy[snumber] + 10;
}
slr[snumber] = plr[1];
ssx[snumber] = 16;
ssy[snumber] = 14;
}
}
weapt = 5;
return;
case 39 :
SND_LilShot1.start();
sc[snumber] = 42;
sx[snumber] = (px[1] + 16) - (32 * plr[1]);
mega_shoty();
ssx[snumber] = 10;
ssy[snumber] = 16;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -6;
slt2[snumber] = 0;
slt3[snumber] = 0;
weapt = 20;
return;
case 40 :
SND_Shing3.start();
feight = 8;
sc[snumber] = 43;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 28;
mega_8wayaim();
if (((slr[snumber] == 3) or (slr[snumber] == 5)) or (slr[snumber] == 7)) {
slr[snumber] = plr[1];
}
slt1[h1] = 0;
slt2[h1] = 0;
weapt = 25;
return;
case 41 :
SND_Zap4.start();
sc[snumber] = 44;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
sd[snumber] = 1;
slr[snumber] = plr[1];
ssx[snumber] = 20;
ssy[snumber] = 40;
weapt = 25;
return;
case 42 :
SND_Dig1.start();
sc[snumber] = 45;
sx[snumber] = px[1];
mega_shoty();
slt1[h1] = 0;
weapt = 2;
return;
case 43 :
SND_LilShot1.start();
sc[snumber] = 46;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
slr[snumber] = plr[1];
slt1[h1] = 0;
weapt = 25;
return;
case 44 :
SND_LilShot1.start();
sc[snumber] = 47;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sd[snumber] = 31;
slr[snumber] = plr[1];
slt1[snumber] = 8;
weapt = 20;
return;
case 45 :
SND_LilShot1.start();
sc[snumber] = 48;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sd[snumber] = 1;
slr[snumber] = plr[1];
weapt = 35;
return;
case 46 :
SND_Shing2.start();
sc[snumber] = 49;
sx[snumber] = px[1];
mega_shoty();
slt1[snumber] = 0;
weapt = 50 - (5 * lvlr[10]);
return;
case 47 :
Mega_PharaohShotFire();
if (h4 < 1) {
SND_Fire1.start();
feight = 8;
sc[snumber] = 53;
sx[snumber] = px[1];
sy[snumber] = py[1] - 60;
slt1[snumber] = 0;
weapt = 5;
} else {
calc_weapon_refund();
}
return;
case 48 :
SND_LilShot1.start();
sc[snumber] = 54;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1] - 40;
weapt = 50;
return;
case 49 :
SND_Shing1.start();
sc[snumber] = 55;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt4[snumber] = 0;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
weapt = 25;
return;
case 50 :
SND_LilShot1.start();
sc[snumber] = 56;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
ssx[snumber] = 44;
ssy[snumber] = 92;
slt1[snumber] = 0;
weapt = 40;
return;
case 51 :
if (((pd[1] > 0) and (pd[1] < 5)) and (pact == 0)) {
SND_Dig1.start();
pd[1] = 5;
plt1[1] = 0;
sc[snumber] = 57;
sx[snumber] = px[1];
sy[snumber] = py[1];
mega_shoty();
slt1[h1] = 0;
weapt = 40;
} else {
calc_weapon_refund();
}
return;
case 52 :
SND_Deflect3.start();
sc[snumber] = 58;
sd[snumber] = 1;
ssx[snumber] = 16;
ssy[snumber] = 32;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
weapt = 40;
return;
case 53 :
SND_Explosion7.start();
sc[snumber] = 59;
sx[snumber] = camx;
sy[snumber] = camy;
slt1[snumber] = 0;
sd[snumber] = 1;
weapt = 20;
return;
case 54 :
SND_LilShot1.start();
sc[snumber] = 60;
sd[snumber] = 1;
ssx[snumber] = 20;
ssy[snumber] = 20;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
weapt = 20;
return;
case 55 :
SND_LilShot1.start();
sc[snumber] = 61;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
ssx[snumber] = 20;
ssy[snumber] = 26;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -8;
slt2[snumber] = 0;
weapt = 25;
if (lvlr[10] > 0) {
isn();
h4 = random(100);
if ((h4 < (lvlr[10] * 10)) and (sc[snumber] == 0)) {
sc[snumber] = 61;
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] - 8;
ssx[snumber] = 20;
ssy[snumber] = 26;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -12;
slt2[snumber] = -4;
}
}
return;
case 56 :
SND_Explosion5.start();
sc[snumber] = 62;
slr[snumber] = ((plr[1] * 2) * -1) + 1;
sd[snumber] = 0;
sx[snumber] = px[1];
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
slt1[snumber] = 0;
slt2[snumber] = 3;
ssx[snumber] = 16;
ssy[snumber] = 16;
isn();
if (sc[snumber] == 0) {
sc[snumber] = 62;
sd[snumber] = 0;
slr[snumber] = ((plr[1] * 2) * -1) + 1;
sx[snumber] = px[1];
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
slt1[snumber] = 0;
slt2[snumber] = 5.2;
ssx[snumber] = 16;
ssy[snumber] = 16;
}
isn();
if (sc[snumber] == 0) {
sc[snumber] = 62;
sd[snumber] = 0;
slr[snumber] = ((plr[1] * 2) * -1) + 1;
sx[snumber] = px[1];
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
slt1[snumber] = 0;
slt2[snumber] = 0.8;
ssx[snumber] = 16;
ssy[snumber] = 16;
weapt = 40 - (10 * lvlr[10]);
}
return;
case 57 :
Mega_StarCrashFire();
if (h4 < 1) {
SND_LilShot1.start();
sc[snumber] = 63;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slt1[snumber] = 0;
weapt = 10;
} else {
calc_weapon_refund();
}
return;
case 58 :
SND_Splash2.start();
sc[snumber] = 64;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 16;
ssx[snumber] = 20;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = 0;
weapt = 30;
return;
case 59 :
SND_LilShot1.start();
sc[snumber] = 65;
slr[snumber] = plr[1];
sx[snumber] = (px[1] - 20) + (40 * plr[1]);
sy[snumber] = py[1] - 45;
ssx[snumber] = 12;
ssy[snumber] = 24;
isn();
sc[snumber] = 65;
slr[snumber] = plr[1];
sx[snumber] = (px[1] - 20) + (40 * plr[1]);
sy[snumber] = py[1] - 5;
ssx[snumber] = 12;
ssy[snumber] = 24;
isn();
sc[snumber] = 65;
slr[snumber] = 4 + (2 * plr[1]);
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
sy[snumber] = py[1] - 50;
ssx[snumber] = 12;
ssy[snumber] = 24;
isn();
sc[snumber] = 65;
slr[snumber] = 5 + (2 * plr[1]);
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
sy[snumber] = py[1];
ssx[snumber] = 12;
ssy[snumber] = 24;
weapt = 40;
return;
case 60 :
SND_Weird2.start();
sc[snumber] = 66;
sd[snumber] = 1;
sx[snumber] = camx;
sy[snumber] = camy;
slt1[snumber] = 0;
weapt = 20;
return;
case 61 :
SND_LilShot1.start();
sc[snumber] = 67;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
ssx[snumber] = 10;
ssy[snumber] = 20;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -5;
weapt = 20;
return;
case 62 :
SND_LilShot1.start();
sc[snumber] = 68;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
ssx[snumber] = 12;
ssy[snumber] = 24;
mega_8wayaim();
if (slr[snumber] == 2) {
slr[snumber] = 4 + (2 * plr[1]);
}
if (slr[snumber] == 3) {
slr[snumber] = 5 + (2 * plr[1]);
}
if (pd[1] < 31) {
sd[snumber] = 1;
} else {
sd[snumber] = 2;
}
slt1[snumber] = 0;
weapt = 30;
return;
case 63 :
SND_LilShot1.start();
sc[snumber] = 69;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = plr[1];
ssx[snumber] = 50;
ssy[snumber] = 100;
slt1[snumber] = 0;
weapt = 30;
return;
case 64 :
SND_LilShot1.start();
sc[snumber] = 70;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 20;
ssy[snumber] = 20;
slt1[snumber] = 6;
if (lvlr[10] > 2) {
isn();
sc[snumber] = 70;
slr[snumber] = (plr[1] - 1) * -1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 20;
ssy[snumber] = 20;
slt1[snumber] = 6;
}
weapt = 25;
return;
case 65 :
SND_LilLaser1.start();
sc[snumber] = 71;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -2;
weapt = 30;
return;
case 66 :
SND_LilShot1.start();
sc[snumber] = 72;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
if (fpace < 7) {
slt1[snumber] = -1;
} else {
slt1[snumber] = 1;
}
ssx[snumber] = 13;
ssy[snumber] = 14;
weapt = 5;
return;
case 67 :
SND_Bounce3.start();
sc[snumber] = 73;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 16;
ssy[snumber] = 30;
slr[snumber] = plr[1];
if (Key.isDown(kdown)) {
sd[snumber] = 32;
slt1[snumber] = 2;
} else {
sd[snumber] = 31;
slt1[snumber] = 0;
slt2[snumber] = 0;
if (Key.isDown(kleft)) {
slt2[snumber] = 2;
}
if (Key.isDown(kright)) {
slt2[snumber] = -2;
}
if (Key.isDown(kup)) {
if (plr[1] == 0) {
slt2[snumber] = 0.5;
} else {
slt2[snumber] = -0.5;
}
}
}
weapt = 40;
return;
case 68 :
SND_LilShot1.start();
sc[snumber] = 74;
sd[snumber] = 1;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
mega_8wayaim();
if (slr[snumber] == 2) {
slr[snumber] = 4 + (2 * plr[1]);
}
if (slr[snumber] == 3) {
slr[snumber] = 5 + (2 * plr[1]);
}
ssx[snumber] = 20;
ssy[snumber] = 45;
weapt = 40;
return;
case 69 :
Mega_JunkShieldFire();
if (h4 < 1) {
SND_Dig1.start();
sc[snumber] = 75;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
ssx[snumber] = 40;
ssy[snumber] = 80;
weapt = 10;
} else {
calc_weapon_refund();
}
return;
case 70 :
Mega_NoiseCrushFire();
if ((h4 < 1) and (weapt < 1)) {
sc[snumber] = 76;
SND_Bounce4.start();
sd[snumber] = 1;
sx[snumber] = (px[1] + 16) - (32 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 16;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 8;
ssx[snumber] = 36;
ssy[snumber] = 36;
weapt = 30;
} else {
calc_weapon_refund();
}
return;
case 71 :
SND_Fire1.start();
sc[snumber] = 77;
sd[snumber] = 32;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1];
ssx[snumber] = 38;
ssy[snumber] = 65;
weapt = 30;
return;
case 72 :
SND_Shing3.start();
sc[snumber] = 78;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
weapt = 15;
return;
case 73 :
SND_Zap1.start();
sc[snumber] = 79;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 50;
ssy[snumber] = 40;
weapt = 40;
return;
case 74 :
SND_LilShot1.start();
sc[snumber] = 80;
sx[snumber] = (px[1] + 5) - (10 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 10;
ssx[snumber] = 12;
ssy[snumber] = 42;
slr[snumber] = 0;
if (pcharge < 70) {
sd[snumber] = 31;
} else {
sd[snumber] = 32;
}
slt1[snumber] = 0;
isn();
sc[snumber] = 80;
sx[snumber] = (px[1] + 5) - (10 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 10;
ssx[snumber] = 12;
ssy[snumber] = 42;
slr[snumber] = 1;
if (pcharge < (70 - (3 * lvlr[10]))) {
sd[snumber] = 31;
} else {
sd[snumber] = 32;
}
slt1[snumber] = 0;
weapt = 30;
return;
case 75 :
sc[snumber] = 81;
sd[snumber] = 1;
sx[snumber] = camx;
sy[snumber] = camy;
slt1[snumber] = 0;
weapt = 20;
return;
case 76 :
SND_Fire1.start();
sc[snumber] = 82;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1];
weapt = 15;
return;
case 77 :
SND_LilShot1.start();
sc[snumber] = 83;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sd[snumber] = 1;
slr[snumber] = plr[1];
weapt = 40;
return;
case 78 :
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 84) and (sd[h2] == 1)) {
sreset2();
}
h2++;
}
h4 = 1100;
h5 = 0;
h2 = 2;
while (h2 <= 10) {
if (((pc[h2] > 0) and (pc[h2] < 501)) and (pll[h2] > 0)) {
h3 = Math.abs(px[1] - px[h2]) + Math.abs((py[1] - py[h2]) - Math.round(pys[h2] / 2));
if (h3 < h4) {
if ((((px[h2] > (camx - 280)) and (px[h2] < (camx + 280))) and (py[h2] > (camy - 280))) and (py[h2] < (camy + 140))) {
h5 = h2;
h4 = h3;
}
}
}
h2++;
}
if (h5 > 0) {
SND_Blip4.start();
slt3[snumber] = 2;
if ((pcharge > 40) and (pcharge < 70)) {
slt3[snumber] = 4;
}
if (pcharge > 69) {
slt3[snumber] = 6;
}
sc[snumber] = 84;
sd[snumber] = 1;
slt1[snumber] = 0;
slt2[snumber] = h5;
sx[snumber] = px[h5];
sy[snumber] = py[h5] - Math.round(pys[h5] / 2);
weapt = 40;
} else {
calc_weapon_refund();
}
return;
case 79 :
SND_LilShot1.start();
sc[snumber] = 85;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 16;
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = 0;
slt2[snumber] = 0;
weapt = 40;
return;
case 80 :
SND_Zap1.start();
sc[snumber] = 86;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
weapt = 30;
return;
case 81 :
Mega_TornadoHoldFire();
if (h4 < 1) {
SND_LilShot1.start();
sc[snumber] = 87;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -3;
weapt = 20;
} else {
calc_weapon_refund();
}
return;
case 82 :
SND_LilShot2.start();
sc[snumber] = 88;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 18;
ssy[snumber] = 36;
slr[snumber] = plr[1];
slt1[snumber] = -5;
if (Key.isDown(kup)) {
slt1[snumber] = -8;
}
if (Key.isDown(kdown)) {
slt1[snumber] = -3;
}
weapt = 5;
return;
case 83 :
SND_Explosion5.start();
sc[snumber] = 89;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1] - 75;
ssx[snumber] = 50;
ssy[snumber] = 100;
slt1[snumber] = 0;
slt2[snumber] = 0;
weapt = 40;
return;
case 84 :
if (((pd[1] > 0) and (pd[1] < 5)) and (pact == 0)) {
SND_Fire1.start();
pd[1] = 6;
plt1[1] = 6 + Math.round(pcharge / 5);
plt2[1] = 16 + Math.round(pcharge / (5 - lvlr[10]));
weapt = 20;
} else {
calc_weapon_refund();
}
return;
case 85 :
SND_LilShot1.start();
sc[snumber] = 91;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 16;
sd[snumber] = plr[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 8 - (16 * plr[1]);
weapt = 40;
return;
case 86 :
SND_Dig1.start();
sc[snumber] = 92;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 1;
slr[snumber] = plr[1];
weapt = 35;
return;
case 87 :
SND_Zap3.start();
sc[snumber] = 93;
slr[snumber] = plr[1];
slt1[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
weapt = 10;
return;
case 88 :
SND_LilShot1.start();
sc[snumber] = 94;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 1;
slr[snumber] = plr[1];
weapt = 15;
return;
case 89 :
SND_LilShot1.start();
sc[snumber] = 95;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
weapt = 40;
return;
case 90 :
SND_LilShot1.start();
sc[snumber] = 96;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 20;
ssy[snumber] = 28;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt2[snumber] = 6 - (12 * plr[1]);
slt1[snumber] = -6;
if (Key.isDown(kright) or Key.isDown(kleft)) {
slt2[snumber] = 10 - (20 * plr[1]);
}
if (Key.isDown(kup)) {
slt1[snumber] = -12;
}
if (Key.isDown(kdown)) {
slt1[snumber] = 0;
}
weapt = 40;
return;
case 91 :
SND_Zap2.start();
sc[snumber] = 97;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 2;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 0;
if (lvlr[10] > 2) {
slt2[snumber] = -1;
}
weapt = 40;
return;
case 92 :
SND_Teleport2.start();
sc[snumber] = 98;
sd[snumber] = 1;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
ssx[snumber] = 40;
ssy[snumber] = 80;
slt1[snumber] = 0;
slt2[snumber] = 0;
slr[snumber] = plr[1];
weapt = 20;
return;
case 93 :
SND_Shing1.start();
sc[snumber] = 99;
sd[snumber] = 32;
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
sy[snumber] = py[1] - 6;
ssx[snumber] = 16;
ssy[snumber] = 32;
slt1[snumber] = 0;
slt2[snumber] = 0;
slr[snumber] = plr[1];
weapt = 30;
return;
case 94 :
sc[snumber] = 100;
sd[snumber] = 1;
sx[snumber] = camx;
sy[snumber] = camy;
slt1[snumber] = -random(6 * lvlr[10]);
weapt = 30;
return;
case 95 :
SND_LilShot2.start();
sc[snumber] = 101;
sd[snumber] = 1;
if (Key.isDown(kup)) {
sd[snumber] = 3;
}
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
if (fpace < 7) {
sy[snumber] = sy[snumber] - 5;
} else {
sy[snumber] = sy[snumber] + 5;
}
slr[snumber] = plr[1];
slt1[snumber] = 0;
ssx[snumber] = 16;
ssy[snumber] = 14;
weapt = 15;
return;
case 96 :
SND_LilShot1.start();
sc[snumber] = 102;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 10;
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 0;
slt3[snumber] = 0;
slt4[snumber] = 0;
sd[snumber] = 1;
weapt = 40;
return;
case 97 :
Mega_SpreadDrillFire();
if (h4 < 1) {
SND_LilShot1.start();
sc[snumber] = 103;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = -8;
weapt = 5;
} else {
calc_weapon_refund();
}
return;
case 98 :
if (Key.isDown(kdown)) {
if (((pd[1] > 0) and (pd[1] < 4)) and (pact == 0)) {
SND_Fire1.start();
pd[1] = 7;
plt1[1] = 0;
weapt = 30;
} else {
calc_weapon_refund();
}
} else {
SND_Shing3.start();
sc[snumber] = 104;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
ssx[snumber] = 30;
ssy[snumber] = 30;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
weapt = 30;
}
return;
case 99 :
SND_Fire1.start();
sc[snumber] = 105;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 1;
slt1[snumber] = 0;
slt2[snumber] = 4;
pls2[1] = 6;
weapt = 5;
return;
case 100 :
SND_LilShot1.start();
feight = 8;
sc[snumber] = 106;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 15;
ssy[snumber] = 30;
mega_8wayaim();
weapt = 30;
return;
case 101 :
SND_LilLaser1.start();
sc[snumber] = 107;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
slr[snumber] = plr[1];
mega_shoty();
ssx[snumber] = 10;
ssy[snumber] = 30;
slt1[snumber] = 0;
weapt = 20;
return;
case 102 :
SND_Teleport2.start();
Mega_SakugarneFire();
sc[snumber] = 108;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1] - 200;
slr[snumber] = plr[1];
ssx[snumber] = 25;
ssy[snumber] = 50;
slt1[snumber] = 0;
weapt = 10;
return;
case 103 :
SND_LilShot1.start();
sc[snumber] = 109;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
slt1[snumber] = -21;
if (Key.isDown(kup)) {
slt1[snumber] = -27;
}
weapt = 20;
return;
case 111 :
SND_Blip4.start();
sc[snumber] = 120;
sd[snumber] = 1;
sx[snumber] = camx;
sy[snumber] = camy;
slt1[snumber] = 0;
slt2[snumber] = 0;
if (pcharge > 39) {
slt2[snumber] = slt2[snumber] - 2;
}
if (pcharge > 69) {
slt2[snumber] = slt2[snumber] - 2;
}
weapt = 20;
return;
case 112 :
SND_LilShot2.start();
sc[snumber] = 121;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
sy[snumber] = py[1];
ssx[snumber] = 18;
ssy[snumber] = 42;
slr[snumber] = plr[1];
slt2[snumber] = random(4);
slt3[snumber] = 0;
if (pd[1] < 31) {
sd[snumber] = 1;
} else {
sd[snumber] = 31;
slt1[snumber] = -8;
}
weapt = 25 - (lvlr[10] * 5);
return;
case 113 :
SND_Zap2.start();
sc[snumber] = 122;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = plr[1];
sd[snumber] = 1;
ssx[snumber] = 50;
ssy[snumber] = 100;
slt1[snumber] = 0;
slt2[snumber] = 0;
if (pcharge > 39) {
slt2[snumber] = slt2[snumber] - 2;
}
if (pcharge > 69) {
slt2[snumber] = slt2[snumber] - 2;
}
weapt = 40;
return;
case 114 :
SND_Shing3.start();
sc[snumber] = 123;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 0;
slt2[snumber] = 1;
if (pcharge > 39) {
slt2[snumber] = 2;
}
if (pcharge > 69) {
slt2[snumber] = 3;
}
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
weapt = 20;
return;
case 115 :
Spawn_FrostfireShot();
weapt = 30;
return;
case 116 :
if (((Key.isDown(kdown) and (pd[1] > 0)) and (pd[1] < 5)) and (pact == 0)) {
SND_Dig1.start();
pd[1] = 8;
plt1[1] = 0;
} else {
SND_LilShot2.start();
sc[snumber] = 125;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
slr[snumber] = plr[1];
slt1[snumber] = -5;
slt2[snumber] = 0;
ssx[snumber] = 14;
ssy[snumber] = 29;
sd[snumber] = 1;
if (Key.isDown(kup)) {
sd[snumber] = 2;
slt1[snumber] = -12;
}
}
weapt = 30;
return;
case 117 :
SND_Splash1.start();
sc[snumber] = 126;
slt3[snumber] = 0;
if (pd[1] < 31) {
sx[snumber] = (px[1] + 10) - (20 * plr[1]);
sy[snumber] = py[1];
slr[snumber] = plr[1];
slt1[snumber] = 0;
ssx[snumber] = 14;
ssy[snumber] = 20;
sd[snumber] = 2;
weapt = 40;
} else {
sx[snumber] = (px[1] + 40) - (80 * plr[1]);
mega_shoty();
slr[snumber] = plr[1];
slt1[snumber] = -5;
slt2[snumber] = 1;
ssx[snumber] = 40;
ssy[snumber] = 40;
sd[snumber] = 1;
weapt = 30;
}
return;
case 118 :
Mega_MetalGearFire();
if (h4 < 1) {
SND_Alarm1.start();
sc[snumber] = 127;
slt1[snumber] = 0;
sx[snumber] = camx;
sy[snumber] = camy - 260;
sd[snumber] = 1;
weapt = 30;
} else {
calc_weapon_refund();
}
return;
case 119 :
SND_Shing1.start();
sc[snumber] = 128;
slt1[snumber] = 0;
sx[snumber] = camx;
sy[snumber] = camy;
sd[snumber] = 1;
weapt = 25;
return;
case 120 :
SND_LilShot1.start();
feight = 8;
sc[snumber] = 129;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 28;
mega_8wayaim();
weapt = 20;
return;
case 121 :
Spawn_PlasmicBurst();
weapt = 30;
return;
case 122 :
Mega_PowerMoonFire();
sc[snumber] = 131;
sd[snumber] = 1;
sx[snumber] = px[1];
sy[snumber] = py[1] - 28;
ssx[snumber] = 30;
ssy[snumber] = 70;
slt1[snumber] = 0;
slt2[snumber] = 0;
slt3[snumber] = 2;
if (pcharge > 39) {
slt3[snumber] = 3;
}
if (pcharge > 69) {
slt3[snumber] = 4;
}
weapt = 30;
return;
case 123 :
if ((pd[1] > 0) and (pd[1] < 5)) {
SND_Dig1.start();
pd[1] = 9;
plt1[1] = 0;
weapt = 20;
} else {
calc_weapon_refund();
}
return;
case 124 :
Spawn_PyroBalloon();
weapt = 40;
return;
case 125 :
SND_LilShot2.start();
Mega_ROFLTotemFire();
if (h4 < 1) {
sc[snumber] = 134;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 14;
ssy[snumber] = 30;
mega_8wayaim();
sd[snumber] = 31;
slt1[snumber] = -2;
slt2[snumber] = 0;
if (pcharge > 39) {
slt2[snumber] = -1;
}
if (pcharge > 69) {
slt2[snumber] = -2;
}
if (lvlr[10] > 2) {
slt2[snumber]--;
}
weapt = 40;
} else {
calc_weapon_refund();
}
return;
case 126 :
SND_LilShot2.start();
sc[snumber] = 135;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 26) - (52 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
weapt = 40 + (5 * lvlr[10]);
return;
case 127 :
SND_Dig1.start();
sc[snumber] = 136;
sd[snumber] = 1;
sx[snumber] = (px[1] + 40) - (80 * plr[1]);
sy[snumber] = py[1] - 35;
slt1[snumber] = 0;
weapt = 20;
return;
case 128 :
SND_LilShot3.start();
sc[snumber] = 137;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 26) - (52 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 16;
ssx[snumber] = 14;
ssy[snumber] = 28;
weapt = 40;
return;
case 129 :
Spawn_TheBrick();
weapt = 20;
return;
case 130 :
Spawn_TwisterSwarm();
weapt = 40;
return;
case 140 :
Fire_Talent_PowerBust();
return;
case 141 :
Fire_Talent_MegaCrush();
return;
case 142 :
Fire_Talent_Regeneration();
}
}
Frame 11
function controlmegabeat() {
h1 = 1;
pd[11] = 0;
switch (pd[1]) {
case 1 :
pf[1] = 402 + (200 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) and (feight < 1)) or ((Key.isDown(kleft) and (plr[1] == 1)) and (feight < 1))) and (pact == 0)) {
pd[1] = 2;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
break;
case 2 :
pf[1] = 404 + (200 * plr[1]);
px[1] = (px[1] + 1) - (2 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
plt1[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 0;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) or (Key.isDown(kleft) and (plr[1] == 1))) and (pact == 0)) and (plt1[1] > 1)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 3 :
if ((fpace > 0) and (fpace < 4)) {
pf[1] = 406 + (200 * plr[1]);
}
if ((fpace > 3) and (fpace < 7)) {
pf[1] = 408 + (200 * plr[1]);
}
if ((fpace > 6) and (fpace < 10)) {
pf[1] = 410 + (200 * plr[1]);
}
if ((fpace > 9) and (fpace < 13)) {
pf[1] = 408 + (200 * plr[1]);
}
px[1] = (px[1] + 8) - (16 * plr[1]);
if (icem != 0) {
if ((plr[1] == 0) and (icem < 0)) {
px[1] = px[1] + icem;
}
if ((plr[1] == 1) and (icem > 0)) {
px[1] = px[1] + icem;
}
}
py[1]++;
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if ((Key.isDown(kleft) and (plr[1] == 1)) or (Key.isDown(kright) and (plr[1] == 0))) {
plt1[1] = 0;
}
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 31 :
pf[1] = 422 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kjump) and (plt1[1] < -5)) {
plt1[1] = plt1[1] - 1.6;
}
if (Key.isDown(kjump) and (plt1[1] > -1)) {
pd[1] = 35;
plt1[1] = 0;
}
if (plt1[1] < 11) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 11) {
plt1[1] = 11;
}
}
break;
case 32 :
if (plt1[1] < 3) {
pf[1] = 424 + (200 * plr[1]);
} else {
pf[1] = 426 + (200 * plr[1]);
}
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (pls1[1] < 1) {
if (Key.isDown(kup)) {
plt1[1]++;
py[1] = py[1] - 4;
}
if (Key.isDown(kdown)) {
plt1[1]++;
py[1] = py[1] + 4;
}
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] > 5) {
plt1[1] = 0;
}
break;
case 33 :
pf[1] = 428 + (200 * plr[1]);
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (Key.isDown(kup)) {
plt1[1]--;
}
if (Key.isDown(kdown)) {
plt1[1]++;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] < 1) {
pd[1] = 1;
plt1[1] = 0;
pf[1] = 2 + (200 * plr[1]);
py[1] = py[1] - 30;
}
if (plt1[1] > 5) {
pd[1] = 32;
plt1[1] = 0;
py[1] = py[1] + 20;
}
break;
case 34 :
pf[1] = 430 + (200 * plr[1]);
px[1] = (px[1] - 1) + (2 * plr[1]);
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] > 6) {
pd[1] = 31;
plt1[1] = 0;
lvlr_5();
}
break;
case 35 :
pf[1] = 412 + (200 * plr[1]);
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 9) - (18 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 9) - (18 * plr[1]);
}
if (Key.isDown(kjump)) {
plt1[1] = plt1[1] - 1.85;
}
plt1[1] = plt1[1] + 2;
if (plt1[1] > 10) {
pd[1] = 36;
plt1[1] = 1;
}
break;
case 36 :
pf[1] = 412 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (plt1[1] < 10) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 10) {
plt1[1] = 10;
}
}
break;
case 40 :
pf[1] = 420 + (200 * plr[1]);
py[1] = py[1] - 10;
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (plt2[1] > 0) {
plt2[1]--;
}
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = px[1] - 3;
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = px[1] + 3;
}
plt1[1]--;
if (plt1[1] < -60) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
pf[1] = 420 + (200 * plr[1]);
px[1] = (px[1] + 10) - (20 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
if (plt2[1] > 0) {
plt2[1]--;
}
pls1[1] = 2;
if (Key.isDown(kup)) {
py[1] = py[1] - 3;
}
if (Key.isDown(kdown)) {
py[1] = py[1] + 3;
}
plt1[1]--;
if (plt1[1] >= -60) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
mega_chargeup();
if ((pls1[1] < 2) and ((((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36))) {
isn();
if (Key.isDown(kattack) and (sc[snumber] == 0)) {
pls1[1] = 7;
pan = 1;
}
}
if ((pls1[1] > 0) and ((((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36))) {
mega_attackframes();
if (pls1[1] == 6) {
if (sc[snumber] == 0) {
SND_LilShot1.start();
switch (bustert) {
case 1 :
MegaBuster_Spawn();
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
break;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
break;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
slr[snumber] = plr[1];
}
isn();
pcharge = 0;
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
blocktouchtest();
if ((bttop < 1) and (pd[1] < 31)) {
switch (pd[1]) {
case 1 :
pd[1] = 31;
plt1[1] = 1;
break;
case 2 :
pd[1] = 31;
plt1[1] = 1;
break;
case 3 :
pd[1] = 31;
plt1[1] = 1;
}
}
if (bttop > 0) {
py[1] = bttop2;
switch (pd[1]) {
case 31 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 35 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 36 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
}
if (((btbottom > 0) and (plt1[1] < 1)) and (pd[1] > 30)) {
switch (pd[1]) {
case 31 :
pd[1] = 31;
plt1[1] = 1;
break;
case 35 :
pd[1] = 35;
break;
case 36 :
pd[1] = 36;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
switch (pd[1]) {
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if (btright > 0) {
px[1] = btright2;
switch (pd[1]) {
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if ((btleft > 0) and (btright > 0)) {
pll[1] = -1;
pd[1] = 100;
}
if (bxm != 0) {
px[1] = px[1] + bxm;
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
}
function controlrushjet() {
h1 = 1;
pd[11] = 0;
switch (pd[1]) {
case 1 :
pf[1] = 1602;
if (Key.isDown(kleft) and (feight < 1)) {
px[1] = px[1] - 6;
}
if (Key.isDown(kright) and (feight < 1)) {
px[1] = px[1] + 6;
}
if ((Key.isDown(kup) and (py[1] > -360)) and (feight < 1)) {
py[1] = py[1] - 6;
}
if ((Key.isDown(kdown) and (py[1] < -20)) and (feight < 1)) {
py[1] = py[1] + 6;
}
break;
case 31 :
pf[1] = 1602;
px[1] = px[1] + 10;
pd[1] = 1;
break;
case 34 :
pf[1] = 1606;
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] <= 6) {
break;
}
pd[1] = 1;
plt1[1] = 0;
lvlr_5();
}
mega_chargeup();
if ((pls1[1] < 2) and ((pd[1] == 1) or (pd[1] == 31))) {
isn();
if (Key.isDown(kattack) and (sc[snumber] == 0)) {
pls1[1] = 7;
pan = 1;
}
}
if ((pls1[1] > 0) and ((pd[1] == 1) or (pd[1] == 31))) {
pf[1] = pf[1] + 2;
if (pls1[1] == 6) {
if (sc[snumber] == 0) {
SND_LilShot1.start();
switch (bustert) {
case 1 :
MegaBuster_Spawn();
slr[snumber] = 0;
if (fmode == 2) {
sx[snumber] = sx[snumber] + 10;
}
sy[snumber] = py[1] - 30;
break;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
if (fmode == 2) {
sx[snumber] = sx[snumber] + 10;
}
sy[snumber] = py[1] - 30;
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
if (fmode == 2) {
sx[snumber] = sx[snumber] + 10;
}
sy[snumber] = py[1] - 30;
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
if (fmode == 2) {
sx[snumber] = sx[snumber] + 10;
}
sy[snumber] = py[1] - 30;
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
break;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (fmode == 2) {
sx[snumber] = sx[snumber] + 10;
}
sy[snumber] = py[1] - 30;
slr[snumber] = 0;
}
isn();
pcharge = 0;
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] > 0) and (sc[h2] < 6)) {
sx[h2] = sx[h2] + 6;
}
h2++;
}
blocktouchtest();
if (bttop > 0) {
py[1] = bttop2;
}
if (btbottom > 0) {
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
}
if (btright > 0) {
px[1] = btright2;
}
if ((bttop > 0) and (btbottom > 0)) {
pll[1] = 0;
pd[1] = 100;
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
}
function control_helper_beat() {
switch (pd[11]) {
case 0 :
pf[11] = 1;
px[11] = -2000;
py[11] = 2000;
break;
case 1 :
pf[11] = 2 + (2 * plr[11]);
pd[11] = 31;
break;
case 31 :
pf[11] = 2 + (2 * plr[11]);
plr[11] = plr[1];
if (((pd[1] < 32) or (pd[1] > 34)) and ((pd[1] < 40) or (pd[1] > 41))) {
switch (plr[1]) {
case 0 :
if ((px[11] < (px[1] - 60)) or (px[11] > (px[1] - 40))) {
px[11] = px[11] + Math.round((px[1] - px[11]) / 10);
}
break;
case 1 :
if (!((px[11] < (px[1] + 40)) or (px[11] > (px[1] + 60)))) {
break;
}
px[11] = px[11] + Math.round((px[1] - px[11]) / 10);
}
if ((py[11] < (py[1] - 50)) or (py[11] > (py[1] - 30))) {
py[11] = py[11] + Math.round(((py[1] - py[11]) - 45) / 10);
}
h3 = random(100);
if ((h3 < (10 + (lvlr[2] * 5))) and (plt1[11] < 1)) {
h4 = 1000;
h5 = 0;
h2 = 2;
while (h2 <= 10) {
if (((((((pc[h2] > 0) and (pc[h2] < 501)) and (pll[h2] > 0)) and (px[h2] > (camx - 280))) and (px[h2] < (camx + 280))) and (py[h2] > (camy - 280))) and (py[h2] < (camy + 140))) {
h3 = Math.abs(px[11] - px[h2]) + Math.abs((py[11] - py[h2]) - Math.round(pys[h2] / 2));
if (h3 < h4) {
h5 = h2;
h4 = h3;
}
}
h2++;
}
if (h5 > 0) {
pd[11] = 32;
plt1[11] = 0;
pls1[11] = h5;
}
}
}
if (fpace < 6) {
py[11]--;
} else {
py[11]++;
}
if (plt1[11] > 0) {
plt1[11]--;
}
break;
case 32 :
if (px[pls1[11]] > px[11]) {
pf[11] = 8;
} else {
pf[11] = 10;
}
px[11] = px[11] + Math.round((px[pls1[11]] - px[11]) / 10);
py[11] = py[11] + Math.round(((py[pls1[11]] - py[11]) - (pys[pls1[11]] / 2)) / 15);
plt1[11]++;
hmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
pll[h2] = (pll[h2] - 2) - (lvlr[2] / 5);
plt1[11] = plt1[11] + 10;
Spawn_Mega_BusterSus2b();
} else {
SND_Deflect1.start();
plt1[11] = plt1[11] + 60;
}
}
h2++;
}
if ((pll[pls1[11]] < 1) or (pc[pls1[11]] > 500)) {
plt1[11] = 100;
}
if (plt1[11] <= 60) {
break;
}
pd[11] = 31;
plt1[11] = 40 - (3 * lvlr[2]);
}
if ((Key.isDown(kaux) and (pll[11] > 99)) and ((pc[1] == 1) or (pc[1] == 2))) {
plt2[11] = 3;
}
if (plt2[11] > 0) {
plt2[11]--;
if (plt2[11] == 0) {
SND_Shing3.start();
Spawn_HelperTransform();
if (pc[1] == 1) {
pc[1] = 2;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
} else if (pc[1] == 2) {
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
pd[11] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
pd[11] = 31;
}
px[11] = px[1];
py[11] = py[1];
pll[11] = 0;
}
}
}
h4 = 0;
if (((((((px[11] + 255) < camx) or ((px[11] - 250) > camx)) or ((py[11] + 260) < camy)) or ((py[11] - 120) > camy)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
h4++;
}
if (h4 > 0) {
pd[11] = 31;
px[11] = px[1];
py[11] = py[1];
}
if (pll[11] < 100) {
pll[11]++;
if ((lvlr[9] > 0) and (pll[11] < 100)) {
pll[11]++;
}
}
}
Frame 12
function controlmegatango() {
h1 = 1;
pd[11] = 0;
switch (pd[1]) {
case 1 :
pf[1] = 802 + (200 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) and (feight < 1)) or ((Key.isDown(kleft) and (plr[1] == 1)) and (feight < 1))) and (pact == 0)) {
pd[1] = 2;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
break;
case 2 :
pf[1] = 804 + (200 * plr[1]);
px[1] = (px[1] + 1) - (2 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
plt1[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 0;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) or (Key.isDown(kleft) and (plr[1] == 1))) and (pact == 0)) and (plt1[1] > 1)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 3 :
if ((fpace > 0) and (fpace < 4)) {
pf[1] = 806 + (200 * plr[1]);
}
if ((fpace > 3) and (fpace < 7)) {
pf[1] = 808 + (200 * plr[1]);
}
if ((fpace > 6) and (fpace < 10)) {
pf[1] = 810 + (200 * plr[1]);
}
if ((fpace > 9) and (fpace < 13)) {
pf[1] = 808 + (200 * plr[1]);
}
px[1] = (px[1] + 8) - (16 * plr[1]);
if (icem != 0) {
if ((plr[1] == 0) and (icem < 0)) {
px[1] = px[1] + icem;
}
if ((plr[1] == 1) and (icem > 0)) {
px[1] = px[1] + icem;
}
}
py[1]++;
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if ((Key.isDown(kleft) and (plr[1] == 1)) or (Key.isDown(kright) and (plr[1] == 0))) {
plt1[1] = 0;
}
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 31 :
pf[1] = 822 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 8) - (16 * plr[1]);
}
if (Key.isDown(kjump) and (plt1[1] < -5)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 11) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 11) {
plt1[1] = 11;
}
}
break;
case 32 :
if (plt1[1] < 3) {
pf[1] = 824 + (200 * plr[1]);
} else {
pf[1] = 826 + (200 * plr[1]);
}
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (pls1[1] < 1) {
if (Key.isDown(kup)) {
plt1[1]++;
py[1] = py[1] - 4;
}
if (Key.isDown(kdown)) {
plt1[1]++;
py[1] = py[1] + 4;
}
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] > 5) {
plt1[1] = 0;
}
break;
case 33 :
pf[1] = 828 + (200 * plr[1]);
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (Key.isDown(kup)) {
plt1[1]--;
}
if (Key.isDown(kdown)) {
plt1[1]++;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] < 1) {
pd[1] = 1;
plt1[1] = 0;
pf[1] = 2 + (200 * plr[1]);
py[1] = py[1] - 30;
}
if (plt1[1] > 5) {
pd[1] = 32;
plt1[1] = 0;
py[1] = py[1] + 20;
}
break;
case 34 :
pf[1] = 830 + (200 * plr[1]);
px[1] = (px[1] - 1) + (2 * plr[1]);
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] > 6) {
pd[1] = 31;
plt1[1] = 0;
lvlr_5();
}
break;
case 35 :
if (plt1[1] < 4) {
pf[1] = 814 + (200 * plr[1]);
} else {
pf[1] = 816 + (200 * plr[1]);
}
px[1] = (px[1] + 6) - (12 * plr[1]);
switch (plr[1]) {
case 0 :
if (Key.isDown(kleft)) {
pd[1] = 36;
plt1[1] = -6;
plr[1] = 1;
px[1] = px[1] - 8;
}
break;
case 1 :
if (!Key.isDown(kright)) {
break;
}
pd[1] = 36;
plt1[1] = -6;
plr[1] = 0;
px[1] = px[1] + 8;
}
if (Key.isDown(kup)) {
plt1[1]--;
if (plt1[1] < 0) {
plt1[1] = 7;
}
py[1] = py[1] - 4;
}
if (Key.isDown(kdown)) {
plt1[1]++;
if (plt1[1] > 7) {
plt1[1] = 0;
}
py[1] = py[1] + 4;
}
break;
case 36 :
pf[1] = 812 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
px[1] = (px[1] + 9) - (18 * plr[1]);
if ((Key.isDown(kleft) or Key.isDown(kright)) and (plt1[1] < -2)) {
plt1[1] = plt1[1] - 1.6;
}
plt1[1] = plt1[1] + 2;
if (plt1[1] > 6) {
pd[1] = 31;
}
break;
case 40 :
pf[1] = 820 + (200 * plr[1]);
py[1] = py[1] - 10;
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (plt2[1] > 0) {
plt2[1]--;
}
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = px[1] - 3;
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = px[1] + 3;
}
plt1[1]--;
if (plt1[1] < -60) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
pf[1] = 820 + (200 * plr[1]);
px[1] = (px[1] + 10) - (20 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (Key.isDown(kup)) {
py[1] = py[1] - 3;
}
if (Key.isDown(kdown)) {
py[1] = py[1] + 3;
}
plt1[1]--;
if (plt1[1] >= -60) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
mega_chargeup();
if ((pls1[1] < 2) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
isn();
if (Key.isDown(kattack) and (sc[snumber] == 0)) {
pls1[1] = 7;
pan = 1;
}
}
if ((pls1[1] > 0) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
mega_attackframes();
if (pls1[1] == 6) {
if (sc[snumber] == 0) {
SND_LilShot1.start();
switch (bustert) {
case 1 :
MegaBuster_Spawn();
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
break;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
break;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
slr[snumber] = plr[1];
}
isn();
pcharge = 0;
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
blocktouchtest();
if ((bttop < 1) and (pd[1] < 31)) {
switch (pd[1]) {
case 1 :
pd[1] = 31;
plt1[1] = 1;
break;
case 2 :
pd[1] = 31;
plt1[1] = 1;
break;
case 3 :
pd[1] = 31;
plt1[1] = 1;
}
}
if (bttop > 0) {
py[1] = bttop2;
switch (pd[1]) {
case 31 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 35 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 36 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
}
if ((btbottom > 0) and (((((plt1[1] < 1) and ((pd[1] == 31) or (pd[1] == 36))) or (pd[1] == 35)) or (pd[1] == 40)) or (pd[1] == 41))) {
switch (pd[1]) {
case 31 :
pd[1] = 31;
plt1[1] = 1;
break;
case 35 :
pd[1] = 35;
break;
case 36 :
pd[1] = 31;
plt1[1] = 1;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
switch (pd[1]) {
case 31 :
pd[1] = 35;
plt1[1] = 2;
plr[1] = 0;
break;
case 36 :
pd[1] = 35;
plt1[1] = 2;
plr[1] = 0;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if (btright > 0) {
switch (pd[1]) {
case 31 :
pd[1] = 35;
plt1[1] = 2;
plr[1] = 1;
break;
case 36 :
pd[1] = 35;
plt1[1] = 2;
plr[1] = 1;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
px[1] = btright2;
}
if ((btleft > 0) and (btright > 0)) {
pll[1] = -1;
pd[1] = 100;
}
if (bxm != 0) {
px[1] = px[1] + bxm;
}
if (bym != 0) {
py[1] = py[1] + bym;
}
if (((pd[1] == 35) and (btright < 1)) and (btleft < 1)) {
pd[1] = 31;
plt1[1] = 1;
px[1] = (px[1] + 4) - (8 * plr[1]);
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
}
function controlrushmarine() {
h1 = 1;
pd[11] = 0;
switch (pd[1]) {
case 1 :
pf[1] = 1614 + (2 * plr[1]);
if (Key.isDown(kleft) and (feight < 1)) {
px[1] = px[1] - 9;
plr[1] = 1;
}
if (Key.isDown(kright) and (feight < 1)) {
px[1] = px[1] + 9;
plr[1] = 0;
}
if ((Key.isDown(kup) and (py[1] > (camym + 40))) and (feight < 1)) {
py[1] = py[1] - 7;
}
if ((Key.isDown(kdown) and (py[1] < 2)) and (feight < 1)) {
py[1] = py[1] + 7;
}
h4 = 1;
h2 = 1;
while (h2 <= 12) {
if (bt[h2] == 6) {
if ((((px[1] > (bx[h2] - bxs[h2])) and (px[1] < (bx[h2] + bxs[h2]))) and ((py[1] - pys[1]) > (by[h2] - bys[h2]))) and ((py[1] - pys[1]) < (by[h2] + bys[h2]))) {
h4--;
}
}
h2++;
}
if (h4 > 0) {
pd[1] = 31;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
h2 = 1;
while (h2 <= 12) {
if (bt[h2] == 6) {
if ((((px[1] > (bx[h2] - bxs[h2])) and (px[1] < (bx[h2] + bxs[h2]))) and (((py[1] - pys[1]) - 10) < (by[h2] - bys[h2]))) and ((py[1] - pys[1]) < (by[h2] + bys[h2]))) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -10;
lvlr_15();
}
}
h2++;
}
}
break;
case 31 :
pf[1] = 1614 + (2 * plr[1]);
if (Key.isDown(kleft)) {
px[1] = px[1] - 6;
plr[1] = 1;
}
if (Key.isDown(kright)) {
px[1] = px[1] + 6;
plr[1] = 0;
}
py[1] = py[1] + plt1[1];
if (Key.isDown(kjump) and (plt1[1] < -5)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 12) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 12) {
plt1[1] = 12;
}
}
h2 = 1;
while (h2 <= 12) {
if (bt[h2] == 6) {
if ((((px[1] > (bx[h2] - bxs[h2])) and (px[1] < (bx[h2] + bxs[h2]))) and ((py[1] - pys[1]) > (by[h2] - bys[h2]))) and ((py[1] - pys[1]) < (by[h2] + bys[h2]))) {
pd[1] = 1;
}
}
h2++;
}
break;
case 34 :
pf[1] = 1622 + (2 * plr[1]);
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] <= 6) {
break;
}
pd[1] = 31;
plt1[1] = 0;
lvlr_5();
}
mega_chargeup();
if ((pls1[1] < 2) and ((pd[1] == 1) or (pd[1] == 31))) {
isn();
if (Key.isDown(kattack) and (sc[snumber] == 0)) {
pls1[1] = 7;
pan = 1;
}
mega_megabuster();
}
if ((pls1[1] > 0) and ((pd[1] == 1) or (pd[1] == 31))) {
pf[1] = pf[1] + 4;
if (pls1[1] == 6) {
if (sc[snumber] == 0) {
SND_LilShot1.start();
switch (bustert) {
case 1 :
MegaBuster_Spawn();
sy[snumber] = py[1] - 16;
break;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 16;
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 16;
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 16;
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
break;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
slr[snumber] = plr[1];
sy[snumber] = py[1] - 16;
}
isn();
pcharge = 0;
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
blocktouchtest();
if (bttop > 0) {
py[1] = bttop2;
}
if (btbottom > 0) {
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
}
if (btright > 0) {
px[1] = btright2;
}
if ((bttop > 0) and (btbottom > 0)) {
pll[1] = 0;
pd[1] = 100;
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
}
function control_helper_tango() {
switch (pd[11]) {
case 0 :
pf[11] = 1;
px[11] = -2000;
py[11] = 2000;
break;
case 1 :
pf[11] = 82 + (20 * plr[11]);
if (px[1] < px[11]) {
plr[11] = 1;
} else {
plr[11] = 0;
}
switch (plr[11]) {
case 0 :
if ((px[1] - 60) > px[11]) {
pd[11] = 3;
plt1[11] = 0;
}
break;
case 1 :
if ((px[1] + 60) >= px[11]) {
break;
}
pd[11] = 3;
plt1[11] = 0;
}
if (((py[1] < (py[11] - 39)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
pd[11] = 31;
plt1[11] = -14;
if (py[1] < (py[11] - 79)) {
plt1[11] = -17;
}
if (lvlr[15] > 0) {
plt1[11]--;
}
py[11] = py[11] - 4;
}
h3 = random(100);
if (((h3 < (10 + (lvlr[2] * 5))) and (pls1[11] < 1)) and (sc[snumber] == 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] > (camx - 255)) and (px[h2] < (camx + 255))) and (py[h2] < (camy + 140))) and (py[h2] > (camy - 280))) and (pll[h2] > 0)) and (pc[h2] < 501)) {
h4++;
}
h2++;
}
if (h4 > 0) {
SND_Dig1.start();
sc[snumber] = 145;
sx[snumber] = px[11];
sy[snumber] = py[11] - 16;
ssx[snumber] = 6;
ssy[snumber] = 12;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -9;
slt2[snumber] = 0;
pls1[11] = 40 - (3 * lvlr[2]);
}
}
break;
case 3 :
pf[11] = (84 + Math.round(plt1[11] / 2)) + (20 * plr[11]);
plt1[11]++;
if (plt1[11] > 14) {
plt1[11] = 0;
}
px[11] = (px[11] + 8) - (16 * plr[11]);
if (lvlr[13] > 0) {
px[11] = (px[11] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
switch (plr[11]) {
case 0 :
if ((px[1] - 40) < px[11]) {
pd[11] = 1;
}
break;
case 1 :
if ((px[1] + 40) <= px[11]) {
break;
}
pd[11] = 1;
}
if (((py[1] < (py[11] - 39)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
pd[11] = 31;
plt1[11] = -14;
if (py[1] < (py[11] - 79)) {
plt1[11] = -17;
}
if (lvlr[15] > 0) {
plt1[11]--;
}
py[11] = py[11] - 4;
}
h3 = random(100);
if (((h3 < (10 + (lvlr[2] * 5))) and (pls1[11] < 1)) and (sc[snumber] == 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] > (camx - 255)) and (px[h2] < (camx + 255))) and (py[h2] < (camy + 140))) and (py[h2] > (camy - 280))) and (pll[h2] > 0)) and (pc[h2] < 501)) {
h4++;
}
h2++;
}
if (h4 > 0) {
SND_Dig1.start();
sc[snumber] = 145;
sx[snumber] = px[11];
sy[snumber] = py[11] - 16;
ssx[snumber] = 6;
ssy[snumber] = 12;
slr[snumber] = plr[1];
sd[snumber] = 32;
slt1[snumber] = -6;
slt2[snumber] = 0;
pls1[11] = 40 - (3 * lvlr[2]);
}
}
break;
case 31 :
pf[11] = 92 + (20 * plr[11]);
px[11] = (px[11] + 4) - (8 * plr[11]);
py[11] = py[11] + plt1[11];
if ((px[1] + 10) < px[11]) {
px[11] = px[11] - 4;
}
if ((px[1] - 10) > px[11]) {
px[11] = px[11] + 4;
}
switch (plr[11]) {
case 0 :
if ((px[1] + 20) < px[11]) {
plr[11] = 1;
}
break;
case 1 :
if ((px[1] - 20) <= px[11]) {
break;
}
plr[11] = 0;
}
if (plt1[11] < 10) {
plt1[11]++;
}
h3 = random(100);
if (!(((h3 < (10 + (lvlr[2] * 5))) and (pls1[11] < 1)) and (sc[snumber] == 0))) {
break;
}
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] > (camx - 255)) and (px[h2] < (camx + 255))) and (py[h2] < (camy + 140))) and (py[h2] > (camy - 280))) and (pll[h2] > 0)) and (pc[h2] < 501)) {
h4++;
}
h2++;
}
if (h4 <= 0) {
break;
}
SND_Dig1.start();
sc[snumber] = 145;
sx[snumber] = px[11];
sy[snumber] = py[11] - 16;
ssx[snumber] = 6;
ssy[snumber] = 12;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt1[snumber] = -3;
slt2[snumber] = 0;
pls1[11] = 40 - (3 * lvlr[2]);
}
if (pls1[11] > 0) {
pls1[11]--;
}
if ((Key.isDown(kaux) and (pll[11] > 99)) and ((pc[1] == 1) or (pc[1] == 3))) {
plt2[11] = 3;
}
if (plt2[11] > 0) {
plt2[11]--;
if (plt2[11] == 0) {
SND_Shing3.start();
Spawn_HelperTransform();
if (pc[1] == 1) {
pc[1] = 3;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
} else if (pc[1] == 3) {
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
pd[11] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
pd[11] = 31;
}
px[11] = px[1];
py[11] = py[1];
pll[11] = 0;
}
}
}
blocktouchtest();
if ((bttop < 1) and (pd[11] < 31)) {
pd[11] = 31;
plt1[11] = 1;
}
if (bttop > 0) {
py[11] = bttop2;
if (pd[11] == 31) {
pd[11] = 1;
}
}
if (btbottom > 0) {
py[11] = btbottom2;
if (pd[11] == 31) {
plt1[11] = 1;
}
}
if (btleft > 0) {
px[11] = btleft2;
}
if (btright > 0) {
px[11] = btright2;
}
h4 = 0;
if ((bttop > 0) and (btbottom > 0)) {
h4++;
}
if (((((((px[11] + 255) < camx) or ((px[11] - 250) > camx)) or ((py[11] + 260) < camy)) or ((py[11] - 120) > camy)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
h4++;
}
if (h4 > 0) {
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
px[11] = px[1];
py[11] = py[1];
}
if (bxm != 0) {
px[11] = px[11] + bxm;
}
if (pll[11] < 100) {
pll[11]++;
if ((lvlr[9] > 0) and (pll[11] < 100)) {
pll[11]++;
}
}
}
Frame 13
function controlmegarush() {
h1 = 1;
pd[11] = 0;
switch (pd[1]) {
case 1 :
pf[1] = 1202 + (200 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) and (feight < 1)) or ((Key.isDown(kleft) and (plr[1] == 1)) and (feight < 1))) and (pact == 0)) {
pd[1] = 2;
plt1[1] = 0;
}
if ((Key.isDown(kjump) and Key.isDown(kdown)) and (pact == 0)) {
pd[1] = 4;
pact = 1;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -12;
lvlr_15();
}
break;
case 2 :
pf[1] = 1204 + (200 * plr[1]);
px[1] = (px[1] + 1) - (2 * plr[1]);
px[1] = px[1] + icem;
py[1]++;
plt1[1]++;
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 0;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 0;
}
if ((((Key.isDown(kright) and (plr[1] == 0)) or (Key.isDown(kleft) and (plr[1] == 1))) and (pact == 0)) and (plt1[1] > 1)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
if ((Key.isDown(kjump) and Key.isDown(kdown)) and (pact == 0)) {
pd[1] = 4;
pact = 1;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -12;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 3 :
if ((fpace > 0) and (fpace < 4)) {
pf[1] = 1206 + (200 * plr[1]);
}
if ((fpace > 3) and (fpace < 7)) {
pf[1] = 1208 + (200 * plr[1]);
}
if ((fpace > 6) and (fpace < 10)) {
pf[1] = 1210 + (200 * plr[1]);
}
if ((fpace > 9) and (fpace < 13)) {
pf[1] = 1208 + (200 * plr[1]);
}
if ((fpace == 1) or (fpace == 7)) {
Spawn_SmokePuff();
}
px[1] = (px[1] + 11) - (22 * plr[1]);
if (icem != 0) {
if ((plr[1] == 0) and (icem < 0)) {
px[1] = px[1] + icem;
}
if ((plr[1] == 1) and (icem > 0)) {
px[1] = px[1] + icem;
}
}
py[1]++;
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if ((Key.isDown(kleft) and (plr[1] == 1)) or (Key.isDown(kright) and (plr[1] == 0))) {
plt1[1] = 0;
}
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
plt1[1] = 50;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
plt1[1] = 50;
}
if ((Key.isDown(kjump) and Key.isDown(kdown)) and (pact == 0)) {
pd[1] = 4;
pact = 1;
plt1[1] = 0;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 31;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -12;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 4 :
pf[1] = 1212 + (200 * plr[1]);
if (((fpace == 1) or (fpace == 5)) or (fpace == 9)) {
Spawn_MegaRushAfter1();
}
px[1] = (px[1] + 17) - (34 * plr[1]);
if (lvlr[13] > 0) {
px[1] = (px[1] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
plt1[1]++;
if (Key.isDown(kdown) and Key.isDown(kjump)) {
plt1[1] = 0;
pact = 1;
}
if (Key.isDown(kleft) and (plr[1] == 0)) {
plr[1] = 1;
pd[1] = 1;
}
if (Key.isDown(kright) and (plr[1] == 1)) {
plr[1] = 0;
pd[1] = 1;
}
if (Key.isDown(kjump) and (pact == 0)) {
pd[1] = 35;
pact = 1;
py[1] = py[1] - 2;
plt1[1] = -12;
lvlr_15();
}
if (plt1[1] > 2) {
pd[1] = 1;
}
break;
case 31 :
pf[1] = 1222 + (200 * plr[1]);
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = (px[1] + 11) - (22 * plr[1]);
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = (px[1] + 11) - (22 * plr[1]);
}
if (Key.isDown(kjump) and (plt1[1] < -4)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 11) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 11) {
plt1[1] = 11;
}
}
break;
case 32 :
if (plt1[1] < 3) {
pf[1] = 1224 + (200 * plr[1]);
} else {
pf[1] = 1226 + (200 * plr[1]);
}
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (pls1[1] < 1) {
if (Key.isDown(kup)) {
plt1[1]++;
py[1] = py[1] - 4;
}
if (Key.isDown(kdown)) {
plt1[1]++;
py[1] = py[1] + 4;
}
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] > 5) {
plt1[1] = 0;
}
break;
case 33 :
pf[1] = 1228 + (200 * plr[1]);
if (Key.isDown(kleft)) {
plr[1] = 1;
}
if (Key.isDown(kright)) {
plr[1] = 0;
}
if (Key.isDown(kup)) {
plt1[1]--;
}
if (Key.isDown(kdown)) {
plt1[1]++;
}
if (Key.isDown(kjump)) {
pd[1] = 31;
plt1[1] = 1;
}
if (plt1[1] < 1) {
pd[1] = 1;
plt1[1] = 0;
pf[1] = 2 + (200 * plr[1]);
py[1] = py[1] - 30;
}
if (plt1[1] > 5) {
pd[1] = 32;
plt1[1] = 0;
py[1] = py[1] + 20;
}
break;
case 34 :
pf[1] = 1230 + (200 * plr[1]);
px[1] = (px[1] - 1) + (2 * plr[1]);
plt1[1]++;
pcharge = 0;
inv = 20 + (4 * lvlr[14]);
if (plt1[1] > 6) {
pd[1] = 31;
plt1[1] = 0;
lvlr_5();
}
break;
case 35 :
if (plt1[1] < 1) {
pf[1] = 1214 + (200 * plr[1]);
if (((fpace == 1) or (fpace == 5)) or (fpace == 9)) {
Spawn_MegaRushAfter2();
}
} else {
pf[1] = 1216 + (200 * plr[1]);
if (((fpace == 1) or (fpace == 5)) or (fpace == 9)) {
Spawn_MegaRushAfter3();
}
}
py[1] = py[1] + plt1[1];
if (Key.isDown(kleft)) {
px[1] = (px[1] + 13) - (26 * plr[1]);
if (plr[1] == 0) {
pd[1] = 31;
}
}
if (Key.isDown(kright)) {
px[1] = (px[1] + 13) - (26 * plr[1]);
if (plr[1] == 1) {
pd[1] = 31;
}
}
if (Key.isDown(kjump) and (plt1[1] < -4)) {
plt1[1] = plt1[1] - 1.6;
}
if (plt1[1] < 11) {
plt1[1] = plt1[1] + 2;
if (plt1[1] > 11) {
plt1[1] = 11;
}
}
break;
case 40 :
pf[1] = 1220 + (200 * plr[1]);
py[1] = py[1] - 10;
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (plt2[1] > 0) {
plt2[1]--;
}
if (Key.isDown(kleft)) {
plr[1] = 1;
px[1] = px[1] - 3;
}
if (Key.isDown(kright)) {
plr[1] = 0;
px[1] = px[1] + 3;
}
plt1[1]--;
if (plt1[1] < -60) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
pf[1] = 1220 + (200 * plr[1]);
px[1] = (px[1] + 10) - (20 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 2;
if (Key.isDown(kup)) {
py[1] = py[1] - 3;
}
if (Key.isDown(kdown)) {
py[1] = py[1] + 3;
}
plt1[1]--;
if (plt1[1] >= -60) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
mega_chargeup();
if ((pls1[1] < 2) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
isn();
if (Key.isDown(kattack) and (sc[snumber] == 0)) {
pls1[1] = 8;
pan = 1;
}
}
if ((pls1[1] > 0) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 32)) or (pd[1] == 33))) {
mega_attackframes();
if (pls1[1] == 7) {
if (sc[snumber] == 0) {
SND_LilShot1.start();
switch (bustert) {
case 1 :
MegaBuster_Spawn();
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
break;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
break;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
sy[snumber] = py[1] - 30;
if (((((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) or (pd[1] == 35)) or (pd[1] == 36)) {
sy[snumber] = py[1] - 40;
}
slr[snumber] = plr[1];
}
isn();
pcharge = 0;
} else {
pls1[1] = 7;
}
}
pls1[1]--;
}
blocktouchtest();
if ((bttop < 1) and (pd[1] < 31)) {
switch (pd[1]) {
case 1 :
pd[1] = 31;
plt1[1] = 1;
break;
case 2 :
pd[1] = 31;
plt1[1] = 1;
break;
case 3 :
pd[1] = 31;
plt1[1] = 1;
break;
case 4 :
pd[1] = 35;
plt1[1] = 1;
}
}
if (bttop > 0) {
py[1] = bttop2;
switch (pd[1]) {
case 31 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 35 :
if (plt1[1] > 0) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 4;
plt1[1] = 0;
pact = 1;
Spawn_SmokePuff();
}
plt1[1] = 0;
}
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 1;
if (Key.isDown(kleft) or Key.isDown(kright)) {
pd[1] = 3;
plt1[1] = 0;
pact = 1;
}
plt1[1] = 0;
}
}
if ((btbottom > 0) and ((plt1[1] < 1) and ((((pd[1] == 31) or (pd[1] == 35)) or (pd[1] == 40)) or (pd[1] == 41)))) {
switch (pd[1]) {
case 31 :
pd[1] = 31;
plt1[1] = 1;
break;
case 35 :
pd[1] = 35;
plt1[1] = 1;
break;
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
py[1] = btbottom2;
}
if (btleft > 0) {
px[1] = btleft2;
switch (pd[1]) {
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if (btright > 0) {
px[1] = btright2;
switch (pd[1]) {
case 40 :
if (plt2[1] < 1) {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 41 :
if (plt2[1] >= 1) {
break;
}
pd[1] = 31;
plt1[1] = 0;
}
}
if ((btleft > 0) and (btright > 0)) {
pll[1] = -1;
pd[1] = 100;
}
if (bxm != 0) {
px[1] = px[1] + bxm;
}
if (Key.isDown(kpause)) {
gotoAndPlay (381);
}
}
function control_helper_rush() {
switch (pd[11]) {
case 0 :
pf[11] = 1;
px[11] = -2000;
py[11] = 2000;
break;
case 1 :
pf[11] = 32 + (20 * plr[11]);
if ((px[1] + 45) < px[11]) {
plr[11] = 1;
}
if ((px[1] - 45) > px[11]) {
plr[11] = 0;
}
switch (plr[11]) {
case 0 :
if ((px[1] - 60) > px[11]) {
pd[11] = 3;
plt1[11] = 0;
}
break;
case 1 :
if ((px[1] + 60) >= px[11]) {
break;
}
pd[11] = 3;
plt1[11] = 0;
}
if (((py[1] < (py[11] - 39)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
pd[11] = 31;
plt1[11] = -14;
if (py[1] < (py[11] - 79)) {
plt1[11] = -17;
}
if (lvlr[15] > 0) {
plt1[11]--;
}
py[11] = py[11] - 4;
}
if (((pls1[1] == 5) and (pls1[11] < 1)) and (sc[snumber] == 0)) {
if ((px[11] < (px[1] + 50)) and (px[11] > (px[1] - 50))) {
plr[11] = plr[1];
}
SND_LilShot2.start();
sc[snumber] = 146;
sx[snumber] = (px[11] + 30) - (60 * plr[11]);
sy[snumber] = py[11] - 28;
ssx[snumber] = 10;
ssy[snumber] = 10;
slr[snumber] = plr[11];
slt1[snumber] = 6;
pls1[11] = 20;
}
break;
case 3 :
pf[11] = (34 + Math.round(plt1[11] / 2)) + (20 * plr[11]);
plt1[11]++;
if (plt1[11] > 14) {
plt1[11] = 0;
}
px[11] = (px[11] + 8) - (16 * plr[11]);
if (lvlr[13] > 0) {
px[11] = (px[11] + (lvlr[13] / 2)) - (plr[1] * lvlr[13]);
}
switch (plr[11]) {
case 0 :
if ((px[1] - 40) < px[11]) {
pd[11] = 1;
}
break;
case 1 :
if ((px[1] + 40) <= px[11]) {
break;
}
pd[11] = 1;
}
if (((py[1] < (py[11] - 39)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
pd[11] = 31;
plt1[11] = -14;
if (py[1] < (py[11] - 79)) {
plt1[11] = -17;
}
if (lvlr[15] > 0) {
plt1[11]--;
}
py[11] = py[11] - 4;
}
if (((pls1[1] == 5) and (pls1[11] < 1)) and (sc[snumber] == 0)) {
SND_LilShot2.start();
sc[snumber] = 146;
sx[snumber] = (px[11] + 30) - (60 * plr[11]);
sy[snumber] = py[11] - 28;
ssx[snumber] = 10;
ssy[snumber] = 10;
slr[snumber] = plr[11];
slt1[snumber] = 6;
pls1[11] = 20;
}
break;
case 31 :
pf[11] = 42 + (20 * plr[11]);
px[11] = (px[11] + 4) - (8 * plr[11]);
py[11] = py[11] + plt1[11];
if ((px[1] + 10) < px[11]) {
px[11] = px[11] - 4;
}
if ((px[1] - 10) > px[11]) {
px[11] = px[11] + 4;
}
switch (plr[11]) {
case 0 :
if ((px[1] + 25) < px[11]) {
plr[11] = 1;
}
break;
case 1 :
if ((px[1] - 25) <= px[11]) {
break;
}
plr[11] = 0;
}
if (plt1[11] < 10) {
plt1[11]++;
}
if (!(((pls1[1] == 5) and (pls1[11] < 1)) and (sc[snumber] == 0))) {
break;
}
if (((px[1] + 25) > px[11]) and ((px[1] - 25) < px[11])) {
plr[11] = plr[1];
}
SND_LilShot2.start();
sc[snumber] = 146;
sx[snumber] = (px[11] + 30) - (60 * plr[11]);
sy[snumber] = py[11] - 28;
ssx[snumber] = 10;
ssy[snumber] = 10;
slr[snumber] = plr[11];
slt1[snumber] = 6;
pls1[11] = 20;
}
if (pls1[11] > 0) {
pls1[11]--;
if (pls1[11] > (30 - (3 * lvlr[2]))) {
pf[11] = pf[11] + 100;
}
}
if ((Key.isDown(kaux) and (pll[11] > 99)) and ((pc[1] == 1) or (pc[1] == 4))) {
plt2[11] = 3;
}
if (plt2[11] > 0) {
plt2[11]--;
if (plt2[11] == 0) {
SND_Shing3.start();
Spawn_HelperTransform();
if (pc[1] == 1) {
pc[1] = 4;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
} else if (pc[1] == 4) {
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
pd[11] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
pd[11] = 31;
}
px[11] = px[1];
py[11] = py[1];
pll[11] = 0;
}
}
}
blocktouchtest();
if ((bttop < 1) and (pd[11] < 31)) {
pd[11] = 31;
plt1[11] = 1;
}
if (bttop > 0) {
py[11] = bttop2;
if (pd[11] == 31) {
pd[11] = 1;
}
}
if (btbottom > 0) {
py[11] = btbottom2;
if (pd[11] == 31) {
plt1[11] = 1;
}
}
if (btleft > 0) {
px[11] = btleft2;
}
if (btright > 0) {
px[11] = btright2;
}
h4 = 0;
if ((bttop > 0) and (btbottom > 0)) {
h4++;
}
if (((((((px[11] + 255) < camx) or ((px[11] - 250) > camx)) or ((py[11] + 260) < camy)) or ((py[11] - 120) > camy)) and ((pd[1] < 32) or (pd[1] > 34))) and ((pd[1] < 40) or (pd[1] > 41))) {
h4++;
}
if (h4 > 0) {
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
px[11] = px[1];
py[11] = py[1];
}
if (bxm != 0) {
px[11] = px[11] + bxm;
}
if (pll[11] < 100) {
pll[11]++;
if ((lvlr[9] > 0) and (pll[11] < 100)) {
pll[11]++;
}
}
}
Frame 15
function Mega_Buster_lil() {
sf[h1] = 2 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 10) - lvlr[1];
} else if (((phit[h2] > 0) and (pg[h2] < 2)) and (lvlr[3] > 0)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 2;
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
sreset();
}
}
function Mega_Buster_mid() {
sf[h1] = 6 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 22) - (44 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 20) - (2 * lvlr[1]);
if (pll[h2] > 0) {
h4 = 1;
}
} else {
h4 = 1;
}
} else if (((phit[h2] > 0) and (pg[h2] < 2)) and (lvlr[3] > 0)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 4;
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_Buster_max() {
sf[h1] = 10 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 26) - (52 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 40) - (3 * lvlr[1]);
if (pll[h2] > 0) {
h4 = 1;
}
} else {
h4 = 1;
}
} else if (((phit[h2] > 0) and (pg[h2] < 2)) and (lvlr[3] > 0)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 6;
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_Buster_Dark() {
sf[h1] = 1300 + (2 * slr[h1]);
h4 = 14;
if (lvlr[3] > 0) {
h4 = 17;
}
s8waymove();
if (slt1[h1] == 1) {
switch (slr[h1]) {
case 0 :
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] - 1;
break;
case 1 :
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] + 1;
break;
case 2 :
sx[h1] = sx[h1] - 3;
sy[h1] = sy[h1] + 1;
break;
case 3 :
sx[h1] = sx[h1] + 3;
sy[h1] = sy[h1] - 1;
break;
case 4 :
sx[h1] = sx[h1] - 3;
sy[h1] = sy[h1] - 1;
break;
case 5 :
sx[h1] = sx[h1] - 3;
sy[h1] = sy[h1] + 1;
break;
case 6 :
sx[h1] = sx[h1] + 3;
sy[h1] = sy[h1] - 1;
break;
case 7 :
sx[h1] = sx[h1] + 3;
sy[h1] = sy[h1] + 1;
}
}
if (slt1[h1] == 2) {
switch (slr[h1]) {
case 0 :
sy[h1] = sy[h1] + 3;
sx[h1] = sx[h1] - 1;
break;
case 1 :
sy[h1] = sy[h1] + 3;
sx[h1] = sx[h1] + 1;
break;
case 2 :
sx[h1] = sx[h1] + 3;
sy[h1] = sy[h1] + 1;
break;
case 3 :
sx[h1] = sx[h1] - 3;
sy[h1] = sy[h1] - 1;
break;
case 4 :
sy[h1] = sy[h1] + 3;
sx[h1] = sx[h1] + 1;
break;
case 5 :
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] + 1;
break;
case 6 :
sy[h1] = sy[h1] + 3;
sx[h1] = sx[h1] - 1;
break;
case 7 :
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] - 1;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = ((pll[h2] - 8) - lvlr[1]) - (2 * lvlr[3]);
}
h2++;
}
sreset();
}
}
function Mega_Buster_Lion() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1318;
break;
case 2 :
sf[h1] = 1320 + (2 * slr[h1]);
break;
case 3 :
sf[h1] = 1324 + (2 * slr[h1]);
}
sx[h1] = (sx[h1] + 15) - (30 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4();
switch (sd[h1]) {
case 1 :
pll[h2] = (pll[h2] - 2) - (lvlr[1] / 2);
break;
case 2 :
pll[h2] = (pll[h2] - 3) - (lvlr[1] / 2);
break;
case 3 :
pll[h2] = (pll[h2] - 5) - (lvlr[1] / 2);
}
}
h2++;
}
}
slt1[h1]++;
if (slt1[h1] > (12 + (4 * lvlr[3]))) {
sreset();
}
}
function Mega_FireStorm1() {
sf[h1] = 20 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 16) - (32 * slr[h1]);
if ((fpace == 1) or (fpace == 7)) {
Spawn_DustFire2();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4();
pll[h2] = (pll[h2] - 8) - lvlr[10];
}
h2++;
}
}
}
function Mega_FireStorm2() {
sf[h1] = 24;
sx[h1] = px[1] + (Math.sin(slr[h1]) * 50);
sy[h1] = (py[1] - 26) + (Math.cos(slr[h1]) * 50);
if ((fpace == 3) or (fpace == 9)) {
Spawn_DustFire2();
}
if (plr[1] == 0) {
slr[h1] = slr[h1] + 0.75;
} else {
slr[h1] = slr[h1] - 0.75;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4();
pll[h2] = pll[h2] - 5;
}
h2++;
}
}
sd[h1]++;
if (sd[h1] > (30 + (3 * lvlr[10]))) {
sreset();
}
}
function Mega_HyperBomb() {
switch (sd[h1]) {
case 1 :
sf[h1] = 28 + (2 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 12) {
SND_Explosion1.start();
sd[h1] = 3;
slt1[h1] = 0;
}
break;
case 3 :
sf[h1] = 32 + slt1[h1];
slt1[h1]++;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
}
h2++;
}
}
if (slt1[h1] > 16) {
sreset();
}
break;
case 31 :
sf[h1] = 28 + (2 * slr[h1]);
if (slt2[h1] > 0) {
sx[h1] = (sx[h1] + 6) - (12 * slr[h1]);
} else {
sx[h1] = (sx[h1] + 2) - (4 * slr[h1]);
}
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 12) {
break;
}
slt1[h1]++;
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = 1;
}
if (bttop > 0) {
if (!(sd[h1] === 31)) {
} else if (slt2[h1] < 1) {
if (slt1[h1] > 0) {
sd[h1] = 1;
slt1[h1] = 0;
}
} else {
slt2[h1]--;
slt1[h1] = -6;
}
sy[h1] = bttop2;
}
if (((btbottom > 0) and (slt1[h1] < 1)) and (sd[h1] > 30)) {
sd[h1] = 31;
slt1[h1] = 1;
sy[h1] = btbottom2;
}
if (btleft == 1) {
sx[h1] = btleft2;
slr[h1] = 1;
}
if (btright == 1) {
sx[h1] = btright2;
slr[h1] = 0;
}
}
function Mega_IceSlasher() {
sf[h1] = 52 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
if ((fpace == 1) or (fpace == 7)) {
Spawn_DustSparkle2();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2();
pice[h2] = 30 + (3 * lvlr[10]);
}
if (pg[h2] > 0) {
sreset();
}
h2++;
}
}
}
function Mega_RollingCutter() {
sf[h1] = 58 + (2 * slr[h1]);
switch (sd[h1]) {
case 1 :
sx[h1] = slt3[h1] + (Math.sin(slt2[h1]) * 100);
sy[h1] = slt4[h1] + (Math.cos(slt2[h1]) * 75);
if (slr[h1] == 0) {
slt2[h1] = slt2[h1] - 0.15;
} else {
slt2[h1] = slt2[h1] + 0.15;
}
slt1[h1]++;
if (slt1[h1] > 26) {
sd[h1] = 2;
slt1[h1] = 0;
}
break;
case 2 :
if ((px[1] - 20) < sx[h1]) {
sx[h1] = sx[h1] - 10;
}
if ((px[1] + 20) > sx[h1]) {
sx[h1] = sx[h1] + 10;
}
if ((py[1] - 45) < sy[h1]) {
sy[h1] = sy[h1] - 10;
}
if ((py[1] - 5) > sy[h1]) {
sy[h1] = sy[h1] + 10;
}
if (((((sx[h1] + 10) > (px[1] - 25)) and ((sx[h1] - 10) < (px[1] + 25))) and ((sy[h1] + 10) > (py[1] - 50))) and ((sy[h1] - 10) < (py[1] - 15))) {
sreset();
}
slt1[h1]++;
if (slt1[h1] <= 20) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 3);
Spawn_Mega_BusterSus5();
}
if (pg[h2] > 0) {
sreset();
}
h2++;
}
}
}
function Mega_StrongArm() {
switch (sd[h1]) {
case 3 :
sf[h1] = 66;
sx[h1] = (sx[h1] + 16) - (32 * slr[h1]);
sy[h1] = sy[h1] + (4 * slt1[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 8) - lvlr[10];
}
h2++;
}
sreset();
}
return;
case 31 :
sf[h1] = 64;
sx[h1] = (sx[h1] + 8) - (16 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
slt2[h1] = 1;
}
blockshottest();
if (!(((((bttop > 0) or (btbottom > 0)) or (btleft > 0)) or (btright > 0)) or (slt2[h1] > 0))) {
break;
}
sd[h1] = 3;
sy[h1] = sy[h1] - 16;
slt1[h1] = 0;
ssx[h1] = 10;
ssy[h1] = 10;
sc[snumber] = 26;
sx[snumber] = (sx[h1] - 20) + (20 * random(3));
sy[snumber] = sy[h1] - 20;
ssx[snumber] = 10;
ssy[snumber] = 10;
slr[snumber] = slr[h1];
sd[snumber] = 3;
slt1[snumber] = -2;
isn();
sc[snumber] = 26;
sx[snumber] = (sx[h1] - 20) + (20 * random(3));
sy[snumber] = sy[h1] + 20;
ssx[snumber] = 10;
ssy[snumber] = 10;
slr[snumber] = slr[h1];
sd[snumber] = 3;
slt1[snumber] = 2;
isn();
}
}
function Mega_ThunderBeam() {
switch (sd[h1]) {
case 1 :
sf[h1] = 70 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 20) - (40 * slr[h1]);
break;
case 2 :
sf[h1] = 74;
sy[h1] = (sy[h1] - 16) + (32 * slr[h1]);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
Spawn_Mega_BusterSus1();
}
h2++;
}
}
}
function Mega_AirShooter() {
sf[h1] = 78 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1]);
sy[h1] = sy[h1] - slt1[h1];
if (slt1[h1] < 12) {
slt1[h1] = slt1[h1] + 0.4;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 10;
}
h2++;
}
sreset();
}
}
function Mega_AtomicFire_Min() {
sf[h1] = 84;
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 15) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_AtomicFire_Mid() {
sf[h1] = 86;
sx[h1] = (sx[h1] + 20) - (40 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 25) - (2 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_AtomicFire_Max() {
sf[h1] = 88;
sx[h1] = (sx[h1] + 24) - (48 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 45) - (3 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_BubbleLead() {
switch (sd[h1]) {
case 1 :
sf[h1] = 92 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 8) - (16 * slr[h1]);
break;
case 31 :
sf[h1] = 92 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 3) - (6 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 8) {
slt1[h1]++;
}
break;
case 32 :
sf[h1] = 92 + (2 * slr[h1]);
sy[h1] = sy[h1] + 8;
if (slt1[h1] >= 8) {
break;
}
slt1[h1]++;
}
shittest();
h4 = 0;
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
if ((pll[h2] > 0) or (pg[h2] > 0)) {
h4++;
}
}
h2++;
}
}
if (h4 > 0) {
sreset();
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop == 0) and (sd[h1] < 31)) {
sd[h1] = 32;
slt1[h1] = 0;
}
if (bttop > 0) {
if (((sd[h1] == 31) or (sd[h1] == 32)) and (slt1[h1] > 0)) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if ((btleft > 0) or (btright > 0)) {
switch (sd[h1]) {
case 1 :
sreset();
break;
case 31 :
if (btleft > 0) {
sx[h1] = btleft2;
}
if (btright <= 0) {
break;
}
sx[h1] = btright2;
}
}
if ((btbottom > 0) and (sd[h1] > 30)) {
sd[h1] = 32;
sy[h1] = btbottom2;
}
}
function Mega_CrashBomber() {
switch (sd[h1]) {
case 1 :
sf[h1] = 106 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 14) {
sreset();
}
break;
case 31 :
sf[h1] = 102 + (2 * slr[h1]);
slt1[h1]++;
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
if (slt1[h1] > 36) {
SND_Explosion3.start();
sd[h1] = 1;
slt1[h1] = 0;
}
break;
case 32 :
sf[h1] = 98 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1]);
if (slt2[h1] >= 10) {
break;
}
slt2[h1]++;
}
shittest();
if (sd[h1] > 30) {
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Explosion3.start();
sd[h1] = 1;
slt1[h1] = 0;
}
h2++;
}
}
} else if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
}
h2++;
}
}
if (sd[h1] > 30) {
blockshottest();
if ((bxm != 0) and (sd[h1] == 31)) {
sx[h1] = sx[h1] + bxm;
}
if ((bym != 0) and (sd[h1] == 31)) {
sy[h1] = sy[h1] + bym;
}
if (btleft > 0) {
sx[h1] = btleft2;
if (sd[h1] == 32) {
SND_Deflect3.start();
sd[h1] = 31;
slt1[h1] = 0;
}
}
if (btright > 0) {
sx[h1] = btright2;
if (sd[h1] == 32) {
SND_Deflect3.start();
sd[h1] = 31;
slt1[h1] = 0;
}
}
if (bttop > 0) {
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
}
}
function Mega_LeafShield() {
sf[h1] = 124;
switch (sd[h1]) {
case 1 :
sx[h1] = px[1];
sy[h1] = py[1] - 25;
if (weapt < 2) {
weapt = 2;
}
slt1[h1]++;
if (slt1[h1] > 75) {
sreset();
}
if (Key.isDown(kright)) {
sd[h1] = 2;
slr[h1] = 0;
}
if (Key.isDown(kleft)) {
sd[h1] = 2;
slr[h1] = 1;
}
if (Key.isDown(kup)) {
sd[h1] = 2;
slr[h1] = 2;
}
if (Key.isDown(kdown)) {
sd[h1] = 2;
slr[h1] = 3;
}
break;
case 2 :
switch (slr[h1]) {
case 0 :
sx[h1] = sx[h1] + 10;
break;
case 1 :
sx[h1] = sx[h1] - 10;
break;
case 2 :
sy[h1] = sy[h1] - 10;
break;
case 3 :
sy[h1] = sy[h1] + 10;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit3();
pll[h2] = (pll[h2] - 30) - (2 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_MetalBlade() {
if ((((slr[h1] == 0) or (slr[h1] == 2)) or (slr[h1] == 4)) or (slr[h1] == 5)) {
sf[h1] = 128;
} else {
sf[h1] = 130;
}
h4 = 9;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_QuickBoomerang() {
sf[h1] = 134 + (2 * slr[h1]);
sx[h1] = slt3[h1] + (Math.sin(slt2[h1]) * 120);
sy[h1] = slt4[h1] + (Math.cos(slt2[h1]) * 40);
if (slr[h1] == 0) {
slt2[h1] = slt2[h1] - 0.2;
} else {
slt2[h1] = slt2[h1] + 0.2;
}
slt1[h1]++;
if (slt1[h1] > 30) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - 15;
} else if (lvlr[10] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - lvlr[10];
}
}
h2++;
}
sreset();
}
}
function Mega_TimeStopper() {
sf[h1] = 140;
if (weapt < 2) {
weapt = 2;
}
sx[h1] = (camx - 240) + random(480);
sy[h1] = (camy - 240) + random(340);
if (pls1[1] > 0) {
pls1[1] = 0;
}
ffroze = 2;
if (((fpace == 2) or (fpace == 6)) or (fpace == 10)) {
fflash = 11;
}
if (((fpace == 3) or (fpace == 7)) or (fpace == 11)) {
fflash = 1;
}
h2 = 2;
while (h2 <= 10) {
if (((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (py[h2] > (camy - 280))) {
pice[h2] = 3;
}
h2++;
}
slt1[h1]++;
if (slt1[h1] > (50 + (8 * lvlr[10]))) {
sreset();
}
}
function Mega_GeminiLaser() {
switch (sd[h1]) {
case 1 :
if ((slr[h1] == 5) or (slr[h1] == 6)) {
sf[h1] = 146;
}
if ((slr[h1] == 4) or (slr[h1] == 7)) {
sf[h1] = 148;
}
if ((slr[h1] == 0) or (slr[h1] == 1)) {
sf[h1] = 144;
}
h4 = 10;
s8waymove();
break;
case 2 :
sf[h1] = 150;
slt2[h1]++;
if (slt2[h1] <= 3) {
break;
}
sd[h1] = 1;
slr[h1] = slt3[h1];
slt1[h1]++;
}
blockshottest();
if (bttop > 0) {
sy[h1] = bttop2 - 2;
if (sd[h1] == 1) {
sd[h1] = 2;
slt2[h1] = 0;
switch (slr[h1]) {
case 0 :
slt3[h1] = 4;
break;
case 1 :
slt3[h1] = 6;
break;
case 4 :
slt3[h1] = 4;
break;
case 5 :
slt3[h1] = 4;
break;
case 6 :
slt3[h1] = 6;
break;
case 7 :
slt3[h1] = 6;
}
}
}
if (btbottom > 0) {
sy[h1] = btbottom2;
if (sd[h1] == 1) {
sd[h1] = 2;
slt2[h1] = 0;
switch (slr[h1]) {
case 0 :
slt3[h1] = 5;
break;
case 1 :
slt3[h1] = 7;
break;
case 4 :
slt3[h1] = 5;
break;
case 5 :
slt3[h1] = 5;
break;
case 6 :
slt3[h1] = 7;
break;
case 7 :
slt3[h1] = 7;
}
}
}
if (btleft > 0) {
sx[h1] = btleft2;
if (sd[h1] == 1) {
sd[h1] = 2;
slt2[h1] = 0;
switch (slr[h1]) {
case 0 :
slt3[h1] = 6;
break;
case 1 :
slt3[h1] = 6;
break;
case 4 :
slt3[h1] = 6;
break;
case 5 :
slt3[h1] = 7;
break;
case 6 :
slt3[h1] = 6;
break;
case 7 :
slt3[h1] = 7;
}
}
}
if (btright > 0) {
sx[h1] = btright2;
if (sd[h1] == 1) {
sd[h1] = 2;
slt2[h1] = 0;
switch (slr[h1]) {
case 0 :
slt3[h1] = 4;
break;
case 1 :
slt3[h1] = 4;
break;
case 4 :
slt3[h1] = 4;
break;
case 5 :
slt3[h1] = 5;
break;
case 6 :
slt3[h1] = 4;
break;
case 7 :
slt3[h1] = 5;
}
}
}
if (slt1[h1] > (6 + lvlr[10])) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = pll[h2] - 20;
SND_Hit2.start();
Spawn_Mega_BusterHit2();
}
h2++;
}
sreset();
}
}
function Mega_HardKnuckle() {
sf[h1] = 154 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt1[h1]) - ((2 * slt1[h1]) * slr[h1]);
if (Key.isDown(kup)) {
sy[h1] = (sy[h1] - 1.5) - (lvlr[10] / 2);
}
if (Key.isDown(kdown)) {
sy[h1] = (sy[h1] + 1.5) + (lvlr[10] / 2);
}
if (slt1[h1] < 10) {
if (slt1[h1] < 3) {
slt1[h1] = slt1[h1] + 0.5;
} else {
slt1[h1]++;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 25;
} else if (lvlr[10] > 0) {
h4 = random(100);
if (h4 < (20 * lvlr[10])) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 25;
}
}
}
h2++;
}
sreset();
}
}
function Mega_MagnetMissile() {
switch (sd[h1]) {
case 1 :
sf[h1] = 160 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
h2 = 2;
while (h2 <= 10) {
if (((pc[h2] > 0) and (pc[h2] < 501)) and (pll[h2] > 0)) {
if (((sx[h1] + ssx[h1]) > px[h2]) and ((sx[h1] - ssx[h1]) < px[h2])) {
sd[h1] = 2;
if ((py[h2] - 10) < sy[h1]) {
slr[h1] = 2;
} else {
slr[h1] = 3;
}
}
}
h2++;
}
break;
case 2 :
sf[h1] = 160 + (2 * slr[h1]);
sy[h1] = (sy[h1] - 90) + (36 * slr[h1]);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 15) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_NeedleCannon() {
sf[h1] = 170 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 17) - (34 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = pll[h2] - 15;
}
h2++;
}
sreset();
}
}
function Mega_SearchSnake() {
blockshottest();
if ((bxm != 0) and (((sd[h1] == 1) or (sd[h1] == 32)) or (sd[h1] == 33))) {
sx[h1] = sx[h1] + bxm;
}
if ((bym != 0) and ((sd[h1] == 33) or (sd[h1] == 32))) {
sy[h1] = sy[h1] + bym;
}
if (((btleft < 1) and (btright < 1)) and (sd[h1] == 33)) {
sd[h1] = 1;
}
if (btleft > 0) {
if ((sd[h1] == 1) or (sd[h1] == 31)) {
sd[h1] = 33;
}
sx[h1] = btleft2;
}
if (btright > 0) {
if ((sd[h1] == 1) or (sd[h1] == 31)) {
sd[h1] = 33;
}
sx[h1] = btright2;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 32;
}
if ((bttop > 0) and (sd[h1] < 33)) {
sd[h1] = 1;
sy[h1] = bttop2;
}
if ((btbottom > 0) and (sd[h1] != 32)) {
slt3[h1]++;
sy[h1] = btbottom2;
}
switch (sd[h1]) {
case 1 :
sf[h1] = 176 + (6 * slr[h1]);
sx[h1] = (sx[h1] + 9) - (18 * slr[h1]);
break;
case 31 :
sf[h1] = 176 + (6 * slr[h1]);
sx[h1] = (sx[h1] + 5) - (10 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
break;
case 32 :
sf[h1] = 180 + (6 * slr[h1]);
sx[h1] = (sx[h1] - 1) + (2 * slr[h1]);
sy[h1] = sy[h1] + 9;
break;
case 33 :
sf[h1] = 178 + (6 * slr[h1]);
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
sy[h1] = sy[h1] - 9;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit3();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
h2++;
}
sreset();
}
slt2[h1]++;
if ((slt2[h1] > 100) or (slt3[h1] > 2)) {
sreset();
}
}
function Mega_ShadowBlade() {
if ((((slr[h1] == 0) or (slr[h1] == 2)) or (slt[h1] == 4)) or (slt[h1] == 5)) {
sf[h1] = 190;
} else {
sf[h1] = 192;
}
h4 = 10;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 15) - lvlr[10];
}
h2++;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] > (11 + (2 * lvlr[10]))) {
slt2[h1]++;
slt1[h1] = 1;
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
break;
case 1 :
slr[h1] = 0;
break;
case 2 :
slr[h1] = 3;
break;
case 3 :
slr[h1] = 2;
break;
case 4 :
slr[h1] = 7;
break;
case 5 :
slr[h1] = 6;
break;
case 6 :
slr[h1] = 5;
break;
case 7 :
slr[h1] = 4;
}
}
if (slt2[h1] > 1) {
sreset();
}
}
function Mega_SparkShock() {
switch (sd[h1]) {
case 1 :
sx[h1] = (sx[h1] + 17) - (34 * slr[h1]);
sf[h1] = 196;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] > 0) {
sreset();
} else {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = pll[h2] - (2 * lvlr[10]);
sd[h1] = 2;
slt1[h1] = 0;
slt2[h1] = h2;
}
}
h2++;
}
}
return;
case 2 :
sf[h1] = 198;
sx[h1] = px[slt2[h1]] + (Math.sin(slt1[h1] * ((slr[h1] * 2) - 1)) * Math.round(pxs[slt2[h1]] / 2));
sy[h1] = (py[slt2[h1]] - Math.round(pys[slt2[h1]] / 2)) + (Math.cos(slt1[h1] * ((slr[h1] * 2) - 1)) * Math.round(pys[slt2[h1]] / 2));
slt1[h1] = slt1[h1] + 2;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pice[h2] = 2;
}
h2++;
}
}
if (slt1[h1] <= 40) {
break;
}
sreset();
}
}
function Mega_TopSpin() {
pan = 42;
if (weapt < 2) {
weapt = 2;
}
pls1[1] = 4;
pmeleeattackhit();
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 2);
}
h2++;
}
slt1[h1]++;
if (((slt1[h1] > 7) or (pan != 42)) or (pd[1] == 34)) {
sreset();
}
}
function Mega_DiveMissile() {
switch (slr[h1]) {
case 0 :
sf[h1] = 202;
break;
case 1 :
sf[h1] = 204;
break;
case 2 :
sf[h1] = 206;
break;
case 3 :
sf[h1] = 208;
break;
case 4 :
sf[h1] = 210;
break;
case 5 :
sf[h1] = 212;
break;
case 6 :
sf[h1] = 214;
break;
case 7 :
sf[h1] = 216;
}
p8wayhome();
h4 = 6;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
h2++;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] > 75) {
sreset();
}
}
function Mega_DrillBomb() {
switch (sd[h1]) {
case 1 :
sf[h1] = 224 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
break;
case 31 :
sf[h1] = 220 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
if (slt1[h1] > 0) {
slt1[h1]--;
}
if (!(((Key.isDown(kspec1) and (weap1 == 44)) or (Key.isDown(kspec2) and (weap2 == 44))) and (slt1[h1] < 1))) {
break;
}
SND_Explosion1.start();
sd[h1] = 1;
slt1[h1] = 0;
}
shittest();
if (sd[h1] > 30) {
blockshottest();
if ((((btleft > 0) or (btright > 0)) or (bttop > 0)) or (btbottom > 0)) {
SND_Explosion1.start();
sd[h1] = 1;
slt1[h1] = 0;
}
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Explosion1.start();
sd[h1] = 1;
slt1[h1] = 0;
}
h2++;
}
}
} else if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
}
h2++;
}
}
}
function Mega_DustCrusher() {
switch (sd[h1]) {
case 1 :
sf[h1] = 244 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 10) - lvlr[10];
} else {
h4 = 1;
SND_Deflect1.start();
}
}
h2++;
}
if (h4 > 0) {
sc[snumber] = 48;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] - 10;
sd[snumber] = 2;
slr[snumber] = 4;
slt2[snumber] = 0;
slt1[snumber] = 248 + random(4);
isn();
sc[snumber] = 48;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] + 10;
sd[snumber] = 2;
slr[snumber] = 5;
slt2[snumber] = 0;
slt1[snumber] = 248 + random(4);
isn();
sc[snumber] = 48;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] - 10;
sd[snumber] = 2;
slr[snumber] = 6;
slt2[snumber] = 0;
slt1[snumber] = 248 + random(4);
isn();
sc[snumber] = 48;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] + 10;
sd[snumber] = 2;
slr[snumber] = 7;
slt2[snumber] = 0;
slt1[snumber] = 248 + random(4);
isn();
sreset();
}
}
return;
case 2 :
sf[h1] = slt1[h1];
h4 = 8;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 5) - (lvlr[10] / 2);
}
h2++;
}
sreset();
}
slt2[h1]++;
if (slt2[h1] <= 10) {
break;
}
sreset();
}
}
function Mega_FlashStopper() {
sf[h1] = 254;
sx[h1] = (camx - 240) + random(480);
sy[h1] = (camy - 240) + random(340);
ffroze = 2;
if (((fpace == 2) or (fpace == 6)) or (fpace == 10)) {
fflash = 12;
}
if (((fpace == 3) or (fpace == 7)) or (fpace == 11)) {
fflash = 1;
}
h2 = 2;
while (h2 <= 10) {
if (((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (py[h2] > (camy - 280))) {
pice[h2] = 2;
}
h2++;
}
slt1[h1]++;
if (slt1[h1] > 35) {
sreset();
}
}
function Mega_PharaohShotMin() {
sf[h1] = 258;
h4 = 10;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_PharaohShotMid() {
sf[h1] = 260;
h4 = 12;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 20) - (2 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_PharaohShotMax() {
sf[h1] = 262;
h4 = 14;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 40) - (3 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_PharaohShotFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if (sc[h2] == 53) {
h4++;
}
h2++;
}
}
function Mega_PharaohShotCh() {
sf[h1] = 264 + Math.round(slt1[h1] / 5);
sx[h1] = sx[h1] - ((sx[h1] - px[1]) / 5);
sy[h1] = py[1] - 70;
if (slt1[h1] < 60) {
slt1[h1]++;
}
if ((weapt < 1) and ((Key.isDown(kspec1) and (weap1 == 47)) or (Key.isDown(kspec2) and (weap2 == 47)))) {
if (slt1[h1] < 41) {
SND_LilLaser2.start();
sc[h1] = 50;
}
if ((slt1[h1] > 40) and (slt1[h1] < 60)) {
SND_Missile1.start();
sc[h1] = 51;
}
if (slt1[h1] > 59) {
SND_Missile1.start();
sc[h1] = 52;
}
if (weapt < 5) {
weapt = 5;
}
sx[h1] = (px[1] + 24) - (48 * plr[1]);
sy[h1] = py[1] - 26;
ssx[h1] = 14;
ssy[h1] = 28;
slr[h1] = plr[1];
if (Key.isDown(kup)) {
if (plr[1] == 0) {
slr[h1] = 4;
} else {
slr[h1] = 6;
}
}
if (Key.isDown(kdown)) {
if (plr[1] == 0) {
slr[h1] = 5;
} else {
slr[h1] = 7;
}
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
if (slt1[h1] < 41) {
pll[h2] = pll[h2] - 10;
}
if ((slt1[h1] > 40) and (slt1[h1] < 60)) {
pll[h2] = pll[h2] - 20;
}
if (slt1[h1] > 59) {
pll[h2] = pll[h2] - 40;
}
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_RainFlush() {
switch (sd[h1]) {
case 1 :
sf[h1] = 280;
sy[h1] = sy[h1] - 15;
if (sy[h1] < (camy - 260)) {
SND_Splash2.start();
sd[h1] = 2;
slt1[h1] = 0;
}
return;
case 2 :
sf[h1] = 1;
sx[h1] = camx;
sy[h1] = camy;
slt1[h1]++;
if (slt1[h1] > 10) {
sd[h1] = 3;
slt1[h1] = 0;
}
return;
case 3 :
sf[h1] = 282;
sx[h1] = camx;
sy[h1] = camy;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2b();
pll[h2]--;
}
h2++;
}
slt1[h1]++;
if (slt1[h1] <= (40 + (2 * lvlr[10]))) {
break;
}
sreset();
}
}
function Mega_RingBoomerang() {
if (sx[h1] > px[1]) {
sf[h1] = 286;
} else {
sf[h1] = 288;
}
switch (sd[h1]) {
case 1 :
sx[h1] = (sx[h1] + 16) - (32 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 10) {
sd[h1] = 2;
}
break;
case 2 :
sd[h1] = 3;
slt1[h1] = 0;
slt2[h1] = Math.round((sx[h1] - px[1]) / 10);
slt3[h1] = Math.round(((sy[h1] - py[1]) + 20) / 10);
slt4[h1]++;
break;
case 3 :
slt1[h1]++;
sx[h1] = sx[h1] - slt2[h1];
sy[h1] = sy[h1] - slt3[h1];
if (slt1[h1] > 9) {
sd[h1] = 2;
}
if (!(((((sx[h1] + 10) > (px[1] - 10)) and ((sx[h1] - 10) < (px[1] + 10))) and ((sy[h1] + 10) > (py[1] - 35))) and ((sy[h1] - 10) < (py[1] - 15)))) {
break;
}
sreset();
}
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 519) and (pc[h2] < 529)) {
if ((((px[h2] < (sx[h1] + 30)) and (px[h2] > (sx[h1] - 30))) and ((py[h2] - 12) > (sy[h1] - 30))) and ((py[h2] - 12) < (sy[h1] + 30))) {
pd[h2] = 32;
plt1[h2] = 0;
plt2[h2] = 0;
}
}
h2++;
}
if (slt4[h1] > 3) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
h2++;
}
sreset();
}
}
function Mega_SkullBarrier() {
if (weapt < 2) {
weapt = 2;
}
sf[h1] = 292 + (2 * plr[1]);
sx[h1] = px[1];
sy[h1] = py[1] - 25;
slt1[h1]++;
pg[1] = 2;
if (slt1[h1] > 75) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit5b();
if (pg[h2] < 1) {
pll[h2] = pll[h2] - 25;
} else {
pll[h2] = (pll[h2] - 5) - (3 * lvlr[10]);
slt1[h1]++;
}
}
h2++;
}
sreset();
}
}
function Mega_ChargeKick() {
pan = 51;
pmeleeattackhit();
sx[h1] = px[1];
sy[h1] = py[1];
pg[1] = 2;
if (((fpace == 1) or (fpace == 5)) or (face == 9)) {
Spawn_SmokePuff2();
}
if (lvlr[10] > 2) {
pg[1] = 2;
}
if ((Key.isDown(kspec1) and (weap1 == 51)) or (Key.isDown(kspec2) and (weap2 == 52))) {
plt1[1] = 2;
slt1[h1] = 2;
}
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = pll[h2] - 5;
}
h2++;
}
slt1[h1]++;
if ((((slt1[h1] > 7) or (pan != 51)) or (pd[1] != 5)) or (Key.isDown(kjump) and (pact == 0))) {
sreset();
pd[1] = 4;
plt1[1] = 2;
}
}
function Mega_CrystalEye() {
switch (sd[h1]) {
case 1 :
sf[h1] = 298 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 20) - lvlr[10];
}
sreset();
h2++;
}
}
blockshottest();
h4 = 0;
if (bttop == 1) {
sy[h1] = bttop2;
h4++;
}
if (btbottom == 1) {
sy[h1] = btbottom2;
h4++;
}
if (btleft == 1) {
sx[h1] = btleft2;
h4++;
}
if (btright == 1) {
sx[h1] = btright2;
h4++;
}
if (h4 > 0) {
SND_Deflect3.start();
sc[snumber] = 58;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
ssx[snumber] = 16;
ssy[snumber] = 32;
if (slr[h1] == 0) {
slr[snumber] = 1;
} else {
slr[snumber] = 0;
}
slt1[snumber] = 0;
isn();
sc[snumber] = 58;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
ssx[snumber] = 16;
ssy[snumber] = 32;
if (slr[h1] == 0) {
slr[snumber] = 6;
} else {
slr[snumber] = 4;
}
slt1[snumber] = 0;
isn();
sc[snumber] = 58;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
ssx[snumber] = 16;
ssy[snumber] = 32;
if (slr[h1] == 0) {
slr[snumber] = 7;
} else {
slr[snumber] = 5;
}
slt1[snumber] = 0;
isn();
sreset();
}
return;
case 2 :
if (((slr[h1] == 0) or (slr[h1] == 4)) or (slr[h1] == 5)) {
sf[h1] = 302;
} else {
sf[h1] = 304;
}
h4 = 8;
s8waymove();
blockshottest();
if (bttop == 1) {
if (slr[h1] == 5) {
slr[h1] = 4;
} else {
slr[h1] = 6;
}
sy[h1] = bttop2;
}
if (btbottom == 1) {
if (slr[h1] == 4) {
slr[h1] = 5;
} else {
slr[h1] = 7;
}
sy[h1] = btbottom2;
}
if (btleft == 1) {
if ((slr[h1] == 4) or (slr[h1] == 0)) {
slr[h1] = 6;
} else {
slr[h1] = 7;
}
sx[h1] = btleft2;
}
if (btright == 1) {
if ((slr[h1] == 6) or (slr[h1] == 1)) {
slr[h1] = 4;
} else {
slr[h1] = 5;
}
sx[h1] = btright2;
}
slt1[h1]++;
if (slt1[h1] > (50 + (4 * lvlr[10]))) {
sreset();
}
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h4 = 0;
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
h4 = 1;
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 10;
}
sreset();
h2++;
};
}
}
function Mega_GravityHold() {
switch (sd[h1]) {
case 1 :
sf[h1] = 308 + slt1[h1];
if (weapt < 2) {
weapt = 2;
}
sx[h1] = camx;
sy[h1] = camy;
slt1[h1]++;
if (slt1[h1] > 5) {
sd[h1] = 2;
slt1[h1] = 0;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit5b();
pll[h2] = (pll[h2] - 20) - lvlr[10];
}
h2++;
}
}
return;
case 2 :
sf[h1] = 314;
sx[h1] = camx;
sy[h1] = camy;
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 500) and (pc[h2] < 510)) {
py[h2] = py[h2] - 15;
}
h2++;
}
slt1[h1]++;
if (slt1[h1] <= 20) {
break;
}
sreset();
}
}
function Mega_GyroAttack() {
switch (sd[h1]) {
case 1 :
sf[h1] = 318 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
if (Key.isDown(kup)) {
sd[h1] = 2;
slr[h1] = 2;
}
if (Key.isDown(kdown)) {
sd[h1] = 2;
slr[h1] = 3;
}
break;
case 2 :
sf[h1] = 314 + (2 * slr[h1]);
if (slr[h1] == 2) {
sy[h1] = sy[h1] - 10;
} else {
sy[h1] = sy[h1] + 10;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit3();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
h2++;
}
sreset();
}
}
function Mega_NapalmBomb() {
switch (sd[h1]) {
case 1 :
sf[h1] = 328 + slt1[h1];
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4b();
pll[h2] = pll[h2] - 3;
}
h2++;
}
}
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
return;
case 31 :
sf[h1] = 324 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 5) - (10 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Explosion2.start();
sd[h1] = 1;
slt1[h1] = 0;
}
h2++;
}
}
blockshottest();
if (bttop > 0) {
if ((sd[h1] == 31) and (slt1[h1] > 0)) {
slt1[h1] = -6;
}
sy[h1] = bttop2;
}
if (btleft == 1) {
slr[h1] = 1;
sx[h1] = btleft2;
}
if (btright == 1) {
slr[h1] = 0;
sx[h1] = btright2;
}
if (btbottom == 1) {
sy[h1] = btbottom2;
slt1[h1] = 1;
}
slt2[h1]++;
if (slt2[h1] <= (70 + (5 * lvlr[10]))) {
break;
}
SND_Explosion2.start();
sd[h1] = 1;
slt1[h1] = 0;
}
}
function Mega_PowerStone() {
if (sd[h1] < 20) {
sf[h1] = 348;
}
if ((sd[h1] > 19) and (sd[h1] < 40)) {
sf[h1] = 350;
}
if (sd[h1] > 39) {
sf[h1] = 352;
}
sx[h1] = slt3[h1] + (Math.sin((slt2[h1] + slt1[h1]) * slr[h1]) * (sd[h1] * 3.5));
sy[h1] = slt4[h1] + (Math.cos((slt2[h1] + slt1[h1]) * slr[h1]) * (sd[h1] * 3.5));
slt1[h1] = slt1[h1] + 0.15;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - 15;
}
h2++;
}
sreset();
}
sd[h1]++;
if (sd[h1] > 60) {
sreset();
}
}
function Mega_StarCrashFire() {
h2 = 1;
while (h2 <= 30) {
h4 = 0;
if ((sc[h2] == 63) and (sd[h2] == 1)) {
h4++;
}
h2++;
}
}
function Mega_StarCrash() {
sf[h1] = 356;
switch (sd[h1]) {
case 1 :
sx[h1] = px[1];
sy[h1] = py[1] - 25;
slt1[h1]++;
pg[1] = 2;
if (weapt < 2) {
weapt = 2;
}
if (slt1[h1] > 75) {
sreset();
}
if ((weapt < 3) and ((Key.isDown(kspec1) and (weap1 == 57)) or (Key.isDown(kspec2) and (weap2 == 57)))) {
sd[h1] = 2;
sx[h1] = px[1];
sy[h1] = py[1] - 25;
slr[h1] = plr[1];
ssx[h1] = 45;
ssy[h1] = 90;
if (weapt < 5) {
weapt = 5;
}
}
break;
case 2 :
sx[h1] = (sx[h1] + 9) - (18 * slr[h1]);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 20) - (2 * lvlr[10]);
}
sreset();
h2++;
}
}
}
function Mega_WaterWave() {
switch (sd[h1]) {
case 1 :
sf[h1] = 360 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 31 :
sf[h1] = 364;
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 10) {
break;
}
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
Spawn_Mega_BusterHit2b();
pll[h2] = pll[h2] - 15;
} else if (lvlr[10] > 0) {
Spawn_Mega_BusterHit2b();
pll[h2] = pll[h2] - (2 * lvlr[10]);
}
}
h2++;
}
sreset();
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = 1;
}
if (bttop > 0) {
if ((slt1[h1] > 0) and (sd[h1] == 31)) {
sd[h1] = 1;
slt1[h1] = 1;
}
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
if ((btleft == 1) or (btright == 1)) {
sreset();
}
}
function Mega_BlizzardAttack() {
sf[h1] = 368;
h4 = 6;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_CentaurFlash() {
if (sx[h1] < px[1]) {
sf[h1] = 372;
} else {
sf[h1] = 374;
}
if (weapt < 2) {
weapt = 2;
}
sx[h1] = camx + (Math.sin(slt1[h1]) * (6 * slt1[h1]));
sy[h1] = (camy - 70) + (Math.cos(slt1[h1]) * (4.5 * slt1[h1]));
pls1[1] = 2;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
pice[h2] = 2;
}
h2++;
}
switch (sd[h1]) {
case 1 :
if ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10)) {
fflash = 13;
} else {
fflash = 1;
}
slt1[h1]++;
if (slt1[h1] > 16) {
sd[h1] = 2;
}
return;
case 2 :
if ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10)) {
fflash = 14;
} else {
fflash = 1;
}
slt1[h1]++;
if (slt1[h1] <= 30) {
break;
}
h2 = 2;
while (h2 <= 10) {
if (((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) {
if (pg[h2] < 1) {
Spawn_Mega_BusterHit3b();
pll[h2] = pll[h2] - 25;
} else if (lvlr[10] > 0) {
Spawn_Mega_BusterHit3b();
pll[h2] = pll[h2] - (2 * lvlr[10]);
}
}
h2++;
}
sreset();
}
}
function Mega_FlameBlast() {
switch (sd[h1]) {
case 1 :
sf[h1] = 380 + Math.round(slt1[h1] / 2);
slt1[h1]++;
break;
case 2 :
sf[h1] = 390 + Math.round(slt1[h1] / 2);
sx[h1] = sx[h1] + 4;
slt1[h1]++;
break;
case 3 :
sf[h1] = 400 + Math.round(slt1[h1] / 2);
sx[h1] = sx[h1] - 4;
slt1[h1]++;
break;
case 31 :
sf[h1] = 378;
sx[h1] = (sx[h1] + 9) - (18 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if ((fpace == 1) or (fpace == 7)) {
Spawn_DustFire2();
}
if (slt1[h1] >= 10) {
break;
}
slt1[h1]++;
}
shittest();
h4 = 0;
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (sd[h1] == 31) {
h4 = 1;
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
} else if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4b();
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 3);
}
h2++;
}
}
if (h4 > 0) {
sreset();
}
blockshottest();
if ((bxm != 0) and (sd[h1] < 4)) {
sx[h1] = sx[h1] + bxm;
}
if ((bym != 0) and ((sd[h1] == 2) or (sd[h1] == 3))) {
sy[h1] = sy[h1] + bym;
}
if (bttop > 0) {
if (sd[h1] == 31) {
SND_Fire1.start();
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (btleft > 0) {
if (sd[h1] == 31) {
SND_Fire1.start();
sd[h1] = 2;
slt1[h1] = 0;
}
sx[h1] = btleft2;
}
if (btright > 0) {
if (sd[h1] == 31) {
SND_Fire1.start();
sd[h1] = 3;
slt1[h1] = 0;
}
sx[h1] = btright2;
}
if ((btbottom == 1) or (slt1[h1] > 16)) {
sreset();
}
}
function Mega_KnightCrusher() {
if (((slr[h1] == 0) or (slr[h1] == 4)) or (slr[h1] == 5)) {
sf[h1] = 412;
} else {
sf[h1] = 414;
}
switch (sd[h1]) {
case 1 :
h4 = 6;
s8waymove();
slt1[h1]++;
if (slt1[h1] > 13) {
switch (slr[h1]) {
case 0 :
sd[h1] = 3;
slt2[h1] = 0;
slt3[h1] = (sx[h1] + 10) - (20 * slr[h1]);
slt4[h1] = sy[h1] - 60;
break;
case 1 :
sd[h1] = 3;
slt2[h1] = 0;
slt3[h1] = (sx[h1] + 10) - (20 * slr[h1]);
slt4[h1] = sy[h1] - 60;
break;
case 4 :
sd[h1] = 6;
slt2[h1] = 0.95;
slt3[h1] = sx[h1] - 40;
slt4[h1] = sy[h1] - 50;
break;
case 5 :
sd[h1] = 7;
slt2[h1] = 5.75;
slt3[h1] = sx[h1] + 40;
slt4[h1] = sy[h1] - 50;
break;
case 6 :
sd[h1] = 6;
slt2[h1] = 0.95;
slt3[h1] = sx[h1] + 40;
slt4[h1] = sy[h1] - 50;
break;
case 7 :
sd[h1] = 7;
slt2[h1] = 5.75;
slt3[h1] = sx[h1] - 40;
slt4[h1] = sy[h1] - 50;
}
slt1[h1] = 0;
}
break;
case 2 :
h4 = 6;
s8waymove();
slt1[h1]++;
if (slt1[h1] > 13) {
switch (slr[h1]) {
case 0 :
sd[h1] = 4;
slt2[h1] = 3.15;
slt3[h1] = (sx[h1] + 10) - (20 * slr[h1]);
slt4[h1] = sy[h1] + 60;
break;
case 1 :
sd[h1] = 4;
slt2[h1] = 3.15;
slt3[h1] = (sx[h1] + 10) - (20 * slr[h1]);
slt4[h1] = sy[h1] + 60;
break;
case 4 :
sd[h1] = 6;
slt2[h1] = 0.95;
slt3[h1] = sx[h1] - 40;
slt4[h1] = sy[h1] - 50;
break;
case 5 :
sd[h1] = 7;
slt2[h1] = 5.75;
slt3[h1] = sx[h1] + 40;
slt4[h1] = sy[h1] - 50;
break;
case 6 :
sd[h1] = 6;
slt2[h1] = 0.95;
slt3[h1] = sx[h1] + 40;
slt4[h1] = sy[h1] - 50;
break;
case 7 :
sd[h1] = 7;
slt2[h1] = 5.75;
slt3[h1] = sx[h1] - 40;
slt4[h1] = sy[h1] - 50;
}
slt1[h1] = 0;
}
break;
case 3 :
switch (slr[h1]) {
case 0 :
h4 = 1;
break;
case 1 :
h4 = -1;
}
sx[h1] = slt3[h1] + (Math.sin(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
sy[h1] = slt4[h1] + (Math.cos(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
slt1[h1]++;
if (slt1[h1] > 20) {
sd[h1] = 5;
slt1[h1] = 0;
}
break;
case 4 :
switch (slr[h1]) {
case 0 :
h4 = -1;
break;
case 1 :
h4 = 1;
}
sx[h1] = slt3[h1] + (Math.sin(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
sy[h1] = slt4[h1] + (Math.cos(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
slt1[h1]++;
if (slt1[h1] > 20) {
sd[h1] = 5;
slt1[h1] = 0;
}
break;
case 5 :
if ((px[1] - 20) < sx[h1]) {
sx[h1] = sx[h1] - 10;
}
if ((px[1] + 20) > sx[h1]) {
sx[h1] = sx[h1] + 10;
}
if ((py[1] - 45) < sy[h1]) {
sy[h1] = sy[h1] - 10;
}
if ((py[1] - 5) > sy[h1]) {
sy[h1] = sy[h1] + 10;
}
if (((((sx[h1] + 10) > (px[1] - 25)) and ((sx[h1] - 10) < (px[1] + 25))) and ((sy[h1] + 10) > (py[1] - 50))) and ((sy[h1] - 10) < (py[1] - 15))) {
sreset();
}
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
break;
case 6 :
switch (slr[h1]) {
case 4 :
h4 = 1;
break;
case 6 :
h4 = -1;
}
sx[h1] = slt3[h1] + (Math.sin(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
sy[h1] = slt4[h1] + (Math.cos(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
slt1[h1]++;
if (slt1[h1] > 20) {
sd[h1] = 5;
slt1[h1] = 0;
}
break;
case 7 :
switch (slr[h1]) {
case 5 :
h4 = 1;
break;
case 7 :
h4 = -1;
}
sx[h1] = slt3[h1] + (Math.sin(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
sy[h1] = slt4[h1] + (Math.cos(((slt1[h1] / 5) + slt2[h1]) * h4) * 60);
slt1[h1]++;
if (slt1[h1] <= 20) {
break;
}
sd[h1] = 5;
slt1[h1] = 0;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 20) - (2 * lvlr[10]);
}
sreset();
h2++;
}
}
}
function Mega_PlantBarrier() {
sf[h1] = 418 + (2 * plr[1]);
sx[h1] = px[1];
sy[h1] = py[1] - 25;
slt1[h1]++;
pg[1] = 2;
if (weapt < 2) {
weapt = 2;
}
if (slt1[h1] > 70) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4b();
pll[h2] = pll[h2] - 30;
pg[1] = pg[1] + (3 * lvlr[10]);
if (pll[h2] > 0) {
h4 = 1;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_SilverTomahawk() {
sf[h1] = 424 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] > -8) {
slt1[h1]--;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 15;
}
h2++;
}
sreset();
}
}
function Mega_WindStorm() {
if (sd[h1] < 50) {
sf[h1] = 430 + (2 * slr[h1]);
} else {
sf[h1] = 1;
}
switch (sd[h1]) {
case 1 :
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 31 :
sx[h1] = (sx[h1] + 5) - (10 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 6) {
slt1[h1]++;
}
break;
case 50 :
slt1[h1]++;
h2 = 2;
while (h2 <= 10) {
if ((((pc[h2] > 500) and (pc[h2] < 510)) and (px[h2] > (sx[h1] - 50))) and (px[h2] < (sx[h1] + 50))) {
py[h2] = py[h2] - 8;
}
h2++;
}
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 519) and (pc[h2] < 529)) {
if (((px[h2] < (sx[h1] + 30)) and (px[h2] > (sx[h1] - 30))) and ((py[h2] - 10) < (sy[h1] + 20))) {
pd[h2] = 32;
plt1[h2] = 0;
plt2[h2] = 0;
}
}
h2++;
}
if (slt[h1] <= 33) {
break;
}
sreset();
}
shittest();
if ((((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) and (sd[h1] < 50)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
if (pll[h2] > 0) {
sreset();
}
if (pll[h2] < 1) {
sd[h1] = 50;
}
} else {
sreset();
}
}
h2++;
}
}
if (sd[h1] < 50) {
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = 0;
}
if (bttop > 0) {
if ((slt1[h1] > 0) and (sd[h1] == 31)) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (((btleft == 1) or (btright == 1)) or (btbottom == 1)) {
sreset();
}
}
}
function Mega_YamatoSpear() {
sf[h1] = 436 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 20) - (40 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - 15;
if (pll[h2] > 0) {
h4 = 1;
}
} else if (lvlr[10] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - lvlr[10];
if (pll[h2] > 0) {
h4 = 1;
}
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
}
function Mega_DangerWrap() {
switch (sd[h1]) {
case 1 :
sf[h1] = 446;
slt1[h1]++;
if (slt1[h1] > 50) {
SND_Explosion1.start();
sd[h1] = 2;
sy[h1] = sy[h1] - 16;
slt1[h1] = 0;
}
break;
case 2 :
sf[h1] = 448 + Math.round(slt1[h1] / 2);
slt1[h1]++;
if (slt1[h1] > 12) {
sreset();
}
break;
case 31 :
sf[h1] = 442;
sx[h1] = ((sx[h1] + 3) + slt2[h1]) - (6 * (slr[h1] + slt2[h1]));
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] > -8) {
slt1[h1]--;
}
break;
case 32 :
sf[h1] = 444;
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 12) {
break;
}
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if ((sd[h1] == 2) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4b();
pll[h2] = (pll[h2] - 3) - (lvlr[10] / 3);
} else {
SND_Explosion1.start();
sd[h1] = 2;
if (sd[h1] == 1) {
sy[h1] = sy[h1] - 16;
}
slt1[h1] = 0;
}
}
h2++;
}
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop > 0) and (sd[h1] != 2)) {
if (sd[h1] == 32) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if ((((btleft == 1) or (btright == 1)) or (btbottom == 1)) and (sd[h1] != 2)) {
sd[h1] = 2;
slt1[h1] = 0;
}
}
function Mega_FreezeCracker() {
switch (sd[h1]) {
case 1 :
sf[h1] = 458;
h4 = 6;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 20;
}
sreset();
h2++;
}
}
if ((fpace == 1) or (fpace == 7)) {
Spawn_DustSparkle2();
}
blockshottest();
h4 = 0;
if (bttop == 1) {
sy[h1] = bttop2;
h4++;
}
if (btbottom == 1) {
sy[h1] = btbottom2;
h4++;
}
if (btleft == 1) {
sx[h1] = btleft2;
h4++;
}
if (btright == 1) {
sx[h1] = btright2;
h4++;
}
if (h4 > 0) {
SND_Deflect3.start();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 0;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 1;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 4;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 6;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 5;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 7;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
if (lvlr[10] > 1) {
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 2;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
if (lvlr[10] > 2) {
sc[snumber] = 74;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 8;
sd[snumber] = 2;
slr[snumber] = 3;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
}
}
sreset();
}
return;
case 2 :
sf[h1] = 460;
h4 = 4;
s8waymove();
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h4 = 0;
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 10;
}
sreset();
h2++;
};
}
}
function Mega_JunkShieldFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 75) and ((sd[h2] == 1) or (sd[h2] == 2))) {
h4++;
}
h2++;
}
}
function Mega_JunkShield() {
switch (sd[h1]) {
case 1 :
sf[h1] = (464 + slt1[h1]) + (6 * slr[h1]);
if (weapt < 2) {
weapt = 2;
}
sx[h1] = px[1];
sy[h1] = py[1] - 25;
pls1[1] = 3;
slt1[h1]++;
if (slt1[h1] > 6) {
sc[snumber] = 75;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = slr[h1];
slt1[snumber] = 3.6 - slr[h1];
slt2[snumber] = 0;
slt3[snumber] = 0;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 75;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = slr[h1];
slt1[snumber] = 1.3 + (3.6 * slr[h1]);
slt2[snumber] = 0;
slt3[snumber] = 0;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sc[snumber] = 75;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = slr[h1];
slt1[snumber] = 5.4 - (4.5 * slr[h1]);
slt2[snumber] = 0;
slt3[snumber] = 0;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
sreset();
}
break;
case 2 :
sf[h1] = 476;
if (weapt < 2) {
weapt = 2;
}
sx[h1] = px[1] + (Math.sin(slt1[h1]) * 60);
sy[h1] = (py[1] - 25) + (Math.cos(slt1[h1]) * 60);
slt1[h1] = slt1[h1] + (0.2 * ((slr[h1] * -2) + 1));
slt2[h1]++;
if ((slt2[h1] > 120) or (slt3[h1] > (10 + lvlr[10]))) {
sreset();
}
if ((weapt < 3) and ((Key.isDown(kspec1) and (weap1 == 69)) or (Key.isDown(kspec2) and (weap2 == 69)))) {
sd[h1] = 3;
slt2[h1] = 60;
slt3[h1] = px[1];
slt4[h1] = py[1] - 25;
}
break;
case 3 :
sf[h1] = 476;
sx[h1] = slt3[h1] + (Math.sin(slt1[h1]) * slt2[h1]);
sy[h1] = slt4[h1] + (Math.cos(slt1[h1]) * slt2[h1]);
slt2[h1] = slt2[h1] + 12;
}
shittest();
if ((((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) and (sd[h1] > 1)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (sd[h1] != 3) {
if (pg[h2] < 1) {
Spawn_Mega_BusterSus5();
pll[h2] = pll[h2] - 4;
slt3[h1]++;
} else {
sreset();
}
} else {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 15;
}
sreset();
}
}
h2++;
}
}
}
function Mega_NoiseCrushFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 76) and (sd[h2] == 3)) {
h4++;
}
h2++;
}
}
function Mega_NoiseCrush() {
switch (sd[h1]) {
case 1 :
sf[h1] = 482 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
if (slt2[h1] < 1) {
if ((((((sx[h1] - ssx[h1]) < (px[1] + 10)) and ((sx[h1] + ssx[h1]) > (px[1] - 10))) and (sy[h1] > (py[1] - pys[1]))) and ((sy[h1] - ssy[h1]) < py[1])) and (slt1[h1] > 0)) {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 76) and (sd[h2] == 3)) {
sreset();
} else {
h4 = 1;
}
h2++;
}
if (h4 > 0) {
SND_Health2.start();
sd[h1] = 3;
slt1[h1] = 0;
sx[h1] = px[1];
sy[h1] = py[1] - 25;
weapt = 5;
}
}
} else {
slt2[h1]--;
}
break;
case 2 :
sf[h1] = 486 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 3 :
sf[h1] = 480;
sx[h1] = px[1];
sy[h1] = py[1] - 25;
slt1[h1]++;
if (slt1[h1] > 150) {
sreset();
}
if (!(((Key.isDown(kspec1) and (weap1 == 70)) or (Key.isDown(kspec2) and (weap2 == 70))) and (weapt < 1))) {
break;
}
SND_Bounce4.start();
sd[h1] = 2;
sx[h1] = (px[1] + 16) - (32 * plr[1]);
mega_shoty();
sy[h1] = sy[h1] + 16;
slr[h1] = plr[1];
slt1[h1] = 0;
ssx[h1] = 36;
ssy[h1] = 36;
weapt = 20;
}
shittest();
if (sd[h1] < 3) {
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
h4 = 0;
if (phit[h2] > 0) {
if (sd[h1] == 1) {
if (lvlr[10] < 1) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 15;
if (pll[h2] > 0) {
h4 = 1;
}
}
} else {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - lvlr[10];
if (pll[h2] > 0) {
h4 = 1;
}
}
} else {
Spawn_Mega_BusterHit2();
if (pg[h2] < 1) {
pll[h2] = (pll[h2] - 35) - (2 * lvlr[10]);
} else {
pll[h2] = pll[h2] - 15;
}
if (pll[h2] > 0) {
h4 = 1;
}
}
}
if (h4 > 0) {
sreset();
}
h2++;
}
}
}
if (sd[h1] < 3) {
blockshottest();
if (btleft > 0) {
sx[h1] = btleft2;
slr[h1] = 1;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
if (btright > 0) {
sx[h1] = btright2;
slr[h1] = 0;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
if (bttop > 0) {
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
}
}
function Mega_ScorchWheel() {
switch (sd[h1]) {
case 1 :
sf[h1] = 496 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 31 :
sf[h1] = 492 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 5) - (10 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
slt1[h1]++;
if (slt1[h1] < 10) {
slt1[h1]++;
}
break;
case 32 :
sf[h1] = 492 + (2 * slr[h1]);
sx[h1] = px[1];
sy[h1] = py[1];
slr[h1] = plr[1];
slt1[h1]++;
if ((Key.isDown(kspec1) and (weap1 == 71)) or (Key.isDown(kspec2) and (weap2 == 71))) {
slt1[h1] = slt1[h1] - 0.9;
pls1[1] = 5;
if ((lvlr[10] > 0) and ((fpace == 1) or (fpace == 7))) {
ple = ple + lvlr[10];
if (ple > 1000) {
ple = 1000;
}
}
}
if (slt1[h1] <= 7) {
break;
}
sd[h1] = 31;
slt1[h1] = -5;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4b();
pll[h2] = pll[h2] - 20;
if (pll[h2] > 0) {
h4++;
}
}
h2++;
}
if (h4 > 0) {
sreset();
}
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = 0;
}
if (bttop > 0) {
if (sd[h1] == 31) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if ((((btleft == 1) or (btright == 1)) or (btbottom == 1)) and (sd[h1] != 32)) {
sreset();
}
}
function Mega_SlashClaw() {
sf[h1] = (502 + slt1[h1]) + (10 * plr[1]);
sx[h1] = (px[1] + 30) - (60 * plr[1]);
sy[h1] = py[1] - 30;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if ((pg[h2] < 1) and (lvlr[10] < 1)) {
Spawn_Mega_BusterSus3b();
pll[h2] = pll[h2] - 6;
} else {
Spawn_Mega_BusterSus3b();
pll[h2] = pll[h2] - (lvlr[10] / 3);
}
}
h2++;
}
}
pls1[1] = 3;
slt1[h1]++;
if ((((slt1[h1] > 9) or (pd[1] == 34)) or (pd[1] == 4)) or (pd[1] == 5)) {
sreset();
}
}
function Mega_ThunderStrike() {
switch (sd[h1]) {
case 1 :
sf[h1] = 524 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 20) - (40 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = (pll[h2] - 10) - (2 * lvlr[10]);
Spawn_DustSpark13();
}
h2++;
}
SND_Zap2.start();
sc[snumber] = 79;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 10;
sd[snumber] = 2;
slr[snumber] = 0;
isn();
sc[snumber] = 79;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] + 10;
sd[snumber] = 2;
slr[snumber] = 1;
isn();
sreset();
}
return;
case 2 :
sf[h1] = 530 - (2 * slr[h1]);
sy[h1] = (sy[h1] + 20) - (40 * slr[h1]);
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = (pll[h2] - 2) - (lvlr[10] / 5);
Spawn_Mega_BusterSus1();
}
h2++;
};
}
}
function Mega_WildCoil() {
sy[h1] = sy[h1] + slt1[h1];
switch (sd[h1]) {
case 31 :
sf[h1] = 534;
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
if (slt1[h1] < 10) {
slt1[h1] = slt1[h1] + 2;
}
break;
case 32 :
sf[h1] = 536;
sx[h1] = (sx[h1] + 6) - (12 * slr[h1]);
if (slt1[h1] < 10) {
slt1[h1] = slt1[h1] + 2;
}
break;
case 33 :
sf[h1] = 538;
sx[h1] = (sx[h1] + 6) - (12 * slr[h1]);
if (slt1[h1] < 10) {
slt1[h1] = slt1[h1] + 2;
}
break;
case 34 :
sf[h1] = 540;
sx[h1] = (sx[h1] + 7) - (14 * slr[h1]);
if (slt1[h1] >= 10) {
break;
}
slt1[h1] = slt1[h1] + 2;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 15;
if ((sd[h1] == 32) or (sd[h1] == 34)) {
pll[h2] = pll[h2] - 10;
}
}
sreset();
h2++;
}
}
blockshottest();
if (bttop > 0) {
if (slt1[h1] > 0) {
SND_JumpLand2.start();
if ((sd[h1] == 32) or (sd[h1] == 34)) {
slt1[h1] = -20;
} else {
slt1[h1] = -15;
}
if (sd[h1] == 31) {
sd[h1] = 33;
}
if (sd[h1] == 32) {
sd[h1] = 34;
}
}
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
slt1[h1] = 1;
}
if ((btleft > 0) or (btright > 0)) {
sreset();
}
}
function Mega_AstroCrush() {
switch (sd[h1]) {
case 1 :
if (weapt < 2) {
weapt = 2;
}
if (((((slt1[h1] == 1) or (slt1[h1] == 9)) or (slt1[h1] == 17)) or (slt1[h1] == 26)) or (slt1[h1] == 35)) {
SND_Missile1.start();
sc[snumber] = 81;
sd[snumber] = 2;
sx[snumber] = (camx - 270) + random(480);
sy[snumber] = camy - 300;
slt1[snumber] = 0 + random(10);
ssx[snumber] = 50;
ssy[snumber] = 40;
isn();
}
sf[h1] = 1;
slt1[h1]++;
if (slt1[h1] > (30 + (2 * lvlr[10]))) {
sreset();
}
return;
case 2 :
sf[h1] = 544;
sx[h1] = sx[h1] + 8;
sy[h1] = sy[h1] + 20;
slt1[h1]++;
if (slt1[h1] > 17) {
SND_Explosion6.start();
fflash = 15;
sd[h1] = 3;
slt1[h1] = 0;
}
return;
case 3 :
sf[h1] = 546 + slt1[h1];
slt1[h1]++;
fflash = 1;
if (slt1[h1] <= 5) {
break;
}
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4b();
pll[h2] = pll[h2] - 8;
}
h2++;
}
sreset();
}
}
function Mega_FlameSword() {
sf[h1] = (554 + slt1[h1]) + (10 * plr[1]);
sx[h1] = px[1];
sy[h1] = py[1];
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus4b();
pll[h2] = (pll[h2] - 6) - (lvlr[10] / 3);
}
h2++;
}
}
pls1[1] = 3;
slt1[h1]++;
if ((((slt1[h1] > 9) or (pd[1] == 34)) or (pd[1] == 4)) or (pd[1] == 5)) {
sreset();
}
}
function Mega_FlashBomb() {
switch (sd[h1]) {
case 1 :
sf[h1] = 576 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 2 :
sf[h1] = 580;
slt1[h1]++;
if (slt1[h1] <= (30 + (2 * lvlr[10]))) {
break;
}
sreset();
}
shittest();
if (sd[h1] == 1) {
blockshottest();
if ((((btleft > 0) or (btright > 0)) or (bttop > 0)) or (btbottom > 0)) {
SND_Explosion3.start();
sd[h1] = 2;
slt1[h1] = 0;
}
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Explosion3.start();
sd[h1] = 2;
slt1[h1] = 0;
}
h2++;
}
}
} else if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = pll[h2] - 2;
}
h2++;
}
}
}
function Mega_HomingSniper() {
switch (sd[h1]) {
case 1 :
if (((((((slt1[h1] == 1) or (slt1[h1] == 5)) or (slt1[h1] == 9)) or (slt1[h1] == 13)) or (slt1[h1] == 17)) or (slt1[h1] == 21)) and (slt3[h1] > 0)) {
sc[snumber] = 84;
sd[snumber] = 2;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
slt3[h1]--;
}
sf[h1] = 584;
sx[h1] = px[slt2[h1]];
sy[h1] = py[slt2[h1]] - Math.round(pys[slt2[h1]] / 2);
slt1[h1]++;
if ((slt1[h1] > 75) or (pll[slt2[h1]] < 1)) {
sreset();
}
return;
case 2 :
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 84) and (sd[h2] == 1)) {
h4 = h2;
}
h2++;
}
if (h4 > 0) {
if (sx[h1] < sx[h4]) {
slr[h1] = 0;
if (sy[h1] < (sy[h4] - 20)) {
slr[h1] = 5;
}
if (sy[h1] > (sy[h4] + 20)) {
slr[h1] = 4;
}
}
if (sx[h1] > sx[h4]) {
slr[h1] = 1;
if (sy[h1] < (sy[h4] - 20)) {
slr[h1] = 7;
}
if (sy[h1] > (sy[h4] + 20)) {
slr[h1] = 6;
}
}
if ((((sx[h1] - 20) < sx[h4]) and ((sx[h1] + 20) > sx[h4])) and (sy[h1] > sy[h4])) {
slr[h1] = 2;
}
if ((((sx[h1] - 20) < sx[h4]) and ((sx[h1] + 20) > sx[h4])) and (sy[h1] < sy[h4])) {
slr[h1] = 3;
}
}
switch (slr[h1]) {
case 0 :
sf[h1] = 586;
break;
case 1 :
sf[h1] = 588;
break;
case 2 :
sf[h1] = 590;
break;
case 3 :
sf[h1] = 592;
break;
case 4 :
sf[h1] = 594;
break;
case 5 :
sf[h1] = 596;
break;
case 6 :
sf[h1] = 598;
break;
case 7 :
sf[h1] = 600;
}
h4 = 4;
s8waymove();
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit3();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
h2++;
}
sreset();
}
}
function Mega_IceWave() {
if (((sd[h1] != 11) and (sd[h1] != 12)) and (sd[h1] != 13)) {
blockshottest();
if ((bxm != 0) and (((sd[h1] == 1) or (sd[h1] == 32)) or (sd[h1] == 33))) {
sx[h1] = sx[h1] + bxm;
}
if ((bym != 0) and ((sd[h1] == 32) or (sd[h1] == 33))) {
sy[h1] = sy[h1] + bym;
}
if ((btleft < 1) and (btright < 1)) {
if (sd[h1] == 33) {
sd[h1] = 1;
}
if ((sd[h1] == 32) and (slt3[h1] < 1)) {
sreset();
}
} else {
if (btleft > 0) {
if ((sd[h1] == 1) or (sd[h1] == 31)) {
sd[h1] = 33;
}
slt3[h1] = 4;
sx[h1] = btleft2;
}
if (btright > 0) {
if ((sd[h1] == 1) or (sd[h1] == 31)) {
sd[h1] = 33;
}
slt3[h1] = 4;
sx[h1] = btright2;
}
}
if (bttop > 0) {
if (sd[h1] < 33) {
sd[h1] = 1;
}
sy[h1] = bttop2;
} else if ((bttop < 1) and (sd[h1] == 1)) {
sd[h1] = 32;
slt3[h1] = 4;
}
if (btbottom > 0) {
sreset();
}
}
switch (sd[h1]) {
case 1 :
sf[h1] = 606;
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
break;
case 31 :
sf[h1] = 604;
sx[h1] = (sx[h1] + 1) - (2 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 8) {
slt1[h1]++;
}
break;
case 32 :
sf[h1] = 626 - (10 * slr[h1]);
sx[h1] = (sx[h1] - 5) + (10 * slr[h1]);
sy[h1] = sy[h1] + 10;
slt3[h1]--;
break;
case 33 :
sf[h1] = 616 + (10 * slr[h1]);
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
sy[h1] = sy[h1] - 10;
break;
case 11 :
sf[h1] = 606 + Math.round(slt1[h1] / 2);
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
break;
case 12 :
sf[h1] = (626 - (10 * slr[h1])) + Math.round(slt1[h1] / 2);
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
break;
case 13 :
sf[h1] = (616 + (10 * slr[h1])) + Math.round(slt1[h1] / 2);
slt1[h1]++;
if (slt1[h1] <= 16) {
break;
}
sreset();
}
shittest();
if ((((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) and (sd[h1] != 31)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 1;
}
h2++;
}
}
if (((((sd[h1] == 1) or (sd[h1] == 32)) or (sd[h1] == 33)) and ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10))) and (sc[snumber] == 0)) {
sc[snumber] = 85;
switch (sd[h1]) {
case 1 :
sd[snumber] = 11;
break;
case 32 :
sd[snumber] = 12;
break;
case 33 :
sd[snumber] = 13;
}
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 15;
ssy[snumber] = 30;
slr[snumber] = slr[h1];
slt1[snumber] = 0;
isn();
}
slt2[h1]++;
if (slt2[h1] > (100 + (4 * lvlr[10]))) {
sreset();
}
}
function Mega_ThunderClaw() {
switch (sd[h1]) {
case 1 :
sf[h1] = (638 + slt1[h1]) + (8 * plr[1]);
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 519) and (pc[h2] < 529)) {
if ((((px[h2] < ((px[1] + 265) - (265 * plr[1]))) and (px[h2] > (px[1] - (265 * plr[1])))) and (py[h2] > (py[1] - 40))) and (py[h2] < (py[1] + 5))) {
if (lvlr[10] > 0) {
pll[1] = pll[1] + (15 * lvlr[10]);
if (pll[1] > 1000) {
pll[1] = 1000;
}
}
pd[h2] = 32;
plt1[h2] = 0;
plt2[h2] = 0;
}
}
h2++;
}
if (slt1[h1] > 6) {
slt1[h1] = 0;
sd[h1] = 2;
}
break;
case 2 :
sf[h1] = (646 - slt1[h1]) + (8 * plr[1]);
if (slt1[h1] <= 7) {
break;
}
sreset();
}
sx[h1] = (px[1] + 24) - (48 * plr[1]);
slr[h1] = plr[1];
sy[h1] = py[1] - 30;
if (((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) {
sy[h1] = py[1] - 40;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = pll[h2] - 5;
Spawn_Mega_BusterSus2b();
}
h2++;
}
}
pls1[1] = 3;
slt1[h1]++;
if (((pd[1] == 34) or (pd[1] == 4)) or (pd[1] == 5)) {
sreset();
}
}
function Mega_TornadoHoldFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if (sc[h2] == 87) {
h4++;
}
h2++;
}
}
function Mega_TornadoHold() {
switch (sd[h1]) {
case 1 :
sf[h1] = 658;
if (sc[snumber] > 0) {
isn();
}
if ((((fpace == 1) or (fpace == 5)) or (fpace == 9)) and (sc[snumber] == 0)) {
sc[snumber] = 87;
sd[snumber] = 32;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 10;
isn();
}
slt1[h1]++;
if (slt1[h1] > 60) {
sreset();
}
break;
case 31 :
sf[h1] = 656;
sx[h1] = (sx[h1] + 8) - (16 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
sd[h1] = 33;
}
break;
case 32 :
sf[h1] = 660;
sy[h1] = sy[h1] - 15;
shittest();
if (((phit[1] > 0) and (pd[1] == 31)) and (plt1[1] > 1)) {
plt1[1] = 1;
}
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2();
pll[h2] = (pll[h2] - 2) - (lvlr[10] / 5);
}
h2++;
}
}
break;
case 33 :
sf[h1] = 656;
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 10) {
break;
}
slt1[h1]++;
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if (bttop > 0) {
if (sd[h1] > 30) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (btleft > 0) {
sx[h1] = btleft2;
if (sd[h1] == 31) {
sd[h1] = 33;
}
}
if (btright > 0) {
sx[h1] = btright2;
if (sd[h1] == 31) {
sd[h1] = 33;
}
}
if (((btbottom > 0) and (sd[h1] != 31)) and (sd[h1] != 33)) {
sreset();
}
}
function Mega_WaterBalloon() {
sf[h1] = 664 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 8) {
slt1[h1] = slt1[h1] + 0.5;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
sreset();
h2++;
}
}
blockshottest();
if ((((bttop > 0) or (btleft > 0)) or (btright > 0)) or (btbottom > 0)) {
sreset();
}
}
function Mega_BlackHole() {
switch (sd[h1]) {
case 1 :
sf[h1] = 670;
if (weapt < 2) {
weapt = 2;
}
if ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10)) {
fflash = 16;
} else {
fflash = 1;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
pice[h2] = 3;
}
h2++;
}
}
slt2[h1]++;
if (((slt2[h1] > 5) and (slt1[h1] < 40)) and (sc[snumber] == 0)) {
slt2[h1] = 0;
sc[snumber] = 89;
sd[snumber] = 2;
slt1[snumber] = sx[h1];
slt2[snumber] = sy[h1];
slt3[snumber] = 0.25 * random(25);
slt4[snumber] = 50;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
}
slt1[h1]++;
if (slt1[h1] > 75) {
sreset();
}
return;
case 2 :
sf[h1] = 672;
sx[h1] = slt1[h1] + (Math.sin(slt3[h1] + (0.25 * slt4[h1])) * (3 * slt4[h1]));
sy[h1] = slt2[h1] + (Math.cos(slt3[h1] + (0.25 * slt4[h1])) * (3 * slt4[h1]));
slt4[h1]--;
if (slt4[h1] < 10) {
sreset();
}
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
if (fpace < 7) {
Spawn_Mega_BusterHit4();
} else {
Spawn_Mega_BusterHit2();
}
pll[h2] = (pll[h2] - 8) - lvlr[10];
}
sreset();
h2++;
};
}
}
function Mega_BreakDash() {
}
function Mega_BubbleBomb() {
switch (sd[h1]) {
case 0 :
sf[h1] = 682;
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] + slt2[h1];
slt2[h1]++;
if (slt2[h1] > 10) {
sd[h1] = 1;
}
break;
case 1 :
sf[h1] = 682;
sy[h1] = sy[h1] - 3;
sx[h1] = sx[h1] + slt2[h1];
slt2[h1]--;
if (slt2[h1] < -10) {
sd[h1] = 0;
}
break;
case 2 :
sf[h1] = 682;
sy[h1] = sy[h1] - 5;
break;
case 3 :
sf[h1] = 682;
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
sy[h1] = sy[h1] - 4;
break;
case 5 :
sf[h1] = 684 + slt1[h1];
slt1[h1]++;
if (slt1[h1] <= 16) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (sd[h1] == 5) {
if (pg[h2] < 1) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 3);
}
} else {
SND_Explosion1.start();
sd[h1] = 5;
slt1[h1] = 0;
}
}
h2++;
}
}
blockshottest();
if (sd[h1] < 5) {
if (bttop > 0) {
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
sd[h1] = 3;
}
if ((btbottom < 1) and (sd[h1] == 3)) {
sd[h1] = 2;
}
if (btleft > 0) {
sx[h1] = btleft2;
sd[h1] = 2;
}
if (btright > 0) {
sx[h1] = btright2;
sd[h1] = 2;
}
}
slt1[h1]++;
if (slt1[h1] > 60) {
SND_Explosion1.start();
sd[h1] = 5;
slt1[h1] = 0;
}
}
function Mega_DeepDigger() {
switch (sd[h1]) {
case 1 :
sf[h1] = 704;
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h4 = 0;
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 20) - lvlr[10];
}
sreset();
h2++;
}
}
blockshottest();
h4 = 0;
if (bttop == 1) {
sy[h1] = bttop2;
h4++;
}
if (btbottom == 1) {
sy[h1] = btbottom2;
h4++;
}
if (btleft == 1) {
sx[h1] = btleft2;
h4++;
}
if (btright == 1) {
sx[h1] = btright2;
h4++;
}
if (h4 > 0) {
SND_Hit5.start();
sc[snumber] = 92;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 4;
sd[snumber] = 2;
ssx[snumber] = 10;
ssy[snumber] = 20;
slr[snumber] = slr[h1];
slt1[snumber] = (slr[h1] + 7) - (14 * slr[h1]);
slt2[snumber] = -8;
isn();
sc[snumber] = 92;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 4;
sd[snumber] = 2;
ssx[snumber] = 10;
ssy[snumber] = 20;
slr[snumber] = slr[h1];
slt1[snumber] = (slr[h1] + 10) - (20 * slr[h1]);
slt2[snumber] = -5;
isn();
sc[snumber] = 92;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 4;
sd[snumber] = 2;
ssx[snumber] = 10;
ssy[snumber] = 20;
slr[snumber] = slr[h1];
slt1[snumber] = (slr[h1] + 10) - (20 * slr[h1]);
slt2[snumber] = 5;
isn();
sc[snumber] = 92;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 4;
sd[snumber] = 2;
ssx[snumber] = 10;
ssy[snumber] = 20;
slr[snumber] = slr[h1];
slt1[snumber] = (slr[h1] + 7) - (14 * slr[h1]);
slt2[snumber] = 8;
isn();
sreset();
}
return;
case 2 :
sf[h1] = 706;
sx[h1] = sx[h1] - slt1[h1];
sy[h1] = sy[h1] + slt2[h1];
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h4 = 0;
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
h4 = 1;
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 10) - lvlr[10];
}
sreset();
h2++;
};
}
}
function Mega_ElectricSpark() {
sf[h1] = 710 + (2 * plr[1]);
sx[h1] = (px[1] + 24) - (48 * plr[1]);
slr[h1] = plr[1];
sy[h1] = py[1] - 30;
if (((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) {
sy[h1] = py[1] - 40;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = pll[h2] - 4;
if (lvlr[10] > 0) {
h4 = random(100);
if (h4 < (lvlr[10] * 10)) {
pice[h2] = 2;
}
}
Spawn_Mega_BusterSus5b();
}
h2++;
}
}
pls1[1] = 3;
slt1[h1]++;
if (((((pd[1] == 34) or (pd[1] == 4)) or (pd[1] == 5)) or (pd[1] == 6)) or (slt1[h1] > 12)) {
sreset();
}
}
function Mega_GrabBuster() {
switch (sd[h1]) {
case 1 :
sf[h1] = 716;
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 10;
sd[h1] = 2;
slt1[h1] = 0;
slt2[h1] = 8 - (16 * slr[h1]);
slt3[h1] = -8;
} else {
sreset();
}
}
h2++;
}
}
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 519) and (pc[h2] < 529)) {
if ((((px[h2] < (sx[h1] + 30)) and (px[h2] > (sx[h1] - 30))) and ((py[h2] - 12) > (sy[h1] - 30))) and ((py[h2] - 12) < (sy[h1] + 30))) {
pd[h2] = 32;
plt1[h2] = 0;
plt2[h2] = 0;
}
}
h2++;
}
return;
case 2 :
sf[h1] = 718;
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + slt3[h1];
if ((px[1] < (sx[h1] - 10)) and (slt2[h1] > -6)) {
slt2[h1]--;
}
if ((px[1] > (sx[h1] + 10)) and (slt2[h1] < 6)) {
slt2[h1]++;
}
if (((py[1] - 25) < (sy[h1] - 10)) and (slt3[h1] > -6)) {
slt3[h1]--;
}
if (((py[1] - 25) > (sy[h1] + 10)) and (slt3[h1] < 6)) {
slt3[h1]++;
}
if (((((sx[h1] - 25) < px[1]) and ((sx[h1] + 25) > px[1])) and ((sy[h1] - 25) < (py[1] - 25))) and ((sy[h1] + 25) > (py[1] - 25))) {
SND_Health1.start();
pll[1] = (pll[1] + 20) + (5 * lvlr[10]);
if (pll[1] > 1000) {
pll[1] = 1000;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] <= 100) {
break;
}
sreset();
}
}
function Mega_PhotonMissile() {
switch (sd[h1]) {
case 1 :
sf[h1] = 722 + (2 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 20) {
SND_Missile1.start();
sd[h1] = 2;
}
break;
case 2 :
sf[h1] = 726 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 24) - (48 * slr[h1]);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 20) - (3 * lvlr[10]);
}
sreset();
h2++;
}
}
}
function Mega_SaltWater() {
switch (sd[h1]) {
case 1 :
sf[h1] = 732 + (2 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
sx[h1] = sx[h1] + slt2[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
blockshottest();
if (btbottom > 0) {
sy[h1] = btbottom2;
slt1[h1] = 1;
}
if (bttop > 0) {
sy[h1] = bttop2;
SND_Splash1.start();
sd[h1] = 3;
slt1[h1] = 0;
}
if (btleft > 0) {
sx[h1] = btleft2;
SND_Splash1.start();
sd[h1] = 4;
slt1[h1] = 0;
}
if (btright > 0) {
sx[h1] = btright2;
SND_Splash1.start();
sd[h1] = 5;
slt1[h1] = 0;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 20;
} else if (lvlr[10] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - lvlr[10];
}
}
sreset();
h2++;
}
}
return;
case 2 :
sf[h1] = 736;
sy[h1] = sy[h1] + slt1[h1];
sx[h1] = sx[h1] + slt2[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
blockshottest();
if ((((btbottom > 0) or (bttop > 0)) or (btright > 0)) or (btleft > 0)) {
sd[h1] = 6;
slt1[h1] = 0;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - 8;
} else if (lvlr[10] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = pll[h2] - lvlr[10];
}
}
sd[h1] = 6;
slt1[h1] = 0;
h2++;
}
}
return;
case 3 :
sf[h1] = 742 + Math.round(slt1[h1] / 3);
slt1[h1]++;
if (slt1[h1] > 6) {
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt2[snumber] = 2 - (12 * slr[h1]);
slt1[snumber] = -15 + (6 * slr[h1]);
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt2[snumber] = 6 - (12 * slr[h1]);
slt1[snumber] = -12;
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt2[snumber] = 10 - (12 * slr[h1]);
slt1[snumber] = -9 - (6 * slr[h1]);
isn();
sreset();
}
return;
case 4 :
sf[h1] = 746 + Math.round(slt1[h1] / 3);
slt1[h1]++;
if (slt1[h1] > 6) {
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = (slr[h1] * -1) + 1;
slt2[snumber] = -12;
slt1[snumber] = -3;
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt2[snumber] = -9;
slt1[snumber] = -6;
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = (slr[h1] * -1) + 1;
slt2[snumber] = -6;
slt1[snumber] = -9;
isn();
sreset();
}
return;
case 5 :
sf[h1] = 750 + Math.round(slt1[h1] / 3);
slt1[h1]++;
if (slt1[h1] > 6) {
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = (slr[h1] * -1) + 1;
slt2[snumber] = 12;
slt1[snumber] = -3;
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt2[snumber] = 9;
slt1[snumber] = -6;
isn();
sc[snumber] = 96;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 8;
ssy[snumber] = 16;
sd[snumber] = 2;
slr[snumber] = (slr[h1] * -1) + 1;
slt2[snumber] = 6;
slt1[snumber] = -9;
isn();
sreset();
}
return;
case 6 :
sf[h1] = 738 + Math.round(slt1[h1] / 3);
sy[h1] = sy[h1] - 2;
slt1[h1]++;
if (slt1[h1] <= 10) {
break;
}
sreset();
}
}
function Mega_SparkChaser() {
switch (sd[h1]) {
case 1 :
sf[h1] = 756;
slt1[h1]++;
if (slt1[h1] > 12) {
sd[h1] = 2;
slt1[h1] = 0;
p8wayhome();
}
break;
case 2 :
switch (slr[h1]) {
case 0 :
sf[h1] = 758;
break;
case 1 :
sf[h1] = 758;
break;
case 2 :
sf[h1] = 760;
break;
case 3 :
sf[h1] = 760;
break;
case 4 :
sf[h1] = 762;
break;
case 5 :
sf[h1] = 764;
break;
case 6 :
sf[h1] = 764;
break;
case 7 :
sf[h1] = 762;
}
h4 = 26;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
pll[h2] = pll[h2] - 6;
Spawn_DustSpark12();
}
h2++;
}
}
slt1[h1]++;
if (slt1[h1] <= 3) {
break;
}
sd[h1] = 1;
slt1[h1]++;
slt2[h1]++;
}
if (slt2[h1] > 7) {
sreset();
}
}
function Mega_CopyVision() {
switch (sd[h1]) {
case 1 :
sf[h1] = 768 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sd[h1] = 3;
slt1[h1] = 0;
slt2[h1] = 0;
}
return;
case 2 :
sf[h1] = 773 - slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
return;
case 3 :
sf[h1] = 774 + (2 * slr[h1]);
slt1[h1]++;
if (weapt < 2) {
weapt = 2;
}
if ((slt1[h1] > (12 - lvlr[10])) and (sc[snumber] == 0)) {
SND_LilShot1.start();
slt1[h1] = 0;
slt2[h1]++;
sc[snumber] = 1;
sx[snumber] = (sx[h1] + 24) - (48 * slr[h1]);
sy[snumber] = sy[h1] - 10;
ssx[snumber] = 7;
ssy[snumber] = 6;
slr[snumber] = slr[h1];
isn();
}
if (slt2[h1] <= 6) {
break;
}
sd[h1] = 2;
slt1[h1] = 0;
}
}
function Mega_IceWall() {
if (weapt < 2) {
weapt = 2;
}
switch (sd[h1]) {
case 1 :
sf[h1] = 786;
if (slt2[h1] > 12) {
slt2[h1] = 12;
}
if (slt2[h1] < -12) {
slt2[h1] = -12;
}
sx[h1] = sx[h1] + slt2[h1];
slt1[h1]++;
if (slt1[h1] > 80) {
SND_Deflect3.start();
sd[h1] = 2;
slt1[h1] = 0;
}
break;
case 2 :
sf[h1] = 788 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 3) {
sreset();
}
break;
case 31 :
sf[h1] = 786;
if (slt2[h1] > 12) {
slt2[h1] = 12;
}
if (slt2[h1] < -12) {
slt2[h1] = -12;
}
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + 8;
slt1[h1]++;
if (slt1[h1] > 80) {
SND_Deflect3.start();
sd[h1] = 2;
slt1[h1] = 0;
}
break;
case 32 :
sf[h1] = 780 + slt1[h1];
blockshottest();
if ((((btright < 1) and (btleft < 1)) and (bttop < 1)) and (btbottom < 1)) {
sx[h1] = (sx[h1] + 8) - (16 * slr[h1]);
sy[h1] = sy[h1] - 3;
}
slt1[h1]++;
if (slt1[h1] <= 5) {
break;
}
sd[h1] = 31;
slt1[h1] = 0;
slt2[h1] = 0;
}
shittest();
if ((((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) and ((sd[h1] == 31) or (sd[h1] == 1))) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 10;
}
if ((pll[h2] > 0) and ((sd[h1] == 31) or (sd[h1] == 1))) {
if (sx[h1] < px[h2]) {
if (slt2[h1] > -1) {
slt2[h1] = -1;
} else {
slt2[h1]--;
}
} else if (slt2[h1] < 1) {
slt2[h1] = 1;
} else {
slt2[h1]++;
}
slt1[h1] = (slt1[h1] + 20) - (2 * lvlr[10]);
}
}
h2++;
}
}
if ((sd[h1] == 1) or (sd[h1] == 31)) {
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
}
if (bttop > 0) {
if (sd[h1] == 31) {
sd[h1] = 1;
}
sy[h1] = bttop2;
}
if (btleft > 0) {
slr[h1] = 1;
sx[h1] = btleft2;
if (slt2[h1] > 0) {
slt2[h1] = Math.abs(slt2[h1]) * -1;
}
slt1[h1] = slt1[h1] + 10;
}
if (btright > 0) {
slr[h1] = 0;
sx[h1] = btright2;
if (slt2[h1] < 0) {
slt2[h1] = Math.abs(slt2[h1]);
}
slt1[h1] = slt1[h1] + 10;
}
if (btbottom > 0) {
SND_Deflect3.start();
sd[h1] = 2;
slt1[h1] = 0;
}
if (phit[1] > 0) {
if (pd[1] < 3) {
slt2[h1] = 0;
} else if (px[1] > sx[h1]) {
slt2[h1] = -9;
sx[h1] = ((sx[h1] - ssx[h1]) - pxs[1]) - 1;
if (slt2[h1] > 0) {
slt2[h1] = 0;
}
} else {
slt2[h1] = 9;
sx[h1] = ((sx[h1] + ssx[h1]) + pxs[1]) + 1;
if (slt2[h1] < 0) {
slt2[h1] = 0;
}
}
}
}
}
function Mega_LightningBolt() {
switch (sd[h1]) {
case 1 :
if ((((((slt1[h1] == 1) or (slt1[h1] == 6)) or (slt1[h1] == 11)) or (slt1[h1] == -4)) or (slt1[h1] == -9)) or (slt1[h1] == -14)) {
SND_LilShot3.start();
sc[snumber] = 100;
sd[snumber] = 2;
sx[snumber] = (camx - 200) + random(400);
sy[snumber] = (camy + 80) + random(70);
slt1[snumber] = 0;
ssx[snumber] = 50;
ssy[snumber] = 40;
isn();
}
sf[h1] = 1;
slt1[h1]++;
if (slt1[h1] > 11) {
sreset();
}
return;
case 2 :
sf[h1] = 794 + slt1[h1];
slt1[h1]++;
if (slt1[h1] == 5) {
fflash = 14;
}
if (slt1[h1] <= 5) {
break;
}
fflash = 1;
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit1b();
pll[h2] = pll[h2] - 10;
}
h2++;
}
sreset();
}
}
function Mega_MagicCard() {
switch (sd[h1]) {
case 1 :
sf[h1] = 802 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 18) - (36 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > (12 + lvlr[10])) {
sd[h1] = 2;
slt1[h1] = 0;
}
break;
case 2 :
sf[h1] = 804 - (2 * slr[h1]);
if (slt1[h1] < 4) {
sx[h1] = (sx[h1] - 18) + (36 * slr[h1]);
} else {
if ((px[1] - 20) < sx[h1]) {
sx[h1] = sx[h1] - 12;
}
if ((px[1] + 20) > sx[h1]) {
sx[h1] = sx[h1] + 12;
}
if ((py[1] - 45) < sy[h1]) {
sy[h1] = sy[h1] - 12;
}
if ((py[1] - 5) > sy[h1]) {
sy[h1] = sy[h1] + 12;
}
}
if (((((sx[h1] + 12) > (px[1] - 25)) and ((sx[h1] - 12) < (px[1] + 25))) and ((sy[h1] + 12) > (py[1] - 50))) and ((sy[h1] - 12) < (py[1] - 15))) {
sreset();
}
slt1[h1]++;
if (slt1[h1] > (16 + lvlr[10])) {
sreset();
}
break;
case 3 :
sf[h1] = 806 + (2 * slr[h1]);
sy[h1] = sy[h1] - 18;
slt1[h1]++;
if (slt1[h1] > (12 + lvlr[10])) {
sd[h1] = 4;
slt1[h1] = 0;
}
break;
case 4 :
sf[h1] = 808 - (2 * slr[h1]);
if (slt1[h1] < 4) {
sy[h1] = sy[h1] + 18;
} else {
if ((px[1] - 20) < sx[h1]) {
sx[h1] = sx[h1] - 12;
}
if ((px[1] + 20) > sx[h1]) {
sx[h1] = sx[h1] + 12;
}
if ((py[1] - 45) < sy[h1]) {
sy[h1] = sy[h1] - 12;
}
if ((py[1] - 5) > sy[h1]) {
sy[h1] = sy[h1] + 12;
}
}
if (((((sx[h1] + 12) > (px[1] - 25)) and ((sx[h1] - 12) < (px[1] + 25))) and ((sy[h1] + 12) > (py[1] - 50))) and ((sy[h1] - 12) < (py[1] - 15))) {
sreset();
}
slt1[h1]++;
if (slt1[h1] <= (16 + lvlr[10])) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 10;
sd[h1] = 2;
slt1[h1] = 0;
slt2[h1] = 8 - (16 * slr[h1]);
slt3[h1] = -8;
}
h2++;
}
sreset();
}
h2 = 2;
while (h2 <= 10) {
if ((pc[h2] > 519) and (pc[h2] < 524)) {
if ((((px[h2] < (sx[h1] + 30)) and (px[h2] > (sx[h1] - 30))) and ((py[h2] - 12) > (sy[h1] - 30))) and ((py[h2] - 12) < (sy[h1] + 30))) {
pd[h2] = 32;
plt1[h2] = 0;
plt2[h2] = 0;
sreset();
}
}
h2++;
}
}
function Mega_RemoteMine() {
switch (sd[h1]) {
case 1 :
sf[h1] = 812 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
if (Key.isDown(kup)) {
sy[h1] = (sy[h1] - 4) - (lvlr[10] / 2);
}
if (Key.isDown(kdown)) {
sy[h1] = (sy[h1] + 4) + (lvlr[10] / 2);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Hit7.start();
sd[h1] = 3;
slt1[h1] = sx[h1] - px[h2];
slt2[h1] = sy[h1] - py[h2];
slt3[h1] = h2;
slt4[h1] = 0;
}
h2++;
}
}
blockshottest();
if ((((btleft > 0) or (btright > 0)) or (bttop > 0)) or (btbottom > 0)) {
if (btleft > 0) {
sx[h1] = btleft2;
}
if (btright > 0) {
sx[h1] = btright2;
}
if (bttop > 0) {
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
SND_Hit7.start();
sd[h1] = 2;
slt4[h1] = 0;
}
return;
case 2 :
sf[h1] = 816;
slt4[h1]++;
if ((slt4[h1] > (100 + (3 * lvlr[10]))) or Key.isDown(kattack)) {
SND_Explosion8.start();
sd[h1] = 4;
slt1[h1] = 0;
}
return;
case 3 :
sf[h1] = 816;
sx[h1] = px[slt3[h1]] + slt1[h1];
sy[h1] = py[slt3[h1]] + slt2[h1];
slt4[h1]++;
if (pll[slt3[h1]] < 1) {
sd[h1] = 2;
}
if ((slt4[h1] > (100 + (3 * lvlr[10]))) or Key.isDown(kattack)) {
SND_Explosion8.start();
sd[h1] = 4;
slt1[h1] = 0;
}
return;
case 4 :
sf[h1] = 818;
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus3b();
pll[h2] = pll[h2] - 3;
}
h2++;
};
}
}
function Mega_SpreadDrillFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if (sc[h2] == 103) {
h4++;
}
h2++;
}
}
function Mega_SpreadDrill() {
switch (sd[h1]) {
case 1 :
sf[h1] = 822 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
if (slt1[h1] > 0) {
sy[h1] = sy[h1] + slt1[h1];
}
if (slt1[h1] < 12) {
slt1[h1]++;
}
if ((((Key.isDown(kspec1) and (weap1 == 97)) or (Key.isDown(kspec2) and (weap2 == 97))) and (sc[snumber] == 0)) and (weapt < 1)) {
ssx[h1] = 14;
ssy[h1] = 30;
sd[h1] = 2;
slt1[h1] = -13;
slt2[h1] = 0;
sc[snumber] = 103;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 2;
slr[snumber] = slr[h1];
slt1[snumber] = 13;
slt2[snumber] = 0;
isn();
if (sc[snumber] == 0) {
sc[snumber] = 103;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 4;
slr[snumber] = slr[h1];
slt1[snumber] = 0;
slt2[snumber] = 0;
isn();
}
weapt = 5;
}
break;
case 2 :
sf[h1] = 826 + (2 * slr[h1]);
if (slt3[h1] < 1) {
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
}
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] != 0) {
if (slt1[h1] < 0) {
slt1[h1]++;
} else {
slt1[h1]--;
}
}
if (slt2[h1] > (10 + lvlr[10])) {
sreset();
}
if ((((Key.isDown(kspec1) and (weap1 == 97)) or (Key.isDown(kspec2) and (weap2 == 97))) and (sc[snumber] == 0)) and (weapt < 1)) {
ssx[h1] = 14;
ssy[h1] = 30;
sd[h1] = 3;
slt1[h1] = -8;
slt2[h1] = 0;
sc[snumber] = 103;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 3;
slr[snumber] = slr[h1];
slt1[snumber] = 8;
slt2[snumber] = 0;
isn();
if (sc[snumber] == 0) {
sc[snumber] = 103;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 14;
ssy[snumber] = 30;
sd[snumber] = 5;
slr[snumber] = slr[h1];
slt1[snumber] = 0;
slt2[snumber] = 0;
isn();
}
}
break;
case 3 :
sf[h1] = 830 + (2 * slr[h1]);
if (slt3[h1] < 1) {
sx[h1] = (sx[h1] + 16) - (32 * slr[h1]);
}
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] != 0) {
if (slt1[h1] < 0) {
slt1[h1]++;
} else {
slt1[h1]--;
}
}
if (slt2[h1] > (100 + (5 * lvlr[10]))) {
sreset();
}
break;
case 4 :
sf[h1] = 834 + (2 * slr[h1]);
sx[h1] = (sx[h1] - 4) + (8 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
slt2[h1]++;
if (slt2[h1] > 12) {
sreset();
}
break;
case 5 :
sf[h1] = 838 + (2 * slr[h1]);
sx[h1] = (sx[h1] - 4) + (8 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
slt2[h1]++;
if (slt2[h1] <= 12) {
break;
}
sreset();
}
shittest();
slt3[h1] = 0;
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
switch (sd[h1]) {
case 1 :
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus5();
pll[h2] = pll[h2] - 4;
}
break;
case 2 :
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus5();
pll[h2] = pll[h2] - 3;
}
slt3[h1] = 1;
slt2[h1]++;
break;
case 3 :
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus5();
pll[h2] = pll[h2] - 2;
}
slt3[h1] = 1;
slt2[h1]++;
}
h2++;
}
}
}
function Mega_TenguBlade() {
switch (sd[h1]) {
case 1 :
sf[h1] = (844 + slt1[h1]) + (8 * plr[1]);
sx[h1] = (px[1] + 30) - (60 * plr[1]);
sy[h1] = py[1] - 30;
pls1[1] = 3;
if (((pd[1] == 31) or (pd[1] == 32)) or (pd[1] == 33)) {
sy[h1] = py[1] - 40;
}
slr[h1] = plr[1];
slt1[h1]++;
if (slt1[h1] > 8) {
sd[h1] = 2;
sy[h1] = sy[h1] + 16;
}
break;
case 2 :
sf[h1] = 860 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 13) - (26 * slr[h1]);
blockshottest();
if (bttop > 0) {
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
if (btleft > 0) {
sx[h1] = btleft2;
slr[h1] = 1;
sd[h1] = 3;
slt1[h1] = 0;
}
if (btright > 0) {
sx[h1] = btright2;
slr[h1] = 0;
sd[h1] = 3;
slt1[h1] = 0;
}
break;
case 3 :
sf[h1] = 860 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
sy[h1] = sy[h1] - slt1[h1];
blockshottest();
if (btleft > 0) {
sx[h1] = btleft2;
slr[h1] = 1;
sd[h1] = 3;
}
if (btright > 0) {
sx[h1] = btright2;
slr[h1] = 0;
sd[h1] = 3;
}
if (btbottom > 0) {
sreset();
}
if (slt1[h1] >= 12) {
break;
}
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
if (sd[h1] < 2) {
Spawn_Mega_BusterSus5b();
pll[h2] = pll[h2] - 4;
} else {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
}
if (sd[h1] > 1) {
sreset();
}
h2++;
}
}
}
function Mega_WaveBurner() {
if (weapt < 2) {
weapt = 2;
}
sf[h1] = (866 + Math.round(slt1[h1] / 2)) + (8 * slr[h1]);
if (slr[h1] == plr[1]) {
sx[h1] = ((px[1] + 30) + (10 * slt1[h1])) - ((60 + (20 * slt1[h1])) * slr[h1]);
} else {
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
}
sy[h1] = sy[h1] + slt2[h1];
if ((((Key.isDown(kspec1) and (weap1 == 99)) or (Key.isDown(kspec2) and (weap2 == 99))) and (pls1[1] == 2)) and (ple > (14 - lvlr[10]))) {
if ((fpace == 1) or (fpace == 7)) {
SND_Fire1.start();
}
ple = (ple - 15) + lvlr[10];
pls1[1] = 5;
pls2[1]--;
if (pls2[1] < -13) {
pls2[1] = 6;
}
sc[snumber] = 105;
sx[snumber] = (px[1] + 30) - (60 * plr[1]);
mega_shoty();
ssx[snumber] = 14;
ssy[snumber] = 30;
slr[snumber] = plr[1];
sd[snumber] = 1;
slt1[snumber] = 0;
if (pls2[1] < -5) {
slt2[snumber] = -9 - pls2[1];
} else {
slt2[snumber] = pls2[1];
}
}
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterSus5();
pll[h2] = pll[h2] - 8;
}
h2++;
}
sreset();
}
}
function Mega_BalladeCracker() {
switch (sd[h1]) {
case 1 :
if ((((slr[h1] == 0) or (slr[h1] == 2)) or (slt[h1] == 4)) or (slt[h1] == 5)) {
sf[h1] = 884;
} else {
sf[h1] = 886;
}
h4 = 7;
s8waymove();
blockshottest();
if ((((btleft > 0) or (btright > 0)) or (bttop > 0)) or (btbottom > 0)) {
SND_Explosion2.start();
sd[h1] = 2;
slt1[h1] = 0;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
SND_Explosion2.start();
sd[h1] = 2;
slt1[h1] = 0;
}
return;
case 2 :
sf[h1] = 888 + slt1[h1];
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 3;
}
h2++;
}
}
slt1[h1]++;
if (slt1[h1] <= 16) {
break;
}
if (lvlr[10] < 1) {
sreset();
} else {
h4 = random(100);
if (h4 < (10 * lvlr[10])) {
SND_Explosion2.start();
slt1[h1] = 0;
} else {
sreset();
}
}
}
}
function Mega_MirrorBusterCheck() {
h4 = 0;
if (((((sx[h2] + ssx[h2]) > (sx[h1] - ssx[h1])) and ((sx[h2] - ssx[h2]) < (sx[h1] + ssx[h1]))) and ((sy[h2] + ssy[h2]) > (sy[h1] - ssy[h1]))) and ((sy[h2] - ssy[h2]) < (sy[h1] + ssy[h1]))) {
h4 = 1;
}
}
function Mega_MirrorBuster() {
sf[h1] = (908 + slt1[h1]) + (8 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 7) {
sreset();
}
h2 = 1;
while (h2 <= 30) {
switch (sc[h2]) {
case 401 :
Mega_MirrorBusterCheck();
if (h4 > 0) {
slr[h2] = slr[h1];
sc[h2] = 1;
ssx[h2] = 7;
ssy[h2] = 6;
if (lvlr[10] > 1) {
sc[h2] = 2;
ssx[h2] = 18;
ssy[h2] = 18;
}
if (lvlr[10] > 2) {
sc[h2] = 3;
ssx[h2] = 32;
ssy[h2] = 18;
}
}
break;
case 405 :
Mega_MirrorBusterCheck();
if (h4 <= 0) {
break;
}
slr[h2] = slr[h1];
sc[h2] = 1;
ssx[h2] = 7;
ssy[h2] = 6;
if (lvlr[10] > 1) {
sc[h2] = 2;
ssx[h2] = 18;
ssy[h2] = 18;
}
if (lvlr[10] <= 2) {
break;
}
sc[h2] = 3;
ssx[h2] = 32;
ssy[h2] = 18;
}
h2++;
}
}
function Mega_SakugarneFire() {
h2 = 1;
while (h2 <= 30) {
if (sc[h2] == 108) {
sreset2();
}
h2++;
}
}
function Mega_Sakugarne() {
switch (sd[h1]) {
case 1 :
sf[h1] = 926;
sy[h1] = sy[h1] + 20;
slt1[h1]++;
if (slt1[h1] > 9) {
sd[h1] = 2;
slt1[h1] = 0;
}
return;
case 2 :
sf[h1] = 928 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 3) {
sd[h1] = 3;
slt1[h1] = 0;
}
return;
case 3 :
sf[h1] = 932 + (2 * slr[h1]);
if (((((((pd[1] == 31) and (pact == 0)) and (pls1[1] == 0)) and ((px[1] + 10) > (sx[h1] - ssx[h1]))) and ((px[1] - 10) < (sx[h1] + ssx[h1]))) and (py[1] > (sy[h1] - ssy[h1]))) and ((py[1] - 40) < (sy[h1] + ssy[h1]))) {
pd[1] = 35;
plt1[1] = -5;
sreset();
}
slt1[h1]++;
if (slt1[h1] > 75) {
sd[h1] = 4;
slt1[h1] = 0;
}
return;
case 4 :
sf[h1] = 926;
sy[h1] = sy[h1] - 20;
slt1[h1]++;
if (slt1[h1] <= 9) {
break;
}
sreset();
}
}
function Mega_ScrewCrusher() {
sf[h1] = 938 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 9) - (18 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 24) {
slt1[h1] = slt1[h1] + 3;
}
shittest();
h4 = 0;
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 15) - (3 * lvlr[10]);
}
if ((pll[h2] > 0) or (pg[h2] > 0)) {
h4++;
}
}
h2++;
}
}
if (h4 > 0) {
sreset();
}
}
function Mega_ArsenalStorm() {
switch (sd[h1]) {
case 1 :
slt1[h1]++;
if (weapt < 2) {
weapt = 2;
}
if (slt1[h1] > 4) {
slt1[h1] = 0;
slt2[h1]++;
SND_Explosion4.start();
if (sc[snumber] == 0) {
sc[snumber] = 120;
sd[snumber] = 2;
sx[snumber] = (camx - 220) + random(210);
sy[snumber] = (camy - 170) + random(350);
slt1[snumber] = 0;
ssx[snumber] = 50;
ssy[snumber] = 40;
}
isn();
if (sc[snumber] == 0) {
sc[snumber] = 120;
sd[snumber] = 2;
sx[snumber] = (camx + 10) + random(210);
sy[snumber] = (camy - 170) + random(350);
slt1[snumber] = 0;
ssx[snumber] = 50;
ssy[snumber] = 40;
}
isn();
h2 = 2;
while (h2 <= 10) {
if ((((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit4b();
pll[h2] = pll[h2] - 5;
if (lvlr[10] > 0) {
h4 = random(100);
if (h4 < (lvlr[10] * 10)) {
pice[h2] = 10;
}
}
}
h2++;
}
}
fflash = 18;
sf[h1] = 1;
if (slt2[h1] > 6) {
fflash = 1;
sreset();
}
return;
case 2 :
sf[h1] = 944 + slt1[h1];
slt1[h1]++;
sy[h1] = sy[h1] - 20;
if (slt1[h1] <= 6) {
break;
}
sreset();
}
}
function Mega_CameoCannon() {
switch (sd[h1]) {
case 1 :
sf[h1] = (954 + (4 * slr[h1])) + (8 * slt2[h1]);
sx[h1] = (sx[h1] + 7) - (14 * slr[h1]);
switch (slt2[h1]) {
case 1 :
sx[h1] = (sx[h1] + 2) - (4 * slr[h1]);
break;
case 2 :
sx[h1] = (sx[h1] + 2) - (4 * slr[h1]);
}
break;
case 31 :
sf[h1] = (956 + (4 * slr[h1])) + (8 * slt2[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
switch (slt2[h1]) {
case 3 :
slt1[h1] = slt1[h1] - 0.4;
break;
case 2 :
slt1[h1] = slt1[h1] - 0.5;
}
}
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
if (!(slt2[h1] === 3)) {
} else {
sx[h1] = (sx[h1] + 1) - (2 * slr[h1]);
}
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = -10;
}
if (bttop > 0) {
if (sd[h1] > 30) {
sd[h1] = 1;
}
sy[h1] = bttop2;
}
if (btleft > 0) {
if (sd[h1] != 31) {
sd[h1] = 31;
slt1[h1] = -12;
}
sx[h1] = btleft2;
}
if (btright > 0) {
if (sd[h1] != 31) {
sd[h1] = 31;
slt1[h1] = -12;
}
sx[h1] = btright2;
}
if (btbottom > 0) {
if (sd[h1] < 31) {
sreset();
} else {
sd[h1] = 31;
if (slt1[h1] < 1) {
slt1[h1] = 1;
}
sy[h1] = btbottom2;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
pll[h2] = pll[h2] - 12;
switch (slt2[h1]) {
case 3 :
Spawn_Mega_BusterHit4b();
break;
case 2 :
Spawn_Mega_BusterHit3b();
break;
case 1 :
Spawn_Mega_BusterHit1b();
pll[h2] = pll[h2] - 4;
break;
case 0 :
Spawn_Mega_BusterHit2b();
pll[h2] = pll[h2] - 8;
}
}
h2++;
}
sreset();
}
slt3[h1]++;
if (slt3[h1] > 100) {
sreset();
}
}
function Mega_CircuitryShield() {
switch (sd[h1]) {
case 1 :
sf[h1] = 990;
sx[h1] = px[1];
sy[h1] = py[1] - 25;
pg[1] = 2;
if (weapt < 2) {
weapt = 2;
}
pcharge = 0;
if (lvlr[10] > 0) {
if (((fpace == 1) or (fpace == 5)) or (fpace == 9)) {
ple = ple + lvlr[10];
if (ple > 1000) {
ple = 1000;
}
}
}
slt1[h1]++;
if (slt1[h1] > 10) {
slt1[h1] = 0;
slt2[h1]++;
sc[snumber] = 122;
if ((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 32)) or (pd[1] == 33)) {
sd[snumber] = 2;
} else {
sd[snumber] = 3;
}
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slr[snumber] = (plr[1] * -2) + 1;
slt1[snumber] = 0;
slt2[snumber] = 0;
slt3[snumber] = px[1];
slt4[snumber] = py[1] - 25;
ssx[snumber] = 16;
ssy[snumber] = 32;
isn();
if (slt2[h1] > 6) {
sreset();
}
}
return;
case 2 :
sf[h1] = 988;
sx[h1] = slt3[h1] + (Math.sin((3.15 + slt1[h1]) * slr[h1]) * 50);
sy[h1] = slt4[h1] + (Math.cos((3.15 + slt1[h1]) * slr[h1]) * 50);
slt1[h1] = slt1[h1] + 0.15;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
Spawn_Mega_BusterSus1();
pll[h2]--;
if ((pll[h2] > 0) or (pg[h2] > 0)) {
slt2[h1]++;
}
}
h2++;
}
}
if ((slt1[h1] > 12.3) or (slt2[h1] > 4)) {
sreset();
}
return;
case 3 :
sf[h1] = 988;
slt1[h1] = slt1[h1] + 0.15;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
Spawn_Mega_BusterSus1();
pll[h2]--;
if ((pll[h2] > 0) or (pg[h2] > 0)) {
slt2[h1]++;
}
}
h2++;
}
}
if (!((slt1[h1] > 12.3) or (slt2[h1] > 4))) {
break;
}
sreset();
}
}
function Mega_CypherEdge() {
switch (sd[h1]) {
case 1 :
sf[h1] = (994 + slt1[h1]) + (18 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
slt1[h1]++;
if (slt1[h1] > 6) {
slt2[h1]--;
if (slt2[h1] > 0) {
SND_Shing3.start();
sd[h1] = 2;
slt1[h1] = 0;
} else {
sreset();
}
}
break;
case 2 :
sf[h1] = (1000 + slt1[h1]) + (18 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
slt1[h1]++;
if (slt1[h1] > 6) {
slt2[h1]--;
if (slt2[h1] > 0) {
SND_Shing3.start();
sd[h1] = 3;
slt1[h1] = 0;
} else {
sreset();
}
}
break;
case 3 :
sf[h1] = (1006 + slt1[h1]) + (18 * plr[1]);
if (weapt < 2) {
weapt = 2;
}
slt1[h1]++;
if (slt1[h1] <= 6) {
break;
}
sreset();
}
sx[h1] = (px[1] + 30) - (60 * plr[1]);
sy[h1] = py[1] - 30;
if ((pd[1] == 34) or ((pd[1] > 3) and (pd[1] < 8))) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = pll[h2] - (1 + sd[h1]);
if ((lvlr[10] > 0) and (slt1[h1] == 5)) {
pice[h2] = 2 * lvlr[10];
}
}
h2++;
}
}
pls1[1] = 3;
}
function Mega_FrostfireShot() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1032 + (2 * slr[h1]);
sx[h1] = slt3[h1] + (Math.sin(slt2[h1]) * slt1[h1]);
sy[h1] = slt4[h1] + (Math.cos(slt2[h1]) * slt1[h1]);
slt3[h1] = (slt3[h1] + 12) - (24 * slr[h1]);
if ((fpace == 1) or (fpace == 7)) {
Spawn_DustFire2();
}
switch (slr[h1]) {
case 0 :
slt2[h1] = slt2[h1] + 0.5;
break;
case 1 :
slt2[h1] = slt2[h1] - 0.5;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
sd[h1] = 3;
slt1[h1] = 0;
slt2[h1] = h2;
slt3[h1] = 0;
sx[h1] = px[h2];
sy[h1] = py[h2] - Math.round(pys[h2] / 2);
}
h2++;
}
}
return;
case 2 :
sf[h1] = 1036 + (2 * slr[h1]);
sx[h1] = slt3[h1] + (Math.sin(slt2[h1]) * slt1[h1]);
sy[h1] = slt4[h1] + (Math.cos(slt2[h1]) * slt1[h1]);
slt3[h1] = (slt3[h1] + 12) - (24 * slr[h1]);
if ((fpace == 4) or (fpace == 10)) {
Spawn_DustSparkle2();
}
switch (slr[h1]) {
case 0 :
slt2[h1] = slt2[h1] - 0.5;
break;
case 1 :
slt2[h1] = slt2[h1] + 0.5;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
sd[h1] = 4;
slt1[h1] = 0;
slt2[h1] = h2;
slt3[h1] = 0;
sx[h1] = px[h2];
sy[h1] = py[h2] - Math.round(pys[h2] / 2);
}
h2++;
}
}
return;
case 3 :
sf[h1] = 1040 + slt3[h1];
sx[h1] = (px[slt2[h1]] - 5) + random(11);
sy[h1] = (py[slt2[h1]] - Math.round(pys[slt2[h1]] / 2)) + (10 * slt3[h1]);
slt3[h1]++;
if (slt3[h1] > 5) {
slt1[h1]++;
slt3[h1] = 0;
}
pice[slt2[h1]] = 2;
if (slt1[h1] > (3 + (lvlr[10] / 3))) {
sreset();
}
return;
case 4 :
sf[h1] = 1046 + slt3[h1];
sx[h1] = (px[slt2[h1]] - 5) + random(11);
sy[h1] = (py[slt2[h1]] - Math.round(pys[slt2[h1]] / 2)) - (10 * slt3[h1]);
slt3[h1]++;
if (slt3[h1] > 5) {
slt1[h1]++;
slt3[h1] = 0;
}
pll[slt2[h1]]--;
if (slt1[h1] <= (3 + (lvlr[10] / 3))) {
break;
}
sreset();
}
}
function Mega_IllegalBlitz() {
switch (sd[h1]) {
case 1 :
if (slt1[h1] < -7) {
sf[h1] = 1056 + (2 * slr[h1]);
}
if ((slt1[h1] > -8) and (slt1[h1] < -3)) {
sf[h1] = 1060 + (2 * slr[h1]);
}
if ((slt1[h1] > -4) and (slt1[h1] < 4)) {
sf[h1] = 1054;
}
if ((slt1[h1] > 3) and (slt1[h1] < 8)) {
sf[h1] = 1062 - (2 * slr[h1]);
}
if (slt1[h1] > 7) {
sf[h1] = 1058 - (2 * slr[h1]);
}
sx[h1] = (sx[h1] + 16) - (32 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
break;
case 2 :
if (slt1[h1] < -7) {
sf[h1] = 1056 + (2 * slr[h1]);
}
if ((slt1[h1] > -8) and (slt1[h1] < -3)) {
sf[h1] = 1060 + (2 * slr[h1]);
}
if ((slt1[h1] > -4) and (slt1[h1] < 4)) {
sf[h1] = 1054;
}
if ((slt1[h1] > 3) and (slt1[h1] < 8)) {
sf[h1] = 1062 - (2 * slr[h1]);
}
if (slt1[h1] > 7) {
sf[h1] = 1058 - (2 * slr[h1]);
}
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 10) {
slt1[h1]++;
}
break;
case 3 :
sf[h1] = 1064 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 8) - (16 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 10) {
break;
}
slt1[h1]++;
}
blockshottest();
if (bttop > 0) {
sd[h1] = 3;
slt1[h1] = -12;
sy[h1] = bttop2;
slt2[h1]++;
}
if (btleft > 0) {
sd[h1] = 3;
slr[h1] = 1;
slt1[h1] = -4;
sx[h1] = btleft2;
slt2[h1]++;
}
if (btright > 0) {
sd[h1] = 3;
slr[h1] = 0;
slt1[h1] = -4;
sx[h1] = btright2;
slt2[h1]++;
}
if (btbottom > 0) {
sd[h1] = 3;
slt1[h1] = 1;
sy[h1] = btbottom2;
slt2[h1]++;
}
if (slt2[h1] > 4) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 6) - (lvlr[10] / 2);
}
sd[h1] = 3;
if (px[h2] > sx[h1]) {
slr[h1] = 1;
sx[h1] = (px[h2] - pxs[h2]) - 9;
} else {
slr[h1] = 0;
sx[h1] = (px[h2] + pxs[h2]) + 9;
}
slt1[h1] = -8;
slt2[h1]++;
}
h2++;
}
}
}
function Mega_JawsWave() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1098 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 7) - (14 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
switch (slt2[h1]) {
case 1 :
slt1[h1]++;
if (slt1[h1] > 7) {
slt2[h1] = 2;
}
break;
case 2 :
slt1[h1]--;
if (slt1[h1] >= -5) {
break;
}
slt2[h1] = 1;
}
if (slt3[h1] > (4 + lvlr[10])) {
sreset();
}
break;
case 2 :
sf[h1] = 1070 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
blockshottest();
if (bxm != 0) {
sx[h1] = sx[h1] + bxm;
}
if (bttop > 0) {
sy[h1] = bttop2;
}
if (bttop < 1) {
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
sx[h1] = sx[h1] - 10;
break;
case 1 :
slr[h1] = 0;
sx[h1] = sx[h1] + 10;
}
}
if (btleft > 0) {
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
sx[h1] = sx[h1] - 8;
break;
case 1 :
slr[h1] = 0;
sx[h1] = sx[h1] + 8;
}
sx[h1] = btleft2;
}
if (btright > 0) {
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
sx[h1] = sx[h1] - 8;
break;
case 1 :
slr[h1] = 0;
sx[h1] = sx[h1] + 8;
}
sx[h1] = btright2;
}
if (btbottom > 0) {
sreset();
}
slt3[h1]++;
if (slt3[h1] > (100 + (5 * lvlr[10]))) {
sreset();
}
break;
case 3 :
sf[h1] = (1074 + slt1[h1]) + (12 * slr[h1]);
slt1[h1]++;
if (slt1[h1] <= 11) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
switch (sd[h1]) {
case 1 :
if (pg[h2] < 1) {
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 3;
}
sx[h1] = (sx[h1] - 6) + (12 * slr[h1]);
slt3[h1]++;
break;
case 2 :
if (pg[h2] < 1) {
SND_Splash2.start();
sd[h1] = 3;
slt1[h1] = 0;
}
break;
case 3 :
if (pg[h2] >= 1) {
break;
}
Spawn_Mega_BusterSus2b();
pll[h2] = pll[h2] - 3;
}
}
h2++;
}
}
}
function Mega_MetalGearFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 127) and (sd[h2] == 1)) {
h4++;
}
h2++;
}
}
function Mega_MetalGearGander2() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1104;
sx[h1] = camx;
if (weapt < 2) {
weapt = 2;
}
if (slt1[h1] < 20) {
sy[h1] = (camy - 300) + (10 * slt1[h1]);
}
if ((slt1[h1] > 19) and (slt1[h1] < 40)) {
sy[h1] = camy - 100;
}
if (slt1[h1] > 29) {
sy[h1] = (camy + 190) - (10 * slt1[h1]);
}
slt1[h1]++;
if (((slt1[h1] == 20) or (slt1[h1] == 25)) or (slt1[h1] == 30)) {
SND_LilShot2.start();
sc[snumber] = 127;
sd[snumber] = 2;
sx[snumber] = (sx[h1] - 140) - (5 * (slt1[h1] - 20));
sy[snumber] = (sy[h1] - 140) + (5 * (slt1[h1] - 20));
slt1[snumber] = 0;
switch (plr[1]) {
case 0 :
slt2[snumber] = Math.round(((px[1] + 100) - sx[snumber]) / 6);
slt3[snumber] = Math.round(((py[1] - 40) - sy[snumber]) / 6);
break;
case 1 :
slt2[snumber] = Math.round(((px[1] - 170) - sx[snumber]) / 6);
slt3[snumber] = Math.round(((py[1] - 40) - sy[snumber]) / 6);
}
if (Key.isDown(kup)) {
slt3[snumber] = slt3[snumber] - 10;
}
if (Key.isDown(kdown)) {
slt3[snumber] = slt3[snumber] + 10;
}
if (Key.isDown(kleft)) {
slt2[snumber] = slt2[snumber] - 2;
}
if (Key.isDown(kright)) {
slt2[snumber] = slt2[snumber] + 2;
}
isn();
sc[snumber] = 127;
sd[snumber] = 2;
sx[snumber] = (sx[h1] + 140) + (5 * (slt1[h1] - 20));
sy[snumber] = (sy[h1] - 140) + (5 * (slt1[h1] - 20));
slt1[snumber] = 0;
switch (plr[1]) {
case 0 :
slt2[snumber] = Math.round(((px[1] + 170) - sx[snumber]) / 6);
slt3[snumber] = Math.round(((py[1] - 40) - sy[snumber]) / 6);
break;
case 1 :
slt2[snumber] = Math.round(((px[1] - 100) - sx[snumber]) / 6);
slt3[snumber] = Math.round(((py[1] - 40) - sy[snumber]) / 6);
}
if (Key.isDown(kup)) {
slt3[snumber] = slt3[snumber] - 10;
}
if (Key.isDown(kdown)) {
slt3[snumber] = slt3[snumber] + 10;
}
if (Key.isDown(kleft)) {
slt2[snumber] = slt2[snumber] - 2;
}
if (Key.isDown(kright)) {
slt2[snumber] = slt2[snumber] + 2;
}
isn();
}
if (slt1[h1] > 40) {
sreset();
}
return;
case 2 :
sf[h1] = 1106;
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + slt3[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
SND_Hit4.start();
sd[h1] = 3;
slt1[h1] = 0;
}
return;
case 3 :
sf[h1] = 1108 + slt1[h1];
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 4) - (lvlr[10] / 5);
}
h2++;
}
}
slt1[h1]++;
if (slt1[h1] <= 5) {
break;
}
sreset();
}
}
function Mega_MirrorFlash() {
switch (sd[h1]) {
case 1 :
h2 = 1;
while (h2 <= 30) {
h4 = 0;
if ((((sx[h2] > (camx - 300)) and (sx[h2] < (camx + 300))) and (sy[h2] < (camy + 160))) and (sy[h2] > (camy - 300))) {
h4++;
}
if (h4 > 0) {
switch (sc[h2]) {
case 401 :
sc[h2] = 128;
ssx[h2] = 15;
ssy[h2] = 15;
sd[h2] = 2;
slt1[h2] = 0;
break;
case 405 :
sc[h2] = 128;
ssx[h2] = 15;
ssy[h2] = 15;
sd[h2] = 2;
slt1[h2] = 0;
}
}
h2++;
}
slt1[h1]++;
if (slt1[h1] > (20 + (2 * lvlr[10]))) {
sreset();
}
if (((fpace == 2) or (fpace == 6)) or (fpace == 10)) {
fflash = 10;
}
if (((fpace == 3) or (fpace == 7)) or (fpace == 11)) {
fflash = 1;
}
ffroze = 2;
return;
case 2 :
sf[h1] = 1116;
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit5();
pll[h2] = (pll[h2] - 15) - lvlr[10];
}
h2++;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] <= 50) {
break;
}
sreset();
}
}
function Mega_NightmareBB() {
switch (sd[h1]) {
case 1 :
if ((((slr[h1] == 0) or (slr[h1] == 2)) or (slr[h1] == 4)) or (slr[h1] == 5)) {
sf[h1] = 1120;
} else {
sf[h1] = 1122;
}
if ((((fpace == 1) or (fpace == 5)) or (fpace == 9)) and (sc[snumber] == 0)) {
sc[snumber] = 129;
sd[snumber] = 2;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] + 5;
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
isn();
}
h4 = 7;
s8waymove();
sy[h1] = sy[h1] - 2;
break;
case 2 :
sf[h1] = 1124;
sy[h1] = sy[h1] + 12;
slt1[h1]++;
if (slt1[h1] <= 8) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = pll[h2] - 8;
if (sd[h1] == 2) {
pll[h2] = pll[h2] - lvlr[10];
}
if (sd[h1] == 1) {
pll[h2] = pll[h2] - 4;
}
}
h2++;
}
sreset();
}
}
function Mega_PlasmicBurst() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1128;
sx[h1] = slt3[h1] + (Math.sin(slt2[h1] + (slt1[h1] * slr[h1])) * 40);
sy[h1] = slt4[h1] + (Math.cos(slt2[h1] + (slt1[h1] * slr[h1])) * (slt1[h1] * 3));
slt1[h1]++;
break;
case 2 :
sf[h1] = 1128;
sx[h1] = slt3[h1] + (Math.sin(slt2[h1] + (slt1[h1] * slr[h1])) * (slt1[h1] * 3));
sy[h1] = slt4[h1] + (Math.cos(slt2[h1] + (slt1[h1] * slr[h1])) * 40);
slt1[h1]++;
break;
case 3 :
sf[h1] = 1130 + slt1[h1];
slt1[h1]++;
if (slt1[h1] <= 10) {
break;
}
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (sd[h1] < 3) {
if (phit[h2] > 0) {
sd[h1] = 3;
slt1[h1] = 0;
}
} else if (((phit[h2] > 0) and (pg[h2] < 1)) and (slt1[h1] == 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = pll[h2] - 20;
}
h2++;
}
}
}
function Mega_PowerMoonFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 131) and (sd[h2] == 1)) {
sreset2();
}
h2++;
}
}
function Mega_PowerMoon() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1144;
if (weapt < 2) {
weapt = 2;
}
if (((fpace == 1) or (fpace == 7)) and (sc[snumber] == 0)) {
sc[snumber] = 131;
sd[snumber] = 5;
sx[snumber] = (sx[h1] - 80) + random(161);
sy[snumber] = (sy[h1] - 80) + random(121);
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
isn();
}
slt1[h1]++;
h2 = 1;
while (h2 <= 30) {
if (((((sc[h2] == 1) and (sx[h2] > (sx[h1] - 70))) and (sx[h2] < (sx[h1] + 70))) and (sy[h2] > (sy[h1] - 80))) and (sy[h2] < (sy[h1] + 80))) {
SND_Missile1.start();
sc[h2] = 131;
sd[h2] = slt3[h1];
slt1[h2] = 0;
slt2[h2] = Math.round((sy[h1] - sy[h2]) / 5);
sx[h2] = sx[h1];
sy[h2] = sy[h1];
slt2[h1]++;
}
h2++;
}
pcharge = 0;
if (slt1[h1] > (150 + (10 * lvlr[10]))) {
sreset();
}
if (lvlr[10] < 3) {
if (slt2[h1] > 2) {
sreset();
}
} else if (slt2[h1] > 3) {
sreset();
}
break;
case 2 :
sf[h1] = 1146 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
sy[h1] = sy[h1] + slt2[h1];
break;
case 3 :
sf[h1] = 1150 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
sy[h1] = sy[h1] + slt2[h1];
break;
case 4 :
sf[h1] = 1154 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 12) - (24 * slr[h1]);
sy[h1] = sy[h1] + slt2[h1];
break;
case 5 :
if (px[1] > sx[h1]) {
sf[h1] = 1158;
sx[h1] = sx[h1] + 4;
} else {
sf[h1] = 1160;
sx[h1] = sx[h1] - 4;
}
sy[h1] = (sy[h1] + 3) + random(5);
slt1[h1] = (slt1[h1] + 1) + random(2);
if (slt1[h1] <= 15) {
break;
}
sreset();
}
if ((sd[h1] > 1) and (sd[h1] < 5)) {
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 9) - (3 * sd[h1]);
}
slt1[h1]++;
if (slt1[h1] > 3) {
sreset();
}
h2++;
}
}
}
}
function Mega_PunchDash() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1164 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 14) - (28 * slr[h1]);
if ((((fpace == 3) or (fpace == 7)) or (face == 11)) and (sc[snumber] == 0)) {
sc[snumber] = 132;
sd[snumber] = 3;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slr[snumber] = slr[h1];
slt1[snumber] = 0;
isn();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = (pll[h2] - 15) - (2 * lvlr[10]);
}
h2++;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
return;
case 2 :
sf[h1] = 1168 + (2 * slr[h1]);
sx[h1] = (sx[h1] - 4) + (8 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 6) {
sreset();
}
return;
case 3 :
sf[h1] = 1172 + (2 * slr[h1]);
sx[h1] = (sx[h1] - 6) + (12 * slr[h1]);
slt1[h1]++;
if (slt1[h1] <= 6) {
break;
}
sreset();
}
}
function Mega_PyroBalloon() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1178 + (2 * slt4[h1]);
sx[h1] = (((sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1])) - 1) + random(3);
sy[h1] = ((sy[h1] + slt3[h1]) - 1.5) + random(3);
if (slt3[h1] < 0) {
slt3[h1] = slt3[h1] + 0.5;
}
slt1[h1]++;
if (slt1[h1] > 60) {
SND_Hit4.start();
sd[h1] = 2;
slt1[h1] = 0;
}
break;
case 2 :
sf[h1] = 1186 + slt1[h1];
if (slt1[h1] == 6) {
sc[snumber] = 133;
sd[snumber] = 3;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] + 4;
ssx[snumber] = 20;
ssy[snumber] = 48;
isn();
}
slt1[h1]++;
if (slt1[h1] > 15) {
sreset();
}
break;
case 3 :
sf[h1] = 1204;
sy[h1] = sy[h1] + 8;
break;
case 4 :
sf[h1] = 1206 + slt1[h1];
slt1[h1]++;
if (slt1[h1] <= 9) {
break;
}
sreset();
}
if ((sd[h1] == 1) or (sd[h1] == 3)) {
blockshottest();
if (bttop > 0) {
sy[h1] = bttop2;
if (sd[h1] == 3) {
SND_Explosion6.start();
sd[h1] = 4;
slt1[h1] = 0;
}
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
if (btleft > 0) {
sx[h1] = btleft2;
slr[h1] = 1;
slt3[h1] = slt3[h1] - 4;
}
if (btright > 0) {
sx[h1] = btright2;
slr[h1] = 0;
slt3[h1] = slt3[h1] - 4;
}
if (sx[h1] < 20) {
slr[h1] = 0;
}
if (sx[h1] > (camxm - 20)) {
slr[h1] = 1;
}
if (sy[h1] < (camym + 30)) {
sy[h1] = camym + 30;
}
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (sd[h1] == 1) {
sd[h1] = 2;
slt1[h1] = 0;
} else if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = pll[h2] - 1;
}
h2++;
}
}
}
function Mega_ROFLTotemFire() {
h4 = 0;
h2 = 1;
while (h2 <= 30) {
if ((sc[h2] == 134) and ((sd[h2] == 1) or (sd[h2] == 31))) {
h4++;
}
h2++;
}
}
function Mega_ROFLTotem() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1218;
slt1[h1]++;
if (slt1[h1] > (14 - (lvlr[10] * 2))) {
SND_LilShot2.start();
slt1[h1] = 0;
slt2[h1]++;
sc[snumber] = 134;
sd[snumber] = 2;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1] - 24;
ssx[snumber] = 14;
ssy[snumber] = 28;
slr[snumber] = slr[h1];
isn();
}
if (slt2[h1] > 3) {
sreset();
}
break;
case 2 :
sf[h1] = 1220;
h4 = 10;
s8waymove();
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit2();
pll[h2] = pll[h2] - 8;
}
h2++;
}
sreset();
}
break;
case 31 :
sf[h1] = 1218;
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] >= 8) {
break;
}
slt1[h1]++;
}
if ((sd[h1] == 1) or (sd[h1] == 31)) {
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if ((bttop < 1) and (sd[h1] < 31)) {
sd[h1] = 31;
slt1[h1] = 0;
}
if (bttop > 0) {
if ((slt1[h1] > 0) and (sd[h1] == 31)) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (btleft > 0) {
sx[h1] = btleft2;
}
if (btright > 0) {
sx[h1] = btright2;
}
if ((btbottom > 0) and (sd[h1] > 30)) {
sd[h1] = 31;
slt1[h1] = 1;
sy[h1] = btbottom2;
}
}
}
function Mega_SkillcoilSiphon() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1224;
sx[h1] = (sx[h1] + (18 - slt1[h1])) - ((36 - (2 * slt1[h1])) * slr[h1]);
slt1[h1] = slt1[h1] + 0.75;
if (slt1[h1] > 17) {
sreset();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit2.start();
sd[h1] = 2;
slt1[h1] = 0;
slt2[h1] = h2;
slt3[h1] = 0;
} else {
sreset();
}
}
h2++;
}
}
return;
case 2 :
sf[h1] = 1;
sx[h1] = px[slt2[h1]];
sy[h1] = py[slt2[h1]] - Math.round(pys[slt2[h1]] / 2);
slt1[h1]++;
if ((slt1[h1] > 4) and (sc[snumber] == 0)) {
slt1[h1] = 0;
slt3[h1]++;
if (((((slt3[h1] == 1) or (slt3[h1] == 3)) or (slt3[h1] == 5)) or (slt3[h1] == 7)) and (sc[snumber] == 0)) {
sc[snumber] = 135;
sd[snumber] = 3;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
slt2[snumber] = -5 + random(11);
slt3[snumber] = -5 + random(11);
isn();
}
sc[snumber] = 135;
sd[snumber] = 4;
sx[snumber] = (sx[h1] - 30) + random(61);
sy[snumber] = (sy[h1] - 30) + random(61);
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
isn();
pll[slt2[h1]] = pll[slt2[h1]] - 3;
if ((slt3[h1] > (4 + lvlr[10])) or (pll[slt2[h1]] < 1)) {
sreset();
}
}
return;
case 3 :
sf[h1] = 1226;
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + slt3[h1];
if ((px[1] < (sx[h1] - 10)) and (slt2[h1] > -6)) {
slt2[h1]--;
}
if ((px[1] > (sx[h1] + 10)) and (slt2[h1] < 6)) {
slt2[h1]++;
}
if (((py[1] - 25) < (sy[h1] - 10)) and (slt3[h1] > -6)) {
slt3[h1]--;
}
if (((py[1] - 25) > (sy[h1] + 10)) and (slt3[h1] < 6)) {
slt3[h1]++;
}
if (((((sx[h1] - 25) < px[1]) and ((sx[h1] + 25) > px[1])) and ((sy[h1] - 25) < (py[1] - 25))) and ((sy[h1] + 25) > (py[1] - 25))) {
SND_Health1.start();
pll[1] = (pll[1] + 10) + (lvlr[10] * 3);
ple = ple + 10;
if (pll[1] > 1000) {
pll[1] = 1000;
}
if (ple > 1000) {
ple = 1000;
}
sreset();
}
slt1[h1]++;
if (slt1[h1] > 100) {
sreset();
}
return;
case 4 :
sf[h1] = 1228 + Math.round(slt1[h1] / 2);
sy[h1] = sy[h1] - 2;
slt1[h1]++;
if (slt1[h1] <= 12) {
break;
}
sreset();
}
}
function Mega_SmokeScreen() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1;
if (weapt < 2) {
weapt = 2;
}
slt1[h1]++;
if ((fpace == 1) or (fpace == 7)) {
if (sc[snumber] == 0) {
sc[snumber] = 136;
sd[snumber] = 2;
sx[snumber] = (sx[h1] - 5) - random(41);
sy[snumber] = (sy[h1] - 30) + random(61);
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
isn();
}
}
if ((fpace == 4) or (fpace == 10)) {
if (sc[snumber] == 0) {
sc[snumber] = 136;
sd[snumber] = 2;
sx[snumber] = (sx[h1] + 5) + random(41);
sy[snumber] = (sy[h1] - 30) + random(61);
ssx[snumber] = 14;
ssy[snumber] = 28;
slt1[snumber] = 0;
isn();
}
}
if ((((px[1] > (sx[h1] - 55)) and (px[1] < (sx[h1] + 55))) and (py[1] > (sy[h1] - 40))) and (py[1] < (sy[h1] + 40))) {
pg[1] = 2;
if ((fpace == 2) or (fpace == 8)) {
if (sc[snumber] == 0) {
sc[snumber] = 136;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 25;
slt1[snumber] = 0;
isn();
}
}
}
if (slt1[h1] > (60 + (4 * lvlr[10]))) {
sreset();
}
return;
case 2 :
sf[h1] = 1238 + slt1[h1];
if (px[1] < sx[h1]) {
sx[h1]--;
} else {
sx[h1]++;
}
sy[h1]--;
slt1[h1]++;
if (slt1[h1] > 6) {
sreset();
}
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
for(;;){
if (h2 > 10) {
break;
}
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus3b();
pll[h2]--;
}
h2++;
};
}
}
function Mega_SplitMissile() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1248;
sx[h1] = (sx[h1] + 15) - (30 * slr[h1]);
blockshottest();
if ((((bttop > 0) or (btbottom > 0)) or (btright > 0)) or (btleft > 0)) {
SND_Hit2.start();
sd[h1] = 2;
slt1[h1] = 0;
sc[snumber] = 137;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] - 2;
sd[snumber] = 3;
slr[snumber] = 4;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] + 18;
sd[snumber] = 3;
slr[snumber] = 5;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] - 2;
sd[snumber] = 3;
slr[snumber] = 6;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] + 18;
sd[snumber] = 3;
slr[snumber] = 7;
slt1[snumber] = 0;
isn();
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
SND_Hit2.start();
sd[h1] = 2;
slt1[h1] = 0;
sc[snumber] = 137;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] - 2;
sd[snumber] = 3;
slr[snumber] = 4;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] + 10;
sy[snumber] = sy[h1] + 18;
sd[snumber] = 3;
slr[snumber] = 5;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] - 2;
sd[snumber] = 3;
slr[snumber] = 6;
slt1[snumber] = 0;
isn();
sc[snumber] = 137;
sx[snumber] = sx[h1] - 10;
sy[snumber] = sy[h1] + 18;
sd[snumber] = 3;
slr[snumber] = 7;
slt1[snumber] = 0;
isn();
}
return;
case 2 :
sf[h1] = 1250 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
return;
case 3 :
sf[h1] = 1256 + (2 * slr[h1]);
h4 = 10;
s8waymove();
slt1[h1]++;
if (slt1[h1] > 6) {
sd[h1] = 4;
slt1[h1] = 0;
}
return;
case 4 :
sf[h1] = 1256 + (2 * slr[h1]);
p8wayhome();
h4 = 8;
s8waymove();
slt1[h1]++;
if (slt1[h1] > 50) {
sreset();
}
shittest();
if (!(((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0))) {
break;
}
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = pll[h2] - 6;
if (lvlr[10] > 0) {
h4 = random(100);
if (h4 < (10 * lvlr[10])) {
pice[h2] = 10;
}
}
}
h2++;
}
sreset();
}
}
function Mega_TheBrick() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1274 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 15) - (30 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 11) {
slt1[h1]++;
}
break;
case 2 :
sf[h1] = 1274 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 4) - (8 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 11) {
slt1[h1] = slt1[h1] + 0.5;
if (slt1[h1] > 0) {
slt1[h1] = slt1[h1] + 0.5;
}
}
break;
case 3 :
sf[h1] = 1274 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 10) - (20 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 11) {
slt1[h1]++;
}
break;
case 4 :
sf[h1] = 1278;
slt1[h1]++;
if (slt1[h1] <= 15) {
break;
}
sreset();
}
if (sd[h1] < 4) {
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (pg[h2] < 1) {
SND_Hit6.start();
Spawn_Mega_BusterHit4();
pll[h2] = (pll[h2] - 15) - lvlr[10];
sd[h1] = 4;
slt1[h1] = 0;
pice[h2] = 16 + (2 * lvlr[10]);
} else {
sreset();
}
}
h2++;
}
}
blockshottest();
if ((((bttop > 0) or (btleft > 0)) or (btright > 0)) or (btbottom > 0)) {
sreset();
}
}
}
function Mega_TwisterSwarm() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1282 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1]);
if ((fpace == 1) or (fpace == 7)) {
Spawn_SmokePuff2();
}
break;
case 2 :
sf[h1] = 1282 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] > -10) {
slt1[h1]--;
}
break;
case 31 :
sf[h1] = 1282 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt2[h1]) - ((2 * slt2[h1]) * slr[h1]);
sy[h1] = sy[h1] + 5;
if (slt1[h1] <= -10) {
break;
}
slt1[h1]--;
}
blockshottest();
if ((bxm != 0) and (sd[h1] == 1)) {
sx[h1] = sx[h1] + bxm;
}
if (bttop > 0) {
if (sd[h1] == 31) {
sd[h1] = 1;
}
sy[h1] = bttop2;
}
if ((bttop < 1) and (sd[h1] == 1)) {
sd[h1] = 2;
slt1[h1] = 0;
}
if (btleft > 0) {
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
break;
case 1 :
slr[h1] = 0;
}
sx[h1] = btleft2;
}
if (btright > 0) {
switch (slr[h1]) {
case 0 :
slr[h1] = 1;
break;
case 1 :
slr[h1] = 0;
}
sx[h1] = btright2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
Spawn_Mega_BusterSus1b();
pll[h2] = (pll[h2] - 2) - (lvlr[10] / 10);
slt3[h1] = (slt3[h1] + 3) - (lvlr[10] / 3);
}
h2++;
}
}
slt3[h1]++;
if (slt3[h1] > 40) {
sreset();
}
}
function Mega_Talent_PowerBuster() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1340 + (2 * plr[1]);
sx[h1] = (px[1] + 24) - (48 * plr[1]);
sy[h1] = py[1] - 30;
slr[h1] = plr[1];
slt1[h1]--;
pls1[1] = 2;
if (slt1[h1] < 1) {
SND_Explosion8.start();
if (Key.isDown(kcrush) and (ple > 99)) {
slt1[h1] = 10;
ple = ple - 100;
} else {
sx[h1] = (sx[h1] + 40) - (80 * slr[h1]);
sd[h1] = 2;
}
}
break;
case 2 :
sf[h1] = 1344 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 80) - (160 * slr[h1]);
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
Spawn_Mega_BusterSus5b();
if (pg[h2] < 1) {
pll[h2] = pll[h2] - 3;
} else {
pll[h2] = pll[h2] - 1;
}
}
h2++;
}
}
}
function Mega_Talent_MegaCrusher() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1354;
sx[h1] = px[1] + (Math.sin(slt2[h1]) * slt3[h1]);
sy[h1] = (py[1] - 30) + (Math.cos(slt2[h1]) * slt4[h1]);
if (slr[h1] > 0) {
slt2[h1] = slt2[h1] - 0.35;
} else {
slt2[h1] = slt2[h1] + 0.35;
}
slt3[h1] = slt3[h1] + 3;
slt4[h1] = slt4[h1] + 2;
slt1[h1] = (slt1[h1] + 2) + random(2);
if (slt1[h1] > 90) {
SND_LilShot1.start();
sd[h1] = 2;
slt1[h1] = 0;
}
return;
case 2 :
if (slt1[h1] < 3) {
sf[h1] = 1356;
} else {
sf[h1] = 1358;
}
sy[h1] = sy[h1] - 40;
slt1[h1]++;
if (sy[h1] < (camy - 300)) {
sd[h1] = 3;
slt1[h1] = 0;
sx[h1] = (camx - 185) + random(370);
sy[h1] = camy - 300;
}
return;
case 3 :
sf[h1] = 1360;
sy[h1] = sy[h1] + 30;
slt1[h1]++;
if (slt1[h1] <= 11) {
break;
}
fflash = 10;
if (slt1[h1] <= 14) {
break;
}
h2 = 2;
while (h2 <= 10) {
if (((((px[h2] + pxs[h2]) > (camx - 280)) and ((px[h2] - pxs[h2]) < (camx + 280))) and (py[h2] > (camy - 280))) and ((py[h2] - pys[h2]) < (camy + 140))) {
Spawn_Mega_BusterHit2b();
if (pg[h2] < 1) {
pll[h2] = pll[h2] - 50;
} else {
pll[h2] = pll[h2] - 25;
}
}
h2++;
}
SND_Explosion6.start();
fflash = 1;
sreset();
}
}
function Mega_Talent_Renegeration() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1;
h2 = 1;
while (h2 <= 4) {
if ((pll[1] < 300) and (ple > 3)) {
pll[1]++;
ple = ple - 3;
}
h2++;
}
slt1[h1]++;
if ((slt1[h1] > 3) and (sc[snumber] == 0)) {
sc[snumber] = 142;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
slt1[snumber] = 0;
slt2[snumber] = random(610) / 10;
isn();
slt1[h1] = 0;
slt2[h1]++;
} else {
isn();
}
if (((slt2[h1] > 50) or (pll[1] > 299)) or (ple < 4)) {
sreset();
}
return;
case 2 :
sf[h1] = 1368 + slt1[h1];
sx[h1] = px[1] + (Math.sin(slt2[h1]) * ((5 * slt1[h1]) + 25));
sy[h1] = (py[1] - 30) + (Math.cos(slt2[h1]) * ((5 * slt1[h1]) + 25));
slt1[h1]++;
if (slt1[h1] <= 8) {
break;
}
sreset();
}
}
function Mega_Pet_TangoFlea() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1400 + (2 * slr[h1]);
slt1[h1]++;
slt2[h1]++;
if (slt1[h1] > 12) {
sd[h1] = 31;
slt1[h1] = -7;
sy[h1] = sy[h1] - 2;
}
break;
case 3 :
sf[h1] = 1408 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 7) {
sreset();
}
break;
case 31 :
sf[h1] = 1404 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 6) - (12 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
slt2[h1]++;
break;
case 32 :
sf[h1] = 1404 + (2 * slr[h1]);
sx[h1] = (sx[h1] + 11) - (22 * slr[h1]);
sy[h1] = sy[h1] + slt1[h1];
if (slt1[h1] < 12) {
slt1[h1]++;
}
slt2[h1]++;
}
if ((slt2[h1] > 70) and (sd[h1] != 3)) {
SND_Explosion4.start();
sd[h1] = 3;
slt1[h1] = 0;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if (phit[h2] > 0) {
if (sd[h1] == 3) {
if (pg[h2] < 1) {
Spawn_Mega_BusterSus4b();
pll[h2] = (pll[h2] - 1) - (lvlr[2] / 3);
}
} else {
SND_Explosion4.start();
sd[h1] = 3;
slt1[h1] = 0;
}
}
h2++;
}
}
if (sd[h1] != 3) {
blockshottest();
if (bttop > 0) {
if (((sd[h1] == 31) or (sd[h1] == 32)) and (slt1[h1] > 0)) {
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (btleft == 1) {
slr[h1] = 1;
sx[h1] = btleft2;
}
if (btright == 1) {
slr[h1] = 0;
sx[h1] = btright2;
}
if (btbottom > 0) {
sreset();
}
}
}
function Mega_Pet_RushShot() {
sf[h1] = 1418 + (2 * slr[h1]);
sx[h1] = (sx[h1] + slt1[h1]) - ((2 * slt1[h1]) * slr[h1]);
if (slt1[h1] < 20) {
slt1[h1]++;
}
shittest();
if (((((((((phit[2] > 0) or (phit[3] > 0)) or (phit[4] > 0)) or (phit[5] > 0)) or (phit[6] > 0)) or (phit[7] > 0)) or (phit[8] > 0)) or (phit[9] > 0)) or (phit[10] > 0)) {
h2 = 2;
while (h2 <= 10) {
if ((phit[h2] > 0) and (pg[h2] < 1)) {
SND_Hit2.start();
Spawn_Mega_BusterHit1();
pll[h2] = (pll[h2] - 10) - lvlr[2];
}
h2++;
}
sreset();
}
}
function Mega_Charge_Mid() {
sf[h1] = 2008;
sy[h1] = sy[h1] - 6;
slt1[h1] = (slt1[h1] + 1) + random(2);
if (slt1[h1] > 8) {
sreset();
}
}
function Mega_Charge_Max() {
sf[h1] = 2010 + random(8);
sy[h1] = (sy[h1] - 2) + random(4);
sx[h1] = (sx[h1] - 2) + random(4);
slt1[h1]++;
if (slt1[h1] > 4) {
sreset();
}
}
function Spawn_Mega_BusterHit1() {
if (sc[snumber] == 0) {
sc[snumber] = 530;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterHit1b() {
if (sc[snumber] == 0) {
sc[snumber] = 530;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterHit1() {
sf[h1] = 2052 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function Spawn_Mega_BusterHit2() {
if (sc[snumber] == 0) {
sc[snumber] = 531;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterHit2b() {
if (sc[snumber] == 0) {
sc[snumber] = 531;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterHit2() {
sf[h1] = 2060 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function Spawn_Mega_BusterHit3() {
if (sc[snumber] == 0) {
sc[snumber] = 531;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterHit3b() {
if (sc[snumber] == 0) {
sc[snumber] = 532;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterHit3() {
sf[h1] = 2068 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function Spawn_Mega_BusterHit4() {
if (sc[snumber] == 0) {
sc[snumber] = 533;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterHit4b() {
if (sc[snumber] == 0) {
sc[snumber] = 533;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterHit4() {
sf[h1] = 2076 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function Spawn_Mega_BusterHit5() {
if (sc[snumber] == 0) {
sc[snumber] = 534;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterHit5b() {
if (sc[snumber] == 0) {
sc[snumber] = 534;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterHit5() {
sf[h1] = 2084 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function Spawn_Mega_BusterSus1() {
if (sc[snumber] == 0) {
sc[snumber] = 540;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterSus1b() {
if (sc[snumber] == 0) {
sc[snumber] = 540;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterSus1() {
sf[h1] = 2092;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
function Spawn_Mega_BusterSus2() {
if (sc[snumber] == 0) {
sc[snumber] = 541;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterSus2b() {
if (sc[snumber] == 0) {
sc[snumber] = 541;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterSus2() {
sf[h1] = 2096;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
function Spawn_Mega_BusterSus3() {
if (sc[snumber] == 0) {
sc[snumber] = 541;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterSus3b() {
if (sc[snumber] == 0) {
sc[snumber] = 542;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterSus3() {
sf[h1] = 2100;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
function Spawn_Mega_BusterSus4() {
if (sc[snumber] == 0) {
sc[snumber] = 543;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterSus4b() {
if (sc[snumber] == 0) {
sc[snumber] = 543;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterSus4() {
sf[h1] = 2104;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
function Spawn_Mega_BusterSus5() {
if (sc[snumber] == 0) {
sc[snumber] = 544;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_Mega_BusterSus5b() {
if (sc[snumber] == 0) {
sc[snumber] = 544;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Mega_BusterSus5() {
sf[h1] = 2108;
slt1[h1]++;
if (slt1[h1] > 1) {
sreset();
}
}
function Spawn_MegaRushAfter1() {
if (sc[snumber] == 0) {
sc[snumber] = 520;
slr[snumber] = plr[1];
sx[snumber] = px[h1];
sy[snumber] = py[h1];
slt1[snumber] = 0;
isn();
}
}
function MegaRushAfter1() {
sf[h1] = 2034 + (2 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 8) {
sreset();
}
}
function Spawn_MegaRushAfter2() {
if (sc[snumber] == 0) {
sc[snumber] = 521;
slr[snumber] = plr[1];
sx[snumber] = px[h1];
sy[snumber] = py[h1];
slt1[snumber] = 0;
isn();
}
}
function MegaRushAfter2() {
sf[h1] = 2038 + (2 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 8) {
sreset();
}
}
function Spawn_MegaRushAfter3() {
if (sc[snumber] == 0) {
sc[snumber] = 522;
slr[snumber] = plr[1];
sx[snumber] = px[h1];
sy[snumber] = py[h1];
slt1[snumber] = 0;
isn();
}
}
function MegaRushAfter3() {
sf[h1] = 2042 + (2 * slr[h1]);
slt1[h1]++;
if (slt1[h1] > 8) {
sreset();
}
}
function Spawn_Mega_Busters_Normal() {
switch (bustert) {
case 1 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
} else if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
} else if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
}
slr[snumber] = plr[1];
mega_shoty();
return;
case 2 :
feight = 8;
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
mega_8wayaim();
slt1[snumber] = 0;
isn();
SND_LilShot2.start();
if (pcharge > 40) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
mega_8wayaim();
slt1[snumber] = 1;
isn();
}
if (pcharge > 69) {
sc[snumber] = 4;
ssx[snumber] = 7;
ssy[snumber] = 12;
sx[snumber] = (px[1] + 22) - (44 * plr[1]);
mega_shoty();
mega_8wayaim();
slt1[snumber] = 2;
isn();
}
return;
case 3 :
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
slt1[snumber] = 0;
} else if ((pcharge > 40) and (pcharge < 70)) {
SND_LilShot1.start();
sc[snumber] = 5;
sd[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
slt1[snumber] = 0;
} else if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 5;
sd[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
slt1[snumber] = 0;
}
mega_shoty();
slr[snumber] = plr[1];
}
}
function Fire_Talent_PowerBust() {
ple = ple - 100;
SND_Missile2.start();
sc[snumber] = 140;
sd[snumber] = 1;
slr[snumber] = plr[1];
slt1[snumber] = 10;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
sy[snumber] = py[1] - 30;
}
function Fire_Talent_MegaCrush() {
ple = ple - 700;
SND_LilShot3.start();
sc[snumber] = 141;
sd[snumber] = 1;
slr[snumber] = (2 * random(2)) - 1;
slt1[snumber] = 0;
slt2[snumber] = random(610) / 10;
slt3[snumber] = 24 + random(3);
slt4[snumber] = 23 + random(3);
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
isn();
sc[snumber] = 141;
sd[snumber] = 1;
slr[snumber] = (2 * random(2)) - 1;
slt1[snumber] = 15;
slt2[snumber] = random(610) / 10;
slt3[snumber] = 24 + random(3);
slt4[snumber] = 23 + random(3);
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
isn();
sc[snumber] = 141;
sd[snumber] = 1;
slr[snumber] = (2 * random(2)) - 1;
slt1[snumber] = 30;
slt2[snumber] = random(610) / 10;
slt3[snumber] = 24 + random(3);
slt4[snumber] = 23 + random(3);
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
}
function Fire_Talent_Regeneration() {
SND_Health2.start();
ple = ple - 200;
sc[snumber] = 142;
sd[snumber] = 1;
slt1[snumber] = 0;
slt2[snumber] = 0;
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
isn();
sc[snumber] = 142;
sd[snumber] = 2;
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
slt1[snumber] = 0;
slt2[snumber] = random(610) / 10;
}
function MegaBuster_Spawn() {
if (pcharge < 41) {
SND_LilShot1.start();
sc[snumber] = 1;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
ssx[snumber] = 7;
ssy[snumber] = 6;
}
if ((pcharge > 40) and (pcharge < 70)) {
SND_Missile1.start();
sc[snumber] = 2;
sx[snumber] = (px[1] + 28) - (56 * plr[1]);
ssx[snumber] = 18;
ssy[snumber] = 18;
}
if (pcharge > 69) {
SND_Missile1.start();
sc[snumber] = 3;
sx[snumber] = (px[1] + 35) - (70 * plr[1]);
ssx[snumber] = 32;
ssy[snumber] = 18;
}
slr[snumber] = plr[1];
}
function Spawn_FrostfireShot() {
SND_LilShot3.start();
sc[snumber] = 124;
sx[snumber] = (px[1] + 60) - (120 * plr[1]);
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
ssx[snumber] = 28;
ssy[snumber] = 42;
slr[snumber] = plr[1];
if (plr[1] == 1) {
slt2[snumber] = 1.55;
} else {
slt2[snumber] = 4.7;
}
slt1[snumber] = 30;
if (pcharge > 39) {
slt1[snumber] = 40;
}
if (pcharge > 69) {
slt1[snumber] = 50;
}
sd[snumber] = 1;
isn();
sc[snumber] = 124;
sx[snumber] = (px[1] + 60) - (120 * plr[1]);
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
ssx[snumber] = 28;
ssy[snumber] = 42;
slr[snumber] = plr[1];
if (plr[1] == 1) {
slt2[snumber] = 1.55;
} else {
slt2[snumber] = 4.7;
}
slt1[snumber] = 30;
if (pcharge > 39) {
slt1[snumber] = 40;
}
if (pcharge > 69) {
slt1[snumber] = 50;
}
sd[snumber] = 2;
}
function Spawn_PlasmicBurst() {
SND_LilShot3.start();
sc[snumber] = 130;
if (pd[1] < 31) {
sd[snumber] = 1;
} else {
sd[snumber] = 2;
}
sx[snumber] = px[1];
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
slr[snumber] = ((-2 * plr[1]) + 1) / 4;
ssx[snumber] = 25;
ssy[snumber] = 50;
slt1[snumber] = 0;
if (plr[1] == 0) {
slt2[snumber] = 1.55;
} else {
slt2[snumber] = 4.7;
}
if (lvlr[10] > 0) {
h4 = random(100);
if (h4 < (20 * lvlr[10])) {
isn();
sc[snumber] = 130;
if (pd[1] < 31) {
sd[snumber] = 1;
} else {
sd[snumber] = 2;
}
sx[snumber] = px[1];
mega_shoty();
slt3[snumber] = sx[snumber];
slt4[snumber] = sy[snumber];
slr[snumber] = ((2 * plr[1]) - 1) / 4;
ssx[snumber] = 25;
ssy[snumber] = 50;
slt1[snumber] = 0;
if (plr[1] == 0) {
slt2[snumber] = 1.55;
} else {
slt2[snumber] = 4.7;
}
}
}
}
function Spawn_PyroBalloon() {
SND_Balloon1.start();
sc[snumber] = 133;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 24;
ssy[snumber] = 48;
slt1[snumber] = 0;
slt2[snumber] = 2;
slt3[snumber] = -12;
slt4[snumber] = random(4);
isn();
sc[snumber] = 133;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 24;
ssy[snumber] = 48;
slt1[snumber] = 10;
slt2[snumber] = 4;
slt3[snumber] = -10;
slt4[snumber] = random(4);
isn();
if ((pcharge > 69) and (sc[snumber] == 0)) {
sc[snumber] = 133;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 24;
ssy[snumber] = 48;
slt1[snumber] = 20;
slt2[snumber] = 6;
slt3[snumber] = -8;
slt4[snumber] = random(4);
isn();
}
if (lvlr[10] > 2) {
sc[snumber] = 133;
sd[snumber] = 1;
slr[snumber] = plr[1];
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 8;
ssx[snumber] = 24;
ssy[snumber] = 48;
slt1[snumber] = -10;
slt2[snumber] = 1;
slt3[snumber] = -14;
slt4[snumber] = random(4);
}
}
function Spawn_TwisterSwarm() {
SND_LilLaser1.start();
sc[snumber] = 139;
sx[snumber] = (px[1] + 16) - (32 * plr[1]);
sy[snumber] = py[1];
ssx[snumber] = 14;
ssy[snumber] = 40;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt2[snumber] = 4;
slt3[snumber] = 0;
isn();
sc[snumber] = 139;
sx[snumber] = (px[1] + 18) - (36 * plr[1]);
sy[snumber] = py[1];
ssx[snumber] = 14;
ssy[snumber] = 40;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt2[snumber] = 6;
slt3[snumber] = 0;
isn();
if (pcharge > 69) {
sc[snumber] = 139;
sx[snumber] = (px[1] + 20) - (40 * plr[1]);
sy[snumber] = py[1];
ssx[snumber] = 14;
ssy[snumber] = 40;
slr[snumber] = plr[1];
sd[snumber] = 31;
slt2[snumber] = 8;
slt3[snumber] = 0;
isn();
}
}
function Spawn_TheBrick() {
SND_Fire1.start();
sc[snumber] = 138;
sx[snumber] = (px[1] + 24) - (48 * plr[1]);
mega_shoty();
sy[snumber] = sy[snumber] + 10;
ssx[snumber] = 16;
ssy[snumber] = 32;
slr[snumber] = plr[1];
sd[snumber] = 1;
slt1[snumber] = -6;
if (Key.isDown(kup)) {
sd[snumber] = 2;
slt1[snumber] = -12;
}
if (Key.isDown(kdown)) {
sd[snumber] = 3;
slt1[snumber] = 1;
}
}
Frame 16
function calc_weapon_cost() {
calc_weapon_figure1();
calc_weapon_figure2();
if (weap1 > 0) {
weap1c = Math.round(weap1c / (1 + (lvlr[7] / 10)));
}
if (weap2 > 0) {
weap2c = Math.round(weap2c / (1 + (lvlr[7] / 10)));
}
}
function calc_weapon_figure1() {
switch (weap1) {
case 0 :
weap1c = 0;
return;
case 21 :
weap1c = 130;
return;
case 22 :
weap1c = 136;
return;
case 23 :
weap1c = 120;
return;
case 24 :
weap1c = 60;
return;
case 25 :
weap1c = 150;
return;
case 26 :
weap1c = 130;
return;
case 27 :
weap1c = 150;
return;
case 28 :
weap1c = 125;
return;
case 29 :
weap1c = 75;
return;
case 30 :
weap1c = 144;
return;
case 31 :
weap1c = 220;
return;
case 32 :
weap1c = 90;
return;
case 33 :
weap1c = 75;
return;
case 34 :
weap1c = 400;
return;
case 35 :
weap1c = 100;
return;
case 36 :
weap1c = 125;
return;
case 37 :
weap1c = 115;
return;
case 38 :
weap1c = 75;
return;
case 39 :
weap1c = 50;
return;
case 40 :
weap1c = 115;
return;
case 41 :
weap1c = 160;
return;
case 42 :
weap1c = 51;
return;
case 43 :
weap1c = 175;
return;
case 44 :
weap1c = 156;
return;
case 45 :
weap1c = 180;
return;
case 46 :
weap1c = 310;
return;
case 47 :
weap1c = 140;
return;
case 48 :
weap1c = 80;
return;
case 49 :
weap1c = 75;
return;
case 50 :
weap1c = 305;
return;
case 51 :
weap1c = 40;
return;
case 52 :
weap1c = 150;
return;
case 53 :
weap1c = 260;
return;
case 54 :
weap1c = 115;
return;
case 55 :
weap1c = 156;
return;
case 56 :
weap1c = 255;
return;
case 57 :
weap1c = 280;
return;
case 58 :
weap1c = 75;
return;
case 59 :
weap1c = 200;
return;
case 60 :
weap1c = 469;
return;
case 61 :
weap1c = 128;
return;
case 62 :
weap1c = 140;
return;
case 63 :
weap1c = 320;
return;
case 64 :
weap1c = 75;
return;
case 65 :
weap1c = 75;
return;
case 66 :
weap1c = 75;
return;
case 67 :
weap1c = 112;
return;
case 68 :
weap1c = 340;
return;
case 69 :
weap1c = 300;
return;
case 70 :
weap1c = 140;
return;
case 71 :
weap1c = 100;
return;
case 72 :
weap1c = 98;
return;
case 73 :
weap1c = 140;
return;
case 74 :
weap1c = 125;
return;
case 75 :
weap1c = 320;
return;
case 76 :
weap1c = 98;
return;
case 77 :
weap1c = 180;
return;
case 78 :
weap1c = 250;
return;
case 79 :
weap1c = 260;
return;
case 80 :
weap1c = 150;
return;
case 81 :
weap1c = 240;
return;
case 82 :
weap1c = 50;
return;
case 83 :
weap1c = 600;
return;
case 84 :
weap1c = 104;
return;
case 85 :
weap1c = 188;
return;
case 86 :
weap1c = 230;
return;
case 87 :
weap1c = 76;
return;
case 88 :
weap1c = 130;
return;
case 89 :
weap1c = 100;
return;
case 90 :
weap1c = 190;
return;
case 91 :
weap1c = 336;
return;
case 92 :
weap1c = 300;
return;
case 93 :
weap1c = 400;
return;
case 94 :
weap1c = 310;
return;
case 95 :
weap1c = 50;
return;
case 96 :
weap1c = 136;
return;
case 97 :
weap1c = 180;
return;
case 98 :
weap1c = 180;
return;
case 99 :
weap1c = 40;
return;
case 100 :
weap1c = 196;
return;
case 101 :
weap1c = 50;
return;
case 102 :
weap1c = 55;
return;
case 103 :
weap1c = 75;
return;
case 111 :
weap1c = 310;
return;
case 112 :
weap1c = 72;
return;
case 113 :
weap1c = 732;
return;
case 114 :
weap1c = 188;
return;
case 115 :
weap1c = 150;
return;
case 116 :
weap1c = 190;
return;
case 117 :
weap1c = 72;
return;
case 118 :
weap1c = 240;
return;
case 119 :
weap1c = 315;
return;
case 120 :
weap1c = 180;
return;
case 121 :
weap1c = 130;
return;
case 122 :
weap1c = 295;
return;
case 123 :
weap1c = 113;
return;
case 124 :
weap1c = 230;
return;
case 125 :
weap1c = 250;
return;
case 126 :
weap1c = 155;
return;
case 127 :
weap1c = 300;
return;
case 128 :
weap1c = 224;
return;
case 129 :
weap1c = 179;
return;
case 130 :
weap1c = 190;
}
}
function calc_weapon_figure2() {
switch (weap2) {
case 0 :
weap2c = 0;
return;
case 21 :
weap2c = 130;
return;
case 22 :
weap2c = 136;
return;
case 23 :
weap2c = 120;
return;
case 24 :
weap2c = 60;
return;
case 25 :
weap2c = 150;
return;
case 26 :
weap2c = 130;
return;
case 27 :
weap2c = 150;
return;
case 28 :
weap2c = 125;
return;
case 29 :
weap2c = 75;
return;
case 30 :
weap2c = 144;
return;
case 31 :
weap2c = 220;
return;
case 32 :
weap2c = 90;
return;
case 33 :
weap2c = 75;
return;
case 34 :
weap2c = 400;
return;
case 35 :
weap2c = 100;
return;
case 36 :
weap2c = 125;
return;
case 37 :
weap2c = 115;
return;
case 38 :
weap2c = 75;
return;
case 39 :
weap2c = 50;
return;
case 40 :
weap2c = 115;
return;
case 41 :
weap2c = 160;
return;
case 42 :
weap2c = 51;
return;
case 43 :
weap2c = 175;
return;
case 44 :
weap2c = 156;
return;
case 45 :
weap2c = 180;
return;
case 46 :
weap2c = 310;
return;
case 47 :
weap2c = 140;
return;
case 48 :
weap2c = 80;
return;
case 49 :
weap2c = 75;
return;
case 50 :
weap2c = 305;
return;
case 51 :
weap2c = 40;
return;
case 52 :
weap2c = 150;
return;
case 53 :
weap2c = 260;
return;
case 54 :
weap2c = 115;
return;
case 55 :
weap2c = 156;
return;
case 56 :
weap2c = 255;
return;
case 57 :
weap2c = 280;
return;
case 58 :
weap2c = 75;
return;
case 59 :
weap2c = 200;
return;
case 60 :
weap2c = 469;
return;
case 61 :
weap2c = 128;
return;
case 62 :
weap2c = 140;
return;
case 63 :
weap2c = 320;
return;
case 64 :
weap2c = 75;
return;
case 65 :
weap2c = 75;
return;
case 66 :
weap2c = 75;
return;
case 67 :
weap2c = 112;
return;
case 68 :
weap2c = 340;
return;
case 69 :
weap2c = 300;
return;
case 70 :
weap2c = 140;
return;
case 71 :
weap2c = 100;
return;
case 72 :
weap2c = 98;
return;
case 73 :
weap2c = 140;
return;
case 74 :
weap2c = 125;
return;
case 75 :
weap2c = 320;
return;
case 76 :
weap2c = 98;
return;
case 77 :
weap2c = 180;
return;
case 78 :
weap2c = 250;
return;
case 79 :
weap2c = 260;
return;
case 80 :
weap2c = 150;
return;
case 81 :
weap2c = 240;
return;
case 82 :
weap2c = 50;
return;
case 83 :
weap2c = 600;
return;
case 84 :
weap2c = 104;
return;
case 85 :
weap2c = 188;
return;
case 86 :
weap2c = 230;
return;
case 87 :
weap2c = 76;
return;
case 88 :
weap2c = 130;
return;
case 89 :
weap2c = 100;
return;
case 90 :
weap2c = 190;
return;
case 91 :
weap2c = 336;
return;
case 92 :
weap2c = 300;
return;
case 93 :
weap2c = 400;
return;
case 94 :
weap2c = 310;
return;
case 95 :
weap2c = 50;
return;
case 96 :
weap2c = 136;
return;
case 97 :
weap2c = 180;
return;
case 98 :
weap2c = 180;
return;
case 99 :
weap2c = 40;
return;
case 100 :
weap2c = 196;
return;
case 101 :
weap2c = 50;
return;
case 102 :
weap2c = 55;
return;
case 103 :
weap2c = 75;
return;
case 111 :
weap2c = 310;
return;
case 112 :
weap2c = 72;
return;
case 113 :
weap2c = 732;
return;
case 114 :
weap2c = 188;
return;
case 115 :
weap2c = 150;
return;
case 116 :
weap2c = 190;
return;
case 117 :
weap2c = 72;
return;
case 118 :
weap2c = 240;
return;
case 119 :
weap2c = 315;
return;
case 120 :
weap2c = 180;
return;
case 121 :
weap2c = 130;
return;
case 122 :
weap2c = 295;
return;
case 123 :
weap2c = 113;
return;
case 124 :
weap2c = 230;
return;
case 125 :
weap2c = 250;
return;
case 126 :
weap2c = 155;
return;
case 127 :
weap2c = 300;
return;
case 128 :
weap2c = 224;
return;
case 129 :
weap2c = 179;
return;
case 130 :
weap2c = 190;
}
}
function calc_weapon_refund() {
switch (pan) {
case 21 :
h6 = 130;
break;
case 22 :
h6 = 136;
break;
case 23 :
h6 = 120;
break;
case 24 :
h6 = 60;
break;
case 25 :
h6 = 150;
break;
case 26 :
h6 = 130;
break;
case 27 :
h6 = 150;
break;
case 28 :
h6 = 125;
break;
case 29 :
h6 = 75;
break;
case 30 :
h6 = 144;
break;
case 31 :
h6 = 220;
break;
case 32 :
h6 = 90;
break;
case 33 :
h6 = 75;
break;
case 34 :
h6 = 400;
break;
case 35 :
h6 = 100;
break;
case 36 :
h6 = 125;
break;
case 37 :
h6 = 115;
break;
case 38 :
h6 = 75;
break;
case 39 :
h6 = 50;
break;
case 40 :
h6 = 115;
break;
case 41 :
h6 = 160;
break;
case 42 :
h6 = 51;
break;
case 43 :
h6 = 175;
break;
case 44 :
h6 = 156;
break;
case 45 :
h6 = 180;
break;
case 46 :
h6 = 310;
break;
case 47 :
h6 = 140;
break;
case 48 :
h6 = 80;
break;
case 49 :
h6 = 75;
break;
case 50 :
h6 = 305;
break;
case 51 :
h6 = 40;
break;
case 52 :
h6 = 150;
break;
case 53 :
h6 = 260;
break;
case 54 :
h6 = 115;
break;
case 55 :
h6 = 156;
break;
case 56 :
h6 = 255;
break;
case 57 :
h6 = 280;
break;
case 58 :
h6 = 75;
break;
case 59 :
h6 = 200;
break;
case 60 :
h6 = 469;
break;
case 61 :
h6 = 128;
break;
case 62 :
h6 = 140;
break;
case 63 :
h6 = 320;
break;
case 64 :
h6 = 75;
break;
case 65 :
h6 = 75;
break;
case 66 :
h6 = 75;
break;
case 67 :
h6 = 112;
break;
case 68 :
h6 = 340;
break;
case 69 :
h6 = 300;
break;
case 70 :
h6 = 140;
break;
case 71 :
h6 = 100;
break;
case 72 :
h6 = 98;
break;
case 73 :
h6 = 140;
break;
case 74 :
h6 = 125;
break;
case 75 :
h6 = 320;
break;
case 76 :
h6 = 98;
break;
case 77 :
h6 = 180;
break;
case 78 :
h6 = 250;
break;
case 79 :
h6 = 260;
break;
case 80 :
h6 = 150;
break;
case 81 :
h6 = 240;
break;
case 82 :
h6 = 50;
break;
case 83 :
h6 = 600;
break;
case 84 :
h6 = 104;
break;
case 85 :
h6 = 188;
break;
case 86 :
h6 = 230;
break;
case 87 :
h6 = 76;
break;
case 88 :
h6 = 130;
break;
case 89 :
h6 = 100;
break;
case 90 :
h6 = 190;
break;
case 91 :
h6 = 336;
break;
case 92 :
h6 = 300;
break;
case 93 :
h6 = 400;
break;
case 94 :
h6 = 310;
break;
case 95 :
h6 = 50;
break;
case 96 :
h6 = 136;
break;
case 97 :
h6 = 180;
break;
case 98 :
h6 = 180;
break;
case 99 :
h6 = 40;
break;
case 100 :
h6 = 196;
break;
case 101 :
h6 = 50;
break;
case 102 :
h6 = 55;
break;
case 103 :
h6 = 75;
break;
case 111 :
h6 = 310;
break;
case 112 :
h6 = 72;
break;
case 113 :
h6 = 732;
break;
case 114 :
h6 = 188;
break;
case 115 :
h6 = 150;
break;
case 116 :
h6 = 190;
break;
case 117 :
h6 = 72;
break;
case 118 :
h6 = 240;
break;
case 119 :
h6 = 315;
break;
case 120 :
h6 = 180;
break;
case 121 :
h6 = 130;
break;
case 122 :
h6 = 295;
break;
case 123 :
h6 = 113;
break;
case 124 :
h6 = 230;
break;
case 125 :
h6 = 250;
break;
case 126 :
h6 = 155;
break;
case 127 :
h6 = 300;
break;
case 128 :
h6 = 224;
break;
case 129 :
h6 = 179;
break;
case 130 :
h6 = 190;
}
ple = ple + Math.round(h6 / (1 + (lvlr[7] / 10)));
if (ple > 1000) {
ple = 1000;
}
}
Frame 21
function fr_auto() {
switch (pd[h1]) {
case 1 :
pf[h1] = 600 + (2 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
break;
case 2 :
pf[h1] = 604 + (2 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
plt1[h1]--;
if (plt1[h1] >= 1) {
break;
}
pd[h1] = 1;
}
baddytp();
if (h4 > 0) {
pd[h1] = 2;
plt1[h1] = 10;
sc[1] = 1000;
sx[1] = camx - 275;
sy[1] = camy - 10;
slt1[1] = 20;
slt2[1] = 3000;
isn();
}
}
function fr_fliptop() {
switch (pd[h1]) {
case 1 :
pf[h1] = 610 + (2 * plr[h1]);
if ((px[1] + 60) < px[h1]) {
plr[h1] = 1;
pd[h1] = 3;
}
if ((px[1] - 60) > px[h1]) {
plr[h1] = 0;
pd[h1] = 3;
}
return;
case 3 :
pf[h1] = 614 + (2 * plr[h1]);
px[h1] = (px[h1] + 3) - (6 * plr[h1]);
if ((px[1] + 60) < px[h1]) {
plr[h1] = 1;
}
if ((px[1] - 60) > px[h1]) {
plr[h1] = 0;
}
if (!(((px[1] - 45) < px[h1]) and ((px[1] + 45) > px[h1]))) {
break;
}
pd[h1] = 1;
}
}
function fr_samus() {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 620;
}
baddytp();
if (h4 > 0) {
sc[1] = 1000;
sx[1] = camx - 275;
sy[1] = camy - 10;
slt1[1] = 20;
slt2[1] = 3001;
isn();
}
}
function fr_firion() {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 624 + (2 * plr[h1]);
px[h1] = (px[h1] + 5) - (10 * plr[h1]);
if (px[h1] > (camxm - 60)) {
plr[h1] = 1;
}
if (px[h1] < 60) {
plr[h1] = 0;
}
}
baddytp();
if (h4 > 0) {
sc[1] = 1000;
sx[1] = camx - 275;
sy[1] = camy - 10;
slt1[1] = 35;
slt2[1] = 3002;
isn();
}
}
Frame 25
function chat_shot() {
sf[h1] = slt2[h1];
sx[h1] = camx - 275;
sy[h1] = camy - 10;
slt1[h1]--;
if (slt1[h1] < 1) {
sreset();
}
}
Frame 30
function breset() {
pc[h1] = 0;
px[h1] = -2000;
py[h1] = 2000;
pxs[h1] = 0;
pxy[h1] = 0;
pm[h1] = 0;
pf[h1] = 1;
pd[h1] = 0;
pg[h1] = 0;
plr[h1] = 0;
pll[h1] = 0;
pllm[h1] = 0;
plt1[h1] = 0;
plt2[h1] = 0;
pls1[h1] = 0;
pls2[h1] = 0;
}
function baddy_dist() {
h4 = 0;
if (((((px[h1] - pxs[h1]) < (camx + 300)) and ((px[h1] + pxs[h1]) > (camx - 300))) and ((py[h1] - pys[h1]) < (camy + 160))) and (py[h1] > (camy - 300))) {
h4 = 1;
}
}
function baddy_lildeath() {
if (pll[h1] < 1) {
SND_Explosion1.start();
pc[h1] = 501;
plt1[h1] = 0;
plt2[h1] = 0;
}
}
function baddy_bigdeath() {
if (pll[h1] < 1) {
SND_Explosion1.start();
pc[h1] = 502;
plt1[h1] = 0;
plt2[h1] = 0;
}
}
Frame 31
function lb_hardhat1() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 12 + (20 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
h2 = random(100 + fdiff);
if (h2 < 12) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
pg[h1] = 1;
break;
case 2 :
if (plt1[h1] < 4) {
pf[h1] = 14 + (20 * plr[h1]);
}
if ((plt1[h1] > 3) and (plt1[h1] < 7)) {
pf[h1] = 16 + (20 * plr[h1]);
}
if (plt1[h1] > 6) {
pf[h1] = 18 + (20 * plr[h1]);
}
plt1[h1]++;
if (plt1[h1] > 9) {
pd[h1] = 3;
plt1[h1] = 2 * random(10);
if (sc[snumber] == 0) {
sc[snumber] = 401;
baddy_aim8();
SND_LilShot2.start();
sx[snumber] = (px[h1] + 10) - (20 * plr[h1]);
sy[snumber] = py[h1] - 20;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
}
pg[h1] = 0;
break;
case 3 :
pf[h1] = 20 + (20 * plr[h1]);
plt1[h1]++;
px[h1] = (px[h1] + 6) - (12 * plr[h1]);
if (plt1[h1] > 24) {
pd[h1] = 4;
plt1[h1] = 0;
h2 = random(100 + fdiff);
if ((h2 < 30) or ((py[1] + 40) < py[h1])) {
pd[h1] = 31;
plt1[h1] = -12;
}
}
pg[h1] = 0;
break;
case 4 :
pf[h1] = 22 + (20 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 3) {
pd[h1] = 1;
plt1[h1] = 0;
}
pg[h1] = 0;
break;
case 31 :
pf[h1] = 24 + (20 * plr[h1]);
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
pg[h1] = 0;
}
} else if (pg[h1] < 1) {
pf[h1] = 26 + (20 * plr[h1]);
} else {
pf[h1] = 398 + (2 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_gr_stomper() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 50 + (10 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
h2 = random(100 + fdiff);
if (h2 < 10) {
pd[h1] = 31;
plt1[h1] = -18;
}
}
break;
case 31 :
if (plt1[h1] <= 0) {
pf[h1] = 52 + (10 * plr[h1]);
} else {
pf[h1] = 54 + (10 * plr[h1]);
}
px[h1] = (px[h1] + 3) - (6 * plr[h1]);
if (px[1] < px[h1]) {
px[h1] = px[h1] - 2;
} else {
px[h1] = px[h1] + 2;
}
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
} else {
pf[h1] = 56 + (10 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_bigdeath();
}
function lb_gr_hhgod() {
if (pice[h1] < 1) {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 186 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
if (fpace < 7) {
py[h1]++;
} else {
py[h1]--;
}
if ((((ftimer == 1) or (ftimer == 41)) or (ftimer == 81)) and (sc[snumber] == 0)) {
sc[snumber] = 402;
slt1[snumber] = 0;
slt2[snumber] = (px[1] - px[h1]) / 15;
slt3[snumber] = ((py[1] - 30) - (py[h1] - 50)) / 15;
SND_Zap1.start();
sx[snumber] = (px[h1] + 20) - (40 * plr[h1]);
sy[snumber] = py[h1] - 30;
ssx[snumber] = 20;
ssy[snumber] = 20;
isn();
}
}
}
} else {
pf[h1] = 190 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 200;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_bigdeath();
}
function lb_gr_copter() {
if (pice[h1] < 1) {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 70 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
plr[h1] = 1;
if ((px[1] + 110) < px[h1]) {
px[h1] = px[h1] - 3;
} else {
px[h1] = px[h1] + 2;
}
} else {
plr[h1] = 0;
if ((px[1] - 110) > px[h1]) {
px[h1] = px[h1] + 3;
} else {
px[h1] = px[h1] - 2;
}
}
if ((py[1] - 120) < py[h1]) {
py[h1] = py[h1] - 1;
} else {
py[h1] = py[h1] + 2;
}
if (((((ftimer == 25) or (ftimer == 55)) or (ftimer == 85)) or (ftimer == 115)) and (sc[snumber] == 0)) {
sc[snumber] = 401;
if (px[1] < px[h1]) {
slr[snumber] = 7;
} else {
slr[snumber] = 5;
}
SND_LilShot2.start();
sx[snumber] = (px[h1] - 25) + (50 * plr[h1]);
sy[snumber] = py[h1] - 20;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
}
}
} else {
pf[h1] = 74 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_bigdeath();
}
function barr_moon() {
if (pice[h1] < 1) {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 80 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
plr[h1] = 1;
if (plt1[h1] > -6) {
plt1[h1] = plt1[h1] - 0.5;
}
} else {
plr[h1] = 0;
if (plt1[h1] < 6) {
plt1[h1] = plt1[h1] + 0.5;
}
}
if ((py[1] - 30) < py[h1]) {
if (plt2[h1] > -8) {
plt2[h1] = plt2[h1] - 0.5;
}
} else if (plt2[h1] < 8) {
plt2[h1] = plt2[h1] + 0.5;
}
px[h1] = px[h1] + plt1[h1];
py[h1] = py[h1] + plt2[h1];
}
}
} else {
pf[h1] = 84;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_barr_ball() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 172 + (2 * plr[h1]);
baddy_dist();
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
pg[h1] = 1;
if (h4 > 0) {
if (plt1[h1] < 30) {
plt1[h1]++;
}
if (px[1] < px[h1]) {
px[h1] = px[h1] - 2;
} else {
px[h1] = px[h1] + 2;
}
if ((py[1] - 90) < py[h1]) {
py[h1] = py[h1] - 2;
}
if ((py[1] - 70) > py[h1]) {
py[h1]++;
}
h2 = random(100 + fdiff);
if ((h2 < 20) and (plt1[h1] > 24)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = 176 + (2 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if (!((plt1[h1] > 16) and (sc[snumber] == 0))) {
break;
}
sc[snumber] = 401;
baddy_aim8();
SND_LilShot2.start();
sx[snumber] = px[h1];
sy[snumber] = py[h1] - 20;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
pd[h1] = 1;
plt1[h1] = 0;
}
} else if (pg[h1] < 1) {
pf[h1] = 180 + (2 * plr[h1]);
} else {
pf[h1] = 450;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function barr_spike() {
if (pice[h1] < 1) {
if (!(pd[h1] === 1)) {
} else {
pf[h1] = 88;
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
px[h1] = px[h1] - 2;
} else {
px[h1] = px[h1] + 2;
}
if ((py[1] - 30) < py[h1]) {
py[h1]--;
} else {
py[h1]++;
}
}
}
} else {
pf[h1] = 90;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_barrel_copter() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 286 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
if (py[h1] > plt2[h1]) {
py[h1] = py[h1] - 2;
}
if (py[h1] < plt2[h1]) {
py[h1] = plt2[h1];
}
if ((((px[1] + 110) > px[h1]) and ((px[1] - 110) < px[h1])) and (py[1] > py[h1])) {
pd[h1] = 2;
plt1[h1] = 14;
}
}
break;
case 2 :
pf[h1] = 286 + (2 * plr[h1]);
px[h1] = (px[h1] + 5) - (10 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if ((py[1] - 30) > py[h1]) {
py[h1] = py[h1] + 2;
}
if ((py[1] - 30) < py[h1]) {
py[h1] = py[h1] - 2;
}
if (plt1[h1] <= -15) {
break;
}
plt1[h1]--;
if (plt1[h1] >= -14) {
break;
}
pd[h1] = 1;
}
} else {
pf[h1] = 290 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_barrel_flame() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 440;
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
px[h1] = px[h1] - 2;
} else {
px[h1] = px[h1] + 2;
}
if ((py[1] - 100) < py[h1]) {
py[h1]--;
} else {
py[h1]++;
}
plt1[h1]++;
h2 = random(100 + fdiff);
if ((h2 < 20) and (plt1[h1] > 29)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
if (plt1[h1] < 4) {
pf[h1] = 442;
} else {
pf[h1] = 444;
}
plt1[h1]++;
if (!((plt1[h1] > 8) and (sc[snumber] == 0))) {
break;
}
pd[h1] = 1;
plt1[h1] = 0;
SND_LilShot2.start();
sc[snumber] = 406;
sd[snumber] = 1;
slr[snumber] = 3;
sx[snumber] = px[h1];
sy[snumber] = py[h1] + 20;
ssx[snumber] = 10;
ssy[snumber] = 20;
isn();
}
} else {
pf[h1] = 90;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function turr_copterb() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 98 + (6 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
if ((sc[snumber] == 0) and ((((ftimer == 10) or (ftimer == 40)) or (ftimer == 70)) or (ftimer == 100))) {
SND_LilShot2.start();
sc[snumber] = 401;
slr[snumber] = 9 + (4 * plr[h1]);
sx[snumber] = (px[h1] + 16) - (32 * plr[h1]);
sy[snumber] = py[h1] - 30;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
sc[snumber] = 401;
slr[snumber] = 10 + (4 * plr[h1]);
sx[snumber] = (px[h1] + 16) - (32 * plr[h1]);
sy[snumber] = py[h1] - 10;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
}
break;
case 31 :
pf[h1] = 98 + (6 * plr[h1]);
px[h1] = (px[h1] - 4) + (8 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
break;
case 32 :
pf[h1] = 94 + (6 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
py[h1] = py[h1] + plt1[h1];
if (((py[1] - 30) < py[h1]) and (plt1[h1] > -10)) {
plt1[h1]--;
}
if (((py[1] - 30) > py[h1]) and (plt1[h1] < 10)) {
plt1[h1]++;
}
baddy_dist();
if (h4 <= 0) {
break;
}
if (!((sc[snumber] == 0) and ((((ftimer == 10) or (ftimer == 40)) or (ftimer == 70)) or (ftimer == 100)))) {
break;
}
SND_LilShot2.start();
sc[snumber] = 401;
slr[snumber] = 9 + (4 * plr[h1]);
sx[snumber] = (px[h1] + 16) - (32 * plr[h1]);
sy[snumber] = py[h1] - 30;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
sc[snumber] = 401;
slr[snumber] = 10 + (4 * plr[h1]);
sx[snumber] = (px[h1] + 16) - (32 * plr[h1]);
sy[snumber] = py[h1] - 10;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
} else if ((pd[h1] == 32) or (pd[h1] == 33)) {
pf[h1] = 106 + (2 * plr[h1]);
} else {
pf[h1] = 110 + (2 * plr[h1]);
}
if (pll[h1] < 50) {
if ((pd[h1] == 32) or (pd[h1] == 33)) {
pd[h1] = 31;
plt1[h1] = 1;
}
}
blocktouchtest();
if ((bttop == 0) and (pd[h1] < 31)) {
pd[h1] = 31;
plt1[h1] = 1;
}
if ((bttop == 1) and (pd[h1] > 30)) {
if (pd[h1] == 32) {
plt1[h1] = -12;
} else {
pd[h1] = 1;
plt1[h1] = 0;
}
py[h1] = bttop2;
}
if ((btbottom == 1) and (pd[h1] > 30)) {
if (pd[h1] == 32) {
plt1[h1] = 12;
} else {
pd[h1] = 31;
plt1[h1] = 1;
}
py[h1] = btbottom2;
}
if (btleft == 1) {
px[h1] = btleft2;
}
if (btright == 1) {
px[h1] = btright2;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_turr_wall() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 214 + (10 * plr[h1]);
px[h1] = (px[h1] - 4) + (8 * plr[h1]);
pg[h1] = 1;
baddy_dist();
if (h4 > 0) {
if ((ftimer == 10) or (ftimer == 70)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = (216 + (plt1[h1] / 2)) + (10 * plr[h1]);
px[h1] = (px[h1] - 4) + (8 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if (plt1[h1] > 8) {
pd[h1] = 3;
plt1[h1] = 0;
}
break;
case 3 :
pf[h1] = 220 + (10 * plr[h1]);
px[h1] = (px[h1] - 4) + (8 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if ((((plt1[h1] == 2) or (plt1[h1] == 7)) or (plt1[h1] == 12)) and (sc[snumber] == 0)) {
SND_Missile1.start();
sc[snumber] = 403;
slr[snumber] = plr[h1];
sx[snumber] = (px[h1] + 16) - (32 * plr[h1]);
sy[snumber] = py[h1] - 20;
ssx[snumber] = 12;
ssy[snumber] = 12;
isn();
}
if (plt1[h1] > 15) {
pd[h1] = 4;
plt1[h1] = 0;
}
break;
case 4 :
pf[h1] = (219 - (plt1[h1] / 2)) + (10 * plr[h1]);
px[h1] = (px[h1] - 4) + (8 * plr[h1]);
pg[h1] = 1;
plt1[h1]++;
if (plt1[h1] <= 8) {
break;
}
pd[h1] = 1;
}
} else {
pf[h1] = 222 + (10 * plr[h1]);
}
blocktouchtest();
if (bttop > 0) {
py[h1] = bttop2;
}
if (btbottom > 0) {
py[h1] = btbottom2;
}
if (btleft > 0) {
px[h1] = btleft2;
}
if (btright > 0) {
px[h1] = btright2;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_turr_dome() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 376 + (10 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
if (plt1[h1] > 0) {
plt1[h1]--;
}
h2 = random(100 + fdiff);
if ((h2 < 20) and (plt1[h1] < 1)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
pg[h1] = 1;
break;
case 2 :
pf[h1] = 378 + (10 * plr[h1]);
plt1[h1]++;
if ((plt1[h1] > 12) and (sc[snumber] == 0)) {
pd[h1] = 3;
plt1[h1] = 0;
sc[snumber] = 403;
SND_Missile1.start();
sx[snumber] = (px[h1] + 20) - (40 * plr[h1]);
sy[snumber] = py[h1] - 20;
slr[snumber] = plr[h1];
ssx[snumber] = 12;
ssy[snumber] = 6;
isn();
}
pg[h1] = 0;
break;
case 3 :
pf[h1] = 380 + (10 * plr[h1]);
plt1[h1]++;
if ((plt1[h1] > 10) and (sc[snumber] == 0)) {
pd[h1] = 4;
plt1[h1] = 0;
sc[snumber] = 403;
SND_Missile1.start();
sx[snumber] = (px[h1] + 20) - (40 * plr[h1]);
sy[snumber] = py[h1] - 20;
slr[snumber] = plr[h1];
ssx[snumber] = 12;
ssy[snumber] = 6;
isn();
}
pg[h1] = 0;
break;
case 4 :
pf[h1] = 378 + (10 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 8) {
pd[h1] = 1;
plt1[h1] = 40;
}
pg[h1] = 0;
break;
case 31 :
pf[h1] = 380 + (10 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
pg[h1] = 0;
}
} else if (pg[h1] < 1) {
pf[h1] = 384 + (10 * plr[h1]);
} else {
pf[h1] = 382 + (10 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_rcr_alex() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 116 + (28 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
h2 = random(100 + fdiff);
if (((h2 < 15) and ((px[1] + 320) > px[h1])) and ((px[1] - 320) < px[h1])) {
pd[h1] = 3;
plt1[h1] = 0;
}
if (((h2 > 20) and (h2 < 40)) and (((px[1] + 300) < px[h1]) or ((px[1] - 300) > px[h1]))) {
pd[h1] = 4;
plt1[h1] = 0;
}
if ((((h2 > 50) and (h2 < 70)) and ((px[1] + 80) > px[h1])) and ((px[1] - 80) < px[h1])) {
pd[h1] = 5;
plt1[h1] = 0;
}
if (((h2 > 80) and (h2 < 90)) and ((py[1] + 60) < py[h1])) {
pd[h1] = 31;
plt1[h1] = -13;
}
}
break;
case 3 :
pf[h1] = (118 + (plt1[h1] / 2)) + (28 * plr[h1]);
plt1[h1]++;
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
if (((px[1] + 50) > px[h1]) and ((px[1] - 50) < px[h1])) {
pd[h1] = 5;
plt1[h1] = 0;
}
if (plt1[h1] > 7) {
h2 = random(100 + fdiff);
pd[h1] = 1;
if (((h2 < 65) and ((px[1] + 320) > px[h1])) and ((px[1] - 320) < px[h1])) {
pd[h1] = 3;
plt1[h1] = 0;
}
if (((h2 > 70) and (h2 < 90)) and ((py[1] + 60) < py[h1])) {
pd[h1] = 31;
plt1[h1] = -13;
}
}
break;
case 4 :
pf[h1] = 122 + (28 * plr[h1]);
plt1[h1]++;
px[h1] = (px[h1] + 10) - (20 * plr[h1]);
if (plt1[h1] > 10) {
h2 = random(100 + fdiff);
pd[h1] = 1;
if (((h2 < 35) and ((px[1] + 250) > px[h1])) and ((px[1] - 250) < px[h1])) {
pd[h1] = 3;
plt1[h1] = 0;
}
if ((((h2 > 50) and (h2 < 70)) and ((px[1] + 80) > px[h1])) and ((px[1] - 80) < px[h1])) {
pd[h1] = 5;
plt1[h1] = 0;
}
}
break;
case 5 :
pf[h1] = (126 + plt1[h1]) + (28 * plr[h1]);
plt1[h1]++;
px[h1] = (px[h1] + 3) - (6 * plr[h1]);
if (plt1[h1] > 5) {
pd[h1] = 1;
}
bmeleeattackhit();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
pd[h1] = 6;
plt1[h1] = 0;
SND_Hit5.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 6 :
pf[h1] = (132 + plt1[h1]) + (28 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 5) {
pd[h1] = 1;
}
if (pd[1] == 34) {
py[1] = py[1] - 10;
if (px[1] > px[h1]) {
px[1] = px[1] + 10;
} else {
px[1] = px[1] - 10;
}
}
break;
case 31 :
pf[h1] = 124 + (28 * plr[h1]);
px[h1] = (px[h1] + 5) - (10 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
break;
case 10 :
pf[h1] = 138 + (28 * plr[h1]);
px[h1] = (px[h1] - 3) + (6 * plr[h1]);
plt1[h1]++;
if (plt1[h1] <= 15) {
break;
}
pll[h1] = -1;
}
} else {
pf[h1] = 140 + (28 * plr[h1]);
}
if (pd[h1] != 10) {
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
if (pd[h1] < 31) {
pd[h1] = 6;
plt1[h1] = 0;
SND_Hit5.start();
pll[1] = pll[1] - 100;
} else {
SND_Hit1.start();
pll[1] = pll[1] - 60;
}
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
}
if ((pll[h1] < 1000) and (pd[h1] != 10)) {
pd[h1] = 10;
plt1[h1] = 0;
}
baddy_lildeath();
}
function lb_human_cowboybot() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 250 + (2 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
plt1[h1]++;
h2 = random(100 + fdiff);
if ((((h2 < 12) and ((py[1] + 80) > (py[h1] - 30))) and ((py[1] - 105) < (py[h1] - 30))) and (plt1[h1] > 12)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = (254 + Math.round(plt1[h1] / 3)) + (6 * plr[h1]);
plt1[h1]++;
if ((plt1[h1] == 2) and (sc[snumber] == 0)) {
SND_Missile1.start();
sc[snumber] = 403;
slr[snumber] = plr[h1];
sx[snumber] = (px[h1] + 30) - (60 * plr[h1]);
sy[snumber] = py[h1] - 40;
ssx[snumber] = 12;
ssy[snumber] = 12;
isn();
}
if (plt1[h1] > 14) {
pd[h1] = 1;
plt1[h1] = 0;
}
break;
case 31 :
pf[h1] = 250 + (2 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 10) {
break;
}
plt1[h1]++;
}
} else {
pf[h1] = 266 + (2 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_human_joe1() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 350 + (12 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
if (plt1[h1] > 0) {
plt1[h1]--;
}
if (((Key.isDown(kattack) or Key.isDown(kspec1)) or Key.isDown(kspec2)) and (plt1[h1] < 2)) {
plt1[h1] = plt1[h1] + 2;
}
h2 = random(100 + fdiff);
if (h2 < 3) {
pd[h1] = 2;
plt1[h1] = 0;
}
if (((h2 > 9) and (h2 < 20)) and (plt1[h1] < 1)) {
pd[h1] = 2;
plt1[h1] = 0;
}
if ((h2 > 19) and (h2 < 22)) {
pd[h1] = 31;
plt1[h1] = -8;
}
if (((h2 > 29) and (h2 < 38)) and (plt1[h1] < 1)) {
pd[h1] = 31;
plt1[h1] = -13;
}
}
pg[h1] = 1;
break;
case 2 :
pf[h1] = 352 + (12 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if ((plt1[h1] > 9) and (sc[snumber] == 0)) {
pd[h1] = 3;
plt1[h1] = 0;
if (sc[snumber] == 0) {
sc[snumber] = 401;
baddy_aim8();
SND_LilShot2.start();
sx[snumber] = (px[h1] + 10) - (20 * plr[h1]);
sy[snumber] = py[h1] - 20;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
}
break;
case 3 :
pf[h1] = 354 + (12 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if ((plt1[h1] > 7) and (sc[snumber] == 0)) {
pd[h1] = 4;
plt1[h1] = 0;
if (sc[snumber] == 0) {
sc[snumber] = 401;
baddy_aim8();
SND_LilShot2.start();
sx[snumber] = (px[h1] + 10) - (20 * plr[h1]);
sy[snumber] = py[h1] - 20;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
}
break;
case 4 :
pf[h1] = 352 + (12 * plr[h1]);
pg[h1] = 0;
plt1[h1]++;
if (plt1[h1] > 9) {
pd[h1] = 1;
plt1[h1] = 30;
}
break;
case 31 :
pf[h1] = 356 + (12 * plr[h1]);
px[h1] = (px[h1] + 5) - (10 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if ((py[1] + 20) < py[h1]) {
py[h1] = py[h1] - 2;
}
if (plt1[h1] < 10) {
plt1[h1]++;
}
pg[h1] = 1;
}
} else if (pg[h1] < 1) {
pf[h1] = 358 + (12 * plr[h1]);
} else {
pf[h1] = 360 + (12 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_charge_skull() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 196 + (8 * plr[h1]);
baddy_dist();
if (h4 > 0) {
if (((px[1] + 70) < px[h1]) and (plr[h1] == 0)) {
pd[h1] = 2;
plt1[h1] = 0;
}
if (((px[1] - 70) > px[h1]) and (plr[h1] == 1)) {
pd[h1] = 2;
plt1[h1] = 0;
}
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
h2 = random(100 + fdiff);
if ((h2 < 20) and ((py[1] + 40) < py[h1])) {
pd[h1] = 31;
plt1[h1] = -13;
if ((py[1] + 80) < py[h1]) {
plt1[h1] = -16;
}
}
}
break;
case 2 :
pf[h1] = 198 + (8 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 7) {
pd[h1] = 1;
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
}
break;
case 31 :
pf[h1] = 200 + (8 * plr[h1]);
px[h1] = (px[h1] + 5) - (10 * plr[h1]);
if (px[1] < px[h1]) {
px[h1] = px[h1] - 2;
} else {
px[h1] = px[h1] + 2;
}
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 8) {
break;
}
plt1[h1]++;
if (!(((py[1] - 20) > py[h1]) and (plt1[h1] < 8))) {
break;
}
plt1[h1]++;
}
} else {
pf[h1] = 202 + (8 * plr[h1]);
}
blocktouchtest();
blockbaddybasic2();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 60;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_swimmer_fishbomb() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 236 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
px[h1] = px[h1] + plt2[h1];
if (px[1] < px[h1]) {
plr[h1] = 1;
if (plt2[h1] > -8) {
plt2[h1] = plt2[h1] - 0.5;
}
} else {
plr[h1] = 0;
if (plt2[h1] < 8) {
plt2[h1] = plt2[h1] + 0.5;
}
}
if (plt1[h1] < 50) {
plt1[h1]++;
}
h2 = random(100 + fdiff);
if ((h2 < 20) and (plt1[h1] > 49)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = 240 + (2 * plr[h1]);
plt1[h1]++;
if (plt1[h1] <= 6) {
break;
}
if (sc[snumber] == 0) {
sc[snumber] = 404;
SND_LilShot2.start();
sx[snumber] = px[h1];
sy[snumber] = py[h1] - 40;
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
}
pd[h1] = 1;
plt1[h1] = random(20);
}
} else {
pf[h1] = 244 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_charger_bulletb() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 272 + (2 * plr[h1]);
baddy_dist();
if (h4 > 0) {
if (plt1[h1] == 0) {
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
}
switch (plr[h1]) {
case 0 :
if ((px[1] > px[h1]) and (plt1[h1] == 0)) {
pd[h1] = 2;
}
break;
case 1 :
if (!((px[1] < px[h1]) and (plt1[h1] == 0))) {
break;
}
pd[h1] = 2;
}
if ((py[1] - 15) < py[h1]) {
py[h1] = py[h1] - 2;
} else {
py[h1] = py[h1] + 2;
}
}
break;
case 2 :
pf[h1] = 276 + (2 * plr[h1]);
px[h1] = px[h1] + plt1[h1];
switch (plr[h1]) {
case 0 :
if ((px[1] > px[h1]) and (plt1[h1] < 16)) {
plt1[h1]++;
} else {
plt1[h1]--;
}
break;
case 1 :
if ((px[1] < px[h1]) and (plt1[h1] > -16)) {
plt1[h1]--;
} else {
plt1[h1]++;
}
}
if (plt1[h1] == 0) {
pd[h1] = 1;
}
if ((py[1] - 15) < py[h1]) {
py[h1]--;
} else {
py[h1]++;
}
}
} else {
pf[h1] = 280 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Explosion2.start();
pll[1] = pll[1] - 200;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
pll[h1] = -1;
}
baddy_bigdeath();
if (pll[h1] < 1) {
py[h1] = py[h1] + 40;
}
}
function lb_charger_drill() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pg[h1] = 1;
switch (plr[h1]) {
case 0 :
if ((px[1] + 110) < px[h1]) {
plr[h1] = 1;
}
if (px[1] < px[h1]) {
pg[h1] = 0;
}
break;
case 1 :
if ((px[1] - 110) > px[h1]) {
plr[h1] = 0;
}
if (px[1] <= px[h1]) {
break;
}
pg[h1] = 0;
}
if (pg[h1] > 0) {
pf[h1] = 296 + (2 * plr[h1]);
} else {
pf[h1] = 324 + (2 * plr[h1]);
}
baddy_dist();
if (h4 > 0) {
px[h1] = (px[h1] + 3) - (6 * plr[h1]);
}
break;
case 31 :
px[h1] = (px[h1] + 6) - (12 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
switch (plr[h1]) {
case 0 :
if (px[1] < px[h1]) {
pg[h1] = 0;
}
break;
case 1 :
if (px[1] <= px[h1]) {
break;
}
pg[h1] = 0;
}
if (pg[h1] > 0) {
pf[h1] = 296 + (2 * plr[h1]);
} else {
pf[h1] = 324 + (2 * plr[h1]);
}
if (plt1[h1] >= 10) {
break;
}
plt1[h1]++;
}
} else if (pg[h1] > 0) {
pf[h1] = 300 + (2 * plr[h1]);
} else {
pf[h1] = 328 + (2 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 80;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_charger_mouse() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 306 + (8 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
h2 = random(100 + fdiff);
if (h2 < 20) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = 308 + (8 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 6) {
pd[h1] = 31;
if (py[1] < (py[h1] - 80)) {
plt1[h1] = -14;
} else {
plt1[h1] = -11;
}
if ((px[1] < (px[h1] - 200)) or (px[1] > (px[h1] + 200))) {
plt2[h1] = 8;
} else {
plt2[h1] = 5;
}
}
break;
case 31 :
pf[h1] = 310 + (8 * plr[h1]);
if ((plt2[h1] != 5) and (plt2[h1] != 8)) {
plt2[h1] = 3;
}
px[h1] = (px[h1] + plt2[h1]) - ((2 * plt2[h1]) * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 10) {
break;
}
plt1[h1]++;
}
} else {
pf[h1] = 312 + (8 * plr[h1]);
}
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 40;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_fan_fan() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 334;
baddy_dist();
if (h4 > 0) {
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
h2 = random(100 + fdiff);
if ((h2 < 20) and (fpace < 5)) {
pd[h1] = 2;
plt1[h1] = 0;
}
}
break;
case 2 :
pf[h1] = 336 + (2 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 5) {
pd[h1] = 3;
plt1[h1] = 0;
}
break;
case 3 :
pf[h1] = 340 + (2 * plr[h1]);
if ((((px[h1] > (camx - 290)) and (px[h1] < (camx + 290))) and (py[h1] > (camy - 280))) and ((py[h1] - 50) < (camy + 140))) {
if ((py[1] > (py[h1] - 100)) and ((py[1] - 50) < py[h1])) {
px[1] = (px[1] + 4) - (8 * plr[h1]);
}
}
plt1[h1]++;
if (plt1[h1] > 30) {
pd[h1] = 4;
plt1[h1] = 0;
}
break;
case 4 :
pf[h1] = 336 + (2 * plr[h1]);
plt1[h1]++;
if (plt1[h1] <= 5) {
break;
}
pd[h1] = 1;
plt1[h1] = 0;
}
} else {
pf[h1] = 334 + (2 * plr[h1]);
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_lildeath();
}
function lb_charger_worm() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 404 + (10 * plr[h1]);
baddy_dist();
if (h4 > 0) {
h2 = random(100 + fdiff);
if (h2 < 30) {
pd[h1] = 3;
plt1[h1] = 0;
}
if ((px[1] < px[h1]) and (plr[h1] == 0)) {
pd[h1] = 4;
plt1[h1] = 0;
}
if ((px[1] > px[h1]) and (plr[h1] == 1)) {
pd[h1] = 4;
plt1[h1] = 0;
}
}
break;
case 3 :
if ((plt1[h1] < 5) or (plt1[h1] > 10)) {
pf[h1] = 406 + (10 * plr[h1]);
} else {
pf[h1] = 408 + (10 * plr[h1]);
}
plt1[h1]++;
px[h1] = (px[h1] + (12 - plt1[h1])) - ((24 - (2 * plt1[h1])) * plr[h1]);
if (plt1[h1] > 11) {
pd[h1] = 1;
}
break;
case 4 :
pf[h1] = 410 + (10 * plr[h1]);
plt1[h1]++;
if (plt1[h1] > 5) {
pd[h1] = 1;
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
}
break;
case 31 :
pf[h1] = 404 + (10 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
break;
case 32 :
pf[h1] = 1;
if (!((((px[1] + 100) > px[h1]) and ((px[1] - 100) < px[h1])) and ((py[1] - 40) > py[h1]))) {
break;
}
pd[h1] = 31;
plt1[h1] = 10;
}
} else if (pd[h1] != 32) {
pf[h1] = 412 + (10 * plr[h1]);
} else {
pf[h1] = 1;
}
if (pd[h1] != 10) {
blocktouchtest();
blockbaddybasic();
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
}
baddy_lildeath();
}
function lb_charger_grenade() {
if (pice[h1] < 1) {
switch (pd[h1]) {
case 1 :
pf[h1] = 426 + (6 * plr[h1]);
if (px[1] < px[h1]) {
plr[h1] = 1;
} else {
plr[h1] = 0;
}
baddy_dist();
if (h4 > 0) {
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
h2 = random(100 + fdiff);
if ((h2 < 20) and ((py[1] + 40) < py[h1])) {
pd[h1] = 31;
plt1[h1] = -13;
if ((py[1] + 80) < py[h1]) {
plt1[h1] = -16;
}
}
}
break;
case 31 :
pf[h1] = 428 + (6 * plr[h1]);
px[h1] = (px[h1] + 4) - (8 * plr[h1]);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 10) {
break;
}
plt1[h1]++;
}
} else {
pf[h1] = 430 + (6 * plr[h1]);
}
blocktouchtest();
if ((bttop < 1) and (pd[h1] < 31)) {
pd[h1] = 31;
plt1[h1] = 0;
if (py[1] <= py[h1]) {
plt1[h1] = -14;
if ((py[1] + 80) < py[h1]) {
plt1[h1] = -17;
}
}
}
if (bttop > 0) {
py[h1] = bttop2;
if ((plt1[h1] >= 0) and (pd[h1] > 30)) {
pd[h1] = 1;
plt1[h1] = 0;
}
}
if (btbottom > 0) {
py[h1] = btbottom2;
if ((plt1[h1] < 1) and (pd[h1] > 30)) {
pd[h1] = 31;
plt1[h1] = 1;
}
}
if (btleft > 0) {
px[h1] = btleft2;
}
if (btright > 0) {
px[h1] = btright2;
}
if (bxm != 0) {
px[h1] = px[h1] + bxm;
}
baddytp();
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 200;
pll[h1] = -1;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
baddy_bigdeath();
}
function baddytp() {
h4 = 0;
switch (h1) {
case 2 :
if (gp2.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 3 :
if (gp3.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 4 :
if (gp4.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 5 :
if (gp5.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 6 :
if (gp6.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 7 :
if (gp7.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 8 :
if (gp8.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 9 :
if (gp9.hz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 10 :
if (!gp10.hz.hitTest(gp1.hz)) {
break;
}
h4 = 1;
}
}
function pupztp() {
h4 = 0;
switch (h1) {
case 2 :
if (gp2.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 3 :
if (gp3.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 4 :
if (gp4.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 5 :
if (gp5.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 6 :
if (gp6.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 7 :
if (gp7.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 8 :
if (gp8.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 9 :
if (gp9.pupz.hitTest(gp1.hz)) {
h4 = 1;
}
return;
case 10 :
if (!gp10.pupz.hitTest(gp1.hz)) {
break;
}
h4 = 1;
}
}
function boom_lil() {
pf[h1] = 500 + plt1[h1];
plt1[h1]++;
if (plt1[h1] > 10) {
h2 = random(30 + fdiff);
if (h2 < 26) {
if (h2 < 2) {
pc[h1] = 524;
}
if ((h2 > 1) and (h2 < 5)) {
pc[h1] = 520;
}
if ((h2 > 4) and (h2 < 8)) {
pc[h1] = 522;
}
if ((h2 > 7) and (h2 < 13)) {
pc[h1] = 521;
}
if ((h2 > 12) and (h2 < 18)) {
pc[h1] = 523;
}
if ((h2 > 17) and (h2 < 21)) {
pc[h1] = 527;
}
if ((h2 > 20) and (h2 < 26)) {
pc[h1] = 528;
}
pd[h1] = 31;
plt1[h1] = 0;
plt2[h1] = 0;
} else {
breset();
}
}
}
function boom_big() {
pf[h1] = 512 + plt1[h1];
plt1[h1]++;
if (plt1[h1] > 32) {
h2 = random(30 + fdiff);
if (h2 < 29) {
if (h2 < 2) {
pc[h1] = 524;
}
if ((h2 > 1) and (h2 < 5)) {
pc[h1] = 520;
}
if ((h2 > 4) and (h2 < 8)) {
pc[h1] = 522;
}
if ((h2 > 7) and (h2 < 14)) {
pc[h1] = 521;
}
if ((h2 > 13) and (h2 < 20)) {
pc[h1] = 523;
}
if ((h2 > 19) and (h2 < 23)) {
pc[h1] = 527;
}
if ((h2 > 22) and (h2 < 29)) {
pc[h1] = 528;
}
pd[h1] = 31;
plt1[h1] = 0;
plt2[h1] = 0;
} else {
breset();
}
}
}
function pu_life1() {
pf[h1] = 550;
pxs[h1] = 8;
pys[h1] = 16;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
pupztp();
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
if (h4 > 0) {
SND_Health1.start();
pll[1] = pll[1] + 120;
if (pll[1] > 1000) {
pll[1] = 1000;
}
breset();
}
}
function pu_life2() {
pf[h1] = 554;
pxs[h1] = 5;
pys[h1] = 10;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
pupztp();
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
if (h4 > 0) {
SND_Health1.start();
pll[1] = pll[1] + 40;
if (pll[1] > 1000) {
pll[1] = 1000;
}
breset();
}
}
function pu_energy1() {
pf[h1] = 558;
pxs[h1] = 8;
pys[h1] = 16;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
pupztp();
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
if (h4 > 0) {
SND_Health1.start();
ple = ple + 210;
if (ple > 1000) {
ple = 1000;
}
breset();
}
}
function pu_energy2() {
pf[h1] = 562;
pxs[h1] = 5;
pys[h1] = 10;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
pupztp();
if (h4 > 0) {
SND_Health1.start();
ple = ple + 70;
if (ple > 1000) {
ple = 1000;
}
breset();
}
}
function pu_extralife() {
pf[h1] = 566;
pxs[h1] = 8;
pys[h1] = 16;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
pupztp();
if (h4 > 0) {
SND_Health3.start();
plives++;
breset();
}
}
function pu_trackback() {
if ((px[1] - 4) < px[h1]) {
px[h1] = px[h1] - 4;
}
if ((px[1] + 4) > px[h1]) {
px[h1] = px[h1] + 4;
}
if ((py[1] - 30) < py[h1]) {
py[h1] = py[h1] - 4;
}
if ((py[1] - 22) > py[h1]) {
py[h1] = py[h1] + 4;
}
}
function pu_bolt1() {
pf[h1] = 578;
pxs[h1] = 8;
pys[h1] = 16;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
pupztp();
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
if (h4 > 0) {
SND_Health1.start();
pbolts = pbolts + 6;
if (pbolts > 1000) {
pbolts = 1000;
}
breset();
}
}
function pu_bolt2() {
pf[h1] = 582;
pxs[h1] = 5;
pys[h1] = 10;
switch (pd[h1]) {
case 32 :
pu_trackback();
break;
case 31 :
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] >= 12) {
break;
}
plt1[h1]++;
}
if (pd[h1] != 32) {
blocktouchtest();
blockbaddybasic();
}
pupztp();
plt2[h1]++;
if (plt2[h1] > 150) {
breset();
}
if (h4 > 0) {
SND_Health1.start();
pbolts = pbolts + 2;
if (pbolts > 1000) {
pbolts = 1000;
}
breset();
}
}
Frame 34
function controlbaddies() {
h1 = 2;
while (h1 <= 10) {
if (pice[h1] > 0) {
pice[h1]--;
}
switch (pc[h1]) {
case 0 :
pf[h1] = 1;
break;
case 101 :
lb_hardhat1();
break;
case 102 :
lb_gr_stomper();
break;
case 103 :
lb_gr_copter();
break;
case 109 :
lb_gr_hhgod();
break;
case 104 :
barr_moon();
break;
case 105 :
barr_spike();
break;
case 108 :
lb_barr_ball();
break;
case 106 :
turr_copterb();
break;
case 111 :
lb_turr_wall();
break;
case 107 :
lb_rcr_alex();
break;
case 113 :
lb_human_cowboybot();
break;
case 110 :
lb_charge_skull();
break;
case 112 :
lb_swimmer_fishbomb();
break;
case 114 :
lb_charger_bulletb();
break;
case 115 :
lb_barrel_copter();
break;
case 116 :
lb_charger_drill();
break;
case 117 :
lb_charger_mouse();
break;
case 118 :
lb_fan_fan();
break;
case 119 :
lb_human_joe1();
break;
case 120 :
lb_turr_dome();
break;
case 121 :
lb_charger_worm();
break;
case 122 :
lb_charger_grenade();
break;
case 123 :
lb_barrel_flame();
break;
case 200 :
Boss_RhinoTank();
break;
case 501 :
boom_lil();
break;
case 502 :
boom_big();
break;
case 520 :
pu_life1();
break;
case 521 :
pu_life2();
break;
case 522 :
pu_energy1();
break;
case 523 :
pu_energy2();
break;
case 524 :
pu_extralife();
break;
case 527 :
pu_bolt1();
break;
case 528 :
pu_bolt2();
break;
case 600 :
fr_auto();
break;
case 601 :
fr_fliptop();
break;
case 602 :
fr_samus();
break;
case 603 :
fr_firion();
}
if ((pc[h1] > 0) and ((pc[h1] < 200) or (pc[h1] > 299))) {
if ((px[h1] - pxs[h1]) < 0) {
px[h1] = pxs[h1];
}
if ((px[h1] + pxs[h1]) > camxm) {
px[h1] = camxm - pxs[h1];
}
if ((py[h1] - pys[h1]) < camym) {
py[h1] = camym + pys[h1];
}
if (py[h1] > 20) {
breset();
}
}
h1++;
}
}
function lbsetupa() {
h4 = 2;
while (h4 <= 10) {
lbsetups();
h4++;
}
}
function lbsetups() {
switch (pc[h4]) {
case 101 :
pxs[h4] = 14;
pys[h4] = 24;
pd[h4] = 1;
pll[h4] = 20;
return;
case 102 :
pxs[h4] = 40;
pys[h4] = 80;
pd[h4] = 1;
pll[h4] = 100;
return;
case 103 :
pxs[h4] = 40;
pys[h4] = 90;
pd[h4] = 1;
pll[h4] = 100;
return;
case 104 :
pxs[h4] = 16;
pys[h4] = 30;
pd[h4] = 1;
pll[h4] = 30;
return;
case 105 :
pxs[h4] = 14;
pys[h4] = 24;
pd[h4] = 1;
pll[h4] = 40;
return;
case 106 :
pxs[h4] = 24;
pys[h4] = 40;
pd[h4] = 32;
pll[h4] = 100;
plt1[h4] = 0;
return;
case 107 :
pxs[h4] = 16;
pys[h4] = 34;
pd[h4] = 1;
pll[h4] = 1080;
return;
case 108 :
pxs[h4] = 16;
pys[h4] = 32;
pd[h4] = 1;
pll[h4] = 40;
return;
case 109 :
pxs[h4] = 95;
pys[h4] = 200;
pd[h4] = 1;
pll[h4] = 240;
return;
case 110 :
pxs[h4] = 30;
pys[h4] = 60;
pd[h4] = 1;
pll[h4] = 60;
return;
case 111 :
pxs[h4] = 16;
pys[h4] = 40;
pd[h4] = 1;
pll[h4] = 45;
return;
case 112 :
pxs[h4] = 30;
pys[h4] = 40;
pd[h4] = 1;
pll[h4] = 30;
return;
case 113 :
pxs[h4] = 20;
pys[h4] = 50;
pd[h4] = 1;
pll[h4] = 80;
return;
case 114 :
pxs[h4] = 16;
pys[h4] = 32;
pd[h4] = 1;
pll[h4] = 40;
return;
case 115 :
pxs[h4] = 16;
pys[h4] = 32;
pd[h4] = 1;
pll[h4] = 30;
plt2[h4] = py[h4];
return;
case 116 :
pxs[h4] = 28;
pys[h4] = 56;
pd[h4] = 1;
pll[h4] = 70;
return;
case 117 :
pxs[h4] = 32;
pys[h4] = 44;
pd[h4] = 1;
pll[h4] = 40;
return;
case 118 :
pxs[h4] = 30;
pys[h4] = 90;
pd[h4] = 1;
pll[h4] = 150;
return;
case 119 :
pxs[h4] = 25;
pys[h4] = 50;
pd[h4] = 1;
pll[h4] = 60;
return;
case 120 :
pxs[h4] = 25;
pys[h4] = 36;
pd[h4] = 1;
pll[h4] = 80;
return;
case 121 :
pxs[h4] = 28;
pys[h4] = 32;
pd[h4] = 32;
pll[h4] = 60;
return;
case 122 :
pxs[h4] = 26;
pys[h4] = 40;
pd[h4] = 32;
pll[h4] = 40;
return;
case 123 :
pxs[h4] = 20;
pys[h4] = 40;
pd[h4] = 1;
pll[h4] = 40;
}
}
Frame 35
function lb_shot1() {
sf[h1] = 1502;
h4 = 6;
if (ffroze < 1) {
s8waymove();
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 60;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
sreset();
}
}
function lb_spark1() {
sf[h1] = 1506;
if (ffroze < 1) {
if (slt1[h1] > 2) {
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + slt3[h1];
}
slt1[h1]++;
if (slt1[h1] > 20) {
sreset();
}
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 160;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
}
}
function lb_cannon1() {
sf[h1] = 1510 + (2 * slr[h1]);
h4 = 10;
if (ffroze < 1) {
s8waymove();
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
sreset();
}
}
function lb_shatterb() {
sf[h1] = 1528;
if (ffroze < 1) {
sy[h1] = sy[h1] - 12;
if ((sy[h1] < (camy - 240)) and (sc[snumber] == 0)) {
SND_Explosion6.start();
isn();
sc[snumber] = 405;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
slt1[snumber] = -16;
slt2[snumber] = 0;
isn();
sc[snumber] = 405;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
slt1[snumber] = 16;
slt2[snumber] = 0;
isn();
sc[snumber] = 405;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
slt1[snumber] = -10;
slt2[snumber] = 3;
isn();
sc[snumber] = 405;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
slt1[snumber] = 10;
slt2[snumber] = 3;
isn();
sreset();
}
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
sreset();
}
}
function lb_shatters() {
sf[h1] = 1502;
if (ffroze < 1) {
if (slt1[h1] > 0) {
slt1[h1]--;
}
if (slt1[h1] < 0) {
slt1[h1]++;
}
if (slt2[h1] < 10) {
slt2[h1]++;
}
sx[h1] = sx[h1] + slt1[h1];
sy[h1] = sy[h1] + slt2[h1];
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 60;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
sreset();
}
}
function lb_fireshot1() {
sf[h1] = 1532 + (2 * slr[h1]);
if (sd[h1] < 2) {
h4 = 8;
if (ffroze < 1) {
s8waymove();
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
SND_Hit1.start();
pll[1] = pll[1] - 100;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
sreset();
}
} else {
if (ffroze < 1) {
slt1[h1]++;
}
if (slt1[h1] > 25) {
sreset();
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
pll[1] = pll[1] - 5;
}
}
}
blockshottest();
if (bttop > 0) {
if ((sd[h1] < 2) and (((slr[h1] == 3) or (slr[h1] == 5)) or (slr[h1] == 7))) {
SND_Fire1.start();
sy[h1] = bttop2;
sd[h1] = 2;
slt1[h1] = 0;
}
}
if (btbottom > 0) {
if ((sd[h1] < 2) and (((slr[h1] == 2) or (slr[h1] == 4)) or (slr[h1] == 6))) {
SND_Fire1.start();
sy[h1] = btbottom2;
sd[h1] = 2;
slt1[h1] = 0;
}
}
if (btleft > 0) {
if ((sd[h1] < 2) and (((slr[h1] == 0) or (slr[h1] == 4)) or (slr[h1] == 5))) {
SND_Fire1.start();
sx[h1] = btleft2;
sd[h1] = 2;
slt1[h1] = 0;
}
}
if (btright > 0) {
if ((sd[h1] < 2) and (((slr[h1] == 1) or (slr[h1] == 6)) or (slr[h1] == 7))) {
SND_Fire1.start();
sx[h1] = btright2;
sd[h1] = 2;
slt1[h1] = 0;
}
}
}
function bshot_rhinoshot() {
switch (sd[h1]) {
case 1 :
sf[h1] = 1566 + (slt1[h1] / 2);
if (ffroze < 1) {
slt1[h1]++;
if (slt1[h1] > 20) {
sreset();
}
}
break;
case 31 :
sf[h1] = 1560 + (2 * slr[h1]);
if (ffroze >= 1) {
break;
}
sx[h1] = (sx[h1] + slt1[h1]) - ((2 * slt1[h1]) * slr[h1]);
sy[h1] = sy[h1] + slt2[h1];
if (slt2[h1] < 9) {
slt2[h1]++;
} else {
if (slt1[h1] > 0) {
slt1[h1] = slt1[h1] - 0.5;
}
if (slt1[h1] >= 0) {
break;
}
slt1[h1] = slt1[h1] + 0.5;
}
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
if (pg[1] < 1) {
if (sd[h1] > 30) {
SND_Hit1.start();
pll[1] = pll[1] - 80;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
sreset();
} else {
pll[1] = pll[1] - 10;
}
}
}
blockshottest();
if (bttop > 0) {
if (sd[h1] == 31) {
SND_Explosion4.start();
sd[h1] = 1;
slt1[h1] = 0;
}
sy[h1] = bttop2;
}
if (btbottom > 0) {
sy[h1] = btbottom2;
slt2[h1] = 1;
}
if (btleft > 0) {
sx[h1] = btleft2;
slr[h1] = 1;
}
if (btright > 0) {
sx[h1] = btright2;
slr[h1] = 0;
}
}
function bshot_rhinosuper() {
sf[h1] = 1578;
if (slt1[h1] > 3) {
sx[h1] = sx[h1] + slt2[h1];
sy[h1] = sy[h1] + slt3[h1];
}
slt1[h1]++;
if (slt1[h1] > 30) {
sreset();
}
shittest();
if ((phit[1] > 0) and (inv < 1)) {
SND_Hit1.start();
pll[1] = pll[1] - 125;
lvlr_16();
pd[1] = 34;
plt1[1] = 0;
}
}
function baddy_aim8() {
if (px[1] >= px[h1]) {
slr[snumber] = 0;
if ((py[1] - 60) >= py[h1]) {
slr[snumber] = 5;
}
if ((py[1] + 60) < py[h1]) {
slr[snumber] = 4;
}
} else {
slr[snumber] = 1;
if ((py[1] - 60) >= py[h1]) {
slr[snumber] = 7;
}
if ((py[1] + 60) < py[h1]) {
slr[snumber] = 6;
}
}
if ((((px[1] + 40) > (px[h1] - pxs[h1])) and ((px[1] - 40) < (px[h1] + pxs[h1]))) and (py[1] > py[h1])) {
slr[snumber] = 3;
}
if ((((px[1] + 40) > (px[h1] - pxs[h1])) and ((px[1] - 40) < (px[h1] + pxs[h1]))) and (py[1] < py[h1])) {
slr[snumber] = 2;
}
}
Frame 40
function sreset() {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
}
function sreset2() {
sc[h2] = 0;
sx[h2] = -2000;
sy[h2] = 2000;
ssx[h2] = 0;
ssy[h2] = 0;
sf[h2] = 1;
sd[h2] = 0;
slr[h2] = 0;
slt1[h2] = 0;
slt2[h2] = 0;
slt3[h2] = 0;
slt3[h2] = 0;
}
function isn() {
snumber++;
if (snumber > 30) {
snumber = 1;
}
if (sc[snumber] > 0) {
snumberassist = 0;
h6 = 1;
while (snumberassist > 0) {
if (sc[h6] == 0) {
snumberassist++;
snumber = h6;
sc[snumber] = 0;
sx[snumber] = -2000;
sy[snumber] = 2000;
ssx[snumber] = 0;
ssy[snumber] = 0;
sf[snumber] = 1;
sd[snumber] = 0;
slr[snumber] = 0;
slt1[snumber] = 0;
slt2[snumber] = 0;
slt3[snumber] = 0;
slt4[snumber] = 0;
}
if (h6 >= 30) {
snumberassist++;
}
h6++;
}
}
if (sc[snumber] > 0) {
snumberassist = 0;
h6 = 1;
while (snumberassist > 0) {
if (sc[h6] > 500) {
snumberassist++;
snumber = h6;
sc[snumber] = 0;
sx[snumber] = -2000;
sy[snumber] = 2000;
ssx[snumber] = 0;
ssy[snumber] = 0;
sf[snumber] = 1;
sd[snumber] = 0;
slr[snumber] = 0;
slt1[snumber] = 0;
slt2[snumber] = 0;
slt3[snumber] = 0;
slt4[snumber] = 0;
}
if (h6 >= 30) {
snumberassist++;
}
h6++;
}
}
}
function s8waymove() {
switch (slr[h1]) {
case 0 :
sx[h1] = (sx[h1] + 4) + h4;
return;
case 1 :
sx[h1] = (sx[h1] - 4) - h4;
return;
case 2 :
sy[h1] = (sy[h1] - 4) - h4;
return;
case 3 :
sy[h1] = (sy[h1] + 4) + h4;
return;
case 4 :
sx[h1] = (sx[h1] + 2) + h4;
sy[h1] = (sy[h1] - 2) - h4;
return;
case 5 :
sx[h1] = (sx[h1] + 2) + h4;
sy[h1] = (sy[h1] + 2) + h4;
return;
case 6 :
sx[h1] = (sx[h1] - 2) - h4;
sy[h1] = (sy[h1] - 2) - h4;
return;
case 7 :
sx[h1] = (sx[h1] - 2) - h4;
sy[h1] = (sy[h1] + 2) + h4;
return;
case 8 :
sx[h1] = (sx[h1] + 1) + (h4 / 2);
sy[h1] = (sy[h1] - 3) - h4;
return;
case 9 :
sx[h1] = (sx[h1] + 3) + h4;
sy[h1] = (sy[h1] - 1) - (h4 / 2);
return;
case 10 :
sx[h1] = (sx[h1] + 3) + h4;
sy[h1] = (sy[h1] + 1) + (h4 / 2);
return;
case 11 :
sx[h1] = (sx[h1] + 1) + (h4 / 2);
sy[h1] = (sy[h1] + 3) + h4;
return;
case 12 :
sx[h1] = (sx[h1] - 1) - (h4 / 2);
sy[h1] = (sy[h1] - 3) - h4;
return;
case 13 :
sx[h1] = (sx[h1] - 3) - h4;
sy[h1] = (sy[h1] - 1) - (h4 / 2);
return;
case 14 :
sx[h1] = (sx[h1] - 3) - h4;
sy[h1] = (sy[h1] + 1) + (h4 / 2);
return;
case 15 :
sx[h1] = (sx[h1] - 1) - (h4 / 2);
sy[h1] = (sy[h1] + 3) + h4;
}
}
function p8wayhome() {
h4 = 1000;
h5 = 0;
h2 = 2;
while (h2 <= 10) {
if (((pc[h2] > 0) and (pc[h2] < 501)) and (pll[h2] > 0)) {
h3 = Math.abs(sx[h1] - px[h2]) + Math.abs((sy[h1] - py[h2]) - Math.round(pys[h2] / 2));
if (h3 < h4) {
if ((((px[h2] > (camx - 280)) and (px[h2] < (camx + 280))) and (py[h2] > (camy - 280))) and (py[h2] < (camy + 140))) {
h5 = h2;
h4 = h3;
}
}
}
h2++;
}
if ((h4 < 700) and (h5 > 0)) {
if (sx[h1] < px[h5]) {
slr[h1] = 0;
if (sy[h1] < ((py[h5] - Math.round(pys[h5] / 2)) - 16)) {
slr[h1] = 5;
}
if (sy[h1] > ((py[h5] - Math.round(pys[h5] / 2)) + 16)) {
slr[h1] = 4;
}
}
if (sx[h1] > px[h5]) {
slr[h1] = 1;
if (sy[h1] < ((py[h5] - Math.round(pys[h5] / 2)) - 16)) {
slr[h1] = 7;
}
if (sy[h1] > ((py[h5] - Math.round(pys[h5] / 2)) + 16)) {
slr[h1] = 6;
}
}
if ((((sx[h1] - 20) < px[h5]) and ((sx[h1] + 20) > px[h5])) and (sy[h1] > (py[h5] - Math.round(pys[h5] / 2)))) {
slr[h1] = 2;
}
if ((((sx[h1] - 20) < px[h5]) and ((sx[h1] + 20) > px[h5])) and (sy[h1] < (py[h5] - Math.round(pys[h5] / 2)))) {
slr[h1] = 3;
}
}
}
Frame 41
function Spawn_SmokePuff() {
if (sc[snumber] == 0) {
sc[snumber] = 505;
sx[snumber] = px[h1];
sy[snumber] = py[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_SmokePuff2() {
if (sc[snumber] == 0) {
sc[snumber] = 505;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_DustSparkle2() {
if (sc[snumber] == 0) {
sc[snumber] = 506;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_DustFire2() {
if (sc[snumber] == 0) {
sc[snumber] = 507;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_DustSpark12() {
if (sc[snumber] == 0) {
sc[snumber] = 508;
sx[snumber] = sx[h1];
sy[snumber] = sy[h1];
slt1[snumber] = 0;
isn();
}
}
function Spawn_DustSpark13() {
if (sc[snumber] == 0) {
sc[snumber] = 508;
sx[snumber] = px[h2];
sy[snumber] = py[h2] - Math.round(pys[h2] / 2);
slt1[snumber] = 0;
isn();
}
}
function Spawn_HelperTransform() {
if (sc[snumber] == 0) {
sc[snumber] = 560;
sx[snumber] = px[1];
sy[snumber] = py[1] - 30;
slt1[snumber] = 0;
isn();
}
}
function Spawn_WaterSplash1() {
if ((sc[snumber] == 0) and ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10))) {
sc[snumber] = 515;
sx[snumber] = px[h2];
sy[snumber] = by[h1] - bys[h1];
slt1[snumber] = 0;
isn();
}
}
function SFX_SmokePuff() {
if (slt1[h1] < 3) {
sf[h1] = 2018;
}
if ((slt1[h1] > 2) and (slt1[h1] < 5)) {
sf[h1] = 2020;
}
if (slt1[h1] > 4) {
sf[h1] = 2022;
}
sy[h1] = sy[h1] - 3;
slt1[h1]++;
if (slt1[h1] > 6) {
sreset();
}
}
function SFX_DustSparkle() {
sf[h1] = 2026;
sy[h1] = sy[h1] + 5;
slt1[h1]++;
if (slt1[h1] > 8) {
sreset();
}
}
function SFX_DustFire() {
sf[h1] = 2028;
sx[h1] = (sx[h1] - 2) + random(5);
sy[h1] = sy[h1] - 5;
slt1[h1]++;
if (slt1[h1] > 8) {
sreset();
}
}
function SFX_DustSpark1() {
sf[h1] = 2030;
sx[h1] = (sx[h1] - 3) + random(7);
sy[h1] = (sy[h1] - 3) + random(7);
slt1[h1]++;
if (slt1[h1] > 16) {
sreset();
}
}
function HelperTransform() {
sf[h1] = 2200 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 5) {
sreset();
}
}
function SFX_WaterSplash1() {
sf[h1] = 2130 + slt1[h1];
slt1[h1]++;
if (slt1[h1] > 7) {
sreset();
}
}
Frame 51
function controlblocks() {
h1 = 1;
while (h1 <= bnum) {
switch (bt[h1]) {
case 0 :
break;
case 4 :
if ((fstages < 1) and (bx[h1] > 0)) {
bx[h1] = bx[h1] - 3000;
}
break;
case 6 :
if ((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) {
block_player_water();
if (ffroze < 1) {
px[1] = px[1] + bt1[h1];
}
if ((py[1] - pys[1]) < (by[h1] - bys[h1])) {
h2 = 1;
Spawn_WaterSplash1();
}
}
if ((pc[11] == 2) or (pc[11] == 3)) {
if ((((px[11] > (bx[h1] - bxs[h1])) and (px[11] < (bx[h1] + bxs[h1]))) and (py[11] > (by[h1] - bys[h1]))) and ((py[11] - pys[11]) < (by[h1] + bys[h1]))) {
block_helper_water();
if (ffroze < 1) {
px[11] = px[11] + bt1[h1];
}
if ((py[11] - pys[11]) < (by[h1] - bys[h1])) {
h2 = 1;
Spawn_WaterSplash1();
}
}
}
break;
case 7 :
if ((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) {
if (ffroze < 1) {
px[1] = px[1] + bt1[h1];
if (pd[1] > 30) {
py[1] = py[1] + bt2[h1];
}
}
}
break;
case 8 :
switch (bt1[h1]) {
case 0 :
if (((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - 30) < (by[h1] + bys[h1]))) and Key.isDown(kup)) {
bf[h1]++;
bt1[h1] = 1;
SND_Blip6.start();
}
break;
case 1 :
bx[h1] = px[1];
by[h1] = py[1] - 60;
if (pd[1] == 34) {
bf[h1]--;
bt1[h1] = 0;
SND_Blip3.start();
block_keyreset();
}
if ((((bx[h1] > (bx[1] - bxs[1])) and (bx[h1] < (bx[1] + bxs[1]))) and (by[h1] > (by[1] - bys[1]))) and (by[h1] < (by[1] + bys[1]))) {
bt1[h1] = 2;
SND_Door1.start();
}
break;
case 2 :
bf[h1] = 1;
bx[h1] = -2000;
by[h1] = 2000;
fstages = 0;
}
break;
case 10 :
if (ffroze < 1) {
bx[h1] = bx[h1] + bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 11;
}
}
break;
case 11 :
if (ffroze < 1) {
bx[h1] = bx[h1] - bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 10;
}
}
break;
case 12 :
if (ffroze < 1) {
by[h1] = by[h1] - bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 13;
}
}
break;
case 13 :
if (ffroze < 1) {
by[h1] = by[h1] + bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 12;
}
}
break;
case 18 :
if (ffroze < 1) {
if ((bt3[h1] < 1) and (by[h1] > bt1[h1])) {
by[h1] = by[h1] - 2;
}
if (bt3[h1] > 0) {
bt3[h1]--;
if (by[h1] < bt4[h1]) {
by[h1] = by[h1] + bt2[h1];
}
}
}
break;
case 20 :
if (ffroze < 1) {
bt1[h1]++;
bx[h1] = bx[h1] + bt2[h1];
if ((bx[h1] > (camxm + bxs[h1])) and (bt3[h1] < 1)) {
bt1[h1] = 0;
bx[h1] = -bxs[h1];
} else if (bt1[h1] == bt3[h1]) {
bx[h1] = bx[h1] - (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
break;
case 21 :
if (ffroze < 1) {
bt1[h1]++;
bx[h1] = bx[h1] - bt2[h1];
if ((bx[h1] < (-bxs[h1])) and (bt3[h1] < 1)) {
bt1[h1] = 0;
bx[h1] = camxm + bxs[h1];
} else if (bt1[h1] == bt3[h1]) {
bx[h1] = bx[h1] - (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
break;
case 22 :
if (ffroze < 1) {
bt1[h1]++;
by[h1] = by[h1] - bt2[h1];
if ((by[h1] < (camym - bys[h1])) and (bt3[h1] < 1)) {
bt1[h1] = 0;
by[h1] = 0 + bys[h1];
} else if (bt1[h1] == bt3[h1]) {
by[h1] = by[h1] + (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
break;
case 23 :
if (ffroze < 1) {
bt1[h1]++;
by[h1] = by[h1] + bt2[h1];
if ((by[h1] > (0 + bys[h1])) and (bt3[h1] < 1)) {
bt1[h1] = 0;
by[h1] = camym - bys[h1];
} else if (bt1[h1] == bt3[h1]) {
by[h1] = by[h1] + (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
break;
case 24 :
if (ffroze < 1) {
bt1[h1]++;
bx[h1] = bx[h1] + bt2[h1];
by[h1] = by[h1] - bt2[h1];
if (bt1[h1] == bt3[h1]) {
bx[h1] = bx[h1] - (bt2[h1] * bt3[h1]);
by[h1] = by[h1] + (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
break;
case 28 :
bx[1] = px[1];
by[1] = py[1] - 30;
break;
case 29 :
if (((((px[1] + pxs[1]) > (bx[h1] - bxs[h1])) and ((px[1] - pxs[1]) < (bx[h1] + bxs[h1]))) and (py[1] < by[h1])) and (py[1] > ((by[h1] - bys[h1]) - 100))) {
bt1[1] = 3;
}
break;
case 38 :
bt1[h1]++;
if (bt1[h1] > bt2[h1]) {
bt1[h1] = 0;
h4 = random(6) + 2;
if (pc[h4] == 0) {
block_enemyspawn();
}
}
break;
case 42 :
if ((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) {
block_player_space();
}
if ((pc[11] == 2) or (pc[11] == 3)) {
if ((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) {
block_helper_space();
}
}
break;
case 44 :
if (ffroze < 1) {
by[h1]++;
bt1[h1]++;
if (bt1[h1] > 17) {
bt[h1] = 45;
}
}
break;
case 45 :
if (ffroze < 1) {
by[h1] = by[h1] + 8;
}
break;
case 47 :
if (ffroze < 1) {
bf[h1]++;
bt2[h1]++;
if (bt2[h1] > 3) {
bf[h1] = bt3[h1];
bt[h1] = 46;
}
}
break;
case 49 :
if (ffroze < 1) {
bf[h1]++;
bt2[h1]++;
if (bt2[h1] > 3) {
bf[h1] = bt3[h1];
bt[h1] = 48;
}
}
break;
case 52 :
if (ffroze < 1) {
bt1[h1]++;
if (bt1[h1] >= bt2[h1]) {
bt1[h1] = bt2[h1] * -1;
}
if ((bt1[h1] > -1) and (by[h1] > -1)) {
SND_Disappear1.start();
by[h1] = by[h1] - 2000;
}
if ((bt1[h1] < 0) and (by[h1] < 0)) {
by[h1] = by[h1] + 2000;
}
}
break;
case 55 :
if (ffroze < 1) {
block_aim8();
bf[h1] = 110 + bt3[h1];
if ((((bx[h1] < (camx + 300)) and (bx[h1] > (camx - 300))) and (by[h1] < (camy + 160))) and (by[h1] > (camy - 300))) {
bt1[h1]++;
}
if ((bt1[h1] > bt2[h1]) and (sc[snumber] == 0)) {
bt1[h1] = 0;
SND_LilShot2.start();
sc[snumber] = 401;
slr[snumber] = bt3[h1];
sx[snumber] = bx[h1];
sy[snumber] = by[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
isn();
if (sc[snumber] == 0) {
sc[snumber] = 401;
sx[snumber] = bx[h1];
sy[snumber] = by[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
switch (bt3[h1]) {
case 0 :
slr[snumber] = 9;
break;
case 1 :
slr[snumber] = 14;
break;
case 2 :
slr[snumber] = 12;
break;
case 3 :
slr[snumber] = 11;
break;
case 4 :
slr[snumber] = 8;
break;
case 5 :
slr[snumber] = 10;
break;
case 6 :
slr[snumber] = 13;
break;
case 7 :
slr[snumber] = 15;
}
isn();
}
if (sc[snumber] == 0) {
sc[snumber] = 401;
sx[snumber] = bx[h1];
sy[snumber] = by[h1];
ssx[snumber] = 6;
ssy[snumber] = 6;
switch (bt3[h1]) {
case 0 :
slr[snumber] = 10;
break;
case 1 :
slr[snumber] = 13;
break;
case 2 :
slr[snumber] = 8;
break;
case 3 :
slr[snumber] = 15;
break;
case 4 :
slr[snumber] = 9;
break;
case 5 :
slr[snumber] = 11;
break;
case 6 :
slr[snumber] = 12;
break;
case 7 :
slr[snumber] = 14;
}
isn();
}
}
}
break;
case 60 :
if (ffroze < 1) {
bt1[h1]++;
bx[h1] = bx[h1] + bt2[h1];
if ((bx[h1] > (camxm + 80)) and (bt3[h1] < 1)) {
bt1[h1] = 0;
bx[h1] = -bxs[h1];
} else if (bt1[h1] == bt3[h1]) {
bx[h1] = bx[h1] - (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 61 :
if (ffroze < 1) {
bt1[h1]++;
bx[h1] = bx[h1] - bt2[h1];
if ((bx[h1] < -80) and (bt3[h1] < 1)) {
bt1[h1] = 0;
bx[h1] = camxm + bxs[h1];
} else if (bt1[h1] == bt3[h1]) {
bx[h1] = bx[h1] + (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 62 :
if (ffroze < 1) {
bt1[h1]++;
by[h1] = by[h1] - bt2[h1];
if ((by[h1] < (camym - 80)) and (bt3[h1] < 1)) {
bt1[h1] = 0;
by[h1] = 0 + bys[h1];
} else if (bt1[h1] == bt3[h1]) {
by[h1] = by[h1] + (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 63 :
if (ffroze < 1) {
bt1[h1]++;
by[h1] = by[h1] + bt2[h1];
if ((by[h1] > 80) and (bt3[h1] < 1)) {
bt1[h1] = 0;
by[h1] = camym - bys[h1];
} else if (bt1[h1] == bt3[h1]) {
by[h1] = by[h1] - (bt2[h1] * bt3[h1]);
bt1[h1] = 0;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 64 :
if (ffroze < 1) {
bt1[h1] = bt1[h1] - 0.1;
bx[h1] = bt3[h1] + (Math.sin(bt1[h1]) * bt2[h1]);
by[h1] = bt4[h1] + (Math.cos(bt1[h1]) * bt2[h1]);
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 65 :
if (ffroze < 1) {
bt1[h1] = bt1[h1] + 0.1;
bx[h1] = bt3[h1] + (Math.sin(bt1[h1]) * bt2[h1]);
by[h1] = bt4[h1] + (Math.cos(bt1[h1]) * bt2[h1]);
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 72 :
if (ffroze < 1) {
by[h1] = by[h1] - bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 73;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 73 :
if (ffroze < 1) {
by[h1] = by[h1] + bt2[h1];
bt1[h1]++;
if (bt1[h1] >= bt3[h1]) {
bt1[h1] = 0;
bt[h1] = 72;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 78 :
if (ffroze < 1) {
bt1[h1]++;
if (bt1[h1] >= bt2[h1]) {
bt1[h1] = bt2[h1] * -1;
}
if ((bt1[h1] > -1) and (by[h1] > -1)) {
by[h1] = by[h1] - 2000;
}
if ((bt1[h1] < 0) and (by[h1] < 0)) {
by[h1] = by[h1] + 2000;
}
}
ahazardhit();
if (h4 > 0) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 100 :
if (((((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) and (inv < 1)) and (pd[1] != 34)) and (pc[1] != 5)) {
plt1[1] = 0;
pls1[1] = 0;
pd[1] = 1;
Spawn_HelperTransform();
SND_Shing3.start();
switch (pc[1]) {
case 1 :
pc[1] = 5;
break;
case 2 :
pc[1] = 5;
break;
case 3 :
pc[1] = 5;
break;
case 4 :
pc[1] = 5;
}
}
break;
case 101 :
if (((((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) and (inv < 1)) and (pd[1] != 34)) and (pc[1] != 6)) {
plt1[1] = 0;
pls1[1] = 0;
pd[1] = 31;
plt1[1] = 0;
Spawn_HelperTransform();
SND_Shing3.start();
switch (pc[1]) {
case 1 :
pc[1] = 6;
break;
case 2 :
pc[1] = 6;
break;
case 3 :
pc[1] = 6;
break;
case 4 :
pc[1] = 6;
}
}
break;
case 103 :
if (!(((((((px[1] > (bx[h1] - bxs[h1])) and (px[1] < (bx[h1] + bxs[h1]))) and (py[1] > (by[h1] - bys[h1]))) and ((py[1] - pys[1]) < (by[h1] + bys[h1]))) and (inv < 1)) and (pd[1] != 34)) and (((pc[1] == 5) or (pc[1] == 6)) or (pc[1] == 7)))) {
break;
}
Spawn_HelperTransform();
SND_Shing3.start();
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
}
px[11] = px[1];
py[11] = py[1];
pll[11] = 0;
plt1[11] = 0;
switch (pc[1]) {
case 5 :
pc[1] = 1;
break;
case 6 :
pc[1] = 1;
break;
case 7 :
pc[1] = 1;
}
}
h1++;
}
}
function blockcollide() {
bttop = 0;
btbottom = 0;
btleft = 0;
btright = 0;
bxm = 0;
bym = 0;
h6 = 1;
while (h6 <= 12) {
switch (bt[h6]) {
case 1 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 2 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
h4 = by[h6] - bys[h6];
if (h1 == 1) {
if (Key.isDown(kdown) and ((((((py[1] + 1) > (by[h6] - bys[h6])) and ((py[1] - 13) < (by[h6] - bys[h6]))) and ((px[1] - 8) < bx[h6])) and ((px[1] + 8) > bx[h6])) and (pd[1] < 30))) {
pd[1] = 33;
pf[1] = 28 + (100 * plr[1]);
px[1] = bx[h6];
py[1] = (by[h6] - bys[h6]) + 30;
bttop = 0;
bttop2 = py[1];
plt1[1] = 3;
}
}
}
if (((h1 == 1) and ((px[1] - 8) < bx[h6])) and ((px[1] + 8) > bx[h6])) {
if ((((Key.isDown(kdown) or Key.isDown(kup)) and (py[1] > ((by[h6] - bys[h6]) + 31))) and ((py[1] - 35) < ((by[h6] + bys[h6]) - 2))) and (((((pc[1] == 1) and ((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31))) or ((pc[1] == 2) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 35)) or (pd[1] == 36)))) or ((pc[1] == 3) and (((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 31)) or (pd[1] == 36)))) or ((pc[1] == 4) and ((((((pd[1] == 1) or (pd[1] == 2)) or (pd[1] == 3)) or (pd[1] == 4)) or (pd[1] == 31)) or (pd[1] == 35))))) {
pd[1] = 32;
plt1[1] = 0;
px[1] = bx[h6];
if (py[1] > ((by[h6] + bys[h6]) - 2)) {
py[1] = (by[h6] + bys[h6]) - 2;
}
}
if (((Key.isDown(kdown) and ((py[1] + 3) > (by[h6] + bys[h6]))) and ((py[1] - 3) < (by[h6] + bys[h6]))) and (pd[1] == 32)) {
plt1[1] = 0;
py[1] = (by[h6] + bys[h6]) - 2;
}
if ((Key.isDown(kup) and (pd[1] == 32)) and (((py[1] + 3) > ((by[h6] - bys[h6]) + 30)) and ((py[1] - 3) < ((by[h6] - bys[h6]) + 30)))) {
pd[1] = 33;
py[1] = (by[h6] - bys[h6]) + 30;
pf[1] = 28 + (100 * plr[1]);
plt1[1] = 3;
}
}
break;
case 3 :
if ((((((py[1] > (by[h6] - bys[h6])) and ((py[1] - pys[1]) < (by[h6] + bys[h6]))) and ((px[1] - pxs[1]) < (bx[h6] + bxs[h6]))) and ((px[1] + pxs[1]) > (bx[h6] - bxs[h6]))) and (inv < 1)) and (pd[1] != 34)) {
SND_Hit1.start();
pll[1] = pll[1] - 250;
lvlr_17();
pd[1] = 34;
plt1[1] = 0;
}
break;
case 4 :
if (fstages > 0) {
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
}
break;
case 5 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) {
iceblockslide();
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 10 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (ffroze < 1) {
bxm = bt2[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 11 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (ffroze < 1) {
bxm = bt2[h6] * -1;
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 12 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
bttop2 = (by[h6] - bys[h6]) - bt2[h6];
} else {
bttop2 = by[h6] - bys[h6];
}
if ((((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) and (btbottom > 0)) {
pll[1] = -1;
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 13 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
bttop2 = (by[h6] - bys[h6]) + bt2[h6];
} else {
bttop2 = by[h6] - bys[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
if ((((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) and (bttop > 0)) {
pll[1] = -1;
}
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 18 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
if ((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) {
bt3[h6] = 2;
}
}
if ((bt3[h6] < 1) or (ffroze > 0)) {
bttop2 = by[h6] - bys[h6];
} else {
bttop2 = (by[h6] - bys[h6]) + bt2[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
if (bym < 1) {
bt5[h6] = 0;
} else {
bt5[h6] = 1;
}
block_sidecollide();
if (ffroze < 1) {
if ((((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) and (bt5[h6] < 1)) and (bym != 0)) {
bt3[h6] = 2;
}
}
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
if (bym < 1) {
bt5[h6] = 0;
} else {
bt5[h6] = 1;
}
block_sidecollide();
if (ffroze < 1) {
if ((((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) and (bt5[h6] < 1)) and (bym != 0)) {
bt3[h6] = 2;
}
}
}
}
break;
case 20 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (ffroze < 1) {
bxm = bt2[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 22 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
bttop2 = (by[h6] - bys[h6]) - bt2[h6];
} else {
bttop2 = by[h6] - bys[h6];
}
if ((((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) and (btbottom > 0)) {
pll[1] = -1;
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 23 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
bttop2 = (by[h6] - bys[h6]) + bt2[h6];
} else {
bttop2 = by[h6] - bys[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
if ((((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) and (bttop > 0)) {
pll[1] = -1;
}
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 24 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
if (ffroze < 1) {
bxm = bt2[h6];
bttop2 = (by[h6] - bys[h6]) - bt2[h6];
} else {
bttop2 = by[h6] - bys[h6];
}
if ((((h1 == 1) and (h3 == pxs[1])) and (h5 == pys[1])) and (btbottom > 0)) {
pll[1] = -1;
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
block_sidecollide();
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
block_sidecollide();
}
}
break;
case 29 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 32 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (ffroze < 1) {
if ((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) {
bt[h6] = 22;
bf[h6] = bf[h6] + 3;
}
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 43 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if ((((h2 == px[1]) and (h3 == pxs[1])) and (h4 == py[1])) and (h5 == pys[1])) {
bt[h6] = 44;
bt1[h6] = 0;
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 44 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = (by[h6] - bys[h6]) + 1;
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 45 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = (by[h6] - bys[h6]) + 8;
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 46 :
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - 20) < (by[h6] + bys[h6]))) and (h2 < (bx[h6] + bxs[h6]))) and (h2 > (bx[h6] - bxs[h6]))) {
if (ffroze < 1) {
if ((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) {
SND_Bounce3.start();
bt[h6] = 47;
bt1[h6] = 0;
bt2[h6] = 0;
bt3[h6] = bf[h6];
pd[1] = 40;
plt1[1] = 0;
plt2[1] = 2;
py[1] = (by[h6] - bys[h6]) - 10;
bttop = 0;
}
}
}
break;
case 48 :
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - 20) < (by[h6] + bys[h6]))) and (h2 < (bx[h6] + bxs[h6]))) and (h2 > (bx[h6] - bxs[h6]))) {
if (ffroze < 1) {
if ((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) {
SND_Bounce3.start();
bt[h6] = 49;
bt2[h6] = 0;
bt3[h6] = bf[h6];
pd[1] = 41;
plr[1] = bt1[h6];
plt1[1] = 0;
plt2[1] = 2;
btright = 0;
btleft = 0;
if (bt1[h6] == 1) {
px[1] = (bx[h6] - bxs[h6]) - 10;
}
if (bt1[h6] == 0) {
px[1] = (bx[h6] + bxs[h6]) + 10;
}
bttop = 0;
}
}
}
break;
case 50 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
if (ffroze < 1) {
bxm = bt2[h6];
}
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6]))) {
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
break;
case 52 :
if (((((h4 + 1) > (by[h6] - bys[h6])) and ((h4 - 13) < (by[h6] - bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
bttop = 1;
bttop2 = by[h6] - bys[h6];
} else if ((((((h4 - h5) + 13) > (by[h6] + bys[h6])) and (((h4 - h5) - 1) < (by[h6] + bys[h6]))) and ((h2 - h3) < (bx[h6] + bxs[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) {
btbottom = 1;
btbottom2 = ((by[h6] + bys[h6]) + h5) + 1;
} else {
if ((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and ((h2 + h3) > (bx[h6] - bxs[h6]))) and (h2 < bx[h6])) {
btleft = 1;
btleft2 = ((bx[h6] - bxs[h6]) - h3) - 2;
}
if (!((((h4 > (by[h6] - bys[h6])) and ((h4 - h5) < (by[h6] + bys[h6]))) and (h2 > bx[h6])) and ((h2 - h3) < (bx[h6] + bxs[h6])))) {
break;
}
btright = 1;
btright2 = ((bx[h6] + bxs[h6]) + h3) + 2;
}
}
h6++;
}
}
function blocktouchtest() {
h2 = px[h1];
h3 = pxs[h1];
h4 = py[h1];
h5 = pys[h1];
h7 = pc[h1];
h8 = pd[h1];
blockcollide();
}
function blockshottest() {
h2 = sx[h1];
h3 = ssx[h1];
h4 = sy[h1];
h5 = ssy[h1];
h7 = sc[h1] + 2000;
h8 = sd[h1];
blockcollide();
}
function blockbaddybasic() {
if ((bttop < 1) and (pd[h1] < 31)) {
pd[h1] = 31;
plt1[h1] = 1;
}
if (bttop > 0) {
py[h1] = bttop2;
if ((plt1[h1] >= 0) and (pd[h1] > 30)) {
pd[h1] = 1;
plt1[h1] = 0;
}
}
if (btbottom > 0) {
py[h1] = btbottom2;
if ((plt1[h1] < 1) and (pd[h1] > 30)) {
pd[h1] = 31;
plt1[h1] = 1;
}
}
if (btleft > 0) {
px[h1] = btleft2;
}
if (btright > 0) {
px[h1] = btright2;
}
if (bxm != 0) {
px[h1] = px[h1] + bxm;
}
}
function blockbaddybasic2() {
if ((bttop == 0) and (pd[h1] < 31)) {
pd[h1] = 31;
plt1[h1] = -10;
}
if (((bttop == 1) and (plt1[h1] >= 0)) and (pd[h1] > 30)) {
pd[h1] = 1;
plt1[h1] = 0;
py[h1] = bttop2;
}
if (((btbottom == 1) and (plt1[h1] < 1)) and (pd[h1] > 30)) {
pd[h1] = 31;
plt1[h1] = 1;
py[h1] = btbottom2;
}
if (btleft == 1) {
px[h1] = btleft2;
}
if (btright == 1) {
px[h1] = btright2;
}
}
function block_player_space() {
switch (pc[1]) {
case 1 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] > 6) {
plt1[1] = 6;
}
break;
case 35 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] > 6) {
plt1[1] = 6;
}
break;
case 36 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] <= 6) {
break;
}
plt1[1] = 6;
}
return;
case 2 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] > 6) {
plt1[1] = 6;
}
break;
case 36 :
if (plt1[1] <= 6) {
break;
}
plt1[1] = 6;
}
return;
case 3 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] > 6) {
plt1[1] = 6;
}
break;
case 36 :
if (plt1[1] <= 6) {
break;
}
plt1[1]--;
}
return;
case 4 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 7) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] > 6) {
plt1[1] = 6;
}
return;
case 35 :
if (plt1[1] < 7) {
plt1[1] = plt1[1] - 0.18;
}
if (plt1[1] <= 6) {
break;
}
plt1[1] = 6;
}
}
}
function block_helper_space() {
if (!(pd[11] === 31)) {
} else {
if (plt1[11] < 0) {
plt1[11] = plt1[11] - 0.3;
if (py[1] < py[11]) {
py[11] = py[11] - 2;
}
}
if (plt1[11] > 6) {
plt1[11] = 6;
}
}
}
function block_player_water() {
switch (pc[1]) {
case 1 :
if (!(pd[1] === 31)) {
} else {
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.1;
}
if (plt1[1] > 8) {
plt1[1] = 8;
}
}
return;
case 2 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.1;
}
if (plt1[1] > 8) {
plt1[1] = 8;
}
break;
case 36 :
if (plt1[1] <= 8) {
break;
}
plt1[1] = 8;
}
return;
case 3 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 0) {
plt1[1] = plt1[1] - 0.1;
}
if (plt1[1] > 8) {
plt1[1] = 8;
}
break;
case 36 :
if (plt1[1] <= 8) {
break;
}
plt1[1]--;
}
return;
case 4 :
switch (pd[1]) {
case 31 :
if (plt1[1] < 7) {
plt1[1] = plt1[1] - 0.1;
}
if (plt1[1] > 8) {
plt1[1] = 8;
}
return;
case 35 :
if (plt1[1] < 7) {
plt1[1] = plt1[1] - 0.1;
}
if (plt1[1] <= 8) {
break;
}
plt1[1] = 8;
}
}
}
function block_helper_water() {
if (!(pd[11] === 31)) {
} else {
if (plt1[11] < 0) {
plt1[11] = plt1[11] - 0.2;
}
if (plt1[11] > 8) {
plt1[11] = 8;
}
}
}
Frame 52
function iceblockslide() {
switch (pc[1]) {
case 1 :
switch (pd[1]) {
case 2 :
iceblockkey();
break;
case 3 :
iceblockkey();
break;
case 4 :
icem = 9 - (18 * plr[1]);
break;
case 5 :
icem = 9 - (18 * plr[1]);
break;
case 6 :
icem = 9 - (18 * plr[1]);
break;
case 7 :
icem = 9 - (18 * plr[1]);
break;
case 8 :
icem = 9 - (18 * plr[1]);
break;
case 9 :
icem = 9 - (18 * plr[1]);
break;
case 31 :
iceblockkey2();
break;
case 34 :
icem = 0;
break;
case 37 :
iceblockkey2();
}
return;
case 2 :
switch (pd[1]) {
case 2 :
iceblockkey();
break;
case 3 :
iceblockkey();
break;
case 31 :
iceblockkey2();
break;
case 34 :
icem = 0;
break;
case 35 :
iceblockkey2();
break;
case 36 :
iceblockkey2();
}
return;
case 3 :
switch (pd[1]) {
case 2 :
iceblockkey();
break;
case 3 :
iceblockkey();
break;
case 31 :
iceblockkey2();
break;
case 34 :
icem = 0;
break;
case 35 :
icem = 0;
break;
case 36 :
iceblockkey2();
}
return;
case 4 :
switch (pd[1]) {
case 2 :
iceblockkey();
return;
case 3 :
iceblockkey();
return;
case 4 :
icem = 9 - (18 * plr[1]);
return;
case 31 :
iceblockkey2();
return;
case 34 :
icem = 0;
return;
case 35 :
iceblockkey2();
}
}
}
function iceblockkey() {
if (Key.isDown(kright) and (icem < 9)) {
icem++;
if ((icem < 0) and ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10))) {
icem--;
}
if ((icem < -5) and ((((fpace == 2) or (fpace == 5)) or (fpace == 8)) or (fpace == 11))) {
icem--;
}
}
if (Key.isDown(kleft) and (icem > -9)) {
icem--;
if ((icem > 0) and ((((fpace == 1) or (fpace == 4)) or (fpace == 7)) or (fpace == 10))) {
icem++;
}
if ((icem > 5) and ((((fpace == 2) or (fpace == 5)) or (fpace == 8)) or (fpace == 11))) {
icem++;
}
}
}
function iceblockkey2() {
icem = 0;
if (Key.isDown(kright) and (icem < 9)) {
icem++;
}
if (Key.isDown(kleft) and (icem > -9)) {
icem--;
}
}
function block_keyreset() {
switch (f) {
case 49 :
bx[2] = 580;
by[2] = -180;
return;
case 50 :
bx[2] = 160;
by[2] = -180;
return;
case 399 :
bx[h1] = 260;
by[h1] = -180;
}
}
function block_enemyspawn() {
switch (f) {
case 48 :
if ((camx + 300) < camxm) {
if (fpace < 10) {
pc[h4] = 104;
} else {
pc[h4] = 108;
}
plr[h4] = 1;
px[h4] = camx + 300;
py[h4] = -30 - random(360);
lbsetups();
pll[h4] = pll[h4] / 2;
}
return;
case 50 :
pc[h4] = 105;
plr[h4] = 1;
if (px[1] < 360) {
px[h4] = 420;
} else {
px[h4] = 420 + (280 * random(2));
}
py[h4] = -250;
lbsetups();
}
}
function block_sidebxy() {
switch (bt[h6]) {
case 10 :
bxm = bt2[h6];
return;
case 11 :
bxm = bt2[h6] * -1;
return;
case 12 :
bym = bt2[h6] * -1;
return;
case 13 :
bym = bt2[h6];
return;
case 14 :
bxm = bt2[h6];
bym = bt2[h6] * -1;
return;
case 15 :
bxm = bt2[h6];
bym = bt2[h6];
return;
case 16 :
bxm = bt2[h6] * -1;
bym = bt2[h6] * -1;
return;
case 17 :
bxm = bt2[h6] * -1;
bym = bt2[h6];
return;
case 18 :
if (((((h2 == px[1]) and (h4 == py[1])) and (h3 == pxs[1])) and (h5 == pys[1])) and (bt5[h6] < 1)) {
bt3[h6] = 2;
}
if (bt3[h6] > 0) {
bym = bt2[h6];
} else if (by[h6] > bt1[h6]) {
bym = -2;
}
return;
case 20 :
bxm = bt2[h6];
return;
case 21 :
bxm = bt2[h6] * -1;
return;
case 22 :
bym = bt2[h6] * -1;
return;
case 23 :
bym = bt2[h6];
return;
case 24 :
bxm = bt2[h6];
bym = bt2[h6] * -1;
return;
case 25 :
bxm = bt2[h6];
bym = bt2[h6];
return;
case 26 :
bxm = bt2[h6] * -1;
bym = bt2[h6] * -1;
return;
case 27 :
bxm = bt2[h6] * -1;
bym = bt2[h6];
}
}
function block_sidecollide() {
switch (h7) {
case 3 :
if (h8 == 35) {
block_sidebxy();
}
return;
case 111 :
block_sidebxy();
return;
case 2033 :
if (h8 == 31) {
block_sidebxy();
}
return;
case 2042 :
if ((h8 == 33) or (h8 == 32)) {
block_sidebxy();
}
return;
case 2067 :
if ((h8 == 2) or (h8 == 3)) {
block_sidebxy();
}
return;
case 2085 :
if ((h8 == 33) or (h8 == 32)) {
block_sidebxy();
}
return;
case 2102 :
if (h8 == 2) {
block_sidebxy();
}
return;
case 2145 :
if (h8 == 3) {
break;
}
block_sidebxy();
}
}
function block_aim8() {
if (px[1] >= bx[h1]) {
bt3[h1] = 0;
if ((py[1] - 60) >= by[h1]) {
bt3[h1] = 5;
}
if ((py[1] + 60) < by[h1]) {
bt3[h1] = 4;
}
} else {
bt3[h1] = 1;
if ((py[1] - 60) >= by[h1]) {
bt3[h1] = 7;
}
if ((py[1] + 60) < by[h1]) {
bt3[h1] = 6;
}
}
if ((((px[1] + 40) > (bx[h1] - bxs[h1])) and ((px[1] - 40) < (bx[h1] + bxs[h1]))) and (py[1] > by[h1])) {
bt3[h1] = 3;
}
if ((((px[1] + 40) > (bx[h1] - bxs[h1])) and ((px[1] - 40) < (bx[h1] + bxs[h1]))) and (py[1] < by[h1])) {
bt3[h1] = 2;
}
}
Frame 60
function Boss_RhinoTank() {
pll[3] = pll[2];
switch (pd[h1]) {
case 0 :
pf[h1] = 1;
switch (pf[2]) {
case 1200 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
break;
case 1202 :
px[h1] = px[2] - 55;
py[h1] = py[2] - 88;
break;
case 1204 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 75;
break;
case 1206 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 28;
break;
case 1208 :
px[h1] = px[2] - 52;
py[h1] = py[2] - 62;
break;
case 1210 :
px[h1] = px[2] - 52;
py[h1] = py[2] - 62;
break;
case 1212 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
break;
case 1214 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
break;
case 1216 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
break;
case 1218 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
break;
case 1220 :
px[h1] = px[2] - 50;
py[h1] = py[2] - 62;
}
break;
case 1 :
pf[h1] = 1200;
h2 = random(100 + fdiff);
if (plt1[h1] > 0) {
plt1[h1]--;
}
if (plt1[h1] < 1) {
if ((h2 < 12) and (px[1] > 100)) {
pd[h1] = 32;
plt1[h1] = -13;
py[h1] = py[h1] - 2;
}
if (((h2 > 20) and (h2 < 40)) and (ffroze < 1)) {
pd[h1] = 4;
plt1[h1] = 0;
}
if (((h2 > 40) and (h2 < 50)) and (pll[h1] < 2000)) {
pd[h1] = 5;
plt1[h1] = 0;
}
pg[h1] = 0;
}
break;
case 3 :
pf[h1] = 1206;
px[h1] = px[h1] - 26;
pg[h1] = 1;
if (px[h1] < 210) {
px[h1] = 210;
pd[h1] = 31;
py[h1] = py[h1] - 2;
plt1[h1] = -11;
}
pg[h1] = 1;
break;
case 4 :
if (plt1[h1] < 4) {
pf[h1] = 1208;
} else if ((plt1[h1] > 3) and (plt1[h1] < 7)) {
pf[h1] = 1210;
} else if ((plt1[h1] > 6) and (plt1[h1] < 10)) {
pf[h1] = 1212;
} else if (plt1[h1] > 9) {
pf[h1] = 1214;
}
plt1[h1]++;
if ((plt1[h1] > 11) and (sc[snumber] == 0)) {
SND_Hit4.start();
pd[h1] = 1;
plt1[h1] = 30;
sc[snumber] = 408;
sd[snumber] = 31;
slr[snumber] = 1;
slt1[snumber] = 7 + random(7);
slt2[snumber] = -11;
sx[snumber] = px[h1] - 60;
sy[snumber] = py[h1] - 160;
ssx[snumber] = 20;
ssy[snumber] = 40;
isn();
if (sc[snumber] == 0) {
sc[snumber] = 408;
sd[snumber] = 31;
slr[snumber] = 1;
slt1[snumber] = 2 + random(5);
slt2[snumber] = -12;
sx[snumber] = px[h1] - 40;
sy[snumber] = py[h1] - 160;
ssx[snumber] = 20;
ssy[snumber] = 40;
isn();
}
}
pg[h1] = 0;
break;
case 5 :
if (plt1[h1] < 5) {
pf[h1] = 1216;
} else {
pf[h1] = 1218;
}
plt1[h1]++;
if (plt1[h1] > 9) {
pd[h1] = 6;
plt1[h1] = 0;
}
pg[h1] = 0;
break;
case 6 :
pf[h1] = 1220;
plt1[h1]++;
if ((plt1[h1] > 22) and (sc[snumber] == 0)) {
pd[h1] = 7;
plt1[h1] = 0;
SND_Zap2.start();
sc[snumber] = 409;
slt1[snumber] = 0;
slt2[snumber] = (px[1] - (px[h1] - 100)) / 18;
slt3[snumber] = ((py[1] - 30) - (py[h1] - 90)) / 18;
sx[snumber] = px[h1] - 100;
sy[snumber] = py[h1] - 90;
ssx[snumber] = 20;
ssy[snumber] = 20;
isn();
}
pg[h1] = 0;
break;
case 7 :
if (plt1[h1] < 5) {
pf[h1] = 1218;
} else {
pf[h1] = 1216;
}
plt1[h1]++;
if (plt1[h1] > 9) {
pd[h1] = 1;
plt1[h1] = 45;
}
pg[h1] = 0;
break;
case 31 :
if ((plt1[h1] < -13) or (plt1[h1] > 8)) {
pf[h1] = 1202;
} else {
pf[h1] = 1204;
}
px[h1] = px[h1] + Math.round((440 - px[h1]) / 6);
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
pg[h1] = 0;
break;
case 32 :
if ((plt1[h1] < -13) or (plt1[h1] > 8)) {
pf[h1] = 1202;
} else {
pf[h1] = 1204;
}
px[h1] = px[h1] + 8;
py[h1] = py[h1] + plt1[h1];
if (plt1[h1] < 10) {
plt1[h1]++;
}
pg[h1] = 0;
}
blocktouchtest();
if (bttop > 0) {
py[h1] = bttop2;
switch (pd[h1]) {
case 31 :
pd[h1] = 1;
px[h1] = 440;
plt1[h1] = 5;
SND_Explosion8.start();
break;
case 32 :
pd[h1] = 3;
plt1[h1] = 0;
SND_Explosion8.start();
}
}
if (btbottom > 0) {
py[h1] = btbottom2;
}
bmeleeattackhit();
if (pd[h1] != 3) {
if (((h4 > 0) and (inv < 1)) and (pg[1] < 1)) {
SND_Hit5.start();
pll[1] = pll[1] - 100;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
} else if ((h4 > 0) and (inv < 1)) {
SND_Hit5.start();
pll[1] = pll[1] - 150;
lvlr_16();
lvlr_8();
pd[1] = 34;
plt1[1] = 0;
}
if (pll[2] < 1) {
pll[2] = -1;
pll[3] = -1;
}
if (pll[2] < 0) {
gotoAndPlay (2025);
}
}
Frame 80
function controlplayer() {
pact = 0;
if (inv > 0) {
inv--;
}
switch (pc[1]) {
case 1 :
controlmegaman();
return;
case 2 :
controlmegabeat();
return;
case 3 :
controlmegatango();
return;
case 4 :
controlmegarush();
return;
case 5 :
controlrushjet();
return;
case 6 :
controlrushmarine();
}
}
function controlhelper() {
h1 = 11;
switch (pc[11]) {
case 0 :
pf[11] = 1;
px[11] = -2000;
py[11] = 2000;
return;
case 1 :
control_helper_beat();
return;
case 2 :
control_helper_tango();
return;
case 3 :
control_helper_rush();
}
}
function player_movie_frames() {
if (pd[1] < 31) {
pd[1] = 1;
}
if (pd[1] > 30) {
pd[1] = 31;
}
switch (pd[1]) {
case 1 :
pf[1] = 2;
break;
case 31 :
pf[1] = 22;
}
pf[1] = pf[1] + (200 * plr[1]);
pf[1] = pf[1] + (400 * (pc[1] - 1));
}
function pm_iconreset() {
mn_1._x = 2000;
mn_2._x = 2000;
mn_3._x = 2000;
mn_4._x = 2000;
mn_5._x = 2000;
mn_6._x = 2000;
mn_7._x = 2000;
mn_8._x = 2000;
mn_9._x = 2000;
mn_10._x = 2000;
mn_11._x = 2000;
mn_12._x = 2000;
mn_13._x = 2000;
mn_14._x = 2000;
mn_15._x = 2000;
mn_16._x = 2000;
mn_17._x = 2000;
mn_18._x = 2000;
mn_19._x = 2000;
mn_20._x = 2000;
m1_1._x = 2000;
m1_2._x = 2000;
m1_3._x = 2000;
m1_4._x = 2000;
m1_5._x = 2000;
m1_6._x = 2000;
m2_1._x = 2000;
m2_2._x = 2000;
m2_3._x = 2000;
m2_4._x = 2000;
m2_5._x = 2000;
m2_6._x = 2000;
m2_7._x = 2000;
m2_8._x = 2000;
m3_1._x = 2000;
m3_2._x = 2000;
m3_3._x = 2000;
m3_4._x = 2000;
m3_5._x = 2000;
m3_6._x = 2000;
m3_7._x = 2000;
m3_8._x = 2000;
m4_1._x = 2000;
m4_2._x = 2000;
m4_3._x = 2000;
m4_4._x = 2000;
m4_5._x = 2000;
m4_6._x = 2000;
m4_7._x = 2000;
m4_8._x = 2000;
m5_1._x = 2000;
m5_2._x = 2000;
m5_3._x = 2000;
m5_4._x = 2000;
m5_5._x = 2000;
m5_6._x = 2000;
m5_7._x = 2000;
m5_8._x = 2000;
m6_1._x = 2000;
m6_2._x = 2000;
m6_3._x = 2000;
m6_4._x = 2000;
m6_5._x = 2000;
m6_6._x = 2000;
m6_7._x = 2000;
m6_8._x = 2000;
m7_1._x = 2000;
m7_2._x = 2000;
m7_3._x = 2000;
m7_4._x = 2000;
m7_5._x = 2000;
m7_6._x = 2000;
m7_7._x = 2000;
m7_8._x = 2000;
m8_1._x = 2000;
m8_2._x = 2000;
m8_3._x = 2000;
m8_4._x = 2000;
m8_5._x = 2000;
m8_6._x = 2000;
m8_7._x = 2000;
m8_8._x = 2000;
sd_1._x = 2000;
sd_2._x = 2000;
sd_3._x = 2000;
sd_4._x = 2000;
sd_5._x = 2000;
sd_6._x = 2000;
sd_7._x = 2000;
sd_8._x = 2000;
sd_9._x = 2000;
mb_1._x = 2000;
mb_2._x = 2000;
mb_3._x = 2000;
mb_4._x = 2000;
mb_5._x = 2000;
mb_6._x = 2000;
mb_7._x = 2000;
mb_8._x = 2000;
mk_1._x = 2000;
mk_2._x = 2000;
mk_3._x = 2000;
mk_4._x = 2000;
help_1._x = -2000;
help_2._x = -2000;
help_3._x = -2000;
help_4._x = -2000;
}
function SS_SquareReset() {
sq1.gotoAndStop(1);
sq2.gotoAndStop(1);
sq3.gotoAndStop(1);
sq4.gotoAndStop(1);
sq5.gotoAndStop(1);
sq6.gotoAndStop(1);
sq7.gotoAndStop(1);
sq8.gotoAndStop(1);
sq9.gotoAndStop(1);
sq10.gotoAndStop(1);
sq11.gotoAndStop(1);
sq12.gotoAndStop(1);
sq14.gotoAndStop(1);
sq15.gotoAndStop(1);
sq16.gotoAndStop(1);
sq17.gotoAndStop(1);
sq18.gotoAndStop(1);
sq19.gotoAndStop(1);
sq20.gotoAndStop(1);
sq21.gotoAndStop(1);
sq22.gotoAndStop(1);
sq23.gotoAndStop(1);
sq24.gotoAndStop(1);
sq25.gotoAndStop(1);
}
function stereoreset() {
theme1._y = -1000;
theme2._y = -1000;
theme3._y = -1000;
theme4._y = -1000;
theme5._y = -1000;
theme6._y = -1000;
theme7._y = -1000;
theme8._y = -1000;
theme9._y = -1000;
theme10._y = -1000;
theme11._y = -1000;
theme12._y = -1000;
theme13._y = -1000;
theme14._y = -1000;
theme15._y = -1000;
theme16._y = -1000;
theme17._y = -1000;
theme18._y = -1000;
theme19._y = -1000;
theme20._y = -1000;
theme21._y = -1000;
theme22._y = -1000;
theme23._y = -1000;
theme24._y = -1000;
theme25._y = -1000;
theme26._y = -1000;
theme27._y = -1000;
theme28._y = -1000;
theme29._y = -1000;
theme30._y = -1000;
theme31._y = -1000;
theme32._y = -1000;
theme33._y = -1000;
theme34._y = -1000;
theme35._y = -1000;
theme36._y = -1000;
theme37._y = -1000;
theme38._y = -1000;
theme39._y = -1000;
theme40._y = -1000;
theme41._y = -1000;
theme42._y = -1000;
theme43._y = -1000;
theme44._y = -1000;
theme45._y = -1000;
theme46._y = -1000;
theme47._y = -1000;
theme48._y = -1000;
theme49._y = -1000;
}
function blockcount() {
bnum = 0;
h1 = 1;
while (h1 <= 12) {
if (bt[h1] > 0) {
bnum++;
}
h1++;
}
}
Frame 81
function shittest_1() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs1.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs1.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs1.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs1.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs1.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs1.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs1.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs1.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs1.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs1.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_2() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs2.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs2.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs2.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs2.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs2.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs2.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs2.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs2.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs2.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs2.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_3() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs3.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs3.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs3.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs3.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs3.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs3.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs3.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs3.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs3.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs3.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_4() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs4.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs4.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs4.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs4.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs4.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs4.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs4.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs4.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs4.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs4.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_5() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs5.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs5.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs5.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs5.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs5.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs5.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs5.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs5.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs5.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs5.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_6() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs6.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs6.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs6.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs6.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs6.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs6.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs6.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs6.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs6.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs6.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_7() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs7.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs7.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs7.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs7.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs7.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs7.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs7.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs7.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs7.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs7.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_8() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs8.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs8.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs8.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs8.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs8.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs8.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs8.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs8.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs8.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs8.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_9() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs9.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs9.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs9.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs9.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs9.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs9.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs9.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs9.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs9.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs9.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_10() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs10.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs10.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs10.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs10.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs10.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs10.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs10.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs10.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs10.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs10.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_11() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs11.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs11.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs11.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs11.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs11.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs11.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs11.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs11.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs11.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs11.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_12() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs12.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs12.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs12.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs12.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs12.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs12.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs12.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs12.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs12.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs12.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_13() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs13.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs13.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs13.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs13.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs13.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs13.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs13.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs13.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs13.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs13.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_14() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs14.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs14.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs14.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs14.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs14.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs14.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs14.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs14.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs14.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs14.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_15() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs15.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs15.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs15.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs15.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs15.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs15.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs15.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs15.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs15.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs15.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_16() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs16.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs16.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs16.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs16.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs16.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs16.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs16.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs16.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs16.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs16.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_17() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs17.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs17.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs17.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs17.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs17.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs17.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs17.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs17.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs17.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs17.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_18() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs18.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs18.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs18.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs18.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs18.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs18.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs18.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs18.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs18.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs18.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_19() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs19.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs19.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs19.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs19.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs19.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs19.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs19.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs19.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs19.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs19.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_20() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs20.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs20.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs20.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs20.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs20.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs20.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs20.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs20.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs20.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs20.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_21() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs21.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs21.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs21.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs21.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs21.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs21.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs21.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs21.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs21.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs21.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_22() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs22.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs22.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs22.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs22.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs22.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs22.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs22.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs22.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs22.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs22.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_23() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs23.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs23.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs23.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs23.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs23.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs23.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs23.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs23.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs23.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs23.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_24() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs24.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs24.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs24.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs24.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs24.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs24.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs24.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs24.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs24.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs24.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_25() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs25.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs25.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs25.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs25.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs25.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs25.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs25.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs25.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs25.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs25.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_26() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs26.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs26.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs26.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs26.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs26.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs26.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs26.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs26.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs26.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs26.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_27() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs27.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs27.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs27.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs27.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs27.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs27.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs27.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs27.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs27.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs27.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_28() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs28.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs28.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs28.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs28.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs28.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs28.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs28.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs28.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs28.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs28.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_29() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs29.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs29.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs29.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs29.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs29.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs29.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs29.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs29.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs29.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs29.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
function shittest_30() {
h2 = 1;
while (h2 <= 10) {
switch (h2) {
case 1 :
if (gs30.hz.hitTest(gp1.hz)) {
h4 = 2;
phit[h2] = 2;
}
break;
case 2 :
if (gs30.hz.hitTest(gp2.hz)) {
h4 = 1;
phit[2] = 1;
}
break;
case 3 :
if (gs30.hz.hitTest(gp3.hz)) {
h4 = 1;
phit[3] = 1;
}
break;
case 4 :
if (gs30.hz.hitTest(gp4.hz)) {
h4 = 1;
phit[4] = 1;
}
break;
case 5 :
if (gs30.hz.hitTest(gp5.hz)) {
h4 = 1;
phit[5] = 1;
}
break;
case 6 :
if (gs30.hz.hitTest(gp6.hz)) {
h4 = 1;
phit[6] = 1;
}
break;
case 7 :
if (gs30.hz.hitTest(gp7.hz)) {
h4 = 1;
phit[7] = 1;
}
break;
case 8 :
if (gs30.hz.hitTest(gp8.hz)) {
h4 = 1;
phit[8] = 1;
}
break;
case 9 :
if (gs30.hz.hitTest(gp9.hz)) {
h4 = 1;
phit[9] = 1;
}
break;
case 10 :
if (!gs30.hz.hitTest(gp10.hz)) {
break;
}
h4 = 1;
phit[10] = 1;
}
h2++;
}
}
Frame 82
function controlshots() {
h1 = 1;
while (h1 <= 30) {
switch (sc[h1]) {
case 0 :
sf[h1] = 1;
break;
case 1 :
Mega_Buster_lil();
break;
case 2 :
Mega_Buster_mid();
break;
case 3 :
Mega_Buster_max();
break;
case 4 :
Mega_Buster_Dark();
break;
case 5 :
Mega_Buster_Lion();
break;
case 21 :
Mega_FireStorm1();
break;
case 22 :
Mega_FireStorm2();
break;
case 23 :
Mega_HyperBomb();
break;
case 24 :
Mega_IceSlasher();
break;
case 25 :
Mega_RollingCutter();
break;
case 26 :
Mega_StrongArm();
break;
case 27 :
Mega_ThunderBeam();
break;
case 28 :
Mega_AirShooter();
break;
case 29 :
Mega_AtomicFire_Min();
break;
case 30 :
Mega_AtomicFire_Mid();
break;
case 31 :
Mega_AtomicFire_Max();
break;
case 32 :
Mega_BubbleLead();
break;
case 33 :
Mega_CrashBomber();
break;
case 34 :
Mega_LeafShield();
break;
case 35 :
Mega_MetalBlade();
break;
case 36 :
Mega_QuickBoomerang();
break;
case 37 :
Mega_TimeStopper();
break;
case 38 :
Mega_GeminiLaser();
break;
case 39 :
Mega_HardKnuckle();
break;
case 40 :
Mega_MagnetMissile();
break;
case 41 :
Mega_NeedleCannon();
break;
case 42 :
Mega_SearchSnake();
break;
case 43 :
Mega_ShadowBlade();
break;
case 44 :
Mega_SparkShock();
break;
case 45 :
Mega_TopSpin();
break;
case 46 :
Mega_DiveMissile();
break;
case 47 :
Mega_DrillBomb();
break;
case 48 :
Mega_DustCrusher();
break;
case 49 :
Mega_FlashStopper();
break;
case 50 :
Mega_PharaohShotMin();
break;
case 51 :
Mega_PharaohShotMid();
break;
case 52 :
Mega_PharaohShotMax();
break;
case 53 :
Mega_PharaohShotCh();
break;
case 54 :
Mega_RainFlush();
break;
case 55 :
Mega_RingBoomerang();
break;
case 56 :
Mega_SkullBarrier();
break;
case 57 :
Mega_ChargeKick();
break;
case 58 :
Mega_CrystalEye();
break;
case 59 :
Mega_GravityHold();
break;
case 60 :
Mega_GyroAttack();
break;
case 61 :
Mega_NapalmBomb();
break;
case 62 :
Mega_PowerStone();
break;
case 63 :
Mega_StarCrash();
break;
case 64 :
Mega_WaterWave();
break;
case 65 :
Mega_BlizzardAttack();
break;
case 66 :
Mega_CentaurFlash();
break;
case 67 :
Mega_FlameBlast();
break;
case 68 :
Mega_KnightCrusher();
break;
case 69 :
Mega_PlantBarrier();
break;
case 70 :
Mega_SilverTomahawk();
break;
case 71 :
Mega_WindStorm();
break;
case 72 :
Mega_YamatoSpear();
break;
case 73 :
Mega_DangerWrap();
break;
case 74 :
Mega_FreezeCracker();
break;
case 75 :
Mega_JunkShield();
break;
case 76 :
Mega_NoiseCrush();
break;
case 77 :
Mega_ScorchWheel();
break;
case 78 :
Mega_SlashClaw();
break;
case 79 :
Mega_ThunderStrike();
break;
case 80 :
Mega_WildCoil();
break;
case 81 :
Mega_AstroCrush();
break;
case 82 :
Mega_FlameSword();
break;
case 83 :
Mega_FlashBomb();
break;
case 84 :
Mega_HomingSniper();
break;
case 85 :
Mega_IceWave();
break;
case 86 :
Mega_ThunderClaw();
break;
case 87 :
Mega_TornadoHold();
break;
case 88 :
Mega_WaterBalloon();
break;
case 89 :
Mega_BlackHole();
break;
case 90 :
Mega_BreakDash();
break;
case 91 :
Mega_BubbleBomb();
break;
case 92 :
Mega_DeepDigger();
break;
case 93 :
Mega_ElectricSpark();
break;
case 94 :
Mega_GrabBuster();
break;
case 95 :
Mega_PhotonMissile();
break;
case 96 :
Mega_SaltWater();
break;
case 97 :
Mega_SparkChaser();
break;
case 98 :
Mega_CopyVision();
break;
case 99 :
Mega_IceWall();
break;
case 100 :
Mega_LightningBolt();
break;
case 101 :
Mega_MagicCard();
break;
case 102 :
Mega_RemoteMine();
break;
case 103 :
Mega_SpreadDrill();
break;
case 104 :
Mega_TenguBlade();
break;
case 105 :
Mega_WaveBurner();
break;
case 106 :
Mega_BalladeCracker();
break;
case 107 :
Mega_MirrorBuster();
break;
case 108 :
Mega_Sakugarne();
break;
case 109 :
Mega_ScrewCrusher();
break;
case 120 :
Mega_ArsenalStorm();
break;
case 121 :
Mega_CameoCannon();
break;
case 122 :
Mega_CircuitryShield();
break;
case 123 :
Mega_CypherEdge();
break;
case 124 :
Mega_FrostfireShot();
break;
case 125 :
Mega_IllegalBlitz();
break;
case 126 :
Mega_JawsWave();
break;
case 127 :
Mega_MetalGearGander2();
break;
case 128 :
Mega_MirrorFlash();
break;
case 129 :
Mega_NightmareBB();
break;
case 130 :
Mega_PlasmicBurst();
break;
case 131 :
Mega_PowerMoon();
break;
case 132 :
Mega_PunchDash();
break;
case 133 :
Mega_PyroBalloon();
break;
case 134 :
Mega_ROFLTotem();
break;
case 135 :
Mega_SkillcoilSiphon();
break;
case 136 :
Mega_SmokeScreen();
break;
case 137 :
Mega_SplitMissile();
break;
case 138 :
Mega_TheBrick();
break;
case 139 :
Mega_TwisterSwarm();
break;
case 140 :
Mega_Talent_PowerBuster();
break;
case 141 :
Mega_Talent_MegaCrusher();
break;
case 142 :
Mega_Talent_Renegeration();
break;
case 145 :
Mega_Pet_TangoFlea();
break;
case 146 :
Mega_Pet_RushShot();
break;
case 401 :
lb_shot1();
break;
case 402 :
lb_spark1();
break;
case 403 :
lb_cannon1();
break;
case 404 :
lb_shatterb();
break;
case 405 :
lb_shatters();
break;
case 406 :
lb_fireshot1();
break;
case 408 :
bshot_rhinoshot();
break;
case 409 :
bshot_rhinosuper();
break;
case 503 :
Mega_Charge_Mid();
break;
case 504 :
Mega_Charge_Max();
break;
case 505 :
SFX_SmokePuff();
break;
case 506 :
SFX_DustSparkle();
break;
case 507 :
SFX_DustFire();
break;
case 508 :
SFX_DustSpark1();
break;
case 515 :
SFX_WaterSplash1();
break;
case 520 :
MegaRushAfter1();
break;
case 521 :
MegaRushAfter2();
break;
case 522 :
MegaRushAfter3();
break;
case 530 :
Mega_BusterHit1();
break;
case 531 :
Mega_BusterHit2();
break;
case 532 :
Mega_BusterHit3();
break;
case 533 :
Mega_BusterHit4();
break;
case 534 :
Mega_BusterHit5();
break;
case 540 :
Mega_BusterSus1();
break;
case 541 :
Mega_BusterSus2();
break;
case 542 :
Mega_BusterSus3();
break;
case 543 :
Mega_BusterSus4();
break;
case 544 :
Mega_BusterSus5();
break;
case 560 :
HelperTransform();
break;
case 1000 :
chat_shot();
}
if (sc[h1] > 0) {
if (((((sx[h1] + ssx[h1]) < (camx - 300)) or ((sx[h1] - ssx[h1]) > (camx + 300))) or ((sy[h1] + ssy[h1]) < (camy - 300))) or ((sy[h1] - ssy[h1]) > (camy + 160))) {
sreset();
}
}
h1++;
}
}
function shittest() {
h4 = 0;
h2 = 1;
while (h2 <= 10) {
phit[h2] = 0;
h2++;
}
switch (h1) {
case 1 :
shittest_1();
return;
case 2 :
shittest_2();
return;
case 3 :
shittest_3();
return;
case 4 :
shittest_4();
return;
case 5 :
shittest_5();
return;
case 6 :
shittest_6();
return;
case 7 :
shittest_7();
return;
case 8 :
shittest_8();
return;
case 9 :
shittest_9();
return;
case 10 :
shittest_10();
return;
case 11 :
shittest_11();
return;
case 12 :
shittest_12();
return;
case 13 :
shittest_13();
return;
case 14 :
shittest_14();
return;
case 15 :
shittest_15();
return;
case 16 :
shittest_16();
return;
case 17 :
shittest_17();
return;
case 18 :
shittest_18();
return;
case 19 :
shittest_19();
return;
case 20 :
shittest_20();
return;
case 21 :
shittest_21();
return;
case 22 :
shittest_22();
return;
case 23 :
shittest_23();
return;
case 24 :
shittest_24();
return;
case 25 :
shittest_25();
return;
case 26 :
shittest_26();
return;
case 27 :
shittest_27();
return;
case 28 :
shittest_28();
return;
case 29 :
shittest_29();
return;
case 30 :
shittest_30();
}
}
function pmeleeattackhit() {
h4 = 0;
h2 = 1;
while (h2 <= 10) {
phit[h2] = 0;
h2++;
}
if (gp1.az.hitTest(gp2.hz)) {
h4 = 2;
phit[2] = 2;
}
if (gp1.az.hitTest(gp3.hz)) {
h4 = 2;
phit[3] = 2;
}
if (gp1.az.hitTest(gp4.hz)) {
h4 = 2;
phit[4] = 2;
}
if (gp1.az.hitTest(gp5.hz)) {
h4 = 2;
phit[5] = 2;
}
if (gp1.az.hitTest(gp6.hz)) {
h4 = 2;
phit[6] = 2;
}
if (gp1.az.hitTest(gp7.hz)) {
h4 = 2;
phit[7] = 2;
}
if (gp1.az.hitTest(gp8.hz)) {
h4 = 2;
phit[8] = 2;
}
if (gp1.az.hitTest(gp9.hz)) {
h4 = 2;
phit[9] = 2;
}
if (gp1.az.hitTest(gp10.hz)) {
h4 = 2;
phit[10] = 2;
}
}
function hmeleeattackhit() {
h4 = 0;
h2 = 1;
while (h2 <= 10) {
phit[h2] = 0;
h2++;
}
if (gp11.az.hitTest(gp2.hz)) {
h4 = 2;
phit[2] = 2;
}
if (gp11.az.hitTest(gp3.hz)) {
h4 = 2;
phit[3] = 2;
}
if (gp11.az.hitTest(gp4.hz)) {
h4 = 2;
phit[4] = 2;
}
if (gp11.az.hitTest(gp5.hz)) {
h4 = 2;
phit[5] = 2;
}
if (gp11.az.hitTest(gp6.hz)) {
h4 = 2;
phit[6] = 2;
}
if (gp11.az.hitTest(gp7.hz)) {
h4 = 2;
phit[7] = 2;
}
if (gp11.az.hitTest(gp8.hz)) {
h4 = 2;
phit[8] = 2;
}
if (gp11.az.hitTest(gp9.hz)) {
h4 = 2;
phit[9] = 2;
}
if (gp11.az.hitTest(gp10.hz)) {
h4 = 2;
phit[10] = 2;
}
}
function bmeleeattackhit() {
h4 = 0;
switch (h1) {
case 2 :
if (gp2.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 3 :
if (gp3.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 4 :
if (gp4.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 5 :
if (gp5.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 6 :
if (gp6.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 7 :
if (gp7.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 8 :
if (gp8.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 9 :
if (gp9.az.hitTest(gp1.hz)) {
h4 = 2;
}
return;
case 10 :
if (!gp10.az.hitTest(gp1.hz)) {
break;
}
h4 = 2;
}
}
function ahazardhit() {
h4 = 0;
switch (h1) {
case 1 :
if (mb1.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 2 :
if (mb2.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 3 :
if (mb3.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 4 :
if (mb4.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 5 :
if (mb5.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 6 :
if (mb6.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 7 :
if (mb7.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 8 :
if (mb8.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 9 :
if (mb9.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 10 :
if (mb10.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 11 :
if (mb11.az.hitTest(gp1.hz)) {
h4 = 2;
}
break;
case 12 :
if (!mb12.az.hitTest(gp1.hz)) {
break;
}
h4 = 2;
}
if (inv > 0) {
h4 = 0;
}
}
function control_exits() {
switch (f) {
case 1 :
pcharge = 0;
pls1[1] = 0;
weapt = 2;
pls1[11] = 0;
if ((px[1] > 530) and (py[1] > -320)) {
px[1] = 40;
gotoAndPlay (502);
}
if ((px[1] < 130) and Key.isDown(kup)) {
gotoAndPlay (351);
}
return;
case 2 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 520;
gotoAndPlay (501);
}
if ((((px[1] < 190) and (px[1] > 130)) and (py[1] > -320)) and Key.isDown(kup)) {
px[1] = 520;
plr[1] = 1;
gotoAndPlay (503);
}
if ((((px[1] > 290) and (px[1] < 310)) and (py[1] > -280)) and Key.isDown(kup)) {
px[1] = 40;
plr[1] = 0;
gotoAndPlay (504);
}
if ((((px[1] > 410) and (px[1] < 430)) and (py[1] > -280)) and Key.isDown(kup)) {
px[1] = 40;
plr[1] = 0;
gotoAndPlay (505);
}
if ((px[1] > 530) and (py[1] > -320)) {
px[1] = 40;
plr[1] = 0;
gotoAndPlay (506);
}
return;
case 3 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] > 530) and (py[1] > -320)) {
px[1] = 200;
plr[1] = 0;
gotoAndPlay (502);
}
if ((((px[1] > 370) and (px[1] < 390)) and (py[1] > -280)) and Key.isDown(kup)) {
px[1] = 40;
plr[1] = 0;
gotoAndPlay (507);
}
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 400;
py[1] = py[1] - 40;
plr[1] = 1;
gotoAndPlay (509);
}
return;
case 4 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 280;
plr[1] = 1;
gotoAndPlay (502);
} else if ((((px[1] > 140) and (px[1] < 180)) and (py[1] > -280)) and Key.isDown(kup)) {
gotoAndPlay (365);
}
return;
case 5 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 400;
plr[1] = 1;
gotoAndPlay (502);
}
return;
case 6 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 520;
plr[1] = 1;
gotoAndPlay (502);
} else if ((((px[1] > 190) and (px[1] < 230)) and (py[1] > -320)) and Key.isDown(kup)) {
px[1] = 960;
py[1] = py[1] + 120;
plr[1] = 1;
pd[1] = 1;
stopAllSounds();
gotoAndPlay (521);
} else if ((((px[1] > 310) and (px[1] < 510)) and (py[1] > -320)) and Key.isDown(kup)) {
SND_Blip2.start();
gotoAndPlay (360);
}
return;
case 7 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((px[1] < 30) and (py[1] > -320)) {
px[1] = 360;
plr[1] = 1;
gotoAndPlay (503);
}
return;
case 9 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if ((((px[1] > 410) and (px[1] < 470)) and (py[1] > -320)) and Key.isDown(kup)) {
px[1] = 40;
py[1] = py[1] + 40;
plr[1] = 1;
gotoAndPlay (503);
}
if (px[1] < 30) {
px[1] = 520;
plr[1] = 1;
gotoAndPlay (510);
}
return;
case 10 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if (px[1] > 530) {
px[1] = 40;
plr[1] = 0;
gotoAndPlay (509);
} else if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (511);
}
return;
case 11 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (510);
} else if ((((px[1] > 700) and (px[1] < 740)) and (py[1] > -280)) and Key.isDown(kup)) {
px[1] = 520;
stopAllSounds();
SND_Door1.start();
gotoAndPlay (512);
}
return;
case 12 :
pcharge = 0;
weapt = 2;
pls1[1] = 0;
pls1[11] = 0;
if (px[1] > 530) {
px[1] = 760;
stopAllSounds();
SND_Door1.start();
gotoAndPlay (511);
}
return;
case 21 :
if (pll[1] < 1000) {
pll[1] = pll[1] + 10;
if (pll[1] > 1000) {
pll[1] = 1000;
}
}
if (ple < 1000) {
ple = ple + 10;
if (ple > 1000) {
ple = 1000;
}
}
if (py[1] > 0) {
pd[1] = 100;
gotoAndPlay (521);
}
if ((((px[1] > 890) and (px[1] < 930)) and (py[1] > -200)) and Key.isDown(kup)) {
px[1] = 240;
py[1] = py[1] - 120;
plr[1] = 0;
pd[1] = 1;
stopAllSounds();
gotoAndPlay (506);
}
return;
case 31 :
if (Key.isDown(8) and Key.isDown(36)) {
pd[1] = 100;
gotoAndPlay (554);
}
if (py[1] > 0) {
py[1] = -360;
gotoAndPlay (532);
}
return;
case 32 :
if (py[1] < -370) {
py[1] = -10;
gotoAndPlay (531);
} else if (py[1] > 0) {
py[1] = -360;
gotoAndPlay (533);
}
return;
case 33 :
if (py[1] < -370) {
py[1] = -10;
gotoAndPlay (532);
} else if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] - 680;
gotoAndPlay (534);
}
return;
case 34 :
if (px[1] > 530) {
py[1] = py[1] + 680;
px[1] = 40;
gotoAndPlay (533);
} else if (py[1] > 0) {
py[1] = -360;
gotoAndPlay (535);
}
return;
case 35 :
if (py[1] < -370) {
py[1] = -10;
gotoAndPlay (534);
} else if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] - 160;
gotoAndPlay (536);
}
return;
case 36 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 160;
gotoAndPlay (535);
} else if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] - 360;
gotoAndPlay (537);
}
return;
case 37 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 360;
gotoAndPlay (536);
} else if (py[1] > 0) {
px[1] = px[1] - 320;
py[1] = -360;
gotoAndPlay (538);
}
return;
case 38 :
if (py[1] < -370) {
px[1] = px[1] + 320;
py[1] = -10;
gotoAndPlay (537);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (539);
}
return;
case 39 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (538);
} else if (px[1] > 970) {
px[1] = 40;
py[1] = py[1] - 40;
gotoAndPlay (540);
}
return;
case 40 :
if (px[1] < 30) {
px[1] = 960;
py[1] = py[1] + 40;
gotoAndPlay (539);
} else if (px[1] > 1170) {
px[1] = 40;
gotoAndPlay (541);
}
return;
case 41 :
if (px[1] < 30) {
px[1] = 1160;
gotoAndPlay (540);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (542);
}
return;
case 42 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (541);
} else if (px[1] > 970) {
px[1] = 40;
py[1] = py[1] - 120;
gotoAndPlay (543);
}
return;
case 43 :
if (px[1] < 30) {
px[1] = 960;
py[1] = py[1] + 120;
gotoAndPlay (542);
} else if (px[1] > 770) {
px[1] = 40;
py[1] = py[1] + 80;
gotoAndPlay (544);
}
return;
case 44 :
if (px[1] < 30) {
px[1] = 760;
py[1] = py[1] - 80;
gotoAndPlay (543);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (545);
}
return;
case 45 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (544);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (546);
}
return;
case 46 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (545);
} else if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] + 200;
gotoAndPlay (547);
}
return;
case 47 :
if ((px[1] < 30) and (py[1] > -240)) {
px[1] = 520;
py[1] = py[1] - 200;
gotoAndPlay (546);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (548);
}
return;
case 48 :
if (px[1] > 5970) {
px[1] = 40;
gotoAndPlay (549);
}
if ((camx + 300) > camxm) {
h4 = 1;
while (h4 <= 7) {
if (((bx[h4] - bxs[h4]) + 50) > camxm) {
bt[h4] = 0;
by[h4] = 2000;
}
h4++;
}
}
return;
case 49 :
if (px[1] > 970) {
px[1] = 40;
py[1] = py[1] - 80;
gotoAndPlay (550);
}
return;
case 50 :
if (px[1] < 30) {
px[1] = 960;
py[1] = py[1] + 80;
gotoAndPlay (549);
} else if (px[1] > 970) {
gotoAndPlay (554);
}
return;
case 55 :
if (px[1] > 530) {
gotoAndPlay (351);
}
return;
case 61 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (562);
}
return;
case 62 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (561);
} else if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (563);
}
return;
case 63 :
if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (562);
} else if (((((px[1] > 330) and (px[1] < 390)) and (py[1] < -390)) and (py[1] > -440)) and Key.isDown(kup)) {
pd[1] = 1;
plr[1] = 0;
px[1] = 120;
py[1] = -80;
gotoAndPlay (564);
}
return;
case 64 :
if (((((px[1] > 50) and (px[1] < 110)) and (py[1] < -70)) and (py[1] > -120)) and Key.isDown(kup)) {
px[1] = 395;
py[1] = -400;
pd[1] = 1;
plr[1] = 0;
gotoAndPlay (563);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (351);
}
return;
case 91 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (592);
}
return;
case 92 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (591);
} else if (((py[1] < -370) and (px[1] > 800)) and (px[1] < 920)) {
px[1] = px[1] - 720;
py[1] = -40;
gotoAndPlay (593);
}
return;
case 93 :
if (((py[1] > 0) and (px[1] > 80)) and (px[1] < 200)) {
px[1] = px[1] + 720;
py[1] = -360;
gotoAndPlay (592);
} else if (((py[1] < -950) and (px[1] > 400)) and (px[1] < 520)) {
px[1] = px[1] - 360;
py[1] = -10;
gotoAndPlay (594);
}
return;
case 94 :
if (((py[1] > 0) and (px[1] > 40)) and (px[1] < 160)) {
px[1] = px[1] + 360;
py[1] = -940;
gotoAndPlay (593);
} else if ((py[1] < -950) and (px[1] > 40)) {
py[1] = -10;
gotoAndPlay (595);
}
return;
case 95 :
if ((py[1] > 0) and (px[1] > 40)) {
py[1] = -940;
gotoAndPlay (594);
} else if ((py[1] < -950) and (px[1] > 400)) {
px[1] = px[1] - 360;
py[1] = -10;
gotoAndPlay (596);
}
return;
case 96 :
if ((py[1] > 0) and (px[1] < 120)) {
px[1] = px[1] + 360;
py[1] = -940;
gotoAndPlay (595);
} else if (px[1] > 970) {
px[1] = 40;
py[1] = py[1] + 120;
gotoAndPlay (351);
}
return;
case 121 :
if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (622);
}
return;
case 122 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (623);
} else if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (621);
}
return;
case 123 :
if (px[1] > 770) {
px[1] = 40;
py[1] = py[1] + 80;
gotoAndPlay (624);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (622);
}
return;
case 124 :
if (((px[1] > 120) and (px[1] < 400)) and (py[1] < -550)) {
py[1] = -10;
gotoAndPlay (625);
} else if (px[1] < 30) {
px[1] = 760;
py[1] = py[1] - 80;
gotoAndPlay (623);
}
return;
case 125 :
if (((px[1] > 120) and (px[1] < 400)) and (py[1] > 0)) {
py[1] = -540;
gotoAndPlay (624);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (351);
}
return;
case 151 :
if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] - 400;
gotoAndPlay (652);
}
return;
case 152 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 400;
gotoAndPlay (651);
} else if (((px[1] > 40) and (px[1] < 160)) and (py[1] > 0)) {
py[1] = -360;
gotoAndPlay (653);
}
return;
case 153 :
if (((px[1] > 40) and (px[1] < 160)) and (py[1] < -370)) {
py[1] = -10;
gotoAndPlay (652);
} else if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (654);
}
return;
case 154 :
if (px[1] < 40) {
px[1] = 960;
gotoAndPlay (653);
} else if (py[1] > 0) {
gotoAndPlay (351);
}
return;
case 181 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (682);
}
return;
case 182 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (681);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (683);
}
return;
case 183 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (682);
} else if (px[1] > 770) {
px[1] = 40;
py[1] = py[1] - 160;
gotoAndPlay (684);
}
return;
case 184 :
if (px[1] < 30) {
px[1] = 760;
py[1] = py[1] + 160;
gotoAndPlay (683);
} else if (px[1] > 530) {
gotoAndPlay (351);
} else if ((py[1] > 0) and (px[1] > 200)) {
py[1] = -360;
gotoAndPlay (685);
}
return;
case 185 :
if (py[1] < -370) {
py[1] = -10;
gotoAndPlay (684);
} else if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (687);
}
return;
case 187 :
if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (685);
} else if (px[1] > 530) {
px[1] = 40;
pc[1] = 1;
gotoAndPlay (351);
}
return;
case 211 :
if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (712);
}
return;
case 212 :
if ((px[1] > 970) and (py[1] < -240)) {
px[1] = 40;
py[1] = py[1] + 200;
gotoAndPlay (713);
} else if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (711);
}
return;
case 213 :
if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] + 240;
gotoAndPlay (714);
} else if ((px[1] < 30) and (py[1] > -240)) {
px[1] = 960;
py[1] = py[1] - 200;
gotoAndPlay (712);
}
return;
case 214 :
if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (351);
} else if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] - 240;
gotoAndPlay (713);
}
return;
case 241 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (742);
}
return;
case 242 :
if (px[1] > 3970) {
pc[1] = 1;
gotoAndPlay (351);
}
return;
case 271 :
if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (772);
}
return;
case 272 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (773);
} else if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (771);
}
return;
case 273 :
if (px[1] > 1170) {
px[1] = 40;
gotoAndPlay (774);
} else if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (772);
}
return;
case 274 :
if ((px[1] > 530) and (py[1] > -400)) {
px[1] = 40;
gotoAndPlay (351);
} else if ((px[1] < 30) and (py[1] > -400)) {
px[1] = 1160;
gotoAndPlay (773);
}
return;
case 301 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (802);
}
return;
case 302 :
if (px[1] > 570) {
px[1] = 40;
gotoAndPlay (803);
} else if ((px[1] < 30) and (py[1] > -240)) {
px[1] = 760;
gotoAndPlay (801);
} else if (((((px[1] > 460) and (px[1] < 500)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 290;
gotoAndPlay (804);
}
return;
case 303 :
if (px[1] > 570) {
px[1] = 40;
gotoAndPlay (804);
} else if (px[1] < 30) {
px[1] = 560;
gotoAndPlay (802);
} else if (((((px[1] > 220) and (px[1] < 260)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 210;
gotoAndPlay (806);
} else if (((((px[1] > 420) and (px[1] < 460)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 330;
py[1] = py[1] + 200;
gotoAndPlay (805);
}
return;
case 304 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (805);
} else if (px[1] < 30) {
px[1] = 560;
gotoAndPlay (803);
} else if (((((px[1] > 300) and (px[1] < 340)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 450;
gotoAndPlay (802);
} else if (((((px[1] > 460) and (px[1] < 500)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 850;
py[1] = py[1] + 200;
gotoAndPlay (806);
}
return;
case 305 :
if (px[1] > 570) {
px[1] = 40;
gotoAndPlay (806);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (804);
} else if (((((px[1] > 280) and (px[1] < 320)) and (py[1] > -160)) and (py[1] < -60)) and Key.isDown(kup)) {
px[1] = 470;
py[1] = py[1] - 200;
gotoAndPlay (803);
}
return;
case 306 :
if ((px[1] < 30) and (py[1] > -240)) {
px[1] = 560;
gotoAndPlay (805);
} else if (((((px[1] > 140) and (px[1] < 180)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 210;
gotoAndPlay (803);
} else if (((((px[1] > 860) and (px[1] < 900)) and (py[1] > -360)) and (py[1] < -260)) and Key.isDown(kup)) {
px[1] = 430;
py[1] = py[1] + 200;
gotoAndPlay (807);
} else if (((((px[1] > 860) and (px[1] < 900)) and (py[1] > -160)) and (py[1] < -60)) and Key.isDown(kup)) {
px[1] = 450;
py[1] = py[1] - 200;
gotoAndPlay (804);
}
return;
case 307 :
if (px[1] > 770) {
gotoAndPlay (351);
} else if (px[1] < 30) {
gotoAndPlay (351);
} else if (((((px[1] > 380) and (px[1] < 420)) and (py[1] > -160)) and (py[1] < -60)) and Key.isDown(kup)) {
px[1] = 850;
py[1] = py[1] - 200;
gotoAndPlay (806);
}
return;
case 331 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (832);
}
return;
case 332 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (831);
} else if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (833);
}
return;
case 333 :
if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (832);
} else if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (834);
}
return;
case 334 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (833);
} else if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (351);
}
return;
case 361 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (862);
}
return;
case 362 :
if (px[1] > 770) {
px[1] = 40;
py[1] = py[1] - 280;
gotoAndPlay (863);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (861);
}
return;
case 363 :
if (py[1] > 0) {
py[1] = -660;
gotoAndPlay (864);
} else if (px[1] < 30) {
px[1] = 760;
py[1] = py[1] + 280;
gotoAndPlay (862);
}
return;
case 364 :
if (py[1] < -670) {
py[1] = -10;
gotoAndPlay (863);
} else if (px[1] > 530) {
gotoAndPlay (351);
}
return;
case 391 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (892);
}
return;
case 392 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (891);
} else if ((((px[1] > 380) and (px[1] < 420)) and (py[1] > -160)) and Key.isDown(kup)) {
px[1] = 530;
gotoAndPlay (893);
}
return;
case 393 :
if (px[1] < 30) {
px[1] = 1160;
gotoAndPlay (894);
} else if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (895);
} else if ((((px[1] > 480) and (px[1] < 520)) and (py[1] > -160)) and Key.isDown(kup)) {
px[1] = 360;
gotoAndPlay (892);
}
return;
case 394 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (896);
} else if (px[1] > 1170) {
px[1] = 40;
gotoAndPlay (893);
}
return;
case 395 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (893);
} else if (px[1] > 1170) {
px[1] = 40;
gotoAndPlay (896);
}
return;
case 396 :
if (px[1] < 30) {
px[1] = 1160;
gotoAndPlay (895);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (894);
} else if ((((px[1] > 380) and (px[1] < 420)) and (py[1] > -160)) and Key.isDown(kup)) {
px[1] = 40;
py[1] = py[1] - 160;
gotoAndPlay (897);
}
return;
case 397 :
if (px[1] < 30) {
px[1] = 360;
py[1] = py[1] + 160;
gotoAndPlay (896);
} else if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] - 160;
gotoAndPlay (898);
}
return;
case 398 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 160;
gotoAndPlay (897);
} else if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (899);
}
return;
case 399 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (898);
} else if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (351);
}
return;
case 421 :
if ((px[1] > 530) and (py[1] > -200)) {
px[1] = 40;
py[1] = py[1] - 520;
gotoAndPlay (922);
}
return;
case 422 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 520;
gotoAndPlay (921);
} else if (py[1] > 0) {
py[1] = -750;
gotoAndPlay (923);
}
return;
case 423 :
if ((px[1] > 530) and (py[1] > -200)) {
px[1] = 40;
py[1] = py[1] - 200;
gotoAndPlay (924);
} else if ((py[1] < -760) and (px[1] < 200)) {
py[1] = -10;
gotoAndPlay (922);
}
return;
case 424 :
if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] + 200;
gotoAndPlay (923);
} else if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (925);
}
return;
case 425 :
if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (924);
} else if (px[1] > 770) {
gotoAndPlay (351);
}
return;
case 451 :
if (px[1] > 530) {
px[1] = 40;
gotoAndPlay (952);
}
return;
case 452 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (953);
} else if (px[1] < 30) {
px[1] = 520;
gotoAndPlay (951);
}
return;
case 453 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (954);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (952);
}
return;
case 454 :
if (px[1] > 770) {
gotoAndPlay (351);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (953);
}
return;
case 481 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (982);
}
return;
case 482 :
if (px[1] > 970) {
px[1] = 40;
gotoAndPlay (983);
} else if (px[1] < 30) {
px[1] = 960;
gotoAndPlay (981);
}
return;
case 483 :
if ((px[1] > 530) and (py[1] > -200)) {
gotoAndPlay (351);
} else if ((px[1] < 30) and (py[1] > -400)) {
px[1] = 960;
gotoAndPlay (982);
}
return;
case 511 :
if ((px[1] > 560) and (py[1] < -370)) {
px[1] = px[1] - 560;
py[1] = -10;
gotoAndPlay (1012);
}
return;
case 512 :
if ((px[1] < 120) and (py[1] > 0)) {
px[1] = px[1] + 560;
py[1] = -360;
gotoAndPlay (1011);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1013);
}
return;
case 513 :
if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1012);
} else if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (351);
}
return;
case 541 :
if (px[1] > 530) {
gotoAndPlay (351);
}
return;
case 571 :
if (px[1] > 1170) {
px[1] = 40;
gotoAndPlay (1072);
}
return;
case 572 :
if (px[1] < 30) {
px[1] = 1160;
gotoAndPlay (1071);
}
if (px[1] > 1170) {
gotoAndPlay (351);
}
return;
case 601 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1102);
}
return;
case 602 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1103);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1101);
}
return;
case 603 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1104);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1102);
}
return;
case 604 :
if ((px[1] > 600) and (py[1] < -370)) {
px[1] = px[1] - 240;
py[1] = -10;
gotoAndPlay (1105);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1103);
}
return;
case 605 :
if ((px[1] > 360) and (py[1] > 0)) {
px[1] = px[1] + 240;
py[1] = -360;
gotoAndPlay (1104);
} else if ((px[1] > 360) and (py[1] < -750)) {
gotoAndPlay (351);
}
return;
case 631 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1132);
}
return;
case 632 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1133);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1131);
}
return;
case 633 :
if (px[1] > 530) {
px[1] = 40;
py[1] = py[1] + 280;
gotoAndPlay (1134);
} else if ((px[1] < 30) and (py[1] > -400)) {
px[1] = 760;
gotoAndPlay (1132);
} else if (((((px[1] > 300) and (px[1] < 340)) and (py[1] < -380)) and (py[1] > -460)) and Key.isDown(kup)) {
px[1] = 380;
py[1] = py[1] + 80;
gotoAndPlay (1145);
}
return;
case 634 :
if (px[1] > 770) {
gotoAndPlay (351);
} else if (px[1] < 30) {
px[1] = 520;
py[1] = py[1] - 280;
gotoAndPlay (1133);
}
return;
case 645 :
if (px[1] > 770) {
px[1] = 40;
gotoAndPlay (1146);
} else if (((((px[1] > 380) and (px[1] < 420)) and (py[1] < -300)) and (py[1] > -380)) and Key.isDown(kup)) {
px[1] = 340;
py[1] = py[1] - 80;
gotoAndPlay (1133);
}
return;
case 646 :
if (px[1] > 770) {
px[1] = 40;
py[1] = py[1] - 200;
gotoAndPlay (1147);
} else if (px[1] < 30) {
px[1] = 760;
gotoAndPlay (1145);
}
return;
case 647 :
if ((px[1] > 530) and (py[1] > -360)) {
px[1] = 40;
gotoAndPlay (1148);
} else if (px[1] < 30) {
px[1] = 760;
py[1] = py[1] + 200;
gotoAndPlay (1146);
}
return;
case 648 :
if (px[1] > 970) {
gotoAndPlay (351);
} else {
if (!((px[1] < 30) and (py[1] > -360))) {
break;
}
px[1] = 520;
gotoAndPlay (1147);
}
}
}
Frame 83
function clearstage() {
fmode = 1;
fpace = 1;
ftimer = 1;
fflash = 1;
ffroze = 0;
feight = 0;
fstages = 0;
icem = 0;
pnumber = 2;
weapt = 0;
pls1[11] = 0;
pls2[11] = 0;
pxs[11] = 16;
pys[11] = 44;
h1 = 2;
while (h1 <= 10) {
pc[h1] = 0;
pice[h1] = 0;
px[h1] = -2000;
py[h1] = 2000;
pxs[h1] = 0;
pxy[h1] = 0;
pm[h1] = 0;
pf[h1] = 1;
pd[h1] = 0;
pg[h1] = 0;
plr[h1] = 0;
pll[h1] = 0;
pllm[h1] = 0;
ple[h1] = 0;
plem[h1] = 0;
plt1[h1] = 0;
plt2[h1] = 0;
pls1[h1] = 0;
pls2[h1] = 0;
h1++;
}
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt4[h1] = 0;
h1++;
}
h1 = 1;
while (h1 <= 12) {
bt[h1] = 0;
ba[h1] = 0;
bf[h1] = 1;
bx[h1] = -2000;
by[h1] = 2000;
bxs[h1] = 0;
bys[h1] = 0;
bt1[h1] = 0;
bt2[h1] = 0;
bt3[h1] = 0;
bt4[h1] = 0;
bt5[h1] = 0;
h1++;
}
}
Frame 84
function draweverything() {
fpace++;
if (fpace > 12) {
fpace = 1;
if (bt[1] != 28) {
fflash = 1;
}
}
ftimer++;
if (ftimer > 120) {
ftimer = 1;
}
if (ffroze > 0) {
ffroze--;
}
switch (fmode) {
case 1 :
camx = px[1];
camy = py[1];
if ((px[1] - pxs[1]) < 0) {
px[1] = 0 + pxs[1];
}
if ((px[1] + pxs[1]) > camxm) {
px[1] = camxm - pxs[1];
}
if ((py[1] - pys[1]) < camym) {
py[1] = camym + pys[1];
}
break;
case 2 :
px[1] = px[1] + 4;
camx = camx + 4;
camy = py[1];
if (px[1] < (camx - 270)) {
px[1] = camx - 270;
}
if (px[1] > (camx + 270)) {
px[1] = camx + 270;
}
h1 = 2;
for(;;){
if (h1 > 10) {
break;
}
if ((px[h1] < px[1]) and (pc[h1] > 0)) {
px[h1] = px[h1] - 6;
}
if ((px[h1] < (camx - 300)) and (pc[h1] > 0)) {
breset();
}
h1++;
};
}
if (camx < 280) {
camx = 280;
}
if (camx > (camxm - 280)) {
camx = camxm - 280;
}
if (camy > -140) {
camy = -140;
}
if (camy < (camym + 280)) {
camy = camym + 280;
}
phealthbar.gotoAndStop(Math.round(pll[1] / 10) + 1);
penergybar.gotoAndStop(Math.round(ple / 10) + 1);
if ((pc[2] < 200) or (pc[2] > 299)) {
bhealthbar.gotoAndStop(1);
} else {
bhealthbar.gotoAndStop(Math.round(pll[2] / 10) + 1);
}
specweap1.gotoAndStop(weap1 + 1);
specweap2.gotoAndStop(weap2 + 1);
if ((pll[1] < 1) or (py[1] > 20)) {
SND_Death1.start();
gotoAndPlay (2000);
}
if (pg[1] > 0) {
pg[1]--;
}
if (feight > 0) {
feight--;
}
if (icem != 0) {
if ((fpace == 1) or (fpace == 7)) {
if (icem < 0) {
icem++;
} else {
icem--;
}
}
}
if (ple < 1000) {
ple++;
if ((lvlr[11] > 0) and ((fpace == 1) or (fpace == 7))) {
ple = ple + lvlr[11];
if (ple > 1000) {
ple = 1000;
}
}
}
if (ple < 0) {
ple = 0;
}
if (weapt > 0) {
weapt--;
}
gp1._x = 280 + (px[1] - camx);
gp1._y = 280 + (py[1] - camy);
gp1.gotoAndStop(pf[1]);
gp11._x = 280 + (px[11] - camx);
gp11._y = 280 + (py[11] - camy);
gp11.gotoAndStop(pf[11]);
gp2._x = 280 + (px[2] - camx);
gp2._y = 280 + (py[2] - camy);
gp2.gotoAndStop(pf[2]);
gp3._x = 280 + (px[3] - camx);
gp3._y = 280 + (py[3] - camy);
gp3.gotoAndStop(pf[3]);
gp4._x = 280 + (px[4] - camx);
gp4._y = 280 + (py[4] - camy);
gp4.gotoAndStop(pf[4]);
gp5._x = 280 + (px[5] - camx);
gp5._y = 280 + (py[5] - camy);
gp5.gotoAndStop(pf[5]);
gp6._x = 280 + (px[6] - camx);
gp6._y = 280 + (py[6] - camy);
gp6.gotoAndStop(pf[6]);
gp7._x = 280 + (px[7] - camx);
gp7._y = 280 + (py[7] - camy);
gp7.gotoAndStop(pf[7]);
gp8._x = 280 + (px[8] - camx);
gp8._y = 280 + (py[8] - camy);
gp8.gotoAndStop(pf[8]);
gp9._x = 280 + (px[9] - camx);
gp9._y = 280 + (py[9] - camy);
gp9.gotoAndStop(pf[9]);
gp10._x = 280 + (px[10] - camx);
gp10._y = 280 + (py[10] - camy);
gp10.gotoAndStop(pf[10]);
gs1._x = 280 + (sx[1] - camx);
gs1._y = 280 + (sy[1] - camy);
gs1.gotoAndStop(sf[1]);
gs2._x = 280 + (sx[2] - camx);
gs2._y = 280 + (sy[2] - camy);
gs2.gotoAndStop(sf[2]);
gs3._x = 280 + (sx[3] - camx);
gs3._y = 280 + (sy[3] - camy);
gs3.gotoAndStop(sf[3]);
gs4._x = 280 + (sx[4] - camx);
gs4._y = 280 + (sy[4] - camy);
gs4.gotoAndStop(sf[4]);
gs5._x = 280 + (sx[5] - camx);
gs5._y = 280 + (sy[5] - camy);
gs5.gotoAndStop(sf[5]);
gs6._x = 280 + (sx[6] - camx);
gs6._y = 280 + (sy[6] - camy);
gs6.gotoAndStop(sf[6]);
gs7._x = 280 + (sx[7] - camx);
gs7._y = 280 + (sy[7] - camy);
gs7.gotoAndStop(sf[7]);
gs8._x = 280 + (sx[8] - camx);
gs8._y = 280 + (sy[8] - camy);
gs8.gotoAndStop(sf[8]);
gs9._x = 280 + (sx[9] - camx);
gs9._y = 280 + (sy[9] - camy);
gs9.gotoAndStop(sf[9]);
gs10._x = 280 + (sx[10] - camx);
gs10._y = 280 + (sy[10] - camy);
gs10.gotoAndStop(sf[10]);
gs11._x = 280 + (sx[11] - camx);
gs11._y = 280 + (sy[11] - camy);
gs11.gotoAndStop(sf[11]);
gs12._x = 280 + (sx[12] - camx);
gs12._y = 280 + (sy[12] - camy);
gs12.gotoAndStop(sf[12]);
gs13._x = 280 + (sx[13] - camx);
gs13._y = 280 + (sy[13] - camy);
gs13.gotoAndStop(sf[13]);
gs14._x = 280 + (sx[14] - camx);
gs14._y = 280 + (sy[14] - camy);
gs14.gotoAndStop(sf[14]);
gs15._x = 280 + (sx[15] - camx);
gs15._y = 280 + (sy[15] - camy);
gs15.gotoAndStop(sf[15]);
gs16._x = 280 + (sx[16] - camx);
gs16._y = 280 + (sy[16] - camy);
gs16.gotoAndStop(sf[16]);
gs17._x = 280 + (sx[17] - camx);
gs17._y = 280 + (sy[17] - camy);
gs17.gotoAndStop(sf[17]);
gs18._x = 280 + (sx[18] - camx);
gs18._y = 280 + (sy[18] - camy);
gs18.gotoAndStop(sf[18]);
gs19._x = 280 + (sx[19] - camx);
gs19._y = 280 + (sy[19] - camy);
gs19.gotoAndStop(sf[19]);
gs20._x = 280 + (sx[20] - camx);
gs20._y = 280 + (sy[20] - camy);
gs20.gotoAndStop(sf[20]);
gs21._x = 280 + (sx[21] - camx);
gs21._y = 280 + (sy[21] - camy);
gs21.gotoAndStop(sf[21]);
gs22._x = 280 + (sx[22] - camx);
gs22._y = 280 + (sy[22] - camy);
gs22.gotoAndStop(sf[22]);
gs23._x = 280 + (sx[23] - camx);
gs23._y = 280 + (sy[23] - camy);
gs23.gotoAndStop(sf[23]);
gs24._x = 280 + (sx[24] - camx);
gs24._y = 280 + (sy[24] - camy);
gs24.gotoAndStop(sf[24]);
gs25._x = 280 + (sx[25] - camx);
gs25._y = 280 + (sy[25] - camy);
gs25.gotoAndStop(sf[25]);
gs26._x = 280 + (sx[26] - camx);
gs26._y = 280 + (sy[26] - camy);
gs26.gotoAndStop(sf[26]);
gs27._x = 280 + (sx[27] - camx);
gs27._y = 280 + (sy[27] - camy);
gs27.gotoAndStop(sf[27]);
gs28._x = 280 + (sx[28] - camx);
gs28._y = 280 + (sy[28] - camy);
gs28.gotoAndStop(sf[28]);
gs29._x = 280 + (sx[29] - camx);
gs29._y = 280 + (sy[29] - camy);
gs29.gotoAndStop(sf[29]);
gs30._x = 280 + (sx[30] - camx);
gs30._y = 280 + (sy[30] - camy);
gs30.gotoAndStop(sf[30]);
stage.gotoAndStop(f);
stageb.gotoAndStop(f);
stagem.gotoAndStop(f);
stagef.gotoAndStop(f);
stage._x = 1280 - camx;
stage._y = -220 - camy;
stagem._x = 60 - Math.round(camx / 2);
stagem._y = -70 - Math.round(camy / 2);
stagef._x = 1280 - camx;
stagef._y = -220 - camy;
stagegrid._x = 1280 - camx;
stagegrid._y = -220 - camy;
if (bf[1] > 0) {
mb1.gotoAndStop(bf[1]);
mb1._x = 280 + (bx[1] - camx);
mb1._y = 280 + (by[1] - camy);
}
if (bf[2] > 0) {
mb2.gotoAndStop(bf[2]);
mb2._x = 280 + (bx[2] - camx);
mb2._y = 280 + (by[2] - camy);
}
if (bf[3] > 0) {
mb3.gotoAndStop(bf[3]);
mb3._x = 280 + (bx[3] - camx);
mb3._y = 280 + (by[3] - camy);
}
if (bf[4] > 0) {
mb4.gotoAndStop(bf[4]);
mb4._x = 280 + (bx[4] - camx);
mb4._y = 280 + (by[4] - camy);
}
if (bf[5] > 0) {
mb5.gotoAndStop(bf[5]);
mb5._x = 280 + (bx[5] - camx);
mb5._y = 280 + (by[5] - camy);
}
if (bf[6] > 0) {
mb6.gotoAndStop(bf[6]);
mb6._x = 280 + (bx[6] - camx);
mb6._y = 280 + (by[6] - camy);
}
if (bf[7] > 0) {
mb7.gotoAndStop(bf[7]);
mb7._x = 280 + (bx[7] - camx);
mb7._y = 280 + (by[7] - camy);
}
if (bf[8] > 0) {
mb8.gotoAndStop(bf[8]);
mb8._x = 280 + (bx[8] - camx);
mb8._y = 280 + (by[8] - camy);
}
if (bf[9] > 0) {
mb9.gotoAndStop(bf[9]);
mb9._x = 280 + (bx[9] - camx);
mb9._y = 280 + (by[9] - camy);
}
if (bf[10] > 0) {
mb10.gotoAndStop(bf[10]);
mb10._x = 280 + (bx[10] - camx);
mb10._y = 280 + (by[10] - camy);
}
if (bf[11] > 0) {
mb11.gotoAndStop(bf[11]);
mb11._x = 280 + (bx[11] - camx);
mb11._y = 280 + (by[11] - camy);
}
if (bf[12] > 0) {
mb12.gotoAndStop(bf[12]);
mb12._x = 280 + (bx[12] - camx);
mb12._y = 280 + (by[12] - camy);
}
if (bt[1] != 28) {
gsf.gotoAndStop(fflash);
} else {
gsf._x = 280 + (bx[1] - camx);
gsf._y = 280 + (by[1] - camy);
if (bt1[1] < 1) {
gsf.gotoAndStop(bt2[1]);
} else {
bt1[1]--;
gsf.gotoAndStop(1);
}
}
}
Frame 97
gotoAndPlay (301);
Frame 100
phealthbar.gotoAndStop(Math.round(pll[1] / 10) + 1);
penergybar.gotoAndStop(Math.round(ple / 10) + 1);
specweap1.gotoAndStop(weap1 + 1);
specweap2.gotoAndStop(weap2 + 1);
gp1._x = 280 + (px[1] - camx);
gp1._y = 280 + (py[1] - camy);
gp1.gotoAndStop(pf[1]);
gp11._x = 280 + (px[11] - camx);
gp11._y = 280 + (py[11] - camy);
gp11.gotoAndStop(pf[11]);
gp2._x = 280 + (px[2] - camx);
gp2._y = 280 + (py[2] - camy);
gp2.gotoAndStop(pf[2]);
gp3._x = 280 + (px[3] - camx);
gp3._y = 280 + (py[3] - camy);
gp3.gotoAndStop(pf[3]);
gp4._x = 280 + (px[4] - camx);
gp4._y = 280 + (py[4] - camy);
gp4.gotoAndStop(pf[4]);
gp5._x = 280 + (px[5] - camx);
gp5._y = 280 + (py[5] - camy);
gp5.gotoAndStop(pf[5]);
gp6._x = 280 + (px[6] - camx);
gp6._y = 280 + (py[6] - camy);
gp6.gotoAndStop(pf[6]);
gp7._x = 280 + (px[7] - camx);
gp7._y = 280 + (py[7] - camy);
gp7.gotoAndStop(pf[7]);
gp8._x = 280 + (px[8] - camx);
gp8._y = 280 + (py[8] - camy);
gp8.gotoAndStop(pf[8]);
gp9._x = 280 + (px[9] - camx);
gp9._y = 280 + (py[9] - camy);
gp9.gotoAndStop(pf[9]);
gp10._x = 280 + (px[10] - camx);
gp10._y = 280 + (py[10] - camy);
gp10.gotoAndStop(pf[10]);
gs1._x = 280 + (sx[1] - camx);
gs1._y = 280 + (sy[1] - camy);
gs1.gotoAndStop(sf[1]);
gs2._x = 280 + (sx[2] - camx);
gs2._y = 280 + (sy[2] - camy);
gs2.gotoAndStop(sf[2]);
gs3._x = 280 + (sx[3] - camx);
gs3._y = 280 + (sy[3] - camy);
gs3.gotoAndStop(sf[3]);
gs4._x = 280 + (sx[4] - camx);
gs4._y = 280 + (sy[4] - camy);
gs4.gotoAndStop(sf[4]);
gs5._x = 280 + (sx[5] - camx);
gs5._y = 280 + (sy[5] - camy);
gs5.gotoAndStop(sf[5]);
gs6._x = 280 + (sx[6] - camx);
gs6._y = 280 + (sy[6] - camy);
gs6.gotoAndStop(sf[6]);
gs7._x = 280 + (sx[7] - camx);
gs7._y = 280 + (sy[7] - camy);
gs7.gotoAndStop(sf[7]);
gs8._x = 280 + (sx[8] - camx);
gs8._y = 280 + (sy[8] - camy);
gs8.gotoAndStop(sf[8]);
gs9._x = 280 + (sx[9] - camx);
gs9._y = 280 + (sy[9] - camy);
gs9.gotoAndStop(sf[9]);
gs10._x = 280 + (sx[10] - camx);
gs10._y = 280 + (sy[10] - camy);
gs10.gotoAndStop(sf[10]);
gs11._x = 280 + (sx[11] - camx);
gs11._y = 280 + (sy[11] - camy);
gs11.gotoAndStop(sf[11]);
gs12._x = 280 + (sx[12] - camx);
gs12._y = 280 + (sy[12] - camy);
gs12.gotoAndStop(sf[12]);
gs13._x = 280 + (sx[13] - camx);
gs13._y = 280 + (sy[13] - camy);
gs13.gotoAndStop(sf[13]);
gs14._x = 280 + (sx[14] - camx);
gs14._y = 280 + (sy[14] - camy);
gs14.gotoAndStop(sf[14]);
gs15._x = 280 + (sx[15] - camx);
gs15._y = 280 + (sy[15] - camy);
gs15.gotoAndStop(sf[15]);
gs16._x = 280 + (sx[16] - camx);
gs16._y = 280 + (sy[16] - camy);
gs16.gotoAndStop(sf[16]);
gs17._x = 280 + (sx[17] - camx);
gs17._y = 280 + (sy[17] - camy);
gs17.gotoAndStop(sf[17]);
gs18._x = 280 + (sx[18] - camx);
gs18._y = 280 + (sy[18] - camy);
gs18.gotoAndStop(sf[18]);
gs19._x = 280 + (sx[19] - camx);
gs19._y = 280 + (sy[19] - camy);
gs19.gotoAndStop(sf[19]);
gs20._x = 280 + (sx[20] - camx);
gs20._y = 280 + (sy[20] - camy);
gs20.gotoAndStop(sf[20]);
gs21._x = 280 + (sx[21] - camx);
gs21._y = 280 + (sy[21] - camy);
gs21.gotoAndStop(sf[21]);
gs22._x = 280 + (sx[22] - camx);
gs22._y = 280 + (sy[22] - camy);
gs22.gotoAndStop(sf[22]);
gs23._x = 280 + (sx[23] - camx);
gs23._y = 280 + (sy[23] - camy);
gs23.gotoAndStop(sf[23]);
gs24._x = 280 + (sx[24] - camx);
gs24._y = 280 + (sy[24] - camy);
gs24.gotoAndStop(sf[24]);
gs25._x = 280 + (sx[25] - camx);
gs25._y = 280 + (sy[25] - camy);
gs25.gotoAndStop(sf[25]);
gs26._x = 280 + (sx[26] - camx);
gs26._y = 280 + (sy[26] - camy);
gs26.gotoAndStop(sf[26]);
gs27._x = 280 + (sx[27] - camx);
gs27._y = 280 + (sy[27] - camy);
gs27.gotoAndStop(sf[27]);
gs28._x = 280 + (sx[28] - camx);
gs28._y = 280 + (sy[28] - camy);
gs28.gotoAndStop(sf[28]);
gs29._x = 280 + (sx[29] - camx);
gs29._y = 280 + (sy[29] - camy);
gs29.gotoAndStop(sf[29]);
gs30._x = 280 + (sx[30] - camx);
gs30._y = 280 + (sy[30] - camy);
gs30.gotoAndStop(sf[30]);
stage.gotoAndStop(f);
stageb.gotoAndStop(f);
stagem.gotoAndStop(f);
stagef.gotoAndStop(f);
stage._x = 1280 - camx;
stage._y = -220 - camy;
stagem._x = 60 - Math.round(camx / 2);
stagem._y = -70 - Math.round(camy / 2);
stagef._x = 1280 - camx;
stagef._y = -220 - camy;
stagegrid._x = 1280 - camx;
stagegrid._y = -220 - camy;
mb1.gotoAndStop(bf[1]);
mb2.gotoAndStop(bf[2]);
mb3.gotoAndStop(bf[3]);
mb4.gotoAndStop(bf[4]);
mb5.gotoAndStop(bf[5]);
mb6.gotoAndStop(bf[6]);
mb7.gotoAndStop(bf[7]);
mb8.gotoAndStop(bf[8]);
mb9.gotoAndStop(bf[9]);
mb10.gotoAndStop(bf[10]);
mb11.gotoAndStop(bf[11]);
mb12.gotoAndStop(bf[12]);
if (bf[1] > 0) {
mb1._x = 280 + (bx[1] - camx);
mb1._y = 280 + (by[1] - camy);
}
if (bf[2] > 0) {
mb2._x = 280 + (bx[2] - camx);
mb2._y = 280 + (by[2] - camy);
}
if (bf[3] > 0) {
mb3._x = 280 + (bx[3] - camx);
mb3._y = 280 + (by[3] - camy);
}
if (bf[4] > 0) {
mb4._x = 280 + (bx[4] - camx);
mb4._y = 280 + (by[4] - camy);
}
if (bf[5] > 0) {
mb5._x = 280 + (bx[5] - camx);
mb5._y = 280 + (by[5] - camy);
}
if (bf[6] > 0) {
mb6._x = 280 + (bx[6] - camx);
mb6._y = 280 + (by[6] - camy);
}
if (bf[7] > 0) {
mb7._x = 280 + (bx[7] - camx);
mb7._y = 280 + (by[7] - camy);
}
if (bf[8] > 0) {
mb8._x = 280 + (bx[8] - camx);
mb8._y = 280 + (by[8] - camy);
}
if (bf[9] > 0) {
mb9._x = 280 + (bx[9] - camx);
mb9._y = 280 + (by[9] - camy);
}
if (bf[10] > 0) {
mb10._x = 280 + (bx[10] - camx);
mb10._y = 280 + (by[10] - camy);
}
if (bf[11] > 0) {
mb11._x = 280 + (bx[11] - camx);
mb11._y = 280 + (by[11] - camy);
}
if (bf[12] > 0) {
mb12._x = 280 + (bx[12] - camx);
mb12._y = 280 + (by[12] - camy);
}
if (bt[1] != 28) {
gsf.gotoAndStop(fflash);
} else {
gsf._x = 280 + (bx[1] - camx);
gsf._y = 280 + (by[1] - camy);
if (bt1[1] < 1) {
gsf.gotoAndStop(bt2[1]);
} else {
bt1[1]--;
gsf.gotoAndStop(1);
}
}
Frame 101
controlblocks();
controlplayer();
controlhelper();
controlbaddies();
controlshots();
draweverything();
control_exits();
h1 = pd[1];
h2 = plt1[1];
Frame 102
gotoAndPlay (101);
Frame 301
stopAllSounds();
Frame 303
gotoAndPlay (302);
Frame 308
kaux = 0;
kjump = 0;
kattack = 0;
kspec1 = 0;
kspec2 = 0;
kpre1 = 0;
kpre2 = 0;
kpre3 = 0;
kcrush = 0;
kup = 0;
kdown = 0;
kleft = 0;
kright = 0;
kpause = 0;
h1 = 0;
h2 = 0;
Frame 309
h2 = Key.getCode();
if (Key.isDown(h2) and (h2 == 9)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (311);
}
}
Frame 310
gotoAndPlay (309);
Frame 311
if ((kattack == 0) and (h2 != Key.getCode())) {
kattack = Key.getCode();
}
if (Key.isDown(kattack)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (313);
}
}
Frame 312
gotoAndPlay (311);
Frame 313
if (((kjump == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) {
kjump = Key.getCode();
}
if (Key.isDown(kjump)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (315);
}
}
Frame 314
gotoAndPlay (313);
Frame 315
if ((((kspec1 == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) {
kspec1 = Key.getCode();
}
if (Key.isDown(kspec1)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (317);
}
}
Frame 316
gotoAndPlay (315);
Frame 317
if (((((kspec2 == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) {
kspec2 = Key.getCode();
}
if (Key.isDown(kspec2)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (319);
}
}
Frame 318
gotoAndPlay (317);
Frame 319
if ((((((kup == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) {
kup = Key.getCode();
}
if (Key.isDown(kup)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (321);
}
}
Frame 320
gotoAndPlay (319);
Frame 321
if (((((((kdown == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) {
kdown = Key.getCode();
}
if (Key.isDown(kdown)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (323);
}
}
Frame 322
gotoAndPlay (321);
Frame 323
if ((((((((kleft == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) {
kleft = Key.getCode();
}
if (Key.isDown(kleft)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (325);
}
}
Frame 324
gotoAndPlay (323);
Frame 325
if (((((((((kright == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) {
kright = Key.getCode();
}
if (Key.isDown(kright)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (327);
}
}
Frame 326
gotoAndPlay (325);
Frame 327
if ((((((((((kpause == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) {
kpause = Key.getCode();
}
if (Key.isDown(kpause)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (329);
}
}
Frame 328
gotoAndPlay (327);
Frame 329
if (((((((((((kpre1 == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) and (kpause != Key.getCode())) {
kpre1 = Key.getCode();
}
if (Key.isDown(kpre1)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (331);
}
}
Frame 330
gotoAndPlay (329);
Frame 331
if ((((((((((((kpre2 == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) and (kpause != Key.getCode())) and (kpre1 != Key.getCode())) {
kpre2 = Key.getCode();
}
if (Key.isDown(kpre2)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (333);
}
}
Frame 332
gotoAndPlay (331);
Frame 333
if (((((((((((((kpre3 == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) and (kpause != Key.getCode())) and (kpre1 != Key.getCode())) and (kpre2 != Key.getCode())) {
kpre3 = Key.getCode();
}
if (Key.isDown(kpre3)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (335);
}
}
Frame 334
gotoAndPlay (333);
Frame 335
if ((((((((((((((kcrush == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) and (kpause != Key.getCode())) and (kpre1 != Key.getCode())) and (kpre2 != Key.getCode())) and (kpre3 != Key.getCode())) {
kcrush = Key.getCode();
}
if (Key.isDown(kcrush)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (337);
}
}
Frame 336
gotoAndPlay (335);
Frame 337
if (((((((((((((((kaux == 0) and (h2 != Key.getCode())) and (kattack != Key.getCode())) and (kjump != Key.getCode())) and (kspec1 != Key.getCode())) and (kspec2 != Key.getCode())) and (kup != Key.getCode())) and (kdown != Key.getCode())) and (kleft != Key.getCode())) and (kright != Key.getCode())) and (kpause != Key.getCode())) and (kpre1 != Key.getCode())) and (kpre2 != Key.getCode())) and (kpre3 != Key.getCode())) and (kcrush != Key.getCode())) {
kaux = Key.getCode();
}
if (Key.isDown(kaux)) {
h1 = 5;
}
if (h1 > 0) {
h1--;
if (h1 == 1) {
h1 = 0;
gotoAndPlay (301);
}
}
Frame 338
gotoAndPlay (337);
Frame 351
h3 = 0;
h4 = -1;
h5 = 3;
h6 = 3;
SS_SquareReset();
stopAllSounds();
Frame 352
sq13.gotoAndStop(h4 + 2);
if (h3 > 0) {
h3--;
} else {
h4 = -1;
ssnames.gotoAndStop(1);
}
switch (h6) {
case 1 :
switch (h5) {
case 1 :
sq1.gotoAndStop(11);
break;
case 2 :
sq2.gotoAndStop(11);
break;
case 3 :
sq3.gotoAndStop(11);
break;
case 4 :
sq4.gotoAndStop(11);
break;
case 5 :
sq5.gotoAndStop(11);
}
break;
case 2 :
switch (h5) {
case 1 :
sq6.gotoAndStop(11);
break;
case 2 :
sq7.gotoAndStop(11);
break;
case 3 :
sq8.gotoAndStop(11);
break;
case 4 :
sq9.gotoAndStop(11);
break;
case 5 :
sq10.gotoAndStop(11);
}
break;
case 3 :
switch (h5) {
case 1 :
sq11.gotoAndStop(11);
break;
case 2 :
sq12.gotoAndStop(11);
break;
case 4 :
sq14.gotoAndStop(11);
break;
case 5 :
sq15.gotoAndStop(11);
}
break;
case 4 :
switch (h5) {
case 1 :
sq16.gotoAndStop(11);
break;
case 2 :
sq17.gotoAndStop(11);
break;
case 3 :
sq18.gotoAndStop(11);
break;
case 4 :
sq19.gotoAndStop(11);
break;
case 5 :
sq20.gotoAndStop(11);
}
break;
case 5 :
switch (h5) {
case 1 :
sq21.gotoAndStop(11);
break;
case 2 :
sq22.gotoAndStop(11);
break;
case 3 :
sq23.gotoAndStop(11);
break;
case 4 :
sq24.gotoAndStop(11);
break;
case 5 :
sq25.gotoAndStop(11);
}
}
if ((pc[1] > 1) and (pc[1] < 10)) {
pc[1] = 1;
}
pcontinues = 5;
plives = 3;
Frame 353
gotoAndPlay (352);
Frame 360
h2 = 1;
Frame 361
h3 = ((((lvlr[1] + lvlr[2]) + lvlr[3]) + lvlr[4]) + lvlr[5]) + lvlr[6];
h4 = ((((lvlr[7] + lvlr[8]) + lvlr[9]) + lvlr[10]) + lvlr[11]) + lvlr[12];
h5 = ((((lvlr[13] + lvlr[14]) + lvlr[15]) + lvlr[16]) + lvlr[17]) + lvlr[18];
h6 = ((((((((((((((((lvlr[1] + lvlr[2]) + lvlr[3]) + lvlr[4]) + lvlr[5]) + lvlr[6]) + lvlr[7]) + lvlr[8]) + lvlr[9]) + lvlr[10]) + lvlr[11]) + lvlr[12]) + lvlr[13]) + lvlr[14]) + lvlr[15]) + lvlr[16]) + lvlr[17]) + lvlr[18];
levelup_descriptions.gotoAndStop(h2 + 1);
lvl1.gotoAndStop(lvlr[1] + 1);
lvl2.gotoAndStop(lvlr[2] + 1);
lvl3.gotoAndStop(lvlr[3] + 1);
lvl4.gotoAndStop(lvlr[4] + 1);
lvl5.gotoAndStop(lvlr[5] + 1);
lvl6.gotoAndStop(lvlr[6] + 1);
lvl7.gotoAndStop(lvlr[7] + 1);
lvl8.gotoAndStop(lvlr[8] + 1);
lvl9.gotoAndStop(lvlr[9] + 1);
lvl10.gotoAndStop(lvlr[10] + 1);
lvl11.gotoAndStop(lvlr[11] + 1);
lvl12.gotoAndStop(lvlr[12] + 1);
lvl13.gotoAndStop(lvlr[13] + 1);
lvl14.gotoAndStop(lvlr[14] + 1);
lvl15.gotoAndStop(lvlr[15] + 1);
lvl16.gotoAndStop(lvlr[16] + 1);
lvl17.gotoAndStop(lvlr[17] + 1);
lvl18.gotoAndStop(lvlr[18] + 1);
Frame 362
gotoAndPlay (361);
Frame 365
h4 = 1;
Frame 366
stereopage.gotoAndStop(h4);
switch (h4) {
case 1 :
theme1._x = 30;
theme1._y = 125;
theme2._x = 30;
theme2._y = 175;
theme3._x = 30;
theme3._y = 225;
theme4._x = 30;
theme4._y = 275;
theme5._x = 30;
theme5._y = 325;
break;
case 2 :
theme6._x = 30;
theme6._y = 125;
theme7._x = 30;
theme7._y = 175;
theme8._x = 30;
theme8._y = 225;
theme9._x = 30;
theme9._y = 275;
theme10._x = 30;
theme10._y = 325;
break;
case 3 :
theme11._x = 30;
theme11._y = 125;
theme12._x = 30;
theme12._y = 175;
theme13._x = 30;
theme13._y = 225;
theme14._x = 30;
theme14._y = 275;
theme15._x = 30;
theme15._y = 325;
break;
case 4 :
theme16._x = 30;
theme16._y = 125;
theme17._x = 30;
theme17._y = 175;
theme18._x = 30;
theme18._y = 225;
theme19._x = 30;
theme19._y = 275;
theme20._x = 30;
theme20._y = 325;
break;
case 5 :
theme21._x = 30;
theme21._y = 125;
theme22._x = 30;
theme22._y = 175;
theme23._x = 30;
theme23._y = 225;
theme24._x = 30;
theme24._y = 275;
theme25._x = 30;
theme25._y = 325;
break;
case 6 :
theme26._x = 30;
theme26._y = 125;
theme27._x = 30;
theme27._y = 175;
theme28._x = 30;
theme28._y = 225;
theme29._x = 30;
theme29._y = 275;
theme30._x = 30;
theme30._y = 325;
break;
case 7 :
theme31._x = 30;
theme31._y = 125;
theme32._x = 30;
theme32._y = 175;
theme33._x = 30;
theme33._y = 225;
theme34._x = 30;
theme34._y = 275;
theme35._x = 30;
theme35._y = 325;
break;
case 8 :
theme36._x = 30;
theme36._y = 125;
theme37._x = 30;
theme37._y = 175;
theme38._x = 30;
theme38._y = 225;
theme39._x = 30;
theme39._y = 275;
theme40._x = 30;
theme40._y = 325;
break;
case 9 :
theme41._x = 30;
theme41._y = 125;
theme42._x = 30;
theme42._y = 175;
theme43._x = 30;
theme43._y = 225;
theme44._x = 30;
theme44._y = 275;
theme45._x = 30;
theme45._y = 325;
break;
case 10 :
theme46._x = 30;
theme46._y = 125;
theme47._x = 30;
theme47._y = 175;
theme48._x = 30;
theme48._y = 225;
theme49._x = 30;
theme49._y = 275;
}
Frame 367
gotoAndPlay (366);
Frame 391
h4 = 1;
pm_iconreset();
Frame 392
specweap1.gotoAndStop(weap1 + 1);
specweap2.gotoAndStop(weap2 + 1);
currweap._x = -60 + (60 * h4);
if (Key.isDown(kright)) {
SND_Blip1.start();
gotoAndPlay (405);
}
if (Key.isDown(kspec1)) {
h4 = 1;
}
if (Key.isDown(kspec2)) {
h4 = 2;
}
if (Key.isDown(kpause)) {
calc_weapon_cost();
gotoAndPlay (394);
}
if (Key.isDown(kpre1)) {
cwp = 1;
weap1 = wpre[1];
weap2 = wpre[2];
calc_weapon_cost();
}
if (Key.isDown(kpre2)) {
cwp = 2;
weap1 = wpre[3];
weap2 = wpre[4];
calc_weapon_cost();
}
if (Key.isDown(kpre3)) {
cwp = 3;
weap1 = wpre[5];
weap2 = wpre[6];
calc_weapon_cost();
}
switch (cwp) {
case 1 :
pre1.gotoAndStop(3);
pre2.gotoAndStop(1);
pre3.gotoAndStop(1);
wpre[1] = weap1;
wpre[2] = weap2;
break;
case 2 :
pre1.gotoAndStop(1);
pre2.gotoAndStop(3);
pre3.gotoAndStop(1);
wpre[3] = weap1;
wpre[4] = weap2;
break;
case 3 :
pre1.gotoAndStop(1);
pre2.gotoAndStop(1);
pre3.gotoAndStop(3);
wpre[5] = weap1;
wpre[6] = weap2;
}
switch (wpage) {
case 1 :
mn_1._x = 200;
mn_2._x = 200;
mn_3._x = 200;
mn_4._x = 200;
mn_5._x = 200;
mn_6._x = 200;
mn_7._x = 200;
mn_8._x = 200;
mn_9._x = 200;
mn_10._x = 200;
mn_11._x = 500;
mn_12._x = 500;
mn_13._x = 500;
mn_14._x = 500;
mn_15._x = 500;
mn_16._x = 500;
mn_17._x = 500;
mn_18._x = 500;
mn_19._x = 500;
mn_20._x = 500;
break;
case 2 :
m1_1._x = 200;
m1_2._x = 200;
m1_3._x = 200;
m1_4._x = 200;
m1_5._x = 200;
m1_6._x = 200;
break;
case 3 :
m2_1._x = 200;
m2_2._x = 200;
m2_3._x = 200;
m2_4._x = 200;
m2_5._x = 200;
m2_6._x = 200;
m2_7._x = 200;
m2_8._x = 200;
break;
case 4 :
m3_1._x = 200;
m3_2._x = 200;
m3_3._x = 200;
m3_4._x = 200;
m3_5._x = 200;
m3_6._x = 200;
m3_7._x = 200;
m3_8._x = 200;
break;
case 5 :
m4_1._x = 200;
m4_2._x = 200;
m4_3._x = 200;
m4_4._x = 200;
m4_5._x = 200;
m4_6._x = 200;
m4_7._x = 200;
m4_8._x = 200;
break;
case 6 :
m5_1._x = 200;
m5_2._x = 200;
m5_3._x = 200;
m5_4._x = 200;
m5_5._x = 200;
m5_6._x = 200;
m5_7._x = 200;
m5_8._x = 200;
break;
case 7 :
m6_1._x = 200;
m6_2._x = 200;
m6_3._x = 200;
m6_4._x = 200;
m6_5._x = 200;
m6_6._x = 200;
m6_7._x = 200;
m6_8._x = 200;
break;
case 8 :
m7_1._x = 200;
m7_2._x = 200;
m7_3._x = 200;
m7_4._x = 200;
m7_5._x = 200;
m7_6._x = 200;
m7_7._x = 200;
m7_8._x = 200;
break;
case 9 :
m8_1._x = 200;
m8_2._x = 200;
m8_3._x = 200;
m8_4._x = 200;
m8_5._x = 200;
m8_6._x = 200;
m8_7._x = 200;
m8_8._x = 200;
break;
case 10 :
sd_1._x = 200;
sd_2._x = 200;
sd_3._x = 200;
sd_4._x = 200;
sd_5._x = 200;
sd_6._x = 200;
sd_7._x = 200;
sd_8._x = 200;
sd_9._x = 200;
break;
case 11 :
mb_1._x = 200;
mb_2._x = 200;
mb_3._x = 200;
mb_4._x = 200;
mb_5._x = 200;
mb_6._x = 200;
mb_7._x = 200;
mb_8._x = 200;
break;
case 12 :
mk_1._x = 200;
mk_2._x = 200;
mk_3._x = 200;
mk_4._x = 200;
break;
case 13 :
help_1._x = 160;
help_2._x = 320;
help_3._x = 320;
help_4._x = 230;
}
calc_weapon_cost();
Frame 393
gotoAndPlay (392);
Frame 403
calc_weapon_cost();
Frame 404
gotoAndPlay (100);
Frame 406
if (Key.isDown(kleft)) {
SND_Blip1.start();
gotoAndPlay (391);
}
if (Key.isDown(kpause)) {
calc_weapon_cost();
gotoAndPlay (394);
}
calc_weapon_cost();
Frame 407
gotoAndPlay (406);
Frame 501
clearstage();
f = 1;
if (pd[1] == 100) {
px[1] = 120;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
pll[1] = 1000;
pllm[1] = 1000;
ple = 1000;
plem = 1000;
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 4;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 120;
by[2] = -200;
bxs[2] = 40;
bys[2] = 40;
bt[3] = 1;
bx[3] = 40;
by[3] = -320;
bxs[3] = 40;
bys[3] = 120;
bt[4] = 1;
bx[4] = 120;
by[4] = -400;
bxs[4] = 40;
bys[4] = 40;
blockcount();
gotoAndPlay (100);
Frame 502
clearstage();
f = 2;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 1;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
blockcount();
gotoAndPlay (100);
Frame 503
clearstage();
f = 3;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 2;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 280;
by[2] = -400;
bxs[2] = 300;
bys[2] = 40;
blockcount();
gotoAndPlay (100);
Frame 504
clearstage();
f = 4;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 2;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 480;
by[2] = -300;
bxs[2] = 80;
bys[2] = 140;
blockcount();
gotoAndPlay (100);
Frame 505
clearstage();
f = 5;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 2;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 480;
by[2] = -300;
bxs[2] = 80;
bys[2] = 140;
blockcount();
gotoAndPlay (100);
Frame 506
clearstage();
f = 6;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 1;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
blockcount();
gotoAndPlay (100);
Frame 507
clearstage();
f = 7;
if (pd[1] == 100) {
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 2;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 480;
by[2] = -300;
bxs[2] = 80;
bys[2] = 140;
blockcount();
gotoAndPlay (100);
Frame 509
clearstage();
f = 9;
if (pd[1] == 100) {
px[1] = 320;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 2;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 420;
by[2] = -200;
bxs[2] = 140;
bys[2] = 40;
blockcount();
gotoAndPlay (100);
Frame 510
clearstage();
f = 10;
if (pd[1] == 100) {
px[1] = 280;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 1;
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 300;
bys[1] = 100;
blockcount();
gotoAndPlay (100);
Frame 511
clearstage();
f = 11;
if (pd[1] == 100) {
px[1] = 960;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 602;
px[2] = 250;
py[2] = -200;
plr[2] = 0;
pll[2] = 9999;
pd[2] = 1;
pxs[2] = 20;
pys[2] = 40;
pc[3] = 603;
px[3] = 400;
py[3] = -200;
plr[3] = 0;
pll[3] = 9999;
pd[3] = 1;
pxs[3] = 20;
pys[3] = 40;
lbsetupa();
bt[1] = 1;
bx[1] = 500;
by[1] = -100;
bxs[1] = 500;
bys[1] = 100;
blockcount();
gotoAndPlay (100);
Frame 512
clearstage();
f = 12;
if (pd[1] == 100) {
px[1] = 500;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 600;
px[2] = 100;
py[2] = -200;
plr[2] = 0;
pll[2] = 9999;
pd[2] = 1;
pxs[2] = 20;
pys[2] = 40;
pc[3] = 601;
px[3] = 460;
py[3] = -200;
plr[3] = 0;
pll[3] = 9999;
pd[3] = 1;
pxs[3] = 15;
pys[3] = 30;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 280;
bys[1] = 100;
blockcount();
gotoAndPlay (100);
Frame 521
clearstage();
f = 21;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 960;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 6;
bt[1] = 2;
bx[1] = 540;
by[1] = -220;
bxs[1] = 20;
bys[1] = 60;
bt[2] = 1;
bx[2] = 100;
by[2] = -40;
bxs[2] = 100;
bys[2] = 40;
bt[3] = 1;
bx[3] = 460;
by[3] = -260;
bxs[3] = 60;
bys[3] = 20;
bt[4] = 1;
bx[4] = 700;
by[4] = -220;
bxs[4] = 20;
bys[4] = 20;
bt[5] = 1;
bx[5] = 700;
by[5] = -40;
bxs[5] = 300;
bys[5] = 40;
bt[6] = 3;
bx[6] = 560;
by[6] = -100;
bxs[6] = 40;
bys[6] = 20;
blockcount();
gotoAndPlay (100);
Frame 531
clearstage();
f = 31;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 1360;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1400;
camym = -420;
pc[2] = 101;
px[2] = 920;
py[2] = -240;
plr[2] = 0;
pc[3] = 102;
px[3] = 440;
py[3] = -160;
plr[3] = 0;
pc[4] = 122;
px[4] = 240;
py[4] = -80;
plr[4] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 180;
by[1] = -340;
bxs[1] = 100;
bys[1] = 100;
bt[2] = 1;
bx[2] = 40;
by[2] = -220;
bxs[2] = 40;
bys[2] = 220;
bt[3] = 1;
bx[3] = 800;
by[3] = -40;
bxs[3] = 600;
bys[3] = 40;
bt[4] = 1;
bx[4] = 440;
by[4] = -100;
bxs[4] = 80;
bys[4] = 60;
bt[5] = 1;
bx[5] = 680;
by[5] = -100;
bxs[5] = 40;
bys[5] = 60;
bt[6] = 1;
bx[6] = 920;
by[6] = -140;
bxs[6] = 40;
bys[6] = 100;
bt[7] = 1;
bx[7] = 1000;
by[7] = -100;
bxs[7] = 40;
bys[7] = 60;
blockcount();
gotoAndPlay (100);
Frame 532
clearstage();
f = 32;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 115;
px[2] = 500;
py[2] = -300;
plr[2] = 1;
pc[3] = 115;
px[3] = 440;
py[3] = -280;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -200;
bxs[1] = 40;
bys[1] = 240;
bt[2] = 1;
bx[2] = 380;
by[2] = -360;
bxs[2] = 180;
bys[2] = 80;
bt[3] = 1;
bx[3] = 480;
by[3] = -280;
bxs[3] = 80;
bys[3] = 80;
bt[4] = 1;
bx[4] = 160;
by[4] = -80;
bxs[4] = 120;
bys[4] = 80;
bt[5] = 1;
bx[5] = 300;
by[5] = -40;
bxs[5] = 60;
bys[5] = 40;
bt[6] = 1;
bx[6] = 520;
by[6] = -120;
bxs[6] = 40;
bys[6] = 120;
blockcount();
gotoAndPlay (100);
Frame 533
clearstage();
f = 33;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 440;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 101;
px[2] = 140;
py[2] = -80;
plr[2] = 0;
pc[3] = 105;
px[3] = 80;
py[3] = -280;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 180;
by[1] = -340;
bxs[1] = 180;
bys[1] = 100;
bt[2] = 1;
bx[2] = 520;
by[2] = -200;
bxs[2] = 40;
bys[2] = 200;
bt[3] = 1;
bx[3] = 240;
by[3] = -40;
bxs[3] = 280;
bys[3] = 40;
blockcount();
gotoAndPlay (100);
Frame 534
clearstage();
f = 34;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 520;
py[1] = -760;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -1000;
pc[2] = 111;
px[2] = 480;
py[2] = -500;
plr[2] = 1;
pc[3] = 101;
px[3] = 160;
py[3] = -80;
plr[3] = 0;
pc[4] = 122;
px[4] = 140;
py[4] = -760;
plr[4] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -960;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 40;
by[2] = -500;
bxs[2] = 40;
bys[2] = 500;
bt[3] = 1;
bx[3] = 340;
by[3] = -700;
bxs[3] = 220;
bys[3] = 60;
bt[4] = 1;
bx[4] = 520;
by[4] = -320;
bxs[4] = 40;
bys[4] = 340;
bt[5] = 1;
bx[5] = 280;
by[5] = -420;
bxs[5] = 40;
bys[5] = 60;
bt[6] = 1;
bx[6] = 240;
by[6] = -360;
bxs[6] = 200;
bys[6] = 40;
bt[7] = 1;
bx[7] = 320;
by[7] = -40;
bxs[7] = 200;
bys[7] = 40;
bt[8] = 2;
bx[8] = 100;
by[8] = -620;
bxs[8] = 20;
bys[8] = 140;
bt[9] = 2;
bx[9] = 460;
by[9] = -280;
bxs[9] = 20;
bys[9] = 120;
bt[10] = 2;
bx[10] = 100;
by[10] = -20;
bxs[10] = 20;
bys[10] = 60;
blockcount();
gotoAndPlay (100);
Frame 535
clearstage();
f = 35;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 600;
camym = -420;
pc[2] = 105;
px[2] = 500;
py[2] = -280;
plr[2] = 0;
pc[3] = 105;
px[3] = 500;
py[3] = -40;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 360;
by[1] = -320;
bxs[1] = 240;
bys[1] = 120;
bt[2] = 1;
bx[2] = 40;
by[2] = -240;
bxs[2] = 40;
bys[2] = 200;
bt[3] = 1;
bx[3] = 80;
by[3] = -40;
bxs[3] = 80;
bys[3] = 40;
bt[4] = 1;
bx[4] = 540;
by[4] = -40;
bxs[4] = 60;
bys[4] = 40;
bt[5] = 2;
bx[5] = 100;
by[5] = -240;
bxs[5] = 20;
bys[5] = 160;
bt[6] = 10;
bx[6] = 200;
by[6] = -60;
bxs[6] = 40;
bys[6] = 20;
bf[6] = 31;
bt1[6] = 0;
bt2[6] = 2;
bt3[6] = 120;
blockcount();
gotoAndPlay (100);
Frame 536
clearstage();
f = 36;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 115;
px[2] = 500;
py[2] = -380;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -400;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 60;
by[2] = -120;
bxs[2] = 60;
bys[2] = 120;
bt[3] = 1;
bx[3] = 280;
by[3] = -20;
bxs[3] = 280;
bys[3] = 20;
bt[4] = 1;
bx[4] = 520;
by[4] = -120;
bxs[4] = 40;
bys[4] = 120;
bt[5] = 2;
bx[5] = 140;
by[5] = -180;
bxs[5] = 20;
bys[5] = 60;
bt[6] = 3;
bx[6] = 300;
by[6] = -40;
bxs[6] = 220;
bys[6] = 40;
bt[7] = 52;
bx[7] = 320;
by[7] = -200;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 32;
bt1[7] = -10;
bt2[7] = 35;
blockcount();
gotoAndPlay (100);
Frame 537
clearstage();
f = 37;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -600;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
pc[2] = 105;
px[2] = 460;
py[2] = -180;
plr[2] = 0;
pc[3] = 105;
px[3] = 500;
py[3] = -520;
plr[3] = 0;
pc[4] = 111;
px[4] = 470;
py[4] = -320;
plr[4] = 1;
pc[5] = 111;
px[5] = 90;
py[5] = -360;
plr[5] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -760;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 100;
by[2] = -480;
bxs[2] = 60;
bys[2] = 40;
bt[3] = 1;
bx[3] = 40;
by[3] = -300;
bxs[3] = 40;
bys[3] = 300;
bt[4] = 1;
bx[4] = 180;
by[4] = -40;
bxs[4] = 180;
bys[4] = 40;
bt[5] = 1;
bx[5] = 340;
by[5] = -420;
bxs[5] = 20;
bys[5] = 20;
bt[6] = 1;
bx[6] = 220;
by[6] = -340;
bxs[6] = 20;
bys[6] = 20;
bt[7] = 1;
bx[7] = 300;
by[7] = -260;
bxs[7] = 20;
bys[7] = 20;
bt[8] = 1;
bx[8] = 360;
by[8] = -80;
bxs[8] = 40;
bys[8] = 80;
bt[9] = 1;
bx[9] = 520;
by[9] = -400;
bxs[9] = 40;
bys[9] = 400;
bt[10] = 3;
bx[10] = 200;
by[10] = -80;
bxs[10] = 160;
bys[10] = 40;
blockcount();
gotoAndPlay (100);
Frame 538
clearstage();
f = 38;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 108;
px[2] = 520;
py[2] = -280;
plr[2] = 1;
pc[3] = 118;
px[3] = 720;
py[3] = -80;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -240;
bxs[1] = 40;
bys[1] = 240;
bt[2] = 1;
bx[2] = 480;
by[2] = -400;
bxs[2] = 320;
bys[2] = 40;
bt[3] = 1;
bx[3] = 400;
by[3] = -40;
bxs[3] = 400;
bys[3] = 40;
bt[4] = 1;
bx[4] = 400;
by[4] = -140;
bxs[4] = 40;
bys[4] = 140;
bt[5] = 1;
bx[5] = 700;
by[5] = -320;
bxs[5] = 100;
bys[5] = 120;
bt[6] = 46;
bx[6] = 320;
by[6] = -80;
bxs[6] = 40;
bys[6] = 40;
bf[6] = 33;
bt[7] = 46;
bx[7] = 480;
by[7] = -80;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 33;
blockcount();
gotoAndPlay (100);
Frame 539
clearstage();
f = 39;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 105;
px[2] = 400;
py[2] = -220;
plr[2] = 1;
pc[3] = 105;
px[3] = 800;
py[3] = -300;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -320;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 100;
by[2] = -40;
bxs[2] = 100;
bys[2] = 40;
bt[3] = 1;
bx[3] = 340;
by[3] = -100;
bxs[3] = 20;
bys[3] = 20;
bt[4] = 1;
bx[4] = 500;
by[4] = -180;
bxs[4] = 20;
bys[4] = 20;
bt[5] = 1;
bx[5] = 660;
by[5] = -140;
bxs[5] = 20;
bys[5] = 20;
bt[6] = 1;
bx[6] = 940;
by[6] = -380;
bxs[6] = 60;
bys[6] = 60;
bt[7] = 1;
bx[7] = 900;
by[7] = -100;
bxs[7] = 100;
bys[7] = 100;
bt[8] = 62;
bx[8] = 260;
by[8] = -140;
bxs[8] = 20;
bys[8] = 60;
bf[8] = 37;
bt1[8] = 0;
bt2[8] = 20;
bt3[8] = 0;
bt[9] = 63;
bx[9] = 420;
by[9] = -260;
bxs[9] = 20;
bys[9] = 60;
bf[9] = 37;
bt1[9] = 0;
bt2[9] = 20;
bt3[9] = 0;
bt[10] = 62;
bx[10] = 580;
by[10] = -380;
bxs[10] = 20;
bys[10] = 60;
bf[10] = 37;
bt1[10] = 0;
bt2[10] = 20;
bt3[10] = 0;
bt[11] = 63;
bx[11] = 740;
by[11] = -20;
bxs[11] = 20;
bys[11] = 60;
bf[11] = 37;
bt1[11] = 0;
bt2[11] = 20;
bt3[11] = 0;
blockcount();
gotoAndPlay (100);
Frame 540
clearstage();
f = 40;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
pc[2] = 121;
px[2] = 900;
py[2] = -400;
plr[2] = 1;
pc[3] = 121;
px[3] = 1000;
py[3] = -400;
plr[3] = 1;
pc[4] = 119;
px[4] = 800;
py[4] = -80;
plr[4] = 1;
pc[5] = 102;
px[5] = 700;
py[5] = -80;
plr[5] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 200;
by[1] = -400;
bxs[1] = 200;
bys[1] = 40;
bt[2] = 1;
bx[2] = 60;
by[2] = -120;
bxs[2] = 60;
bys[2] = 120;
bt[3] = 1;
bx[3] = 160;
by[3] = -80;
bxs[3] = 80;
bys[3] = 80;
bt[4] = 1;
bx[4] = 600;
by[4] = -40;
bxs[4] = 600;
bys[4] = 40;
blockcount();
gotoAndPlay (100);
Frame 541
clearstage();
f = 41;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 122;
px[2] = 560;
py[2] = -200;
plr[2] = 1;
pc[3] = 120;
px[3] = 400;
py[3] = -160;
plr[3] = 1;
pc[4] = 115;
px[4] = 640;
py[4] = -360;
plr[4] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -40;
bxs[1] = 400;
bys[1] = 40;
bt[2] = 1;
bx[2] = 400;
by[2] = -80;
bxs[2] = 40;
bys[2] = 80;
bt[3] = 1;
bx[3] = 560;
by[3] = -100;
bxs[3] = 40;
bys[3] = 100;
blockcount();
gotoAndPlay (100);
Frame 542
clearstage();
f = 42;
if (pd[1] == 100) {
if (pc[1] == 6) {
pc[1] = 1;
}
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 121;
px[2] = 400;
py[2] = -400;
plr[2] = 1;
pc[3] = 115;
px[3] = 800;
py[3] = -320;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -40;
bxs[1] = 300;
bys[1] = 40;
bt[2] = 1;
bx[2] = 540;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 1;
bx[3] = 800;
by[3] = -20;
bxs[3] = 200;
bys[3] = 20;
bt[4] = 1;
bx[4] = 640;
by[4] = -360;
bxs[4] = 200;
bys[4] = 80;
bt[5] = 1;
bx[5] = 900;
by[5] = -300;
bxs[5] = 100;
bys[5] = 180;
bt[6] = 6;
bx[6] = 840;
by[6] = -80;
bxs[6] = 200;
bys[6] = 80;
bt[7] = 103;
bx[7] = 540;
by[7] = -220;
bxs[7] = 100;
bys[7] = 100;
bt[8] = 101;
bx[8] = 900;
by[8] = -100;
bxs[8] = 100;
bys[8] = 100;
blockcount();
gotoAndPlay (100);
Frame 543
clearstage();
f = 43;
if (pd[1] == 100) {
pc[1] = 6;
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 118;
px[2] = 680;
py[2] = -160;
plr[2] = 1;
pc[3] = 104;
px[3] = 640;
py[3] = -40;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -360;
bxs[1] = 40;
bys[1] = 120;
bt[2] = 1;
bx[2] = 40;
by[2] = -80;
bxs[2] = 40;
bys[2] = 80;
bt[3] = 1;
bx[3] = 720;
by[3] = -360;
bxs[3] = 80;
bys[3] = 80;
bt[4] = 1;
bx[4] = 720;
by[4] = -80;
bxs[4] = 80;
bys[4] = 80;
bt[5] = 3;
bx[5] = 400;
by[5] = -400;
bxs[5] = 400;
bys[5] = 40;
bt[6] = 3;
bx[6] = 400;
by[6] = -40;
bxs[6] = 400;
bys[6] = 40;
bt[7] = 6;
bx[7] = 400;
by[7] = -240;
bxs[7] = 440;
bys[7] = 280;
bt[8] = 65;
bx[8] = 260;
by[8] = -170;
bxs[8] = 20;
bys[8] = 20;
bf[8] = 38;
bt1[8] = 0;
bt2[8] = 80;
bt3[8] = 260;
bt4[8] = -260;
bt[9] = 64;
bx[9] = 460;
by[9] = -180;
bxs[9] = 20;
bys[9] = 60;
bf[9] = 39;
bt1[9] = 2;
bt2[9] = 80;
bt3[9] = 460;
bt4[9] = -180;
blockcount();
gotoAndPlay (100);
Frame 544
clearstage();
f = 44;
if (pd[1] == 100) {
pc[1] = 6;
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -320;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 400;
by[2] = -40;
bxs[2] = 400;
bys[2] = 40;
bt[3] = 1;
bx[3] = 460;
by[3] = -140;
bxs[3] = 60;
bys[3] = 140;
bt[4] = 1;
bx[4] = 560;
by[4] = -100;
bxs[4] = 80;
bys[4] = 100;
bt[5] = 6;
bx[5] = 220;
by[5] = -120;
bxs[5] = 220;
bys[5] = 120;
bt[6] = 101;
bx[6] = 240;
by[6] = -100;
bxs[6] = 240;
bys[6] = 100;
bt[7] = 103;
bx[7] = 460;
by[7] = -320;
bxs[7] = 60;
bys[7] = 80;
blockcount();
gotoAndPlay (100);
Frame 545
clearstage();
f = 45;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 111;
px[2] = 480;
py[2] = -200;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 120;
by[1] = -40;
bxs[1] = 120;
bys[1] = 40;
bt[2] = 1;
bx[2] = 520;
by[2] = -140;
bxs[2] = 40;
bys[2] = 140;
bt[3] = 1;
bx[3] = 660;
by[3] = -40;
bxs[3] = 140;
bys[3] = 40;
bt[4] = 1;
bx[4] = 700;
by[4] = -340;
bxs[4] = 100;
bys[4] = 100;
bt[5] = 2;
bx[5] = 580;
by[5] = -200;
bxs[5] = 20;
bys[5] = 80;
bt[6] = 22;
bx[6] = 320;
by[6] = -40;
bxs[6] = 40;
bys[6] = 40;
bf[6] = 40;
bt1[6] = 0;
bt2[6] = 4;
bt3[6] = 0;
bt[7] = 23;
bx[7] = 400;
by[7] = -400;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 40;
bt1[7] = 0;
bt2[7] = 4;
bt3[7] = 0;
blockcount();
gotoAndPlay (100);
Frame 546
clearstage();
f = 46;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 28;
bx[1] = 280;
by[1] = -210;
bt1[1] = 10;
bt2[1] = 19;
bt[2] = 1;
bx[2] = 280;
by[2] = -40;
bxs[2] = 280;
bys[2] = 40;
bt[3] = 1;
bx[3] = 500;
by[3] = -140;
bxs[3] = 60;
bys[3] = 140;
bt[4] = 3;
bx[4] = 440;
by[4] = -120;
bxs[4] = 40;
bys[4] = 120;
bt[5] = 29;
bx[5] = 160;
by[5] = -60;
bxs[5] = 40;
bys[5] = 60;
bt[6] = 52;
bx[6] = 300;
by[6] = -300;
bxs[6] = 20;
bys[6] = 20;
bf[6] = 41;
bt1[6] = -60;
bt2[6] = 60;
bt[7] = 52;
bx[7] = 180;
by[7] = -260;
bxs[7] = 20;
bys[7] = 20;
bf[7] = 41;
bt1[7] = -30;
bt2[7] = 60;
bt[8] = 52;
bx[8] = 260;
by[8] = -180;
bxs[8] = 20;
bys[8] = 20;
bf[8] = 41;
bt1[8] = 0;
bt2[8] = 60;
bt[9] = 1;
bx[9] = 60;
by[9] = -340;
bxs[9] = 60;
bys[9] = 100;
blockcount();
gotoAndPlay (100);
Frame 547
clearstage();
f = 47;
if (pd[1] == 100) {
if (pc[1] == 5) {
pc[1] = 1;
}
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 123;
px[2] = 600;
py[2] = -380;
plr[2] = 1;
pc[3] = 119;
px[3] = 460;
py[3] = -200;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 200;
by[1] = -40;
bxs[1] = 200;
bys[1] = 40;
bt[2] = 1;
bx[2] = 360;
by[2] = -80;
bxs[2] = 80;
bys[2] = 80;
bt[3] = 1;
bx[3] = 460;
by[3] = -100;
bxs[3] = 60;
bys[3] = 100;
bt[4] = 103;
bx[4] = 380;
by[4] = -240;
bxs[4] = 60;
bys[4] = 240;
bt[5] = 100;
bx[5] = 660;
by[5] = -240;
bxs[5] = 140;
bys[5] = 240;
blockcount();
gotoAndPlay (100);
Frame 548
clearstage();
fmode = 2;
f = 48;
if (pd[1] == 100) {
pc[1] = 5;
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camx = 280;
camxm = 6000;
camym = -420;
lbsetupa();
bt[1] = 61;
bx[1] = 1000;
by[1] = -360;
bxs[1] = 200;
bys[1] = 20;
bf[1] = 42;
bt1[1] = 0;
bt2[1] = 6;
bt3[1] = 0;
bt[2] = 61;
bx[2] = 1250;
by[2] = -80;
bxs[2] = 200;
bys[2] = 20;
bf[2] = 42;
bt1[2] = 0;
bt2[2] = 6;
bt3[2] = 0;
bt[3] = 61;
bx[3] = 1500;
by[3] = -200;
bxs[3] = 200;
bys[3] = 20;
bf[3] = 42;
bt1[3] = 0;
bt2[3] = 6;
bt3[3] = 0;
bt[4] = 61;
bx[4] = 2500;
by[4] = -280;
bxs[4] = 200;
bys[4] = 20;
bf[4] = 42;
bt1[4] = 0;
bt2[4] = 6;
bt3[4] = 0;
bt[5] = 61;
bx[5] = 3250;
by[5] = -160;
bxs[5] = 200;
bys[5] = 20;
bf[5] = 42;
bt1[5] = 0;
bt2[5] = 6;
bt3[5] = 0;
bt[6] = 61;
bx[6] = 3750;
by[6] = -320;
bxs[6] = 200;
bys[6] = 20;
bf[6] = 42;
bt1[6] = 0;
bt2[6] = 6;
bt3[6] = 0;
bt[7] = 61;
bx[7] = 4000;
by[7] = -120;
bxs[7] = 200;
bys[7] = 20;
bf[7] = 42;
bt1[7] = 0;
bt2[7] = 6;
bt3[7] = 0;
bt[8] = 61;
bx[8] = 4500;
by[8] = -240;
bxs[8] = 200;
bys[8] = 20;
bf[8] = 42;
bt1[8] = 0;
bt2[8] = 6;
bt3[8] = 0;
bt[9] = 61;
bx[9] = 5250;
by[9] = -40;
bxs[9] = 200;
bys[9] = 20;
bf[9] = 42;
bt1[9] = 0;
bt2[9] = 6;
bt3[9] = 0;
bt[10] = 61;
bx[10] = 5750;
by[10] = -120;
bxs[10] = 200;
bys[10] = 20;
bf[10] = 42;
bt1[10] = 0;
bt2[10] = 6;
bt3[10] = 0;
bt[11] = 38;
bt1[11] = 0;
bt2[11] = 80;
blockcount();
gotoAndPlay (100);
Frame 549
clearstage();
f = 49;
fstages = 1;
if (pd[1] == 100) {
if (pc[1] == 5) {
pc[1] = 1;
}
pll[1] = 1000;
ple = 1000;
px[1] = 200;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 101;
px[2] = 700;
py[2] = -160;
plr[2] = 1;
pc[3] = 102;
px[3] = 640;
py[3] = -160;
plr[3] = 1;
lbsetupa();
bt[1] = 9;
bx[1] = 840;
by[1] = -220;
bxs[1] = 40;
bys[1] = 100;
bt[2] = 8;
bx[2] = 580;
by[2] = -180;
bxs[2] = 20;
bys[2] = 20;
bf[2] = 43;
bt1[2] = 0;
bt[3] = 4;
bx[3] = 980;
by[3] = -220;
bxs[3] = 20;
bys[3] = 100;
bf[3] = 45;
bt[4] = 1;
bx[4] = 580;
by[4] = -40;
bxs[4] = 420;
bys[4] = 40;
bt[5] = 1;
bx[5] = 740;
by[5] = -80;
bxs[5] = 260;
bys[5] = 80;
bt[6] = 1;
bx[6] = 700;
by[6] = -400;
bxs[6] = 300;
bys[6] = 40;
bt[7] = 1;
bx[7] = 740;
by[7] = -360;
bxs[7] = 260;
bys[7] = 80;
bt[8] = 103;
bx[8] = 260;
by[8] = -220;
bxs[8] = 60;
bys[8] = 240;
blockcount();
gotoAndPlay (100);
Frame 550
clearstage();
f = 50;
fstages = 1;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 123;
px[2] = 600;
py[2] = -380;
plr[2] = 1;
pc[3] = 102;
px[3] = 700;
py[3] = -80;
plr[3] = 1;
lbsetupa();
bt[1] = 9;
bx[1] = 880;
by[1] = -120;
bxs[1] = 40;
bys[1] = 80;
bt[2] = 8;
bx[2] = 160;
by[2] = -180;
bxs[2] = 20;
bys[2] = 20;
bf[2] = 43;
bt[3] = 4;
bx[3] = 980;
by[3] = -140;
bxs[3] = 20;
bys[3] = 100;
bf[3] = 45;
bt[4] = 1;
bx[4] = 100;
by[4] = -400;
bxs[4] = 100;
bys[4] = 40;
bt[5] = 1;
bx[5] = 60;
by[5] = -120;
bxs[5] = 60;
bys[5] = 120;
bt[6] = 1;
bx[6] = 140;
by[6] = -80;
bxs[6] = 60;
bys[6] = 80;
bt[7] = 1;
bx[7] = 420;
by[7] = -360;
bxs[7] = 60;
bys[7] = 80;
bt[8] = 1;
bx[8] = 700;
by[8] = -360;
bxs[8] = 60;
bys[8] = 80;
bt[9] = 1;
bx[9] = 500;
by[9] = -40;
bxs[9] = 500;
bys[9] = 40;
bt[10] = 3;
bx[10] = 560;
by[10] = -80;
bxs[10] = 40;
bys[10] = 40;
bt[11] = 1;
bx[11] = 960;
by[11] = -320;
bxs[11] = 40;
bys[11] = 120;
bt[12] = 38;
bt1[12] = 0;
bt2[12] = 70;
blockcount();
gotoAndPlay (100);
Frame 555
clearstage();
f = 55;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pcharge = 0;
pll[11] = 0;
}
px[1] = 80;
py[1] = -40;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
inv = 0;
helper_reset();
camx = 280;
camy = -140;
camxm = 560;
camym = -420;
pc[2] = 200;
px[2] = 440;
py[2] = -40;
plr[2] = 1;
pxs[2] = 160;
pys[2] = 160;
pd[2] = 1;
pll[2] = 2000;
pc[3] = 200;
px[3] = 440;
py[3] = -40;
plr[3] = 1;
pxs[3] = 20;
pys[3] = 40;
pd[3] = 0;
pll[3] = 9999;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = 0;
bxs[1] = 620;
bys[1] = 40;
bt[2] = 1;
bx[2] = 0;
by[2] = -200;
bxs[2] = 40;
bys[2] = 240;
bt[3] = 1;
bx[3] = 280;
by[3] = -400;
bxs[3] = 320;
bys[3] = 80;
blockcount();
gotoAndPlay (2020);
Frame 561
clearstage();
f = 61;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 104;
px[2] = 600;
py[2] = -400;
plr[2] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -40;
bxs[1] = 100;
bys[1] = 40;
bt[2] = 1;
bx[2] = 400;
by[2] = -120;
bxs[2] = 40;
bys[2] = 120;
bt[3] = 1;
bx[3] = 540;
by[3] = -220;
bxs[3] = 20;
bys[3] = 20;
bt[4] = 1;
bx[4] = 720;
by[4] = -120;
bxs[4] = 80;
bys[4] = 120;
bt[5] = 42;
bx[5] = 400;
by[5] = -220;
bxs[5] = 440;
bys[5] = 240;
bt[6] = 65;
bx[6] = 540;
by[6] = -220;
bxs[6] = 30;
bys[6] = 30;
bf[6] = 61;
bt1[6] = 0;
bt2[6] = 55;
bt3[6] = 540;
bt4[6] = -220;
blockcount();
gotoAndPlay (100);
Frame 562
clearstage();
f = 62;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 50;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -120;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 280;
by[2] = -300;
bxs[2] = 80;
bys[2] = 140;
bt[3] = 1;
bx[3] = 280;
by[3] = -40;
bxs[3] = 280;
bys[3] = 40;
bt[4] = 1;
bx[4] = 500;
by[4] = -120;
bxs[4] = 60;
bys[4] = 120;
bt[5] = 42;
bx[5] = 280;
by[5] = -210;
bxs[5] = 300;
bys[5] = 240;
bt[6] = 65;
bx[6] = 120;
by[6] = -160;
bxs[6] = 30;
bys[6] = 30;
bf[6] = 61;
bt1[6] = 0;
bt2[6] = 40;
bt3[6] = 120;
bt4[6] = -160;
bt[7] = 64;
bx[7] = 200;
by[7] = -80;
bxs[7] = 30;
bys[7] = 30;
bf[7] = 61;
bt1[7] = 0;
bt2[7] = 40;
bt3[7] = 200;
bt4[7] = -80;
bt[8] = 65;
bx[8] = 440;
by[8] = -80;
bxs[8] = 30;
bys[8] = 30;
bf[8] = 61;
bt1[8] = 0;
bt2[8] = 40;
bt3[8] = 440;
bt4[8] = -80;
blockcount();
gotoAndPlay (100);
Frame 563
clearstage();
f = 63;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -120;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 280;
by[2] = -420;
bxs[2] = 40;
bys[2] = 180;
bt[3] = 1;
bx[3] = 360;
by[3] = -360;
bxs[3] = 40;
bys[3] = 40;
bt[4] = 1;
bx[4] = 220;
by[4] = -40;
bxs[4] = 100;
bys[4] = 40;
bt[5] = 1;
bx[5] = 520;
by[5] = -120;
bxs[5] = 40;
bys[5] = 120;
bt[6] = 42;
bx[6] = 280;
by[6] = -300;
bxs[6] = 300;
bys[6] = 320;
bt[7] = 65;
bx[7] = 520;
by[7] = -160;
bxs[7] = 30;
bys[7] = 30;
bf[7] = 61;
bt1[7] = 5.1;
bt2[7] = 70;
bt3[7] = 520;
bt4[7] = -160;
bt[8] = 65;
bx[8] = 520;
by[8] = -160;
bxs[8] = 30;
bys[8] = 30;
bf[8] = 61;
bt1[8] = 4.9;
bt2[8] = 100;
bt3[8] = 520;
bt4[8] = -160;
bt[9] = 65;
bx[9] = 520;
by[9] = -160;
bxs[9] = 30;
bys[9] = 30;
bf[9] = 61;
bt1[9] = 4.7;
bt2[9] = 130;
bt3[9] = 520;
bt4[9] = -160;
blockcount();
gotoAndPlay (100);
Frame 564
clearstage();
f = 64;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 104;
px[2] = 580;
py[2] = -360;
plr[2] = 0;
pc[3] = 104;
px[3] = 580;
py[3] = -80;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -340;
bxs[1] = 80;
bys[1] = 120;
bt[2] = 1;
bx[2] = 320;
by[2] = -380;
bxs[2] = 160;
bys[2] = 60;
bt[3] = 1;
bx[3] = 220;
by[3] = -40;
bxs[3] = 220;
bys[3] = 40;
bt[4] = 1;
bx[4] = 360;
by[4] = -80;
bxs[4] = 120;
bys[4] = 80;
bt[5] = 1;
bx[5] = 720;
by[5] = -380;
bxs[5] = 80;
bys[5] = 60;
bt[6] = 1;
bx[6] = 720;
by[6] = -80;
bxs[6] = 80;
bys[6] = 80;
bt[7] = 64;
bx[7] = 560;
by[7] = -240;
bxs[7] = 30;
bys[7] = 30;
bf[7] = 61;
bt1[7] = 0;
bt2[7] = 100;
bt3[7] = 560;
bt4[7] = -240;
blockcount();
gotoAndPlay (100);
Frame 591
clearstage();
f = 91;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 105;
px[2] = 800;
py[2] = -360;
pc[3] = 116;
px[3] = 640;
py[3] = -200;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 320;
by[1] = -60;
bxs[1] = 40;
bys[1] = 60;
bt[2] = 1;
bx[2] = 500;
by[2] = -40;
bxs[2] = 500;
bys[2] = 40;
bt[3] = 1;
bx[3] = 580;
by[3] = -100;
bxs[3] = 100;
bys[3] = 100;
bt[4] = 1;
bx[4] = 900;
by[4] = -80;
bxs[4] = 100;
bys[4] = 80;
blockcount();
gotoAndPlay (100);
Frame 592
clearstage();
f = 92;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 105;
px[2] = 600;
py[2] = -400;
pc[3] = 105;
px[3] = 700;
py[3] = -100;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -80;
bxs[1] = 100;
bys[1] = 80;
bt[2] = 1;
bx[2] = 440;
by[2] = -100;
bxs[2] = 80;
bys[2] = 100;
bt[3] = 1;
bx[3] = 500;
by[3] = -40;
bxs[3] = 500;
bys[3] = 40;
bt[4] = 1;
bx[4] = 760;
by[4] = -320;
bxs[4] = 40;
bys[4] = 120;
bt[5] = 1;
bx[5] = 760;
by[5] = -60;
bxs[5] = 40;
bys[5] = 60;
bt[6] = 1;
bx[6] = 960;
by[6] = -240;
bxs[6] = 40;
bys[6] = 240;
bt[7] = 3;
bx[7] = 280;
by[7] = -80;
bxs[7] = 80;
bys[7] = 40;
bt[8] = 32;
bx[8] = 860;
by[8] = -80;
bxs[8] = 60;
bys[8] = 40;
bf[8] = 91;
bt1[8] = 2;
bt2[8] = 2;
bt3[8] = 0;
blockcount();
gotoAndPlay (100);
Frame 593
clearstage();
f = 93;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 140;
py[1] = -40;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -1000;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -200;
bxs[1] = 40;
bys[1] = 200;
bt[2] = 1;
bx[2] = 240;
by[2] = -200;
bxs[2] = 40;
bys[2] = 200;
bt[3] = 1;
bx[3] = 500;
by[3] = -120;
bxs[3] = 60;
bys[3] = 120;
bt[4] = 1;
bx[4] = 460;
by[4] = -360;
bxs[4] = 100;
bys[4] = 40;
bt[5] = 1;
bx[5] = 520;
by[5] = -680;
bxs[5] = 40;
bys[5] = 320;
bt[6] = 1;
bx[6] = 320;
by[6] = -780;
bxs[6] = 120;
bys[6] = 260;
bt[7] = 1;
bx[7] = 100;
by[7] = -860;
bxs[7] = 100;
bys[7] = 180;
bt[8] = 2;
bx[8] = 460;
by[8] = -720;
bxs[8] = 20;
bys[8] = 320;
bt[9] = 22;
bx[9] = 140;
by[9] = 0;
bxs[9] = 60;
bys[9] = 40;
bf[9] = 94;
bt1[9] = 2;
bt2[9] = 2;
bt3[9] = 0;
blockcount();
gotoAndPlay (100);
Frame 594
clearstage();
f = 94;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -1000;
pc[2] = 106;
px[2] = 380;
py[2] = -380;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -80;
bxs[1] = 40;
bys[1] = 80;
bt[2] = 1;
bx[2] = 220;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 2;
bx[3] = 100;
by[3] = -60;
bxs[3] = 20;
bys[3] = 100;
bt[4] = 1;
bx[4] = 520;
by[4] = -300;
bxs[4] = 40;
bys[4] = 300;
bt[5] = 2;
bx[5] = 460;
by[5] = -380;
bxs[5] = 20;
bys[5] = 220;
bt[6] = 1;
bx[6] = 460;
by[6] = -840;
bxs[6] = 100;
bys[6] = 40;
bt[7] = 1;
bx[7] = 40;
by[7] = -860;
bxs[7] = 40;
bys[7] = 180;
bt[8] = 2;
bx[8] = 100;
by[8] = -860;
bxs[8] = 20;
bys[8] = 180;
bt[9] = 11;
bx[9] = 320;
by[9] = -560;
bxs[9] = 40;
bys[9] = 40;
bf[9] = 101;
bt1[9] = 0;
bt2[9] = 2;
bt3[9] = 100;
blockcount();
gotoAndPlay (100);
Frame 595
clearstage();
f = 95;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 200;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -1000;
pc[2] = 106;
px[2] = 280;
py[2] = -660;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -500;
bxs[1] = 40;
bys[1] = 540;
bt[2] = 1;
bx[2] = 360;
by[2] = -120;
bxs[2] = 200;
bys[2] = 40;
bt[3] = 1;
bx[3] = 520;
by[3] = -580;
bxs[3] = 40;
bys[3] = 460;
bt[4] = 1;
bx[4] = 260;
by[4] = -440;
bxs[4] = 140;
bys[4] = 40;
bt[5] = 1;
bx[5] = 260;
by[5] = -760;
bxs[5] = 100;
bys[5] = 40;
bt[6] = 1;
bx[6] = 220;
by[6] = -960;
bxs[6] = 140;
bys[6] = 40;
bt[7] = 1;
bx[7] = 400;
by[7] = -720;
bxs[7] = 40;
bys[7] = 320;
bt[8] = 2;
bx[8] = 460;
by[8] = -640;
bxs[8] = 20;
bys[8] = 400;
bt[9] = 2;
bx[9] = 100;
by[9] = -220;
bxs[9] = 100;
bys[9] = 260;
blockcount();
gotoAndPlay (100);
Frame 596
clearstage();
f = 96;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -40;
bxs[1] = 40;
bys[1] = 40;
bt[2] = 2;
bx[2] = 100;
by[2] = -20;
bxs[2] = 20;
bys[2] = 60;
bt[3] = 1;
bx[3] = 240;
by[3] = -40;
bxs[3] = 120;
bys[3] = 40;
bt[4] = 1;
bx[4] = 840;
by[4] = -80;
bxs[4] = 160;
bys[4] = 80;
bt[5] = 12;
bx[5] = 460;
by[5] = -40;
bxs[5] = 40;
bys[5] = 40;
bf[5] = 101;
bt1[5] = 0;
bt2[5] = 2;
bt3[5] = 140;
bt[6] = 13;
bx[6] = 600;
by[6] = -240;
bxs[6] = 40;
bys[6] = 40;
bf[6] = 101;
bt1[6] = 0;
bt2[6] = 2;
bt3[6] = 80;
bt[7] = 55;
bx[7] = 760;
by[7] = -360;
bxs[7] = 40;
bys[7] = 40;
bt1[7] = 0;
bt2[7] = 75;
bt3[7] = 3;
bt4[7] = 1;
blockcount();
gotoAndPlay (100);
Frame 621
clearstage();
f = 121;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pc[1] = 1;
px[1] = 40;
py[1] = -440;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -380;
bxs[1] = 80;
bys[1] = 60;
bt[2] = 1;
bx[2] = 40;
by[2] = -180;
bxs[2] = 40;
bys[2] = 180;
bt[3] = 1;
bx[3] = 500;
by[3] = -460;
bxs[3] = 60;
bys[3] = 140;
bt[4] = 1;
bx[4] = 280;
by[4] = -40;
bxs[4] = 280;
bys[4] = 40;
bt[5] = 6;
bx[5] = 300;
by[5] = -180;
bxs[5] = 260;
bys[5] = 220;
bt[6] = 101;
bx[6] = 300;
by[6] = -360;
bxs[6] = 180;
bys[6] = 40;
bt[7] = 103;
bx[7] = 80;
by[7] = -520;
bxs[7] = 80;
bys[7] = 80;
blockcount();
gotoAndPlay (100);
Frame 622
clearstage();
f = 122;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pc[1] = 6;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -380;
bxs[1] = 100;
bys[1] = 60;
bt[2] = 1;
bx[2] = 100;
by[2] = -40;
bxs[2] = 100;
bys[2] = 40;
bt[3] = 6;
bx[3] = 440;
by[3] = -220;
bxs[3] = 400;
bys[3] = 240;
bt[4] = 64;
bx[4] = 460;
by[4] = -280;
bxs[4] = 30;
bys[4] = 30;
bf[4] = 121;
bt1[4] = 0;
bt2[4] = 120;
bt3[4] = 460;
bt4[4] = -280;
bt[5] = 65;
bx[5] = 540;
by[5] = -200;
bxs[5] = 30;
bys[5] = 30;
bf[5] = 121;
bt1[5] = 0;
bt2[5] = 120;
bt3[5] = 540;
bt4[5] = -200;
bt[6] = 65;
bx[6] = 340;
by[6] = -120;
bxs[6] = 30;
bys[6] = 30;
bf[6] = 121;
bt1[6] = 0;
bt2[6] = 120;
bt3[6] = 340;
bt4[6] = -120;
blockcount();
gotoAndPlay (100);
Frame 623
clearstage();
f = 123;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pc[1] = 6;
px[1] = 40;
py[1] = -100;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 700;
by[1] = -360;
bxs[1] = 100;
bys[1] = 80;
bt[2] = 1;
bx[2] = 700;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 62;
bx[3] = 280;
by[3] = -80;
bxs[3] = 40;
bys[3] = 40;
bf[3] = 121;
bt1[3] = 0;
bt2[3] = 5;
bt3[3] = 0;
bt[4] = 63;
bx[4] = 320;
by[4] = -280;
bxs[4] = 40;
bys[4] = 40;
bf[4] = 121;
bt1[4] = 0;
bt2[4] = 3;
bt3[4] = 0;
bt[5] = 64;
bx[5] = 360;
by[5] = -220;
bxs[5] = 30;
bys[5] = 30;
bf[5] = 121;
bt1[5] = 0;
bt2[5] = 140;
bt3[5] = 360;
bt4[5] = -220;
bt[6] = 62;
bx[6] = 400;
by[6] = -360;
bxs[6] = 40;
bys[6] = 40;
bf[6] = 121;
bt1[6] = 0;
bt2[6] = 5;
bt3[6] = 0;
bt[7] = 62;
bx[7] = 360;
by[7] = -40;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 121;
bt1[7] = 0;
bt2[7] = 5;
bt3[7] = 0;
bt[8] = 63;
bx[8] = 420;
by[8] = -200;
bxs[8] = 40;
bys[8] = 40;
bf[8] = 121;
bt1[8] = 0;
bt2[8] = 3;
bt3[8] = 0;
bt[9] = 6;
bx[9] = 400;
by[9] = -220;
bxs[9] = 440;
bys[9] = 240;
blockcount();
gotoAndPlay (100);
Frame 624
clearstage();
f = 124;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pc[1] = 6;
px[1] = 40;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -400;
bxs[1] = 60;
bys[1] = 200;
bt[2] = 1;
bx[2] = 280;
by[2] = -40;
bxs[2] = 280;
bys[2] = 40;
bt[3] = 1;
bx[3] = 480;
by[3] = -300;
bxs[3] = 80;
bys[3] = 300;
bt[4] = 3;
bx[4] = 180;
by[4] = -300;
bxs[4] = 100;
bys[4] = 20;
bt[5] = 6;
bx[5] = 280;
by[5] = -300;
bxs[5] = 300;
bys[5] = 320;
bt[6] = 3;
bx[6] = 340;
by[6] = -460;
bxs[6] = 100;
bys[6] = 20;
bt[7] = 64;
bx[7] = 260;
by[7] = -380;
bxs[7] = 30;
bys[7] = 30;
bf[7] = 121;
bt1[7] = 0;
bt2[7] = 120;
bt3[7] = 260;
bt4[7] = -380;
blockcount();
gotoAndPlay (100);
Frame 625
clearstage();
f = 125;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
pc[1] = 1;
px[1] = 440;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -160;
bxs[1] = 60;
bys[1] = 160;
bt[2] = 1;
bx[2] = 600;
by[2] = -80;
bxs[2] = 200;
bys[2] = 80;
bt[3] = 6;
bx[3] = 260;
by[3] = -40;
bxs[3] = 140;
bys[3] = 80;
bt[4] = 101;
bx[4] = 260;
by[4] = -40;
bxs[4] = 140;
bys[4] = 60;
bt[5] = 103;
bx[5] = 440;
by[5] = -300;
bxs[5] = 360;
bys[5] = 140;
blockcount();
gotoAndPlay (100);
Frame 651
clearstage();
f = 151;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -440;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -420;
bxs[1] = 100;
bys[1] = 20;
bt[2] = 1;
bx[2] = 60;
by[2] = -340;
bxs[2] = 60;
bys[2] = 100;
bt[3] = 1;
bx[3] = 180;
by[3] = -300;
bxs[3] = 180;
bys[3] = 20;
bt[4] = 1;
bx[4] = 120;
by[4] = -160;
bxs[4] = 120;
bys[4] = 160;
bt[5] = 1;
bx[5] = 280;
by[5] = -140;
bxs[5] = 80;
bys[5] = 20;
bt[6] = 1;
bx[6] = 380;
by[6] = -20;
bxs[6] = 180;
bys[6] = 20;
bt[7] = 18;
bx[7] = 440;
by[7] = -280;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 151;
bt1[7] = -280;
bt2[7] = 4;
bt3[7] = 0;
bt4[7] = 0;
blockcount();
gotoAndPlay (100);
Frame 652
clearstage();
f = 152;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -440;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
pc[2] = 115;
px[2] = 500;
py[2] = -540;
plr[2] = 1;
pc[3] = 114;
px[3] = 40;
py[3] = -280;
plr[3] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -420;
bxs[1] = 80;
bys[1] = 20;
bt[2] = 1;
bx[2] = 40;
by[2] = -220;
bxs[2] = 40;
bys[2] = 220;
bt[3] = 1;
bx[3] = 140;
by[3] = -180;
bxs[3] = 100;
bys[3] = 20;
bt[4] = 1;
bx[4] = 280;
by[4] = -300;
bxs[4] = 40;
bys[4] = 20;
bt[5] = 1;
bx[5] = 220;
by[5] = -20;
bxs[5] = 100;
bys[5] = 60;
bt[6] = 2;
bx[6] = 100;
by[6] = -20;
bxs[6] = 20;
bys[6] = 60;
bt[7] = 7;
bx[7] = 440;
by[7] = -300;
bxs[7] = 120;
bys[7] = 300;
bt1[7] = 0;
bt2[7] = -14;
blockcount();
gotoAndPlay (100);
Frame 653
clearstage();
f = 153;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -240;
bxs[1] = 40;
bys[1] = 240;
bt[2] = 1;
bx[2] = 220;
by[2] = -400;
bxs[2] = 100;
bys[2] = 40;
bt[3] = 1;
bx[3] = 160;
by[3] = -60;
bxs[3] = 120;
bys[3] = 20;
bt[4] = 1;
bx[4] = 920;
by[4] = -60;
bxs[4] = 80;
bys[4] = 60;
bt[5] = 2;
bx[5] = 100;
by[5] = -280;
bxs[5] = 20;
bys[5] = 160;
bt[6] = 3;
bx[6] = 660;
by[6] = -380;
bxs[6] = 340;
bys[6] = 60;
bt[7] = 18;
bx[7] = 400;
by[7] = -40;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 151;
bt1[7] = -40;
bt2[7] = 4;
bt3[7] = 0;
bt4[7] = 100;
bt[8] = 18;
bx[8] = 600;
by[8] = -80;
bxs[8] = 40;
bys[8] = 40;
bf[8] = 151;
bt1[8] = -80;
bt2[8] = 4;
bt3[8] = 0;
bt4[8] = 100;
bt[9] = 18;
bx[9] = 720;
by[9] = -40;
bxs[9] = 40;
bys[9] = 40;
bf[9] = 151;
bt1[9] = -40;
bt2[9] = 4;
bt3[9] = 0;
bt4[9] = 100;
bt[10] = 7;
bx[10] = 320;
by[10] = -240;
bxs[10] = 40;
bys[10] = 240;
bt1[10] = 0;
bt2[10] = -14;
bt[11] = 7;
bx[11] = 540;
by[11] = -240;
bxs[11] = 20;
bys[11] = 240;
bt1[11] = 0;
bt2[11] = -14;
bt[12] = 7;
bx[12] = 800;
by[12] = -240;
bxs[12] = 40;
bys[12] = 240;
bt1[12] = 0;
bt2[12] = -14;
blockcount();
gotoAndPlay (100);
Frame 654
clearstage();
f = 154;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 115;
px[2] = 500;
py[2] = -320;
plr[2] = 1;
pc[3] = 118;
px[3] = 520;
py[3] = -200;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 180;
by[1] = -60;
bxs[1] = 180;
bys[1] = 60;
bt[2] = 1;
bx[2] = 480;
by[2] = -100;
bxs[2] = 80;
bys[2] = 100;
bt[3] = 3;
bx[3] = 280;
by[3] = -380;
bxs[3] = 280;
bys[3] = 60;
bt[4] = 2;
bx[4] = 380;
by[4] = -40;
bxs[4] = 20;
bys[4] = 80;
blockcount();
gotoAndPlay (100);
Frame 681
clearstage();
f = 181;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 115;
px[2] = 700;
py[2] = -360;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -260;
bxs[1] = 40;
bys[1] = 180;
bt[2] = 1;
bx[2] = 300;
by[2] = -60;
bxs[2] = 300;
bys[2] = 60;
bt[3] = 1;
bx[3] = 700;
by[3] = -100;
bxs[3] = 100;
bys[3] = 100;
blockcount();
gotoAndPlay (100);
Frame 682
clearstage();
f = 182;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 107;
px[2] = 320;
py[2] = -120;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -100;
bxs[1] = 60;
bys[1] = 100;
bt[2] = 1;
bx[2] = 320;
by[2] = -60;
bxs[2] = 200;
bys[2] = 60;
bt[3] = 1;
bx[3] = 660;
by[3] = -100;
bxs[3] = 140;
bys[3] = 100;
blockcount();
gotoAndPlay (100);
Frame 683
clearstage();
f = 183;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 108;
px[2] = 600;
py[2] = -360;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -100;
bxs[1] = 80;
bys[1] = 100;
bt[2] = 1;
bx[2] = 660;
by[2] = -80;
bxs[2] = 140;
bys[2] = 80;
bt[3] = 1;
bx[3] = 700;
by[3] = -180;
bxs[3] = 100;
bys[3] = 60;
bt[4] = 43;
bx[4] = 220;
by[4] = -120;
bxs[4] = 60;
bys[4] = 40;
bf[4] = 181;
bt1[4] = 0;
bt[5] = 43;
bx[5] = 340;
by[5] = -120;
bxs[5] = 60;
bys[5] = 40;
bf[5] = 181;
bt1[5] = 0;
bt[6] = 43;
bx[6] = 460;
by[6] = -120;
bxs[6] = 60;
bys[6] = 40;
bf[6] = 181;
bt1[6] = 0;
blockcount();
gotoAndPlay (100);
Frame 684
clearstage();
f = 184;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -400;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
pc[2] = 115;
px[2] = 540;
py[2] = -540;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -200;
bxs[1] = 100;
bys[1] = 200;
bt[2] = 1;
bx[2] = 440;
by[2] = -360;
bxs[2] = 120;
bys[2] = 40;
bt[3] = 43;
bx[3] = 260;
by[3] = -360;
bxs[3] = 60;
bys[3] = 40;
bf[3] = 181;
bt1[3] = 0;
blockcount();
gotoAndPlay (100);
Frame 685
clearstage();
f = 185;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 240;
py[1] = -350;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -320;
bxs[1] = 100;
bys[1] = 120;
bt[2] = 1;
bx[2] = 100;
by[2] = -60;
bxs[2] = 100;
bys[2] = 60;
bt[3] = 1;
bx[3] = 380;
by[3] = 0;
bxs[3] = 180;
bys[3] = 40;
bt[4] = 6;
bx[4] = 280;
by[4] = -140;
bxs[4] = 300;
bys[4] = 180;
bt1[4] = 2;
bt[5] = 101;
bx[5] = 280;
by[5] = -380;
bxs[5] = 300;
bys[5] = 60;
blockcount();
gotoAndPlay (100);
Frame 687
clearstage();
f = 187;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -40;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = 0;
bxs[1] = 300;
bys[1] = 40;
bt[2] = 3;
bx[2] = 200;
by[2] = -260;
bxs[2] = 40;
bys[2] = 20;
bt[3] = 3;
bx[3] = 200;
by[3] = -140;
bxs[3] = 40;
bys[3] = 20;
bt[4] = 3;
bx[4] = 380;
by[4] = -120;
bxs[4] = 20;
bys[4] = 80;
bt[5] = 6;
bx[5] = 280;
by[5] = -140;
bxs[5] = 300;
bys[5] = 180;
bt1[5] = 2;
blockcount();
gotoAndPlay (100);
Frame 711
clearstage();
f = 211;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -40;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 480;
by[2] = -160;
bxs[2] = 80;
bys[2] = 120;
bt[3] = 46;
bx[3] = 360;
by[3] = -80;
bxs[3] = 40;
bys[3] = 40;
bf[3] = 211;
bt1[3] = 0;
bt2[3] = 0;
blockcount();
gotoAndPlay (100);
Frame 712
clearstage();
f = 212;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -280;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 120;
by[1] = -240;
bxs[1] = 120;
bys[1] = 40;
bt[2] = 1;
bx[2] = 120;
by[2] = -60;
bxs[2] = 120;
bys[2] = 60;
bt[3] = 1;
bx[3] = 520;
by[3] = -40;
bxs[3] = 80;
bys[3] = 40;
bt[4] = 1;
bx[4] = 720;
by[4] = -140;
bxs[4] = 40;
bys[4] = 140;
bt[5] = 1;
bx[5] = 860;
by[5] = -200;
bxs[5] = 20;
bys[5] = 80;
bt[6] = 1;
bx[6] = 940;
by[6] = -240;
bxs[6] = 80;
bys[6] = 40;
bt[7] = 1;
bx[7] = 980;
by[7] = -60;
bxs[7] = 20;
bys[7] = 60;
bt[8] = 46;
bx[8] = 560;
by[8] = -80;
bxs[8] = 40;
bys[8] = 40;
bf[8] = 211;
bt1[8] = 0;
bt2[8] = 0;
blockcount();
gotoAndPlay (100);
Frame 713
clearstage();
f = 213;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -40;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 240;
by[2] = -180;
bxs[2] = 40;
bys[2] = 140;
bt[3] = 1;
bx[3] = 500;
by[3] = -260;
bxs[3] = 60;
bys[3] = 60;
bt[4] = 1;
bx[4] = 400;
by[4] = -540;
bxs[4] = 160;
bys[4] = 60;
bt[5] = 1;
bx[5] = 400;
by[5] = -140;
bxs[5] = 120;
bys[5] = 100;
bt[6] = 3;
bx[6] = 380;
by[6] = -480;
bxs[6] = 120;
bys[6] = 40;
bt[7] = 46;
bx[7] = 160;
by[7] = -80;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 211;
bt1[7] = 0;
bt2[7] = 0;
bt[8] = 46;
bx[8] = 320;
by[8] = -240;
bxs[8] = 40;
bys[8] = 40;
bf[8] = 211;
bt1[8] = 0;
bt2[8] = 0;
bt[9] = 46;
bx[9] = 400;
by[9] = -240;
bxs[9] = 40;
bys[9] = 40;
bf[9] = 211;
bt1[9] = 0;
bt2[9] = 0;
blockcount();
gotoAndPlay (100);
Frame 714
clearstage();
f = 214;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
pc[2] = 117;
px[2] = 400;
py[2] = -80;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 220;
by[1] = -560;
bxs[1] = 100;
bys[1] = 40;
bt[2] = 1;
bx[2] = 80;
by[2] = -420;
bxs[2] = 80;
bys[2] = 180;
bt[3] = 1;
bx[3] = 180;
by[3] = -280;
bxs[3] = 60;
bys[3] = 40;
bt[4] = 1;
bx[4] = 280;
by[4] = -40;
bxs[4] = 280;
bys[4] = 40;
bt[5] = 1;
bx[5] = 520;
by[5] = -240;
bxs[5] = 40;
bys[5] = 200;
bt[6] = 1;
bx[6] = 460;
by[6] = -420;
bxs[6] = 60;
bys[6] = 20;
bt[7] = 46;
bx[7] = 440;
by[7] = -80;
bxs[7] = 40;
bys[7] = 40;
bf[7] = 211;
bt1[7] = 0;
bt2[7] = 0;
bt[8] = 48;
bx[8] = 480;
by[8] = -360;
bxs[8] = 40;
bys[8] = 40;
bf[8] = 215;
bt1[8] = 1;
bt2[8] = 0;
bt[9] = 46;
bx[9] = 200;
by[9] = -320;
bxs[9] = 40;
bys[9] = 40;
bf[9] = 211;
bt1[9] = 0;
bt2[9] = 0;
bt[10] = 48;
bx[10] = 160;
by[10] = -480;
bxs[10] = 40;
bys[10] = 40;
bf[10] = 219;
bt1[10] = 0;
bt2[10] = 0;
blockcount();
gotoAndPlay (100);
Frame 741
clearstage();
f = 241;
if (pd[1] == 100) {
if (pc[1] == 5) {
pc[1] = 1;
}
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 104;
px[2] = 600;
py[2] = -400;
plr[2] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -100;
bxs[1] = 200;
bys[1] = 60;
bt[2] = 10;
bx[2] = 660;
by[2] = -120;
bxs[2] = 100;
bys[2] = 40;
bf[2] = 241;
bt1[2] = 0;
bt2[2] = 2;
bt3[2] = 40;
bt[3] = 100;
bx[3] = 880;
by[3] = -220;
bxs[3] = 120;
bys[3] = 220;
bt[4] = 103;
bx[4] = 500;
by[4] = -220;
bxs[4] = 120;
bys[4] = 220;
blockcount();
gotoAndPlay (100);
Frame 742
clearstage();
fmode = 2;
f = 242;
if (pd[1] == 100) {
if ((pc[1] > 0) and (pc[1] < 5)) {
pc[1] = 5;
}
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camx = 280;
camxm = 4000;
camym = -420;
lbsetupa();
blockcount();
gotoAndPlay (100);
Frame 771
clearstage();
f = 271;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -140;
bxs[1] = 80;
bys[1] = 60;
bt[2] = 1;
bx[2] = 440;
by[2] = -100;
bxs[2] = 120;
bys[2] = 60;
bt[3] = 1;
bx[3] = 100;
by[3] = -80;
bxs[3] = 100;
bys[3] = 40;
bt[4] = 1;
bx[4] = 480;
by[4] = -160;
bxs[4] = 80;
bys[4] = 40;
bt[5] = 1;
bx[5] = 280;
by[5] = -40;
bxs[5] = 280;
bys[5] = 40;
blockcount();
gotoAndPlay (100);
Frame 772
clearstage();
f = 272;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -100;
bxs[1] = 60;
bys[1] = 100;
bt[2] = 1;
bx[2] = 180;
by[2] = -80;
bxs[2] = 100;
bys[2] = 40;
bt[3] = 1;
bx[3] = 480;
by[3] = -40;
bxs[3] = 480;
bys[3] = 40;
bt[4] = 1;
bx[4] = 640;
by[4] = -80;
bxs[4] = 120;
bys[4] = 40;
blockcount();
gotoAndPlay (100);
Frame 773
clearstage();
f = 273;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 360;
by[1] = -80;
bxs[1] = 160;
bys[1] = 40;
bt[2] = 1;
bx[2] = 600;
by[2] = -40;
bxs[2] = 600;
bys[2] = 40;
bt[3] = 1;
bx[3] = 780;
by[3] = -100;
bxs[3] = 100;
bys[3] = 60;
bt[4] = 1;
bx[4] = 940;
by[4] = -80;
bxs[4] = 100;
bys[4] = 40;
blockcount();
gotoAndPlay (100);
Frame 774
clearstage();
f = 274;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
lbsetupa();
bt[1] = 1;
bx[1] = 180;
by[1] = -100;
bxs[1] = 60;
bys[1] = 60;
bt[2] = 1;
bx[2] = 280;
by[2] = -40;
bxs[2] = 280;
bys[2] = 40;
bt[3] = 1;
bx[3] = 240;
by[3] = -140;
bxs[3] = 40;
bys[3] = 140;
bt[4] = 1;
bx[4] = 320;
by[4] = -420;
bxs[4] = 40;
bys[4] = 20;
bt[5] = 1;
bx[5] = 480;
by[5] = -420;
bxs[5] = 80;
bys[5] = 20;
bt[6] = 2;
bx[6] = 380;
by[6] = -300;
bxs[6] = 20;
bys[6] = 140;
bt[7] = 1;
bx[7] = 400;
by[7] = -620;
bxs[7] = 80;
bys[7] = 20;
bt[8] = 2;
bx[8] = 500;
by[8] = -580;
bxs[8] = 20;
bys[8] = 60;
blockcount();
gotoAndPlay (100);
Frame 801
clearstage();
f = 301;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -40;
bxs[1] = 400;
bys[1] = 40;
bt[2] = 1;
bx[2] = 600;
by[2] = -340;
bxs[2] = 200;
bys[2] = 100;
blockcount();
gotoAndPlay (100);
Frame 802
clearstage();
f = 302;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 600;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -40;
bxs[1] = 300;
bys[1] = 40;
bt[2] = 1;
bx[2] = 60;
by[2] = -280;
bxs[2] = 60;
bys[2] = 40;
bt[3] = 1;
bx[3] = 560;
by[3] = -360;
bxs[3] = 40;
bys[3] = 100;
bt[4] = 1;
bx[4] = 480;
by[4] = -260;
bxs[4] = 120;
bys[4] = 20;
blockcount();
gotoAndPlay (100);
Frame 803
clearstage();
f = 303;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 600;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -340;
bxs[1] = 60;
bys[1] = 100;
bt[2] = 1;
bx[2] = 340;
by[2] = -260;
bxs[2] = 260;
bys[2] = 20;
bt[3] = 1;
bx[3] = 60;
by[3] = -40;
bxs[3] = 60;
bys[3] = 40;
bt[4] = 50;
bx[4] = 360;
by[4] = -40;
bxs[4] = 240;
bys[4] = 40;
bt2[4] = 3;
blockcount();
gotoAndPlay (100);
Frame 804
clearstage();
f = 304;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -260;
bxs[1] = 300;
bys[1] = 20;
bt[2] = 1;
bx[2] = 400;
by[2] = -360;
bxs[2] = 40;
bys[2] = 100;
bt[3] = 1;
bx[3] = 760;
by[3] = -340;
bxs[3] = 40;
bys[3] = 100;
bt[4] = 1;
bx[4] = 600;
by[4] = -40;
bxs[4] = 200;
bys[4] = 40;
bt[5] = 50;
bx[5] = 200;
by[5] = -40;
bxs[5] = 200;
bys[5] = 40;
bt2[5] = 3;
blockcount();
gotoAndPlay (100);
Frame 805
clearstage();
f = 305;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 600;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -340;
bxs[1] = 300;
bys[1] = 100;
bt[2] = 1;
bx[2] = 300;
by[2] = -40;
bxs[2] = 300;
bys[2] = 40;
blockcount();
gotoAndPlay (100);
Frame 806
clearstage();
f = 306;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -300;
bxs[1] = 60;
bys[1] = 60;
bt[2] = 1;
bx[2] = 260;
by[2] = -260;
bxs[2] = 180;
bys[2] = 20;
bt[3] = 1;
bx[3] = 100;
by[3] = -40;
bxs[3] = 100;
bys[3] = 40;
bt[4] = 1;
bx[4] = 780;
by[4] = -260;
bxs[4] = 180;
bys[4] = 20;
bt[5] = 1;
bx[5] = 960;
by[5] = -240;
bxs[5] = 40;
bys[5] = 200;
bt[6] = 1;
bx[6] = 900;
by[6] = -40;
bxs[6] = 100;
bys[6] = 40;
bt[7] = 50;
bx[7] = 500;
by[7] = -40;
bxs[7] = 300;
bys[7] = 40;
bt2[7] = -3;
blockcount();
gotoAndPlay (100);
Frame 807
clearstage();
f = 307;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -340;
bxs[1] = 400;
bys[1] = 100;
bt[2] = 1;
bx[2] = 400;
by[2] = -40;
bxs[2] = 400;
bys[2] = 40;
blockcount();
gotoAndPlay (100);
Frame 831
clearstage();
f = 331;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 160;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 103;
px[2] = 580;
py[2] = -320;
plr[2] = 0;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -60;
bxs[1] = 200;
bys[1] = 60;
bt[2] = 1;
bx[2] = 740;
by[2] = -60;
bxs[2] = 100;
bys[2] = 60;
bt[3] = 1;
bx[3] = 740;
by[3] = -160;
bxs[3] = 60;
bys[3] = 80;
bt[4] = 1;
bx[4] = 980;
by[4] = -60;
bxs[4] = 60;
bys[4] = 60;
blockcount();
gotoAndPlay (100);
Frame 832
clearstage();
f = 332;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
pc[2] = 111;
px[2] = 430;
py[2] = -200;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -60;
bxs[1] = 60;
bys[1] = 60;
bt[2] = 1;
bx[2] = 420;
by[2] = -60;
bxs[2] = 140;
bys[2] = 60;
bt[3] = 1;
bx[3] = 500;
by[3] = -160;
bxs[3] = 60;
bys[3] = 80;
blockcount();
gotoAndPlay (100);
Frame 833
clearstage();
f = 333;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 103;
px[2] = 620;
py[2] = -320;
plr[2] = 0;
pc[3] = 110;
px[3] = 650;
py[3] = -240;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -120;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 520;
by[2] = -60;
bxs[2] = 200;
bys[2] = 60;
bt[3] = 1;
bx[3] = 620;
by[3] = -160;
bxs[3] = 60;
bys[3] = 80;
bt[4] = 1;
bx[4] = 900;
by[4] = -60;
bxs[4] = 100;
bys[4] = 60;
blockcount();
gotoAndPlay (100);
Frame 834
clearstage();
f = 334;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -60;
bxs[1] = 100;
bys[1] = 60;
bt[2] = 1;
bx[2] = 440;
by[2] = -100;
bxs[2] = 120;
bys[2] = 100;
bt[3] = 61;
bx[3] = 460;
by[3] = -240;
bxs[3] = 60;
bys[3] = 40;
bf[3] = 331;
bt1[3] = 0;
bt2[3] = 15;
bt3[3] = 0;
blockcount();
gotoAndPlay (100);
Frame 861
clearstage();
f = 361;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 114;
px[2] = 680;
py[2] = -180;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -340;
bxs[1] = 100;
bys[1] = 60;
bt[2] = 1;
bx[2] = 400;
by[2] = -400;
bxs[2] = 400;
bys[2] = 40;
bt[3] = 1;
bx[3] = 100;
by[3] = -80;
bxs[3] = 100;
bys[3] = 80;
bt[4] = 1;
bx[4] = 400;
by[4] = -40;
bxs[4] = 240;
bys[4] = 40;
bt[5] = 1;
bx[5] = 700;
by[5] = -120;
bxs[5] = 100;
bys[5] = 120;
bt[6] = 52;
bx[6] = 340;
by[6] = -220;
bxs[6] = 20;
bys[6] = 20;
bf[6] = 361;
bt1[6] = 30;
bt2[6] = 50;
bt[7] = 52;
bx[7] = 480;
by[7] = -220;
bxs[7] = 20;
bys[7] = 20;
bf[7] = 361;
bt1[7] = 5;
bt2[7] = 50;
blockcount();
gotoAndPlay (100);
Frame 862
clearstage();
f = 362;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -400;
bxs[1] = 400;
bys[1] = 40;
bt[2] = 1;
bx[2] = 60;
by[2] = -120;
bxs[2] = 60;
bys[2] = 120;
bt[3] = 1;
bx[3] = 140;
by[3] = -60;
bxs[3] = 60;
bys[3] = 60;
bt[4] = 1;
bx[4] = 700;
by[4] = -100;
bxs[4] = 100;
bys[4] = 100;
bt[5] = 52;
bx[5] = 300;
by[5] = -180;
bxs[5] = 20;
bys[5] = 20;
bf[5] = 361;
bt1[5] = 30;
bt2[5] = 50;
bt[6] = 52;
bx[6] = 460;
by[6] = -180;
bxs[6] = 20;
bys[6] = 20;
bf[6] = 361;
bt1[6] = 5;
bt2[6] = 50;
blockcount();
gotoAndPlay (100);
Frame 863
clearstage();
f = 363;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -480;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -720;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -680;
bxs[1] = 280;
bys[1] = 40;
bt[2] = 1;
bx[2] = 40;
by[2] = -240;
bxs[2] = 40;
bys[2] = 240;
bt[3] = 1;
bx[3] = 220;
by[3] = -360;
bxs[3] = 180;
bys[3] = 40;
bt[4] = 1;
bx[4] = 340;
by[4] = -60;
bxs[4] = 180;
bys[4] = 60;
bt[5] = 1;
bx[5] = 520;
by[5] = -340;
bxs[5] = 40;
bys[5] = 340;
bt[6] = 63;
bx[6] = 260;
by[6] = -660;
bxs[6] = 30;
bys[6] = 30;
bf[6] = 362;
bt1[6] = 0;
bt2[6] = 8;
bt3[6] = 35;
bt[7] = 60;
bx[7] = 60;
by[7] = -440;
bxs[7] = 30;
bys[7] = 30;
bf[7] = 362;
bt1[7] = 0;
bt2[7] = 8;
bt3[7] = 55;
bt[8] = 63;
bx[8] = 340;
by[8] = -340;
bxs[8] = 30;
bys[8] = 30;
bf[8] = 362;
bt1[8] = 0;
bt2[8] = 8;
bt3[8] = 30;
bt[9] = 62;
bx[9] = 220;
by[9] = -100;
bxs[9] = 30;
bys[9] = 30;
bf[9] = 362;
bt1[9] = 0;
bt2[9] = 8;
bt3[9] = 30;
blockcount();
gotoAndPlay (100);
Frame 864
clearstage();
f = 364;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -720;
lbsetupa();
bt[1] = 1;
bx[1] = 360;
by[1] = -660;
bxs[1] = 200;
bys[1] = 60;
bt[2] = 1;
bx[2] = 40;
by[2] = -360;
bxs[2] = 40;
bys[2] = 360;
bt[3] = 1;
bx[3] = 280;
by[3] = -40;
bxs[3] = 240;
bys[3] = 40;
bt[4] = 1;
bx[4] = 520;
by[4] = -240;
bxs[4] = 40;
bys[4] = 240;
bt[5] = 3;
bx[5] = 400;
by[5] = -80;
bxs[5] = 80;
bys[5] = 40;
bt[6] = 52;
bx[6] = 380;
by[6] = -140;
bxs[6] = 20;
bys[6] = 20;
bf[6] = 361;
bt1[6] = 70;
bt2[6] = 80;
bt[7] = 52;
bx[7] = 440;
by[7] = -260;
bxs[7] = 20;
bys[7] = 20;
bf[7] = 361;
bt1[7] = 50;
bt2[7] = 80;
bt[8] = 52;
bx[8] = 300;
by[8] = -340;
bxs[8] = 20;
bys[8] = 20;
bf[8] = 361;
bt1[8] = 35;
bt2[8] = 80;
bt[9] = 52;
bx[9] = 260;
by[9] = -440;
bxs[9] = 20;
bys[9] = 20;
bf[9] = 361;
bt1[9] = 20;
bt2[9] = 80;
bt[10] = 52;
bx[10] = 420;
by[10] = -460;
bxs[10] = 20;
bys[10] = 20;
bf[10] = 361;
bt1[10] = 5;
bt2[10] = 80;
blockcount();
gotoAndPlay (100);
Frame 891
clearstage();
f = 391;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 119;
px[2] = 700;
py[2] = -200;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 500;
by[1] = -40;
bxs[1] = 500;
bys[1] = 40;
bt[2] = 1;
bx[2] = 580;
by[2] = -120;
bxs[2] = 180;
bys[2] = 80;
blockcount();
gotoAndPlay (100);
Frame 892
clearstage();
f = 392;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -40;
bxs[1] = 300;
bys[1] = 40;
blockcount();
gotoAndPlay (100);
Frame 893
clearstage();
f = 393;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 440;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 500;
by[1] = -40;
bxs[1] = 500;
bys[1] = 40;
bt[2] = 1;
bx[2] = 500;
by[2] = -400;
bxs[2] = 500;
bys[2] = 40;
bt[3] = 1;
bx[3] = 500;
by[3] = -320;
bxs[3] = 100;
bys[3] = 120;
blockcount();
gotoAndPlay (100);
Frame 894
clearstage();
f = 394;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 1140;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 600;
by[1] = -40;
bxs[1] = 600;
bys[1] = 40;
bt[2] = 1;
bx[2] = 600;
by[2] = -400;
bxs[2] = 600;
bys[2] = 40;
bt[3] = 1;
bx[3] = 600;
by[3] = -300;
bxs[3] = 80;
bys[3] = 100;
blockcount();
gotoAndPlay (100);
Frame 895
clearstage();
f = 395;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 1;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
pc[2] = 119;
px[2] = 600;
py[2] = -80;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 600;
by[1] = -40;
bxs[1] = 600;
bys[1] = 40;
bt[2] = 1;
bx[2] = 600;
by[2] = -400;
bxs[2] = 600;
bys[2] = 40;
bt[3] = 1;
bx[3] = 300;
by[3] = -300;
bxs[3] = 60;
bys[3] = 100;
bt[4] = 1;
bx[4] = 900;
by[4] = -300;
bxs[4] = 60;
bys[4] = 100;
blockcount();
gotoAndPlay (100);
Frame 896
clearstage();
f = 396;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -40;
bxs[1] = 400;
bys[1] = 40;
bt[2] = 1;
bx[2] = 400;
by[2] = -400;
bxs[2] = 400;
bys[2] = 40;
bt[3] = 1;
bx[3] = 400;
by[3] = -300;
bxs[3] = 80;
bys[3] = 100;
blockcount();
gotoAndPlay (100);
Frame 897
clearstage();
f = 397;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -400;
bxs[1] = 60;
bys[1] = 40;
bt[2] = 1;
bx[2] = 60;
by[2] = -120;
bxs[2] = 60;
bys[2] = 120;
bt[3] = 1;
bx[3] = 140;
by[3] = -100;
bxs[3] = 60;
bys[3] = 100;
bt[4] = 1;
bx[4] = 220;
by[4] = -80;
bxs[4] = 60;
bys[4] = 80;
bt[5] = 1;
bx[5] = 300;
by[5] = -60;
bxs[5] = 60;
bys[5] = 60;
bt[6] = 1;
bx[6] = 440;
by[6] = -40;
bxs[6] = 120;
bys[6] = 40;
blockcount();
gotoAndPlay (100);
Frame 898
clearstage();
f = 398;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -120;
bxs[1] = 100;
bys[1] = 120;
bt[2] = 1;
bx[2] = 500;
by[2] = -40;
bxs[2] = 500;
bys[2] = 40;
bt[3] = 60;
bx[3] = 80;
by[3] = -80;
bxs[3] = 60;
bys[3] = 40;
bf[3] = 391;
bt1[3] = 0;
bt2[3] = 6;
bt3[3] = 0;
bt[4] = 60;
bx[4] = 600;
by[4] = -80;
bxs[4] = 60;
bys[4] = 40;
bf[4] = 391;
bt1[4] = 0;
bt2[4] = 6;
bt3[4] = 0;
blockcount();
gotoAndPlay (100);
Frame 899
clearstage();
f = 399;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
fstages = 1;
lbsetupa();
bt[1] = 9;
bx[1] = 460;
by[1] = -320;
bxs[1] = 60;
bys[1] = 120;
bt[2] = 1;
bx[2] = 300;
by[2] = -100;
bxs[2] = 100;
bys[2] = 60;
bt[3] = 1;
bx[3] = 460;
by[3] = -140;
bxs[3] = 100;
bys[3] = 100;
bt[4] = 8;
bx[4] = 260;
by[4] = -180;
bxs[4] = 20;
bys[4] = 20;
bf[4] = 393;
bt1[4] = 0;
bt[5] = 1;
bx[5] = 280;
by[5] = -40;
bxs[5] = 280;
bys[5] = 40;
bt[6] = 4;
bx[6] = 560;
by[6] = -220;
bxs[6] = 40;
bys[6] = 220;
bf[6] = 395;
blockcount();
gotoAndPlay (100);
Frame 921
clearstage();
f = 421;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -640;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
lbsetupa();
bt[1] = 5;
bx[1] = 140;
by[1] = -600;
bxs[1] = 140;
bys[1] = 40;
bt[2] = 5;
bx[2] = 200;
by[2] = -620;
bxs[2] = 200;
bys[2] = 20;
bt[3] = 1;
bx[3] = 80;
by[3] = -540;
bxs[3] = 40;
bys[3] = 60;
bt[4] = 1;
bx[4] = 40;
by[4] = -300;
bxs[4] = 40;
bys[4] = 300;
bt[5] = 1;
bx[5] = 80;
by[5] = -140;
bxs[5] = 40;
bys[5] = 140;
bt[6] = 1;
bx[6] = 140;
by[6] = -80;
bxs[6] = 60;
bys[6] = 80;
bt[7] = 1;
bx[7] = 360;
by[7] = -40;
bxs[7] = 200;
bys[7] = 40;
bt[8] = 5;
bx[8] = 380;
by[8] = -380;
bxs[8] = 180;
bys[8] = 20;
bt[9] = 5;
bx[9] = 440;
by[9] = -360;
bxs[9] = 120;
bys[9] = 40;
bt[10] = 5;
bx[10] = 520;
by[10] = -360;
bxs[10] = 40;
bys[10] = 160;
blockcount();
gotoAndPlay (100);
Frame 922
clearstage();
f = 422;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -600;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
pc[2] = 119;
px[2] = 540;
py[2] = -480;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 200;
by[1] = -760;
bxs[1] = 200;
bys[1] = 40;
bt[2] = 1;
bx[2] = 180;
by[2] = -560;
bxs[2] = 180;
bys[2] = 40;
bt[3] = 1;
bx[3] = 40;
by[3] = -280;
bxs[3] = 40;
bys[3] = 280;
bt[4] = 5;
bx[4] = 120;
by[4] = -300;
bxs[4] = 120;
bys[4] = 20;
bt[5] = 3;
bx[5] = 80;
by[5] = -420;
bxs[5] = 40;
bys[5] = 100;
bt[6] = 5;
bx[6] = 460;
by[6] = -380;
bxs[6] = 60;
bys[6] = 20;
bt[7] = 5;
bx[7] = 520;
by[7] = -240;
bxs[7] = 40;
bys[7] = 240;
bt[8] = 3;
bx[8] = 480;
by[8] = -280;
bxs[8] = 40;
bys[8] = 80;
bt[9] = 5;
bx[9] = 440;
by[9] = -100;
bxs[9] = 80;
bys[9] = 100;
bt[10] = 5;
bx[10] = 280;
by[10] = -60;
bxs[10] = 120;
bys[10] = 60;
blockcount();
gotoAndPlay (100);
Frame 923
clearstage();
f = 423;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 120;
py[1] = -400;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
lbsetupa();
bt[1] = 1;
bx[1] = 40;
by[1] = -560;
bxs[1] = 40;
bys[1] = 240;
bt[2] = 1;
bx[2] = 80;
by[2] = -200;
bxs[2] = 80;
bys[2] = 200;
bt[3] = 1;
bx[3] = 300;
by[3] = -40;
bxs[3] = 300;
bys[3] = 40;
bt[4] = 1;
bx[4] = 340;
by[4] = -100;
bxs[4] = 60;
bys[4] = 60;
bt[5] = 1;
bx[5] = 540;
by[5] = -240;
bxs[5] = 20;
bys[5] = 40;
bt[6] = 1;
bx[6] = 280;
by[6] = -700;
bxs[6] = 120;
bys[6] = 80;
bt[7] = 1;
bx[7] = 340;
by[7] = -580;
bxs[7] = 100;
bys[7] = 220;
bt[8] = 1;
bx[8] = 360;
by[8] = -340;
bxs[8] = 40;
bys[8] = 60;
blockcount();
gotoAndPlay (100);
Frame 924
clearstage();
f = 424;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -280;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 123;
px[2] = 600;
py[2] = -360;
plr[2] = 1;
pc[3] = 123;
px[3] = 800;
py[3] = -380;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 300;
by[1] = -420;
bxs[1] = 300;
bys[1] = 40;
bt[2] = 1;
bx[2] = 80;
by[2] = -140;
bxs[2] = 80;
bys[2] = 140;
bt[3] = 5;
bx[3] = 220;
by[3] = -80;
bxs[3] = 100;
bys[3] = 80;
bt[4] = 5;
bx[4] = 420;
by[4] = -80;
bxs[4] = 40;
bys[4] = 80;
bt[5] = 5;
bx[5] = 800;
by[5] = -80;
bxs[5] = 200;
bys[5] = 80;
bt[6] = 1;
bx[6] = 860;
by[6] = -160;
bxs[6] = 140;
bys[6] = 80;
bt[7] = 3;
bx[7] = 500;
by[7] = -60;
bxs[7] = 500;
bys[7] = 60;
bt[8] = 72;
bx[8] = 360;
by[8] = 0;
bxs[8] = 40;
bys[8] = 80;
bf[8] = 421;
bt1[8] = 0;
bt2[8] = 4;
bt3[8] = 50;
bt[9] = 73;
bx[9] = 540;
by[9] = -200;
bxs[9] = 40;
bys[9] = 80;
bf[9] = 421;
bt1[9] = 0;
bt2[9] = 4;
bt3[9] = 50;
blockcount();
gotoAndPlay (100);
Frame 925
clearstage();
f = 425;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -120;
bxs[1] = 80;
bys[1] = 120;
bt[2] = 3;
bx[2] = 400;
by[2] = -60;
bxs[2] = 400;
bys[2] = 60;
bt[3] = 20;
bx[3] = 800;
by[3] = -140;
bxs[3] = 100;
bys[3] = 20;
bf[3] = 422;
bt1[3] = 0;
bt2[3] = 2;
bt3[3] = 0;
bt[4] = 20;
bx[4] = 300;
by[4] = -140;
bxs[4] = 100;
bys[4] = 20;
bf[4] = 422;
bt1[4] = 0;
bt2[4] = 2;
bt3[4] = 0;
bt[5] = 72;
bx[5] = 360;
by[5] = 0;
bxs[5] = 40;
bys[5] = 80;
bf[5] = 421;
bt1[5] = 0;
bt2[5] = 4;
bt3[5] = 50;
blockcount();
gotoAndPlay (100);
Frame 951
clearstage();
f = 451;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -280;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
bt[1] = 5;
bx[1] = 40;
by[1] = -140;
bxs[1] = 40;
bys[1] = 140;
bt[2] = 5;
bx[2] = 160;
by[2] = -100;
bxs[2] = 120;
bys[2] = 100;
bt[3] = 5;
bx[3] = 400;
by[3] = -60;
bxs[3] = 160;
bys[3] = 60;
blockcount();
gotoAndPlay (100);
Frame 952
clearstage();
f = 452;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 5;
bx[1] = 100;
by[1] = -60;
bxs[1] = 100;
bys[1] = 60;
bt[2] = 5;
bx[2] = 360;
by[2] = -100;
bxs[2] = 40;
bys[2] = 100;
bt[3] = 5;
bx[3] = 560;
by[3] = -100;
bxs[3] = 40;
bys[3] = 100;
bt[4] = 5;
bx[4] = 740;
by[4] = -120;
bxs[4] = 60;
bys[4] = 120;
blockcount();
gotoAndPlay (100);
Frame 953
clearstage();
f = 453;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 5;
bx[1] = 80;
by[1] = -120;
bxs[1] = 80;
bys[1] = 120;
bt[2] = 5;
bx[2] = 300;
by[2] = -80;
bxs[2] = 180;
bys[2] = 80;
bt[3] = 5;
bx[3] = 300;
by[3] = -120;
bxs[3] = 20;
bys[3] = 120;
bt[4] = 5;
bx[4] = 520;
by[4] = -120;
bxs[4] = 80;
bys[4] = 120;
bt[5] = 5;
bx[5] = 680;
by[5] = -60;
bxs[5] = 120;
bys[5] = 60;
bt[6] = 3;
bx[6] = 300;
by[6] = -160;
bxs[6] = 180;
bys[6] = 40;
blockcount();
gotoAndPlay (100);
Frame 954
clearstage();
f = 454;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 5;
bx[1] = 120;
by[1] = -60;
bxs[1] = 120;
bys[1] = 60;
bt[2] = 5;
bx[2] = 380;
by[2] = -100;
bxs[2] = 20;
bys[2] = 100;
bt[3] = 5;
bx[3] = 500;
by[3] = -140;
bxs[3] = 20;
bys[3] = 140;
bt[4] = 5;
bx[4] = 700;
by[4] = -100;
bxs[4] = 100;
bys[4] = 100;
blockcount();
gotoAndPlay (100);
Frame 981
clearstage();
f = 481;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 113;
px[2] = 360;
py[2] = -160;
plr[2] = 1;
pc[3] = 117;
px[3] = 600;
py[3] = -80;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 500;
by[1] = -40;
bxs[1] = 500;
bys[1] = 40;
bt[2] = 1;
bx[2] = 400;
by[2] = -80;
bxs[2] = 160;
bys[2] = 40;
bt[3] = 1;
bx[3] = 400;
by[3] = -120;
bxs[3] = 80;
bys[3] = 40;
bt[4] = 1;
bx[4] = 420;
by[4] = -180;
bxs[4] = 20;
bys[4] = 60;
bt[5] = 1;
bx[5] = 660;
by[5] = -140;
bxs[5] = 20;
bys[5] = 100;
bt[6] = 1;
bx[6] = 900;
by[6] = -80;
bxs[6] = 100;
bys[6] = 40;
bt[7] = 7;
bx[7] = 500;
by[7] = -340;
bxs[7] = 600;
bys[7] = 100;
bt1[7] = -2;
bt2[7] = 0;
blockcount();
gotoAndPlay (100);
Frame 982
clearstage();
f = 482;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
pc[2] = 113;
px[2] = 700;
py[2] = -240;
plr[2] = 1;
pc[3] = 123;
px[3] = 800;
py[3] = -380;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 120;
by[1] = -80;
bxs[1] = 120;
bys[1] = 40;
bt[2] = 1;
bx[2] = 500;
by[2] = -40;
bxs[2] = 500;
bys[2] = 40;
bt[3] = 1;
bx[3] = 380;
by[3] = -140;
bxs[3] = 20;
bys[3] = 100;
bt[4] = 1;
bx[4] = 540;
by[4] = -100;
bxs[4] = 20;
bys[4] = 60;
bt[5] = 1;
bx[5] = 700;
by[5] = -140;
bxs[5] = 20;
bys[5] = 100;
bt[6] = 1;
bx[6] = 860;
by[6] = -80;
bxs[6] = 160;
bys[6] = 40;
bt[7] = 1;
bx[7] = 920;
by[7] = -100;
bxs[7] = 80;
bys[7] = 60;
bt[8] = 7;
bx[8] = 500;
by[8] = -340;
bxs[8] = 600;
bys[8] = 100;
bt1[8] = -2;
bt2[8] = 0;
blockcount();
gotoAndPlay (100);
Frame 983
clearstage();
f = 483;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 40;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -80;
bxs[1] = 100;
bys[1] = 80;
bt[2] = 1;
bx[2] = 120;
by[2] = -160;
bxs[2] = 40;
bys[2] = 40;
bt[3] = 1;
bx[3] = 360;
by[3] = -60;
bxs[3] = 200;
bys[3] = 60;
bt[4] = 1;
bx[4] = 320;
by[4] = -260;
bxs[4] = 40;
bys[4] = 180;
bt[5] = 1;
bx[5] = 320;
by[5] = -280;
bxs[5] = 80;
bys[5] = 40;
bt[6] = 1;
bx[6] = 520;
by[6] = -340;
bxs[6] = 40;
bys[6] = 140;
bt[7] = 7;
bx[7] = 280;
by[7] = -440;
bxs[7] = 300;
bys[7] = 200;
bt1[7] = -2;
bt2[7] = 0;
bt[8] = 7;
bx[8] = 280;
by[8] = -540;
bxs[8] = 300;
bys[8] = 60;
bt1[8] = -3;
bt2[8] = 0;
blockcount();
gotoAndPlay (100);
Frame 1011
clearstage();
f = 511;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 400;
by[1] = -40;
bxs[1] = 400;
bys[1] = 40;
bt[2] = 1;
bx[2] = 740;
by[2] = -220;
bxs[2] = 60;
bys[2] = 220;
bt[3] = 2;
bx[3] = 660;
by[3] = -280;
bxs[3] = 20;
bys[3] = 200;
blockcount();
gotoAndPlay (100);
Frame 1012
clearstage();
f = 512;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 160;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 460;
by[1] = -80;
bxs[1] = 340;
bys[1] = 80;
bt[2] = 2;
bx[2] = 100;
by[2] = -60;
bxs[2] = 20;
bys[2] = 100;
blockcount();
gotoAndPlay (100);
Frame 1013
clearstage();
f = 513;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 28;
bx[1] = px[1];
by[1] = py[1] - 30;
bt1[1] = 10;
bt2[1] = 17;
bt[2] = 1;
bx[2] = 120;
by[2] = -80;
bxs[2] = 120;
bys[2] = 80;
bt[3] = 1;
bx[3] = 400;
by[3] = -40;
bxs[3] = 400;
bys[3] = 40;
bt[4] = 1;
bx[4] = 440;
by[4] = -80;
bxs[4] = 80;
bys[4] = 80;
bt[5] = 1;
bx[5] = 720;
by[5] = -120;
bxs[5] = 80;
bys[5] = 120;
bt[6] = 29;
bx[6] = 440;
by[6] = -160;
bxs[6] = 40;
bys[6] = 40;
blockcount();
gotoAndPlay (100);
Frame 1041
clearstage();
f = 541;
if (pd[1] == 100) {
px[1] = 100;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
pll[1] = 1000;
pllm[1] = 1000;
ple = 1000;
plem = 1000;
helper_reset();
camxm = 560;
camym = -420;
lbsetupa();
snumber = 1;
h1 = 1;
while (h1 <= 30) {
sc[h1] = 0;
sx[h1] = -2000;
sy[h1] = 2000;
ssx[h1] = 0;
ssy[h1] = 0;
sf[h1] = 1;
sd[h1] = 0;
slr[h1] = 0;
slt1[h1] = 0;
slt2[h1] = 0;
slt3[h1] = 0;
slt3[h1] = 0;
h1++;
}
bnumbermax = 1;
bt[1] = 1;
bx[1] = 280;
by[1] = -40;
bxs[1] = 300;
bys[1] = 40;
blockcount();
gotoAndPlay (100);
Frame 1071
clearstage();
f = 571;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 200;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
pc[2] = 109;
px[2] = 1040;
py[2] = -200;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 320;
by[1] = -80;
bxs[1] = 200;
bys[1] = 80;
bt[2] = 1;
bx[2] = 1100;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 13;
bx[3] = 760;
by[3] = -80;
bxs[3] = 120;
bys[3] = 40;
bf[3] = 571;
bt1[3] = 0;
bt2[3] = 1;
bt3[3] = 40;
blockcount();
gotoAndPlay (100);
Frame 1072
clearstage();
f = 572;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1200;
camym = -420;
pc[2] = 112;
px[2] = 700;
py[2] = -20;
plr[2] = 1;
pc[3] = 120;
px[3] = 720;
py[3] = -120;
plr[3] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -80;
bxs[1] = 100;
bys[1] = 80;
bt[2] = 1;
bx[2] = 1100;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 12;
bx[3] = 480;
by[3] = -40;
bxs[3] = 120;
bys[3] = 40;
bf[3] = 571;
bt1[3] = 0;
bt2[3] = 1;
bt3[3] = 40;
bt[4] = 13;
bx[4] = 800;
by[4] = -80;
bxs[4] = 120;
bys[4] = 40;
bf[4] = 571;
bt1[4] = 0;
bt2[4] = 1;
bt3[4] = 40;
blockcount();
gotoAndPlay (100);
Frame 1101
clearstage();
f = 601;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -280;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 120;
px[2] = 720;
py[2] = -280;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -140;
bxs[1] = 80;
bys[1] = 140;
bt[2] = 1;
bx[2] = 220;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 1;
bx[3] = 560;
by[3] = -100;
bxs[3] = 80;
bys[3] = 100;
bt[4] = 1;
bx[4] = 700;
by[4] = -140;
bxs[4] = 100;
bys[4] = 140;
blockcount();
gotoAndPlay (100);
Frame 1102
clearstage();
f = 602;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -280;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 115;
px[2] = 600;
py[2] = -360;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -140;
bxs[1] = 60;
bys[1] = 140;
bt[2] = 1;
bx[2] = 400;
by[2] = -100;
bxs[2] = 80;
bys[2] = 100;
bt[3] = 1;
bx[3] = 680;
by[3] = -100;
bxs[3] = 120;
bys[3] = 100;
bt[4] = 78;
bx[4] = 520;
by[4] = -240;
bxs[4] = 40;
bys[4] = 240;
bf[4] = 601;
bt1[4] = -10;
bt2[4] = 36;
blockcount();
gotoAndPlay (100);
Frame 1103
clearstage();
f = 603;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 120;
px[2] = 360;
py[2] = -320;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -100;
bxs[1] = 80;
bys[1] = 100;
bt[2] = 1;
bx[2] = 220;
by[2] = -60;
bxs[2] = 100;
bys[2] = 60;
bt[3] = 1;
bx[3] = 360;
by[3] = -280;
bxs[3] = 40;
bys[3] = 40;
bt[4] = 1;
bx[4] = 520;
by[4] = -280;
bxs[4] = 40;
bys[4] = 40;
bt[5] = 1;
bx[5] = 500;
by[5] = -60;
bxs[5] = 60;
bys[5] = 60;
bt[6] = 1;
bx[6] = 720;
by[6] = -100;
bxs[6] = 80;
bys[6] = 100;
bt[7] = 78;
bx[7] = 600;
by[7] = -240;
bxs[7] = 40;
bys[7] = 240;
bf[7] = 601;
bt1[7] = -10;
bt2[7] = 36;
blockcount();
gotoAndPlay (100);
Frame 1104
clearstage();
f = 604;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -100;
bxs[1] = 80;
bys[1] = 100;
bt[2] = 1;
bx[2] = 300;
by[2] = -340;
bxs[2] = 60;
bys[2] = 100;
bt[3] = 1;
bx[3] = 300;
by[3] = -60;
bxs[3] = 60;
bys[3] = 60;
bt[4] = 1;
bx[4] = 520;
by[4] = -380;
bxs[4] = 80;
bys[4] = 60;
bt[5] = 1;
bx[5] = 600;
by[5] = -100;
bxs[5] = 160;
bys[5] = 100;
bt[6] = 1;
bx[6] = 760;
by[6] = -240;
bxs[6] = 40;
bys[6] = 240;
bt[7] = 2;
bx[7] = 660;
by[7] = -360;
bxs[7] = 20;
bys[7] = 80;
bt[8] = 78;
bx[8] = 200;
by[8] = -240;
bxs[8] = 40;
bys[8] = 240;
bf[8] = 601;
bt1[8] = -10;
bt2[8] = 36;
bt[9] = 78;
bx[9] = 400;
by[9] = -240;
bxs[9] = 40;
bys[9] = 240;
bf[9] = 601;
bt1[9] = -20;
bt2[9] = 36;
blockcount();
gotoAndPlay (100);
Frame 1105
clearstage();
f = 605;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 340;
py[1] = -160;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
plt2[1] = 0;
pls1[1] = 0;
pls2[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -800;
lbsetupa();
bt[1] = 1;
bx[1] = 280;
by[1] = -700;
bxs[1] = 80;
bys[1] = 100;
bt[2] = 1;
bx[2] = 520;
by[2] = -660;
bxs[2] = 40;
bys[2] = 140;
bt[3] = 1;
bx[3] = 20;
by[3] = -400;
bxs[3] = 20;
bys[3] = 40;
bt[4] = 1;
bx[4] = 520;
by[4] = -400;
bxs[4] = 40;
bys[4] = 40;
bt[5] = 1;
bx[5] = 520;
by[5] = -140;
bxs[5] = 40;
bys[5] = 140;
bt[6] = 1;
bx[6] = 280;
by[6] = -60;
bxs[6] = 80;
bys[6] = 60;
bt[7] = 1;
bx[7] = 340;
by[7] = -120;
bxs[7] = 60;
bys[7] = 40;
bt[8] = 2;
bx[8] = 420;
by[8] = -380;
bxs[8] = 20;
bys[8] = 420;
bt[9] = 78;
bx[9] = 160;
by[9] = -400;
bxs[9] = 40;
bys[9] = 400;
bf[9] = 601;
bt1[9] = -10;
bt2[9] = 84;
bt[10] = 78;
bx[10] = 280;
by[10] = -480;
bxs[10] = 280;
bys[10] = 40;
bf[10] = 602;
bt1[10] = -30;
bt2[10] = 84;
bt[11] = 78;
bx[11] = 280;
by[11] = -320;
bxs[11] = 280;
bys[11] = 40;
bf[11] = 602;
bt1[11] = -20;
bt2[11] = 84;
blockcount();
gotoAndPlay (100);
Frame 1131
clearstage();
f = 631;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -200;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 117;
px[2] = 600;
py[2] = -80;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 100;
by[1] = -100;
bxs[1] = 100;
bys[1] = 100;
bt[2] = 1;
bx[2] = 260;
by[2] = -80;
bxs[2] = 100;
bys[2] = 80;
bt[3] = 1;
bx[3] = 400;
by[3] = -40;
bxs[3] = 440;
bys[3] = 40;
bt[4] = 1;
bx[4] = 420;
by[4] = -60;
bxs[4] = 100;
bys[4] = 60;
blockcount();
gotoAndPlay (100);
Frame 1132
clearstage();
f = 632;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 200;
by[1] = -40;
bxs[1] = 200;
bys[1] = 40;
bt[2] = 1;
bx[2] = 240;
by[2] = -80;
bxs[2] = 80;
bys[2] = 40;
bt[3] = 1;
bx[3] = 680;
by[3] = -80;
bxs[3] = 120;
bys[3] = 80;
bt[4] = 1;
bx[4] = 700;
by[4] = -180;
bxs[4] = 100;
bys[4] = 60;
blockcount();
gotoAndPlay (100);
Frame 1133
clearstage();
f = 633;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -120;
bxs[1] = 80;
bys[1] = 120;
bt[2] = 1;
bx[2] = 320;
by[2] = -360;
bxs[2] = 40;
bys[2] = 40;
bt[3] = 1;
bx[3] = 460;
by[3] = -60;
bxs[3] = 100;
bys[3] = 60;
bt[4] = 1;
bx[4] = 500;
by[4] = -160;
bxs[4] = 60;
bys[4] = 80;
bt[5] = 1;
bx[5] = 520;
by[5] = -280;
bxs[5] = 40;
bys[5] = 80;
blockcount();
gotoAndPlay (100);
Frame 1134
clearstage();
f = 634;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
pc[2] = 115;
px[2] = 520;
py[2] = -220;
plr[2] = 1;
lbsetupa();
bt[1] = 1;
bx[1] = 140;
by[1] = -40;
bxs[1] = 140;
bys[1] = 40;
bt[2] = 1;
bx[2] = 320;
by[2] = -60;
bxs[2] = 80;
bys[2] = 60;
bt[3] = 1;
bx[3] = 460;
by[3] = -80;
bxs[3] = 100;
bys[3] = 80;
bt[4] = 1;
bx[4] = 720;
by[4] = -140;
bxs[4] = 80;
bys[4] = 140;
blockcount();
gotoAndPlay (100);
Frame 1145
clearstage();
f = 645;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 200;
py[1] = -80;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -160;
bxs[1] = 60;
bys[1] = 160;
bt[2] = 1;
bx[2] = 200;
by[2] = -40;
bxs[2] = 120;
bys[2] = 40;
bt[3] = 1;
bx[3] = 400;
by[3] = -280;
bxs[3] = 40;
bys[3] = 40;
bt[4] = 1;
bx[4] = 560;
by[4] = -80;
bxs[4] = 80;
bys[4] = 80;
bt[5] = 1;
bx[5] = 700;
by[5] = -120;
bxs[5] = 100;
bys[5] = 120;
blockcount();
gotoAndPlay (100);
Frame 1146
clearstage();
f = 646;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 80;
py[1] = -240;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 800;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 80;
by[1] = -120;
bxs[1] = 80;
bys[1] = 120;
bt[2] = 1;
bx[2] = 320;
by[2] = -160;
bxs[2] = 40;
bys[2] = 40;
bt[3] = 1;
bx[3] = 560;
by[3] = -360;
bxs[3] = 40;
bys[3] = 80;
bt[4] = 1;
bx[4] = 740;
by[4] = -360;
bxs[4] = 60;
bys[4] = 80;
bt[5] = 1;
bx[5] = 640;
by[5] = -80;
bxs[5] = 160;
bys[5] = 80;
blockcount();
gotoAndPlay (100);
Frame 1147
clearstage();
f = 647;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -360;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 560;
camym = -600;
lbsetupa();
bt[1] = 1;
bx[1] = 120;
by[1] = -540;
bxs[1] = 120;
bys[1] = 60;
bt[2] = 1;
bx[2] = 40;
by[2] = -180;
bxs[2] = 40;
bys[2] = 180;
bt[3] = 1;
bx[3] = 100;
by[3] = -80;
bxs[3] = 60;
bys[3] = 80;
bt[4] = 1;
bx[4] = 520;
by[4] = -360;
bxs[4] = 40;
bys[4] = 40;
bt[5] = 1;
bx[5] = 480;
by[5] = -60;
bxs[5] = 80;
bys[5] = 60;
bt[6] = 43;
bx[6] = 200;
by[6] = -140;
bxs[6] = 40;
bys[6] = 20;
bf[6] = 631;
bt1[6] = 0;
bt[7] = 43;
bx[7] = 280;
by[7] = -140;
bxs[7] = 40;
bys[7] = 20;
bf[7] = 631;
bt1[7] = 0;
blockcount();
gotoAndPlay (100);
Frame 1148
clearstage();
f = 648;
if (pd[1] == 100) {
pll[1] = 1000;
ple = 1000;
px[1] = 60;
py[1] = -120;
pxs[1] = 16;
pys[1] = 44;
pd[1] = 1;
pg[1] = 0;
plr[1] = 0;
plt1[1] = 0;
pls1[1] = 0;
pcharge = 0;
inv = 0;
pll[11] = 0;
}
helper_reset();
camxm = 1000;
camym = -420;
lbsetupa();
bt[1] = 1;
bx[1] = 60;
by[1] = -360;
bxs[1] = 60;
bys[1] = 40;
bt[2] = 1;
bx[2] = 100;
by[2] = -60;
bxs[2] = 100;
bys[2] = 60;
bt[3] = 1;
bx[3] = 200;
by[3] = -100;
bxs[3] = 40;
bys[3] = 100;
bt[4] = 1;
bx[4] = 600;
by[4] = 0;
bxs[4] = 400;
bys[4] = 40;
bt[5] = 1;
bx[5] = 920;
by[5] = -60;
bxs[5] = 80;
bys[5] = 60;
bt[6] = 43;
bx[6] = 560;
by[6] = -340;
bxs[6] = 40;
bys[6] = 20;
bf[6] = 631;
bt1[6] = 0;
blockcount();
gotoAndPlay (100);
Frame 2000
h2 = 1;
while (h2 <= 20) {
sx[h2] = -200;
sy[h2] = 200;
sd[h2] = 0;
slt1[h2] = 0;
slt2[h2] = 0;
slt3[h2] = 0;
slt4[h2] = 0;
h2++;
}
h1 = 1;
h3 = 1;
ds1.gotoAndPlay(1);
ds2.gotoAndPlay(1);
ds3.gotoAndPlay(1);
ds4.gotoAndPlay(1);
ds5.gotoAndPlay(1);
ds6.gotoAndPlay(1);
ds7.gotoAndPlay(1);
ds8.gotoAndPlay(1);
ds9.gotoAndPlay(1);
ds10.gotoAndPlay(1);
ds11.gotoAndPlay(1);
ds12.gotoAndPlay(1);
ds13.gotoAndPlay(1);
ds14.gotoAndPlay(1);
ds15.gotoAndPlay(1);
ds16.gotoAndPlay(1);
ds17.gotoAndPlay(1);
ds18.gotoAndPlay(1);
ds19.gotoAndPlay(1);
ds20.gotoAndPlay(1);
Frame 2001
if (sd[h3] < 1) {
sd[h3] = 1;
sx[h3] = px[1] - 15;
sy[h3] = py[1] - 60;
if (!(sd[h3] === 1)) {
} else {
slt1[h3] = random(180) / 30;
slt2[h3] = 7 + random(7);
slt3[h3] = 0;
}
switch (h3) {
case 1 :
ds1.gotoAndPlay(1);
break;
case 2 :
ds2.gotoAndPlay(1);
break;
case 3 :
ds3.gotoAndPlay(1);
break;
case 4 :
ds4.gotoAndPlay(1);
break;
case 5 :
ds5.gotoAndPlay(1);
break;
case 6 :
ds6.gotoAndPlay(1);
break;
case 7 :
ds7.gotoAndPlay(1);
break;
case 8 :
ds8.gotoAndPlay(1);
break;
case 9 :
ds9.gotoAndPlay(1);
break;
case 10 :
ds10.gotoAndPlay(1);
break;
case 11 :
ds11.gotoAndPlay(1);
break;
case 12 :
ds12.gotoAndPlay(1);
break;
case 13 :
ds13.gotoAndPlay(1);
break;
case 14 :
ds14.gotoAndPlay(1);
break;
case 15 :
ds15.gotoAndPlay(1);
break;
case 16 :
ds16.gotoAndPlay(1);
break;
case 17 :
ds17.gotoAndPlay(1);
break;
case 18 :
ds18.gotoAndPlay(1);
break;
case 19 :
ds19.gotoAndPlay(1);
break;
case 20 :
ds20.gotoAndPlay(1);
}
}
h2 = 1;
while (h2 <= 20) {
switch (sd[h2]) {
case 5 :
sx[h2] = -200;
sy[h2] = 200;
slt1[h2] = 0;
slt2[h2] = 0;
slt3[h2] = 0;
slt4[h2] = 0;
break;
case 1 :
sx[h2] = (px[1] - 15) + (Math.sin(slt1[h2]) * slt3[h2]);
sy[h2] = (py[1] - 60) + (Math.cos(slt1[h2]) * slt3[h2]);
slt3[h2] = slt3[h2] + slt2[h2];
if (slt3[h2] <= 640) {
break;
}
sd[h2] = 5;
}
h2++;
}
gp1._x = 280 + (px[1] - camx);
gp1._y = 240 + (py[1] - camy);
gp1.gotoAndStop(h1);
ds1._x = 280 + (sx[1] - camx);
ds1._y = 280 + (sy[1] - camy);
ds2._x = 280 + (sx[2] - camx);
ds2._y = 280 + (sy[2] - camy);
ds3._x = 280 + (sx[3] - camx);
ds3._y = 280 + (sy[3] - camy);
ds4._x = 280 + (sx[4] - camx);
ds4._y = 280 + (sy[4] - camy);
ds5._x = 280 + (sx[5] - camx);
ds5._y = 280 + (sy[5] - camy);
ds6._x = 280 + (sx[6] - camx);
ds6._y = 280 + (sy[6] - camy);
ds7._x = 280 + (sx[7] - camx);
ds7._y = 280 + (sy[7] - camy);
ds8._x = 280 + (sx[8] - camx);
ds8._y = 280 + (sy[8] - camy);
ds9._x = 280 + (sx[9] - camx);
ds9._y = 280 + (sy[9] - camy);
ds10._x = 280 + (sx[10] - camx);
ds10._y = 280 + (sy[10] - camy);
ds11._x = 280 + (sx[11] - camx);
ds11._y = 280 + (sy[11] - camy);
ds12._x = 280 + (sx[12] - camx);
ds12._y = 280 + (sy[12] - camy);
ds13._x = 280 + (sx[13] - camx);
ds13._y = 280 + (sy[13] - camy);
ds14._x = 280 + (sx[14] - camx);
ds14._y = 280 + (sy[14] - camy);
ds15._x = 280 + (sx[15] - camx);
ds15._y = 280 + (sy[15] - camy);
ds16._x = 280 + (sx[16] - camx);
ds16._y = 280 + (sy[16] - camy);
ds17._x = 280 + (sx[17] - camx);
ds17._y = 280 + (sy[17] - camy);
ds18._x = 280 + (sx[18] - camx);
ds18._y = 280 + (sy[18] - camy);
ds19._x = 280 + (sx[19] - camx);
ds19._y = 280 + (sy[19] - camy);
ds20._x = 280 + (sx[20] - camx);
ds20._y = 280 + (sy[20] - camy);
h3++;
if (h3 > 20) {
h3 = 1;
}
h1++;
if ((h1 > 50) and (plives > 0)) {
getready._x = 120;
getready._y = 80;
}
if (h1 > 80) {
if (plives > 0) {
pd[1] = 100;
plives--;
gotoAndPlay(f + 500);
} else {
gotoAndPlay (351);
}
}
Frame 2002
if (Key.isDown(46)) {
gotoAndPlay (2000);
} else {
gotoAndPlay (2001);
}
Frame 2020
h1 = 1;
player_movie_frames();
bintro.gp1._x = 280 + (px[1] - camx);
bintro.gp1._y = 280 + (py[1] - camy);
bintro.gp1.gotoAndStop(pf[1]);
Frame 2021
bintro.gotoAndStop(h1);
player_movie_frames();
bintro.gp1._x = 280 + (px[1] - camx);
bintro.gp1._y = 280 + (py[1] - camy);
bintro.gp1.gotoAndStop(pf[1]);
if (plives > 0) {
getready._x = 120;
getready._y = 80;
}
h1++;
if (h1 == 20) {
SND_Explosion3.start();
}
if (h1 > 50) {
gotoAndPlay (100);
}
Frame 2022
gotoAndPlay (2021);
Frame 2025
h1 = 1;
player_movie_frames();
py[1] = py[1] + 60;
bintro.gp1._x = 280 + (px[1] - camx);
bintro.gp1._y = 280 + (py[1] - camy);
bintro.gp1.gotoAndStop(pf[1]);
px[2] = px[2] - 116.4;
py[2] = py[2] - 150.3;
bintro.gp2._x = 280 + (px[2] - camx);
bintro.gp2._y = 280 + (py[2] - camy);
bintro.gp2.gotoAndStop(h1);
Frame 2026
bintro.gotoAndStop(h1);
player_movie_frames();
bintro.gp1._x = 280 + (px[1] - camx);
bintro.gp1._y = 280 + (py[1] - camy);
bintro.gp1.gotoAndStop(pf[1]);
bintro.gp2._x = 280 + (px[2] - camx);
bintro.gp2._y = 280 + (py[2] - camy);
bintro.gp2.gotoAndStop(h1);
h1++;
if (h1 == 4) {
SND_Explosion7.start();
}
if (h1 > 50) {
gotoAndPlay (351);
}
Frame 2027
gotoAndPlay (2026);
Symbol 4108 Button
on (release) {
pc[1] = 1;
pc[11] = 0;
pcontinues = 5;
plives = 3;
plevel = 20;
pbolts = 0;
fdiff = 40;
pmemory = 0;
bustert = 1;
cwp = 1;
wpage = 1;
wpre[1] = 0;
wpre[2] = 0;
wpre[3] = 0;
wpre[4] = 0;
wpre[5] = 0;
wpre[6] = 0;
weap1 = 0;
weap2 = 0;
weap1c = 0;
weap2c = 0;
weapt = 0;
h1 = 1;
while (h1 <= 18) {
lvlr[h1] = 0;
h1++;
}
stopAllSounds();
gotoAndPlay (351);
}
Symbol 4118 Button
on (release) {
getURL ("http://www.maelstormm.com/Games/MegamanNextRemix/RicksAdventure4Instructions.htm", "_blank");
}
Symbol 4123 Button
on (release) {
gotoAndPlay (308);
}
Symbol 4126 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/85831", "_blank");
}
Symbol 4129 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/98742", "_blank");
}
Symbol 4132 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/121614", "_blank");
}
Symbol 4135 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/161938", "_blank");
}
Symbol 4138 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/380947", "_blank");
}
Symbol 4143 Button
on (release) {
getURL ("http://www.youtube.com/watch?v=_ejJsxdY32c", "_blank");
}
Symbol 4161 Button
on (release) {
kaux = 13;
kjump = 83;
kattack = 68;
kspec1 = 69;
kspec2 = 70;
kpre1 = 49;
kpre2 = 50;
kpre3 = 51;
kcrush = 16;
kup = 38;
kdown = 40;
kleft = 37;
kright = 39;
kpause = 8;
gotoAndPlay (301);
}
Symbol 4222 Button
on (release) {
pd[1] = 100;
stopAllSounds();
gotoAndPlay (501);
}
on (rollOver) {
h3 = 100;
h4 = -1;
h5 = 3;
h6 = 3;
ssnames.gotoAndStop(2);
SS_SquareReset();
}
Symbol 4258 Button
on (rollOver) {
h3 = 100;
h4 = 0;
h5 = 5;
h6 = 3;
ssnames.gotoAndStop(16);
SS_SquareReset();
}
Symbol 4261 Button
on (rollOver) {
h3 = 100;
h4 = 5;
h5 = 5;
h6 = 4;
ssnames.gotoAndStop(21);
SS_SquareReset();
}
Symbol 4264 Button
on (rollOver) {
h3 = 100;
h4 = 7;
h5 = 2;
h6 = 5;
ssnames.gotoAndStop(22);
SS_SquareReset();
}
Symbol 4267 Button
on (rollOver) {
h3 = 100;
h4 = 3;
h5 = 3;
h6 = 5;
ssnames.gotoAndStop(23);
SS_SquareReset();
}
Symbol 4270 Button
on (rollOver) {
h3 = 100;
h4 = 5;
h5 = 4;
h6 = 5;
ssnames.gotoAndStop(24);
SS_SquareReset();
}
Symbol 4273 Button
on (release) {
pd[1] = 100;
stopAllSounds();
gotoAndPlay (531);
}
on (rollOver) {
h3 = 100;
h4 = 6;
h5 = 1;
h6 = 1;
ssnames.gotoAndStop(3);
SS_SquareReset();
}
Symbol 4276 Button
on (rollOver) {
h3 = 100;
h4 = 6;
h5 = 2;
h6 = 1;
ssnames.gotoAndStop(4);
SS_SquareReset();
}
Symbol 4279 Button
on (rollOver) {
h3 = 100;
h4 = 4;
h5 = 4;
h6 = 1;
ssnames.gotoAndStop(6);
SS_SquareReset();
}
Symbol 4284 Button
on (rollOver) {
h3 = 100;
h4 = 2;
h5 = 3;
h6 = 1;
ssnames.gotoAndStop(5);
SS_SquareReset();
}
Symbol 4287 Button
on (rollOver) {
h3 = 100;
h4 = 6;
h5 = 1;
h6 = 2;
ssnames.gotoAndStop(7);
SS_SquareReset();
}
Symbol 4290 Button
on (rollOver) {
h3 = 100;
h4 = 6;
h5 = 2;
h6 = 2;
ssnames.gotoAndStop(8);
SS_SquareReset();
}
Symbol 4293 Button
on (rollOver) {
h3 = 100;
h4 = 2;
h5 = 3;
h6 = 2;
ssnames.gotoAndStop(9);
SS_SquareReset();
}
Symbol 4296 Button
on (rollOver) {
h3 = 100;
h4 = 4;
h5 = 4;
h6 = 2;
ssnames.gotoAndStop(10);
SS_SquareReset();
}
Symbol 4299 Button
on (rollOver) {
h3 = 100;
h4 = 4;
h5 = 5;
h6 = 2;
ssnames.gotoAndStop(11);
SS_SquareReset();
}
Symbol 4302 Button
on (rollOver) {
h3 = 100;
h4 = 1;
h5 = 1;
h6 = 3;
ssnames.gotoAndStop(12);
SS_SquareReset();
}
Symbol 4305 Button
on (rollOver) {
h3 = 100;
h4 = 1;
h5 = 2;
h6 = 3;
ssnames.gotoAndStop(13);
SS_SquareReset();
}
Symbol 4308 Button
on (rollOver) {
h3 = 100;
h4 = 0;
h5 = 4;
h6 = 3;
ssnames.gotoAndStop(15);
SS_SquareReset();
}
Symbol 4311 Button
on (rollOver) {
h3 = 100;
h4 = 7;
h5 = 1;
h6 = 4;
ssnames.gotoAndStop(17);
SS_SquareReset();
}
Symbol 4314 Button
on (rollOver) {
h3 = 100;
h4 = 7;
h5 = 2;
h6 = 4;
ssnames.gotoAndStop(18);
SS_SquareReset();
}
Symbol 4317 Button
on (rollOver) {
h3 = 100;
h4 = 3;
h5 = 3;
h6 = 4;
ssnames.gotoAndStop(19);
SS_SquareReset();
}
Symbol 4320 Button
on (rollOver) {
h3 = 100;
h4 = 5;
h5 = 4;
h6 = 4;
ssnames.gotoAndStop(20);
SS_SquareReset();
}
Symbol 4354 Button
on (release) {
calc_weapon_cost();
stopAllSounds();
SND_Blip2.start();
gotoAndPlay (506);
}
Symbol 4358 Button
on (release) {
calc_weapon_cost();
SND_Blip6.start();
h1 = 1;
while (h1 <= 18) {
lvlr[h1] = 0;
h1++;
}
}
Symbol 4361 Button
on (release) {
if ((h6 < plevel) and (lvlr[1] < 3)) {
SND_Blip7.start();
lvlr[1]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 1;
}
Symbol 4364 Button
on (release) {
if (((h6 < plevel) and (plevel > 5)) and (lvlr[2] < 3)) {
SND_Blip7.start();
lvlr[2]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 2;
}
Symbol 4367 Button
on (release) {
if ((((h6 < plevel) and (plevel > 9)) and (lvlr[3] < 1)) and ((((lvlr[1] + lvlr[2]) + lvlr[4]) + lvlr[5]) > 4)) {
SND_Blip7.start();
lvlr[3]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 3;
}
Symbol 4370 Button
on (release) {
if (((h6 < plevel) and (plevel > 10)) and (lvlr[4] < 3)) {
SND_Blip7.start();
lvlr[4]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 4;
}
Symbol 4373 Button
on (release) {
if (((h6 < plevel) and (plevel > 15)) and (lvlr[5] < 3)) {
SND_Blip7.start();
lvlr[5]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 5;
}
Symbol 4376 Button
on (release) {
if (((((h6 < plevel) and (plevel > 19)) and (lvlr[6] < 1)) and ((lvlr[12] < 1) and (lvlr[18] < 1))) and (((((lvlr[1] + lvlr[2]) + lvlr[3]) + lvlr[4]) + lvlr[5]) > 9)) {
SND_Blip7.start();
lvlr[6]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 6;
}
Symbol 4379 Button
on (release) {
if ((h6 < plevel) and (lvlr[7] < 3)) {
SND_Blip7.start();
lvlr[7]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 7;
}
Symbol 4382 Button
on (release) {
if (((h6 < plevel) and (plevel > 5)) and (lvlr[8] < 3)) {
SND_Blip7.start();
lvlr[8]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 8;
}
Symbol 4385 Button
on (release) {
if ((((h6 < plevel) and (plevel > 9)) and (lvlr[9] < 1)) and ((((lvlr[7] + lvlr[8]) + lvlr[10]) + lvlr[11]) > 4)) {
SND_Blip7.start();
lvlr[9]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 9;
}
Symbol 4388 Button
on (release) {
if (((h6 < plevel) and (plevel > 10)) and (lvlr[10] < 3)) {
SND_Blip7.start();
lvlr[10]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 10;
}
Symbol 4391 Button
on (release) {
if (((h6 < plevel) and (plevel > 15)) and (lvlr[11] < 3)) {
SND_Blip7.start();
lvlr[11]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 11;
}
Symbol 4394 Button
on (release) {
if (((((h6 < plevel) and (plevel > 19)) and (lvlr[12] < 1)) and ((lvlr[6] < 1) and (lvlr[18] < 1))) and (((((lvlr[7] + lvlr[8]) + lvlr[9]) + lvlr[10]) + lvlr[11]) > 9)) {
SND_Blip7.start();
lvlr[12]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 12;
}
Symbol 4397 Button
on (release) {
if ((h6 < plevel) and (lvlr[13] < 3)) {
SND_Blip7.start();
lvlr[13]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 13;
}
Symbol 4400 Button
on (release) {
if (((h6 < plevel) and (plevel > 5)) and (lvlr[14] < 3)) {
SND_Blip7.start();
lvlr[14]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 14;
}
Symbol 4403 Button
on (release) {
if ((((h6 < plevel) and (plevel > 9)) and (lvlr[15] < 1)) and ((((lvlr[13] + lvlr[14]) + lvlr[16]) + lvlr[17]) > 4)) {
SND_Blip7.start();
lvlr[15]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 15;
}
Symbol 4406 Button
on (release) {
if (((h6 < plevel) and (plevel > 10)) and (lvlr[16] < 3)) {
SND_Blip7.start();
lvlr[16]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 16;
}
Symbol 4409 Button
on (release) {
if (((h6 < plevel) and (plevel > 15)) and (lvlr[17] < 3)) {
SND_Blip7.start();
lvlr[17]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 17;
}
Symbol 4412 Button
on (release) {
if (((((h6 < plevel) and (plevel > 19)) and (lvlr[18] < 1)) and ((lvlr[6] < 1) and (lvlr[12] < 1))) and (((((lvlr[13] + lvlr[14]) + lvlr[15]) + lvlr[16]) + lvlr[17]) > 9)) {
SND_Blip7.start();
lvlr[18]++;
} else {
SND_Blip3.start();
}
}
on (rollOver) {
h2 = 18;
}
Symbol 4415 Button
on (release) {
SND_Blip6.start();
h1 = 1;
while (h1 <= 6) {
lvlr[h1] = 0;
h1++;
}
}
Symbol 4418 Button
on (release) {
SND_Blip6.start();
h1 = 7;
while (h1 <= 12) {
lvlr[h1] = 0;
h1++;
}
}
Symbol 4421 Button
on (release) {
SND_Blip6.start();
h1 = 13;
while (h1 <= 18) {
lvlr[h1] = 0;
h1++;
}
}
Symbol 4452 Button
on (release) {
stopAllSounds();
}
Symbol 4453 Button
on (release) {
h4--;
if (h4 < 1) {
h4 = 10;
}
stereoreset();
}
Symbol 4454 Button
on (release) {
h4++;
if (h4 > 10) {
h4 = 1;
}
stereoreset();
}
Symbol 4459 Button
on (release) {
stopAllSounds();
BGM_Theme.start(0, 99);
}
Symbol 4464 Button
on (release) {
stopAllSounds();
BGM_DrLight.start(0, 99);
}
Symbol 4469 Button
on (release) {
stopAllSounds();
BGM_Upgrades.start(0, 99);
}
Symbol 4474 Button
on (release) {
stopAllSounds();
BGM_StageSelect.start(0, 99);
}
Symbol 4479 Button
on (release) {
stopAllSounds();
BGM_Intro.start(0, 99);
}
Symbol 4484 Button
on (release) {
stopAllSounds();
BGM_Boss3.start(0, 99);
}
Symbol 4496 Button
on (release) {
stopAllSounds();
gotoAndPlay (504);
}
Symbol 4519 Button
on (release) {
if (h4 == 1) {
weap1 = 21;
} else {
weap2 = 21;
}
}
Symbol 4521 Button
on (release) {
if (h4 == 1) {
weap1 = 22;
} else {
weap2 = 22;
}
}
Symbol 4523 Button
on (release) {
if (h4 == 1) {
weap1 = 23;
} else {
weap2 = 23;
}
}
Symbol 4525 Button
on (release) {
if (h4 == 1) {
weap1 = 24;
} else {
weap2 = 24;
}
}
Symbol 4527 Button
on (release) {
if (h4 == 1) {
weap1 = 25;
} else {
weap2 = 25;
}
}
Symbol 4529 Button
on (release) {
if (h4 == 1) {
weap1 = 26;
} else {
weap2 = 26;
}
}
Symbol 4531 Button
on (release) {
if (h4 == 1) {
weap1 = 27;
} else {
weap2 = 27;
}
}
Symbol 4533 Button
on (release) {
if (h4 == 1) {
weap1 = 28;
} else {
weap2 = 28;
}
}
Symbol 4535 Button
on (release) {
if (h4 == 1) {
weap1 = 29;
} else {
weap2 = 29;
}
}
Symbol 4537 Button
on (release) {
if (h4 == 1) {
weap1 = 30;
} else {
weap2 = 30;
}
}
Symbol 4539 Button
on (release) {
if (h4 == 1) {
weap1 = 31;
} else {
weap2 = 31;
}
}
Symbol 4541 Button
on (release) {
if (h4 == 1) {
weap1 = 32;
} else {
weap2 = 32;
}
}
Symbol 4543 Button
on (release) {
if (h4 == 1) {
weap1 = 33;
} else {
weap2 = 33;
}
}
Symbol 4545 Button
on (release) {
if (h4 == 1) {
weap1 = 34;
} else {
weap2 = 34;
}
}
Symbol 4554 Button
on (release) {
if (h4 == 1) {
weap1 = 35;
} else {
weap2 = 35;
}
}
Symbol 4556 Button
on (release) {
if (h4 == 1) {
weap1 = 36;
} else {
weap2 = 36;
}
}
Symbol 4558 Button
on (release) {
if (h4 == 1) {
weap1 = 37;
} else {
weap2 = 37;
}
}
Symbol 4560 Button
on (release) {
if (h4 == 1) {
weap1 = 38;
} else {
weap2 = 38;
}
}
Symbol 4562 Button
on (release) {
if (h4 == 1) {
weap1 = 39;
} else {
weap2 = 39;
}
}
Symbol 4564 Button
on (release) {
if (h4 == 1) {
weap1 = 40;
} else {
weap2 = 40;
}
}
Symbol 4566 Button
on (release) {
if (h4 == 1) {
weap1 = 41;
} else {
weap2 = 41;
}
}
Symbol 4568 Button
on (release) {
if (h4 == 1) {
weap1 = 42;
} else {
weap2 = 42;
}
}
Symbol 4570 Button
on (release) {
if (h4 == 1) {
weap1 = 43;
} else {
weap2 = 43;
}
}
Symbol 4572 Button
on (release) {
if (h4 == 1) {
weap1 = 44;
} else {
weap2 = 44;
}
}
Symbol 4574 Button
on (release) {
if (h4 == 1) {
weap1 = 45;
} else {
weap2 = 45;
}
}
Symbol 4576 Button
on (release) {
if (h4 == 1) {
weap1 = 46;
} else {
weap2 = 46;
}
}
Symbol 4578 Button
on (release) {
if (h4 == 1) {
weap1 = 47;
} else {
weap2 = 47;
}
}
Symbol 4580 Button
on (release) {
if (h4 == 1) {
weap1 = 48;
} else {
weap2 = 48;
}
}
Symbol 4582 Button
on (release) {
if (h4 == 1) {
weap1 = 49;
} else {
weap2 = 49;
}
}
Symbol 4584 Button
on (release) {
if (h4 == 1) {
weap1 = 50;
} else {
weap2 = 50;
}
}
Symbol 4616 Button
on (release) {
if (h4 == 1) {
weap1 = 51;
} else {
weap2 = 51;
}
}
Symbol 4618 Button
on (release) {
if (h4 == 1) {
weap1 = 52;
} else {
weap2 = 52;
}
}
Symbol 4620 Button
on (release) {
if (h4 == 1) {
weap1 = 53;
} else {
weap2 = 53;
}
}
Symbol 4622 Button
on (release) {
if (h4 == 1) {
weap1 = 54;
} else {
weap2 = 54;
}
}
Symbol 4624 Button
on (release) {
if (h4 == 1) {
weap1 = 55;
} else {
weap2 = 55;
}
}
Symbol 4626 Button
on (release) {
if (h4 == 1) {
weap1 = 56;
} else {
weap2 = 56;
}
}
Symbol 4628 Button
on (release) {
if (h4 == 1) {
weap1 = 57;
} else {
weap2 = 57;
}
}
Symbol 4630 Button
on (release) {
if (h4 == 1) {
weap1 = 58;
} else {
weap2 = 58;
}
}
Symbol 4632 Button
on (release) {
if (h4 == 1) {
weap1 = 59;
} else {
weap2 = 59;
}
}
Symbol 4634 Button
on (release) {
if (h4 == 1) {
weap1 = 60;
} else {
weap2 = 60;
}
}
Symbol 4636 Button
on (release) {
if (h4 == 1) {
weap1 = 61;
} else {
weap2 = 61;
}
}
Symbol 4638 Button
on (release) {
if (h4 == 1) {
weap1 = 62;
} else {
weap2 = 62;
}
}
Symbol 4640 Button
on (release) {
if (h4 == 1) {
weap1 = 63;
} else {
weap2 = 63;
}
}
Symbol 4642 Button
on (release) {
if (h4 == 1) {
weap1 = 64;
} else {
weap2 = 64;
}
}
Symbol 4644 Button
on (release) {
if (h4 == 1) {
weap1 = 65;
} else {
weap2 = 65;
}
}
Symbol 4646 Button
on (release) {
if (h4 == 1) {
weap1 = 66;
} else {
weap2 = 66;
}
}
Symbol 4648 Button
on (release) {
if (h4 == 1) {
weap1 = 67;
} else {
weap2 = 67;
}
}
Symbol 4650 Button
on (release) {
if (h4 == 1) {
weap1 = 68;
} else {
weap2 = 68;
}
}
Symbol 4652 Button
on (release) {
if (h4 == 1) {
weap1 = 69;
} else {
weap2 = 69;
}
}
Symbol 4654 Button
on (release) {
if (h4 == 1) {
weap1 = 70;
} else {
weap2 = 70;
}
}
Symbol 4656 Button
on (release) {
if (h4 == 1) {
weap1 = 71;
} else {
weap2 = 71;
}
}
Symbol 4658 Button
on (release) {
if (h4 == 1) {
weap1 = 72;
} else {
weap2 = 72;
}
}
Symbol 4660 Button
on (release) {
if (h4 == 1) {
weap1 = 73;
} else {
weap2 = 73;
}
}
Symbol 4662 Button
on (release) {
if (h4 == 1) {
weap1 = 74;
} else {
weap2 = 74;
}
}
Symbol 4667 Button
on (release) {
pc[11] = 3;
pll[11] = 0;
px[11] = px[1];
py[11] = py[1];
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
switch (pc[1]) {
case 1 :
break;
case 2 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 3 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 4 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
}
}
Symbol 4672 Button
on (release) {
pc[11] = 2;
pll[11] = 0;
px[11] = px[1];
py[11] = py[1];
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
switch (pc[1]) {
case 1 :
break;
case 2 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 3 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 4 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
}
}
Symbol 4677 Button
on (release) {
pc[11] = 1;
pll[11] = 0;
px[11] = px[1];
py[11] = py[1];
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
switch (pc[1]) {
case 1 :
break;
case 2 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 3 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 4 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
}
}
Symbol 4679 Button
on (release) {
if (h4 == 1) {
weap1 = 75;
} else {
weap2 = 75;
}
}
Symbol 4681 Button
on (release) {
if (h4 == 1) {
weap1 = 76;
} else {
weap2 = 76;
}
}
Symbol 4683 Button
on (release) {
if (h4 == 1) {
weap1 = 77;
} else {
weap2 = 77;
}
}
Symbol 4685 Button
on (release) {
if (h4 == 1) {
weap1 = 78;
} else {
weap2 = 78;
}
}
Symbol 4687 Button
on (release) {
if (h4 == 1) {
weap1 = 79;
} else {
weap2 = 79;
}
}
Symbol 4689 Button
on (release) {
if (h4 == 1) {
weap1 = 80;
} else {
weap2 = 80;
}
}
Symbol 4691 Button
on (release) {
if (h4 == 1) {
weap1 = 81;
} else {
weap2 = 81;
}
}
Symbol 4693 Button
on (release) {
if (h4 == 1) {
weap1 = 82;
} else {
weap2 = 82;
}
}
Symbol 4695 Button
on (release) {
if (h4 == 1) {
weap1 = 83;
} else {
weap2 = 83;
}
}
Symbol 4697 Button
on (release) {
if (h4 == 1) {
weap1 = 84;
} else {
weap2 = 84;
}
}
Symbol 4699 Button
on (release) {
if (h4 == 1) {
weap1 = 85;
} else {
weap2 = 85;
}
}
Symbol 4701 Button
on (release) {
if (h4 == 1) {
weap1 = 86;
} else {
weap2 = 86;
}
}
Symbol 4703 Button
on (release) {
if (h4 == 1) {
weap1 = 87;
} else {
weap2 = 87;
}
}
Symbol 4705 Button
on (release) {
if (h4 == 1) {
weap1 = 88;
} else {
weap2 = 88;
}
}
Symbol 4707 Button
on (release) {
if (h4 == 1) {
weap1 = 89;
} else {
weap2 = 89;
}
}
Symbol 4709 Button
on (release) {
if (h4 == 1) {
weap1 = 90;
} else {
weap2 = 90;
}
}
Symbol 4711 Button
on (release) {
if (h4 == 1) {
weap1 = 91;
} else {
weap2 = 91;
}
}
Symbol 4713 Button
on (release) {
if (h4 == 1) {
weap1 = 92;
} else {
weap2 = 92;
}
}
Symbol 4715 Button
on (release) {
if (h4 == 1) {
weap1 = 93;
} else {
weap2 = 93;
}
}
Symbol 4717 Button
on (release) {
if (h4 == 1) {
weap1 = 94;
} else {
weap2 = 94;
}
}
Symbol 4719 Button
on (release) {
if (h4 == 1) {
weap1 = 95;
} else {
weap2 = 95;
}
}
Symbol 4721 Button
on (release) {
if (h4 == 1) {
weap1 = 96;
} else {
weap2 = 96;
}
}
Symbol 4723 Button
on (release) {
if (h4 == 1) {
weap1 = 97;
} else {
weap2 = 97;
}
}
Symbol 4725 Button
on (release) {
if (h4 == 1) {
weap1 = 98;
} else {
weap2 = 98;
}
}
Symbol 4727 Button
on (release) {
if (h4 == 1) {
weap1 = 99;
} else {
weap2 = 99;
}
}
Symbol 4729 Button
on (release) {
if (h4 == 1) {
weap1 = 100;
} else {
weap2 = 100;
}
}
Symbol 4731 Button
on (release) {
if (h4 == 1) {
weap1 = 101;
} else {
weap2 = 101;
}
}
Symbol 4733 Button
on (release) {
if (h4 == 1) {
weap1 = 102;
} else {
weap2 = 102;
}
}
Symbol 4735 Button
on (release) {
if (h4 == 1) {
weap1 = 103;
} else {
weap2 = 103;
}
}
Symbol 4737 Button
on (release) {
if (h4 == 1) {
weap1 = 111;
} else {
weap2 = 111;
}
}
Symbol 4739 Button
on (release) {
if (h4 == 1) {
weap1 = 112;
} else {
weap2 = 112;
}
}
Symbol 4741 Button
on (release) {
if (h4 == 1) {
weap1 = 113;
} else {
weap2 = 113;
}
}
Symbol 4743 Button
on (release) {
if (h4 == 1) {
weap1 = 114;
} else {
weap2 = 114;
}
}
Symbol 4745 Button
on (release) {
if (h4 == 1) {
weap1 = 115;
} else {
weap2 = 115;
}
}
Symbol 4747 Button
on (release) {
if (h4 == 1) {
weap1 = 116;
} else {
weap2 = 116;
}
}
Symbol 4749 Button
on (release) {
if (h4 == 1) {
weap1 = 117;
} else {
weap2 = 117;
}
}
Symbol 4751 Button
on (release) {
if (h4 == 1) {
weap1 = 118;
} else {
weap2 = 118;
}
}
Symbol 4753 Button
on (release) {
if (h4 == 1) {
weap1 = 119;
} else {
weap2 = 119;
}
}
Symbol 4755 Button
on (release) {
if (h4 == 1) {
weap1 = 120;
} else {
weap2 = 120;
}
}
Symbol 4757 Button
on (release) {
if (h4 == 1) {
weap1 = 121;
} else {
weap2 = 121;
}
}
Symbol 4759 Button
on (release) {
if (h4 == 1) {
weap1 = 122;
} else {
weap2 = 122;
}
}
Symbol 4761 Button
on (release) {
if (h4 == 1) {
weap1 = 123;
} else {
weap2 = 123;
}
}
Symbol 4763 Button
on (release) {
if (h4 == 1) {
weap1 = 124;
} else {
weap2 = 124;
}
}
Symbol 4765 Button
on (release) {
if (h4 == 1) {
weap1 = 125;
} else {
weap2 = 125;
}
}
Symbol 4767 Button
on (release) {
if (h4 == 1) {
weap1 = 126;
} else {
weap2 = 126;
}
}
Symbol 4769 Button
on (release) {
if (h4 == 1) {
weap1 = 127;
} else {
weap2 = 127;
}
}
Symbol 4771 Button
on (release) {
if (h4 == 1) {
weap1 = 128;
} else {
weap2 = 128;
}
}
Symbol 4773 Button
on (release) {
if (h4 == 1) {
weap1 = 129;
} else {
weap2 = 129;
}
}
Symbol 4775 Button
on (release) {
if (h4 == 1) {
weap1 = 130;
} else {
weap2 = 130;
}
}
Symbol 4778 Button
on (release) {
bustert = 1;
}
Symbol 4781 Button
on (release) {
bustert = 2;
}
Symbol 4784 Button
on (release) {
bustert = 3;
}
Symbol 4790 Button
on (release) {
SND_Blip1.start();
gotoAndPlay (405);
}
Symbol 4793 Button
on (release) {
pc[11] = 0;
pll[11] = 0;
px[11] = -2000;
py[11] = 2000;
if (pd[1] < 31) {
pd[11] = 1;
} else {
pd[11] = 31;
plt1[11] = 0;
}
switch (pc[1]) {
case 1 :
break;
case 2 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 3 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
break;
case 4 :
pc[1] = 1;
pls1[1] = 0;
pan = 1;
if (pd[1] < 31) {
pd[1] = 1;
} else {
pd[1] = 31;
plt1[1] = 0;
}
}
}
Symbol 4798 Button
on (release) {
wpage = 1;
pm_iconreset();
}
Symbol 4803 Button
on (release) {
wpage = 2;
pm_iconreset();
}
Symbol 4808 Button
on (release) {
wpage = 3;
pm_iconreset();
}
Symbol 4813 Button
on (release) {
wpage = 4;
pm_iconreset();
}
Symbol 4818 Button
on (release) {
wpage = 5;
pm_iconreset();
}
Symbol 4823 Button
on (release) {
wpage = 6;
pm_iconreset();
}
Symbol 4828 Button
on (release) {
wpage = 7;
pm_iconreset();
}
Symbol 4833 Button
on (release) {
wpage = 8;
pm_iconreset();
}
Symbol 4838 Button
on (release) {
wpage = 9;
pm_iconreset();
}
Symbol 4843 Button
on (release) {
wpage = 11;
pm_iconreset();
}
Symbol 4848 Button
on (release) {
wpage = 12;
pm_iconreset();
}
Symbol 4853 Button
on (release) {
wpage = 10;
pm_iconreset();
}
Symbol 4858 Button
on (release) {
wpage = 13;
pm_iconreset();
}
Symbol 4859 Button
on (release) {
h4 = 1;
}
Symbol 4860 Button
on (release) {
h4 = 2;
}
Symbol 4861 Button
on (release) {
cwp = 1;
weap1 = wpre[1];
weap2 = wpre[2];
}
Symbol 4862 Button
on (release) {
cwp = 2;
weap1 = wpre[3];
weap2 = wpre[4];
}
Symbol 4863 Button
on (release) {
cwp = 3;
weap1 = wpre[5];
weap2 = wpre[6];
}
Symbol 4876 Button
on (release) {
SND_Blip1.start();
gotoAndPlay (391);
}
Symbol 4893 Button
on (release) {
stopAllSounds();
SND_Teleport3.start();
gotoAndPlay (351);
}