Frame 2
giveallweaps = 0;
if ((!introsound) || (introsound.position == 0)) {
introsound = new Sound();
introsound.attachSound("introsound");
introsound.setVolume(65);
introsound.start(0, 9999);
}
stop();
Frame 3
function declare() {
i = 0;
while (i < astarray.length) {
astarray[i].removeMovieClip();
i = i + 1;
}
i = 0;
while (i < gelarray.length) {
gelarray[i].removeMovieClip();
i = i + 1;
}
boat._visible = 1;
cannon._visible = 1;
blackborder.swapDepths(82930);
bombshell1.demo = 1;
blood.demo = 1;
bladecount = 0;
bladesgo = 0;
menupress = 0;
placeob1.removeMovieClip();
placeob2.removeMovieClip();
placeob3.removeMovieClip();
placeob4.removeMovieClip();
placeob5.removeMovieClip();
placeob6.removeMovieClip();
enemy.removeMovieClip();
astclevel = 0;
pc = 0;
lev = 0;
if (mylev) {
lev = mylev;
mylev = 0;
}
if (lev < 10) {
gamelevel = 1;
currentcan = 1;
cannonown = new Array(1, 0, 0, 0, 0, 0);
} else if (lev < 20) {
gamelevel = 2;
currentcan = 2;
cannonown = new Array(1, 1, 0, 0, 0, 0);
} else if (lev < 30) {
gamelevel = 3;
currentcan = 3;
cannonown = new Array(1, 1, 1, 0, 0, 0);
} else if (lev < 40) {
gamelevel = 4;
currentcan = 4;
cannonown = new Array(1, 1, 1, 1, 0, 0);
} else if (lev < 50) {
gamelevel = 5;
currentcan = 5;
cannonown = new Array(1, 1, 1, 1, 1, 0);
}
gameover = 0;
pausegame = 0;
fuel = 100;
shottime = 0;
gametext.removeMovieClip();
airbombcount = 0;
bombshellcount = 0;
curweap = "candles";
weapout = curweap.toUpperCase();
ammo = 999;
cometcount = 0;
blastcount = 0;
bombcount = 0;
bombsleft = 3;
babastcount = 0;
sparklercount = 0;
stats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
oldstats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
astsounds = new Array("astsound1link", "astsound2link", "astsound3link");
bombshellcols = new Array(65535, 16777215, 65280, 65535, 16774758, 16776960, 10092288, 10092441, 10092543, 6750207, 3407871, 6724095, 16764006, 16751052, 10079334, 10066431, 6750105, 6750003, 16750848, 6736998, 13434675, 16764057);
greys = new Array(8947848, 14540253, 13421772, 12303291, 11184810);
blues = new Array(6684927, 6697983, 6711039, 6724095, 6737151, 6750207);
yellows = new Array(16776960, 16777011, 16777062, 16777113, 16777164);
reds = new Array(16711680, 10027008, 13369344, 6684672, 10040115, 13382451);
oranges = new Array(16750848, 16763904, 13395456, 13408563, 16737792, 13408563);
greens = new Array(52224, 39168, 26112, 39270, 39321, 3394560);
items = new Array("airbombs", "comets", "fountains", "sparklers", "bombshells", "power", "health", "bomb", "ammo");
items2 = new Array("candles", "comets", "airbombs", "bombshells", "fountains", "glowbombs", "healthpacks");
canara = new Array();
canara.push(1);
canara.push(2);
canara.push(3);
canara.push(4);
avespeedx = 0;
wind = 0;
avespeedy = 0;
splashc = 0;
numasts = 3;
clustersize = 4;
clusterspace = 5;
score = 0;
go = 1;
deletecount = 0;
angles = new Array();
i = 0;
j = 90;
while (i <= 90) {
angles[i] = j;
i = i + 1;
j = j - 1;
}
points = 1;
pointcount = 0;
partnum = 0;
expnum = 0;
shotcount = 0;
astcount = 0;
asttrack = new Array(numasts);
attachMovie("menu", "menu", 70467);
menu._x = 650.4;
menu._y = 209.6;
boatvel = 0;
leafs = new Array();
bombs = new Array();
gravity = 5;
leafc = 0;
rainc = 0;
waterinertia = 0;
bombcount = 0;
en = 0;
eny = 0;
ens = 0;
enemyd = 2000;
gelarray = new Array();
gelcollected = 0;
menu.gelout = gelcollected;
gelc = 0;
expc = 1;
shotarray = new Array();
e = 0;
ac = 0;
enemyc = 1;
astc = 0;
astarray = new Array();
astlevels = new Array(100, 300);
enemyarray = new Array();
shiparray = new Array();
sparkcount = 0;
if (!giveallweaps) {
candles = new Array(999, 50, 85, 40, 100);
comets = new Array(0, 100, 100, 50, 100, 50);
airbombs = new Array(0, 100, 100, 60, 100, 100);
bombshells = new Array(0, 100, 100, 60, 100, 100);
fountains = new Array(0, 60, 60, 60, 60, 60);
glowbombs = new Array(0, 50);
} else {
currentcan = 4;
cannonown = new Array(1, 1, 1, 1, 1, 1);
candles = new Array(999, 50, 75, 40, 100);
comets = new Array(999, 100, 100, 100, 100, 50);
airbombs = new Array(999, 100, 100, 60, 100, 100);
bombshells = new Array(999, 100, 100, 60, 100, 100);
fountains = new Array(999, 60, 60, 60, 60, 60);
glowbombs = new Array(999, 50);
}
cannon.guntop.gotoAndStop(currentcan);
menu.cannontops.gotoAndStop(currentcan);
sparklers = new Array(0, 100, 100);
gelcollects = new Array(0, 50);
healthpacks = new Array(0, 30);
weap_arrays = new Array(candles, comets, airbombs, bombshells, fountains, glowbombs, healthpacks);
engines = new Array(50, 300);
shields = new Array(100, 30);
menu.cometsout = comets[0];
menu.airbombsout = airbombs[0];
menu.bombshellsout = bombshells[0];
menu.fountainsout = fountains[0];
menu.glowbombsout = glowbombs[0];
menu.sparklersout = sparklers[0];
menu.gelcollectout = gelcollects[0];
menu.healthout = healthpacks[0];
menu.damageout.gotoAndStop(19);
ranship = 0;
boat.boat_in.engine1.flame._x = -25.6;
boat.boat_in.engine2.flame._x = -25.6;
bulcount = 0;
ship1x = new Array(218, 218, 217, 216, 215, 214, 213, 212, 210, 209, 207, 206, 204, 203, 201, 198, 196, 193, 188, 183, 177, 169, 160, 150, 138, 125, 111, 96, 82, 69, 58, 49, 42, 38, 35, 34, 35, 37, 39, 43, 48, 55, 65, 77, 91, 105, 120, 134, 147, 158, 167, 176, 184, 191, 197, 202, 206, 211, 217, 223, 230, 238, 248, 260, 273, 288, 302, 315, 327, 336, 343, 349, 354, 359, 363, 368, 373, 378, 383, 390, 397, 406, 417, 429, 443, 458, 473, 486, 498, 510, 519, 527, 533, 537, 539, 539, 538, 535, 530, 524, 516, 506, 494, 480, 466, 451, 437, 423, 412, 402, 393, 386, 380, 375, 371, 367, 364, 361, 358, 356, 354, 352, 350, 349, 347, 346, 344, 343, 342, 341, 341, 341, 341, 342);
ship1y = new Array(-28, -12, 3, 19, 34, 48, 63, 78, 92, 107, 121, 135, 149, 163, 177, 191, 205, 219, 234, 247, 260, 273, 284, 294, 303, 309, 312, 312, 309, 303, 293, 281, 268, 254, 239, 224, 210, 195, 181, 168, 154, 142, 131, 123, 117, 115, 116, 121, 129, 139, 150, 162, 175, 187, 200, 214, 227, 241, 254, 267, 280, 292, 302, 311, 316, 317, 314, 307, 298, 286, 273, 259, 246, 232, 218, 205, 191, 177, 164, 151, 139, 127, 118, 110, 106, 105, 108, 114, 122, 132, 143, 155, 169, 183, 197, 212, 226, 241, 255, 268, 280, 290, 299, 305, 308, 309, 306, 300, 291, 279, 267, 254, 241, 227, 213, 199, 184, 169, 155, 140, 126, 111, 96, 82, 67, 53, 39, 25, 11, -3, -18, -32, -46, -61);
ship2x = new Array(1, 16, 31, 46, 60, 75, 90, 104, 118, 132, 146, 160, 173, 186, 198, 210, 222, 234, 245, 256, 265, 272, 277, 280, 280, 278, 273, 266, 258, 247, 236, 223, 210, 195, 181, 166, 151, 136, 122, 108, 94, 82, 70, 59, 50, 44, 41, 42, 46, 51, 58, 66, 75, 84, 95, 106, 118, 130, 143, 156, 169, 183, 197, 211, 225, 239, 253, 268, 283, 297, 312, 327, 342, 356, 371, 386, 400, 414, 428, 441, 454, 466, 478, 488, 498, 506, 513, 519, 525, 529, 532, 532, 531, 527, 522, 515, 507, 497, 487, 475, 461, 448, 433, 418, 403, 388, 373, 359, 344, 330, 317, 303, 291, 279, 268, 259, 252, 248, 245, 246, 248, 253, 260, 269, 279, 291, 302, 315, 327, 340, 354, 368, 382, 396, 410, 425, 439, 454, 468, 483, 497, 512, 527, 542, 556, 571, 585, 599);
ship2y = new Array(299, 299, 298, 297, 296, 294, 292, 290, 287, 283, 279, 273, 266, 259, 251, 242, 234, 224, 215, 205, 194, 181, 167, 153, 138, 123, 109, 96, 84, 74, 65, 57, 51, 46, 44, 43, 44, 47, 51, 56, 62, 68, 76, 86, 97, 111, 125, 140, 155, 168, 182, 194, 206, 217, 228, 238, 247, 255, 263, 270, 276, 283, 288, 293, 298, 302, 305, 308, 310, 312, 313, 313, 313, 313, 311, 309, 305, 301, 296, 290, 283, 275, 265, 255, 244, 232, 219, 205, 192, 178, 163, 148, 134, 119, 105, 92, 80, 69, 59, 50, 43, 37, 33, 31, 31, 31, 33, 36, 39, 43, 49, 55, 63, 71, 81, 93, 106, 120, 134, 149, 164, 178, 191, 203, 213, 223, 232, 241, 248, 255, 262, 267, 272, 277, 281, 284, 287, 290, 292, 294, 296, 296, 296, 294, 292, 289, 285, 280);
ship3x = new Array(29, 35, 42, 48, 54, 61, 67, 73, 79, 86, 92, 99, 105, 112, 119, 126, 133, 141, 149, 157, 165, 174, 183, 192, 202, 213, 224, 236, 248, 261, 274, 288, 301, 315, 328, 342, 354, 366, 377, 387, 397, 407, 416, 425, 433, 441, 449, 456, 464, 471, 477, 484, 491, 497, 503, 509, 515, 522, 528, 534, 540, 546, 551);
ship3y = new Array(-6, 6, 18, 30, 42, 54, 66, 78, 90, 102, 114, 125, 137, 149, 160, 172, 183, 195, 206, 216, 227, 237, 247, 257, 266, 275, 283, 289, 295, 300, 303, 305, 305, 303, 300, 295, 289, 282, 274, 265, 255, 245, 235, 224, 213, 201, 190, 178, 166, 154, 142, 130, 118, 106, 94, 81, 69, 56, 43, 30, 18, 5, -7);
ship4x = new Array(585, 571, 557, 543, 529, 514, 500, 486, 472, 457, 443, 428, 413, 398, 382, 365, 349, 332, 316, 299, 283, 266, 250, 234, 218, 202, 186, 169, 153, 136, 120, 104, 89, 75, 62, 51, 43, 39, 36, 35, 36, 39, 46, 55, 67, 79, 94, 110, 127, 143, 159, 174, 188, 201, 214, 226, 238, 249, 261, 274, 286, 298, 310, 322, 335, 347, 360, 373, 386, 401, 416, 430, 447, 465, 481, 496, 508, 518, 527, 533, 536, 538, 538, 536, 533, 528, 521, 511, 499, 486, 471, 454, 437, 420, 404, 389, 374, 360, 347, 334, 322, 310, 297, 284, 273, 261, 249, 237, 226, 214, 202, 191, 180, 168, 154, 141, 128, 115, 102, 89, 74, 59, 44, 28, 13, -2, -17, -33);
ship4y = new Array(-66, -58, -50, -42, -34, -27, -19, -11, -4, 4, 11, 18, 25, 32, 38, 43, 47, 52, 56, 59, 63, 66, 69, 72, 75, 77, 78, 79, 81, 83, 87, 91, 97, 106, 117, 130, 145, 162, 178, 195, 212, 228, 244, 258, 270, 280, 288, 293, 294, 292, 287, 279, 269, 258, 246, 233, 221, 210, 198, 187, 177, 166, 155, 145, 134, 124, 114, 104, 95, 87, 80, 74, 72, 72, 75, 83, 95, 108, 123, 138, 155, 171, 188, 205, 221, 237, 252, 266, 278, 289, 296, 300, 300, 298, 292, 284, 275, 265, 254, 243, 231, 220, 208, 195, 182, 169, 156, 144, 132, 121, 109, 97, 86, 75, 64, 53, 43, 32, 22, 12, 2, -7, -15, -24, -31, -39, -46, -54);
ship5x = new Array(8, 21, 35, 48, 61, 75, 88, 101, 113, 126, 138, 151, 163, 175, 187, 198, 209, 220, 230, 239, 246, 253, 258, 260, 261, 261, 257, 252, 244, 233, 222, 209, 195, 180, 166, 151, 136, 122, 109, 96, 85, 75, 68, 63, 61, 61, 63, 66, 72, 79, 87, 97, 107, 118, 129, 141, 153, 166, 178, 192, 206, 220, 234, 248, 263, 278, 292, 307, 322, 336, 351, 365, 380, 394, 407, 420, 433, 445, 457, 468, 480, 490, 500, 509, 517, 524, 529, 533, 534, 534, 532, 527, 519, 509, 498, 485, 471, 457, 443, 428, 413, 399, 385, 372, 361, 351, 343, 337, 334, 334, 335, 338, 343, 350, 358, 367, 377, 388, 399, 411, 423, 435, 448, 461, 474, 488, 501, 514, 527, 540, 554, 567, 581);
ship5y = new Array(10, 16, 22, 29, 36, 42, 49, 56, 63, 70, 77, 84, 92, 101, 109, 118, 128, 138, 149, 161, 173, 187, 201, 215, 230, 244, 259, 272, 285, 295, 304, 311, 316, 320, 321, 321, 318, 314, 309, 301, 292, 280, 267, 253, 239, 224, 209, 195, 181, 168, 156, 144, 134, 123, 114, 105, 96, 88, 81, 74, 68, 64, 60, 57, 55, 54, 53, 54, 55, 56, 58, 61, 65, 70, 76, 82, 90, 98, 107, 116, 126, 136, 146, 158, 170, 183, 197, 211, 226, 241, 255, 269, 282, 293, 302, 310, 315, 319, 321, 321, 319, 316, 310, 303, 294, 284, 271, 257, 243, 228, 213, 199, 185, 172, 159, 147, 136, 126, 116, 107, 98, 90, 82, 74, 67, 60, 53, 46, 40, 33, 27, 21, 15);
backtext.stext = "GAME START";
backtext.gotoAndPlay(2);
introsound.stop();
global_sound = new Sound();
global_sound.setVolume(60);
vol = 1;
_root.createEmptyMovieClip("bos1", 495203);
_root.createEmptyMovieClip("sob", 495204);
_root.createEmptyMovieClip("sob2", 495205);
_root.createEmptyMovieClip("sob3", 495206);
explosion_1 = new Sound(sob2);
explosion_1.attachSound("explosion_4");
explosion_2 = new Sound(sob2);
explosion_2.attachSound("explosion_2");
explosion_1.setVolume(20);
explosion_2.setVolume(30);
candle_s = new Sound();
candle_s.attachSound("candles_1");
comet_s = new Sound();
comet_s.attachSound("comets_1");
airbomb_s = new Sound();
airbomb_s.attachSound("airbombs_1");
bombshell_s = new Sound();
bombshell_s.attachSound("bombshells_1");
fountain_s = new Sound();
fountain_s.attachSound("fountains_1");
glowbomb_s = new Sound();
glowbomb_s.attachSound("glowbombs_1");
podexplode = new Sound();
podexplode.attachSound("pod_explode");
boatdamage_s = new Sound();
boatdamage_s.attachSound("boatdamage");
useweap_s = new Sound();
useweap_s.attachSound("useweap");
outofammo_s = new Sound();
outofammo_s.attachSound("outofammo");
gunfire_s = new Sound();
gunfire_s.attachSound("gunfire_1");
boss_1_sounda = new Sound(bos1);
boss_1_sounda.attachSound("boss_s_1");
boss_1_music = new Sound(sob);
boss_1_music.attachSound("boss_m_1");
wcount = 0;
itemarray = new Array();
array_weapitem = new Array("CANDLES", "COMETS", "AIRBOMBS", "BOMBSHELLS", "FOUNTAINS", "GLOWBOMBS", "GRINDER BLADES", "HEALTH", "POINTS x2");
}
function AddDropItem() {
if (random(400) == 0) {
if ((wcount % 4) == 0) {
itemtype = 7;
} else {
itemtype = 1 + random(6);
}
attachMovie("dropitem", "dropitem" + wcount, 58274 + wcount);
itemarray.push(_root["dropitem" + wcount]);
droptemp = eval ("dropitem" + wcount);
droptemp.gotoAndStop(1 + itemtype);
droptemp._x = 50 + random(530);
droptemp._xscale = 85;
droptemp._yscale = 85;
droptemp.itemtype = itemtype;
droptemp.typ = "item";
droptemp.n = wcount;
droptemp.damage = 120;
wcount = wcount + 1;
}
}
function GiveItem(itemty) {
if (curweap == "fountains") {
fountain_s.stop();
i = 0;
while (i <= 20) {
shott = eval ("shot" + i);
shott.removeMovieClip();
ft = eval ("fount" + i);
ft.removeMovieClip();
i = i + 1;
}
}
if (itemty == 0) {
candles[0] = candles[0] + 1;
} else if (itemty == 1) {
comets[0] = comets[0] + 60;
} else if (itemty == 2) {
airbombs[0] = airbombs[0] + 60;
} else if (itemty == 3) {
bombshells[0] = bombshells[0] + 60;
} else if (itemty == 4) {
fountains[0] = fountains[0] + 200;
} else if (itemty == 5) {
glowbombs[0] = glowbombs[0] + 20;
} else if (itemty == 6) {
boat.boat_in.boatblades1.gotoAndPlay(2);
boat.boat_in.boatblades2.gotoAndPlay(2);
backtext.gotoAndPlay(2);
backtext.stext = "GRINDER BLADES";
useweap_s.start();
menupress = 0;
} else if (itemty == 7) {
boat.shield.gotoAndPlay(13);
backtext.gotoAndPlay(2);
backtext.stext = "HEALTH PACK";
useweap_s.start();
menupress = 0;
} else if (itemty == 8) {
}
menu.cometsout = comets[0];
menu.airbombsout = airbombs[0];
menu.bombshellsout = bombshells[0];
menu.fountainsout = fountains[0];
menu.glowbombsout = glowbombs[0];
menu.sparklersout = sparklers[0];
menu.gelcollectout = gelcollects[0];
menu.healthout = healthpacks[0];
if (itemty <= 5) {
curweap = items2[itemty];
weapout = curweap.toUpperCase();
ammoout = weap_arrays[itemty][0];
backtext.gotoAndPlay(2);
backtext.stext = array_weapitem[itemty];
}
}
function goBeta() {
gametext.removeMovieClip();
weaps.removeMovieClip();
attachMovie("splash", "bet", 780000);
bet._x = bet._x + 360;
bet._y = bet._y + 200;
introsound = new Sound();
introsound.attachSound("introsound");
introsound.start(0, 0);
}
function ClearGame() {
gametext.removeMovieClip();
weaps.removeMovieClip();
menu.removeMovieClip();
clip.removeMovieClip();
clip2.removeMovieClip();
clip3.removeMovieClip();
blc = 0;
while (blc <= bladecount) {
paratemp = eval ("parachute" + blc);
paratemp.removeMovieClip();
bladetemp = eval ("blades2" + blc);
bladetemp.removeMovieClip();
blc = blc + 1;
}
}
function showWeap() {
attachMovie("weapons", "weaps", 900001);
weaps.gotoAndStop(gamelevel - 1);
weaps._x = 5;
weaps._y = 5;
weaps._xscale = 114;
weaps._yscale = 117;
}
function bladecol(th) {
th._x = th._x + (boatvel + wind);
if (bladesgo) {
if ((th.tim % 2) == 0) {
c = 0;
while (c < astarray.length) {
astdetection(th, astarray[c], c, 25, 80, "", 50);
c++;
}
}
th.tim = th.tim + 1;
}
}
function giveHealth(x, y, h) {
if (shields[0] < 100) {
shields[0] = shields[0] + (30 * (shields[1] / 100));
} else {
shields[0] = 100;
}
rann = random(20);
attachMovie("numberup", "numup" + rann, 83420 + rann);
_root["numup" + rann]._x = x;
_root["numup" + rann]._y = y;
_root["numup" + rann].numupin.t = "+" + (30 * (shields[1] / 100));
_root["numup" + rann].gotoAndPlay(52);
dtemp = Math.round(shields[0] / 5);
menu.damback.gotoAndPlay(2);
if (dtemp <= 0) {
dtemp = 1;
}
menu.damageout.gotoAndStop(dtemp);
}
function setColor() {
encol = new Object();
encol.ra = 5;
encol.rb = 0;
encol.ga = 5;
encol.gb = 0;
encol.ba = 5;
encol.bb = 0;
encol.aa = 100;
encol.ab = 0;
enemycol = new Color(enemy.bossin);
enemycol.setTransform(encol);
}
function posBoss(pb) {
attachMovie("boss_" + pb, "enemy", 24060);
enemy._xscale = 5;
enemy._yscale = 5;
enemy._y = 50;
enemy._x = 290;
enemy.en = 0;
enemy.eny = 0;
enemy.ens = 0;
enemy.typ = "boss";
enemy.w = 0.7;
enemy.explode = 0;
setColor();
if (pb == 1) {
placeObject(1, -50, -70, 60, 40, 520);
placeObject(2, 0, -90, 60, 40, 520);
placeObject(3, 50, -70, 60, 40, 520);
} else if (pb == 2) {
placeObject(1, -60, 20, 40, 40, 2020);
placeObject(2, 60, 20, 40, 40, 2020);
} else if (pb == 3) {
placeObject(1, -125, 0, 40, 40, 1020);
placeObject(2, -200, 0, 40, 40, 1020);
placeObject(3, -275, 0, 40, 40, 1020);
placeObject(4, 125, 0, 40, 40, 1020);
placeObject(5, 200, 0, 40, 40, 1020);
placeObject(6, 275, 0, 40, 40, 1020);
} else if (pb == 4) {
placeObject(1, -100, -30, 40, 40, 2020);
placeObject(2, 0, -100, 40, 40, 2020);
placeObject(3, 0, 100, 40, 40, 2020);
placeObject(4, 100, -30, 40, 40, 2020);
} else if (pb == 5) {
placeObject(1, -140, 20, 40, 40, 2020);
placeObject(2, -60, -160, 40, 40, 2020);
placeObject(3, 0, -200, 40, 40, 2020);
placeObject(4, 60, -160, 40, 40, 2020);
placeObject(5, 140, 20, 40, 40, 2020);
}
}
function placeObject(n, xdif, ydif, wid, hei, dam) {
attachMovie("placeob", "placeob" + n, 25041 + n);
placeob = _root["placeob" + n];
placeob.thislight = n;
placeob.par = enemy;
placeob.xdif = xdif;
placeob.ydif = ydif;
placeob.wid = wid;
placeob.hei = hei;
tempship.w = 2;
tempship.h = 2;
placeob.gelsize = 300;
placeob.explode = 0;
placeob._x = (enemy._x + enemy.en) + xdif;
placeob._y = (enemy._y + enemy.eny) + ydif;
placeob.damage = dam;
placeob.typ = "boss";
astarray.push(placeob);
}
function bigExp(gx, gy) {
ransh = random(10);
attachMovie("shield2", "shield2" + ransh, 16030 + ransh);
tempglow = _root["shield2" + ransh];
tempglow._x = gx;
tempglow._y = gy;
tempglow._xscale = 300;
tempglow._yscale = 300;
tempglow.gotoAndPlay(2);
i = 0;
while (i < 20) {
glowang = (18 * i) * 0.0174444444444444;
attachMovie("glowout", "glowout" + i, 16040 + i);
tempglow = _root["glowout" + i];
tempglow._x = gx + ((Math.sin(glowang) * 57.3248407643312) / 4);
tempglow._y = gy + ((Math.cos(glowang) * 57.3248407643312) / 4);
tempglow.x = (Math.sin(glowang) * 57.3248407643312) / 3;
tempglow.y = (Math.cos(glowang) * 57.3248407643312) / 3;
tempglow.glowin._rotation = ((18 * i) * -1) + 180;
tempglow.glowin.gotoAndStop(2);
i = i + 1;
}
}
function outOfBounds(bg) {
if (bg._y > 400) {
splash(bg._x, bg._y, 6);
bg.removeMovieClip();
}
}
function splash(spx, spy, spc) {
ransp = random(50);
attachMovie("splash2", "splash2" + ransp, 978500 + ransp);
sptemp = eval ("splash2" + ransp);
sptemp._x = spx;
sptemp._y = spy;
sptemp._xscale = 10 * spc;
sptemp._yscale = 10 * spc;
i = 0;
while (i < spc) {
duplicateMovieClip ("splashdrop", "splashdrop" + splashc, 978593 + splashc);
sptemp = eval ("splashdrop" + splashc);
sptemp._x = spx;
sptemp._y = 370 + random(40);
spc = spc * 0.85;
sptemp.x = (-spc) + random(spc * 2);
sptemp.y = ((-spc) * 2) - random(spc);
splashc = splashc + 1;
i = i + 1;
}
if (splashc > 75) {
splashc = 0;
}
}
function glowExp(gx, gy) {
ransh = random(10);
attachMovie("shield2", "shield2" + ransh, 16030 + ransh);
tempglow = _root["shield2" + ransh];
tempglow._x = gx;
tempglow._y = gy;
tempglow._xscale = 300 * (glowbombs[1] / 100);
tempglow._yscale = 300 * (glowbombs[1] / 100);
tempglow.gotoAndPlay(8);
i = 0;
while (i < 10) {
glowang = (36 * i) * 0.0174444444444444;
attachMovie("glowout", "glowout" + i, 16040 + i);
tempglow = _root["glowout" + i];
tempglow._x = gx + ((Math.sin(glowang) * 57.3248407643312) / 4);
tempglow._y = gy + ((Math.cos(glowang) * 57.3248407643312) / 4);
tempglow.x = (Math.sin(glowang) * 57.3248407643312) / (300 / glowbombs[1]);
tempglow.y = (Math.cos(glowang) * 57.3248407643312) / (300 / glowbombs[1]);
tempglow.glowin._rotation = ((36 * i) * -1) + 180;
i = i + 1;
}
}
function rotateBoat() {
if (Math.abs(boat._rotation) >= Math.abs(remote.m)) {
remote.flag = 1;
}
if (remote.x) {
boat._x = boat._x + remote.x;
cannon._x = cannon._x + remote.x;
remote.x = remote.x / 1.2;
boatvel = 0;
}
if (remote.flag) {
boat._rotation = boat._rotation - remote.r;
boat._y = boat._y - remote.b;
cannon._y = cannon._y - remote.b;
} else {
boat._rotation = boat._rotation + remote.r;
boat._y = boat._y + remote.b;
cannon._y = cannon._y + remote.b;
}
if ((boat._rotation == 0) || (boat._y < 367)) {
boat._y = 369.3;
cannon._y = 344.6;
boat._rotation = 0;
remote.removeMovieClip();
}
}
function moveItem(it, x, y) {
if (!remoteM.flag) {
remoteM.c = 0;
remoteM.flag = 1;
} else {
it._x = it._x - x;
it._y = it._y - y;
remoteM.c = remoteM.c + 1;
if (remoteM.c > 3) {
remoteM.removeMovieClip();
}
}
}
function posTrans(s, r, t, d) {
if (astcount <= r) {
if ((ac % t) == 0) {
s = "trans_ship_" + s;
attachMovie(s, ("trans_ship_" + s) + astc, 50000 + astc);
tempship = _root[("trans_ship_" + s) + astc];
astarray.push(tempship);
tempship._y = 20 + random(100);
tempship.sh = 0;
tempship.typ = 2;
tempship.en = 0;
tempship.eny = 0;
tempship.ens = 0;
tempship.w = 0.4;
tempship.h = 0.4;
tempship.gelsize = d;
tempship.damage = d;
astcount = astcount + 1;
astc = astc + 1;
}
} else if ((astarray.length == 0) && (gelarray.length == 0)) {
lev++;
levVarReset();
}
ac = ac + 1;
}
function posRanShip(s, r, t, d) {
if (ranship < t) {
if (random(1000) > r) {
ranship = ranship + 1;
s = ("ship_" + s) + "_in";
attachMovie(s, ("ship_" + s) + astc, 50000 + astc);
astarray.push(_root[("ship_" + s) + astc]);
tempship = _root[("ship_" + s) + astc];
tempship._y = -30;
tempship._x = 20 + random(700);
tempship.sh = 0;
tempship.typ = 2;
tempship.en = 0;
tempship.eny = 0;
tempship.ens = 0;
tempship.w = 1.5;
tempship.h = 1.5;
tempship.gelsize = d;
tempship.damage = d;
astc = astc + 1;
}
} else if ((astarray.length == 0) && (gelarray.length == 0)) {
lev++;
levVarReset();
}
}
function posPatternShip(s, t, m, d) {
if (ranship < t) {
if ((pc % 4) == 0) {
ranship = ranship + 1;
s = ("ship_" + s) + "_in";
attachMovie(s, ("ship_" + s) + astc, 50000 + astc);
astarray.push(_root[("ship_" + s) + astc]);
tempship = _root[("ship_" + s) + astc];
tempship.damage = d;
tempship.sh = 0;
tempship.typ = 0;
tempship.en = 0;
tempship.eny = 0;
tempship.ens = 0;
tempship.w = 1.5;
tempship.h = 1.5;
tempship.gelsize = d;
astc = astc + 1;
if (astc >= 20) {
astc = 0;
}
}
} else if ((astarray.length == 0) && (gelarray.length == 0)) {
lev++;
levVarReset();
}
pc = pc + 1;
}
function posSinShip(s, r, t, d) {
if ((random(1000) > r) && (ranship < t)) {
ranship = ranship + 1;
sca = 65 + random(50);
s = ("ship_" + s) + "_in";
attachMovie(s, ("ship_" + s) + astc, 50000 + astc);
_root[("ship_" + s) + astc].damage = 100;
astarray.push(_root[("ship_" + s) + astc]);
tempship = _root[("ship_" + s) + astc];
tempship._y = random(200);
tempship._xscale = sca;
tempship._yscale = sca;
tempship.typ = 1;
tempship.speed = 5 + random(10);
tempship.timex = 15 + random(20);
tempship.time = 0;
tempship.damage = d;
tempship.gelsize = d;
tempship.sh = 0;
tempship.en = 0;
tempship.eny = 0;
tempship.ens = 0;
tempship.w = 1.5;
tempship.h = 1.5;
astc = astc + 1;
}
}
function posAst(am, fre, spe) {
if (astcount <= am) {
if ((ac % fre) == 0) {
attachMovie("asteroid", "asteroid" + astc, 50100 + astc);
astarray.push(_root["asteroid" + astc]);
tempast = _root["asteroid" + astc];
tempast._x = 40 + random(540);
tempast._y = 0;
tempast.speed = spe * 4;
tempast.w = 4;
tempast.h = 4;
tempast.typ = "ast";
tempast.astsize = 2 + random(10);
tempast.gelsize = (tempast.astsize * 5) * _root.gamelevel;
tempast.damage = (tempast.astsize * 5) * _root.gamelevel;
astcount = astcount + 1;
astc = astc + 1;
}
} else if ((astarray.length == 0) && (gelarray.length == 0)) {
lev++;
levVarReset();
}
ac = ac + 1;
}
function posOrb(am, fre, spe, podn) {
if (astcount <= am) {
if ((ac % fre) == 0) {
attachMovie("pod_" + podn, (("pod_" + podn) + "_") + astc, 50100 + astc);
tempast = _root[(("pod_" + podn) + "_") + astc];
astarray.push(tempast);
tempast._x = 40 + random(560);
tempast._y = 0;
tempast._xscale = 20 + random(10);
tempast._yscale = tempast._xscale;
tempast.speed = spe;
tempast.w = 2;
tempast.h = 2;
tempast.typ = "pod";
tempast.gelsize = 150;
tempast.damage = 150;
astcount = astcount + 1;
astc = astc + 1;
}
} else if ((astarray.length == 0) && (gelarray.length == 0)) {
lev++;
levVarReset();
}
ac = ac + 1;
}
function moveArm(p, arm) {
arm.x = p._x - boat._x;
arm.y = p._y - boat._y;
arm.a = Math.atan2(arm.x, arm.y);
arm.atemp = arm.a * 57.2957795130823;
arm._rotation = (-arm.atemp) + 180;
}
function posGuy(gn, x, y, gdam) {
attachMovie("guy_" + gn, (("guy_" + gn) + "_") + astc, 50100 + astc);
tempast = _root[(("guy_" + gn) + "_") + astc];
astarray.push(tempast);
tempast._x = x;
tempast._y = y;
tempast._xscale = 15 + random(10);
tempast._yscale = tempast._xscale;
tempast.speed = 3;
tempast.w = 0.5;
tempast.h = 0.5;
tempast.sh = 0;
tempast.en = 0;
tempast.eny = 2;
tempast.ens = 0;
tempast.typ = "guy";
tempast.gelsize = gdam;
tempast.damage = gdam;
astcount = astcount + 1;
astc = astc + 1;
}
function findAngle() {
a = Math.atan2(cannon._xmouse, cannon._ymouse);
return(a);
}
function gooOut(goox, gooy) {
gi = 0;
while (gi < 4) {
rangoo = random(15);
attachMovie("goo", "goo" + rangoo, 39450 + rangoo);
goo = eval ("goo" + rangoo);
goo._x = goox;
goo._y = gooy;
goo.velx = -10 + random(20);
goo.vely = -10 + random(20);
gi = gi + 1;
}
}
function guyExplode(gn) {
i = 0;
mcount = 20 + random(10);
while (i < mcount) {
ranb = random(50);
duplicateMovieClip ("blood", "blood" + ranb, 39250 + ranb);
blood = eval ("blood" + ranb);
blood._x = gn._x;
blood._y = gn._y;
blood.demo = 0;
i = i + 1;
}
i = 1;
while (i < 9) {
ranb = random(50);
attachMovie("guy_1_parts", "parts" + ranb, 39200 + ranb);
parts = eval ("parts" + ranb);
parts.gotoAndStop(i);
parts._x = gn._x;
parts._y = gn._y;
i = i + 1;
}
}
function partExplode(gx, gy, bc, pa) {
i = 0;
while (i < bc) {
ranb = random(25);
duplicateMovieClip ("blood", "blood" + ranb, 39250 + ranb);
blood = eval ("blood" + ranb);
blood._x = gx;
blood._y = gy;
blood.demo = 0;
i = i + 1;
}
i = 0;
}
function partExplode2(gx, gy, bc, pa) {
i = 0;
while (i < bc) {
ranb = random(25);
attachMovie("blood2", "blood2" + ranb, 39250 + ranb);
blood = eval ("blood2" + ranb);
blood._x = gx;
blood._y = gy;
i = i + 1;
}
}
function bossExplode(bn) {
i = 0;
while (i < 5) {
ranexp = random(20);
attachMovie(("boss_" + bn) + "_parts", "parts" + ranexp, 30450 + ranexp);
tempexp = _root["parts" + ranexp];
tempexp.parts_in.gotoAndStop(1 + random(tempexp.parts_in._totalframes));
tempexp._x = enemy._x + (-10 + random(10));
tempexp._y = enemy._y + (-10 + random(10));
tempexp._xscale = 25 + random(50);
tempexp._yscale = tempexp._xscale;
i = i + 1;
}
}
function explosion3(x, y, n) {
i = 0;
while (i < n) {
ranexp = random(50);
attachMovie("debris", "debris" + ranexp, 30050 + ranexp);
tempexp = _root["debris" + ranexp];
tempexp.debris_in.gotoAndStop(1 + random(15));
tempexp._x = x + (-10 + random(10));
tempexp._y = y + (-10 + random(10));
tempexp._xscale = 10 + random(30);
tempexp._yscale = tempexp._xscale;
i = i + 1;
}
}
function explosion2(x, y) {
i = 0;
while (i < 15) {
ranexp = random(50);
attachMovie("debris", "debris" + ranexp, 30050 + ranexp);
tempexp = _root["debris" + ranexp];
tempexp.debris_in.gotoAndStop(1 + random(15));
tempexp._x = x + (-10 + random(10));
tempexp._y = y + (-10 + random(10));
tempexp._xscale = 25 + random(100);
tempexp._yscale = tempexp._xscale;
i = i + 1;
}
}
function Explosion(x, y) {
i = 0;
while (i < 10) {
if (random(10) > 5) {
attachMovie("explosion_red", "exp" + expc, 30000 + expc);
} else {
attachMovie("explosion_yellow", "exp" + expc, 30000 + expc);
}
_root["exp" + expc]._x = x + (-10 + random(10));
_root["exp" + expc]._y = y + (-10 + random(10));
_root["exp" + expc]._xscale = 50 + random(50);
_root["exp" + expc]._yscale = _root["exp" + expc]._xscale;
_root["exp" + expc]._alpha = 20 + random(50);
expc = expc + 1;
if (expc > 50) {
expc = 0;
}
i = i + 1;
}
}
function Smoke(x, y) {
attachMovie("smoke", "smoke", 314820);
smoke._x = x + (-10 + random(10));
smoke._y = y + (-10 + random(10));
smoke._alpha = 0;
i = 0;
while (i < 5) {
smokeran = random(25);
duplicateMovieClip ("smoke", "smoke" + smokeran, 314820 + smokeran);
_root["smoke" + smokeran]._x = x + (-10 + random(10));
_root["smoke" + smokeran]._y = y + (-10 + random(10));
_root["smoke" + smokeran]._xscale = 30 + random(30);
_root["smoke" + smokeran]._yscale = _root["smoke" + smokeran]._xscale;
_root["smoke" + smokeran]._alpha = 20 + random(50);
i = i + 1;
}
}
function addflames(pax, pay) {
attachMovie("flames", "smoke", 314820);
smoke._x = pax + (-10 + random(10));
smoke._y = pay + (-10 + random(10));
smoke._alpha = 0;
i = 0;
while (i < 2) {
smokeran = random(50);
duplicateMovieClip (_root.smoke, "smoke" + smokeran, 314820 + smokeran);
_root["smoke" + smokeran]._x = _root.smoke._x + (-10 + random(10));
_root["smoke" + smokeran]._y = _root.smoke._y + (-10 + random(10));
_root["smoke" + smokeran]._xscale = 30 + random(30);
_root["smoke" + smokeran]._yscale = _root["smoke" + smokeran]._xscale;
_root["smoke" + smokeran]._alpha = 20 + random(50);
i = i + 1;
}
}
function Flames(x, y) {
i = 0;
while (i < 3) {
smokeran = random(25);
attachMovie("flames", "flames" + smokeran, 314860 + smokeran);
_root["flames" + smokeran]._x = x + (-10 + random(10));
_root["flames" + smokeran]._y = y + (-10 + random(10));
_root["flames" + smokeran]._xscale = 40 + random(40);
_root["flames" + smokeran]._yscale = _root["flames" + smokeran]._xscale;
_root["flames" + smokeran]._alpha = 20 + random(50);
_root["flames" + smokeran].gotoAndStop(1 + random(2));
i = i + 1;
}
}
function boss_shot_pos(p, n) {
if (random(100) > 95) {
c = bombcount;
attachMovie("shot_" + n, (("shot_" + n) + "_") + c, 47000 + c);
bomb = _root[(("shot_" + n) + "_") + c];
astarray.push(bomb);
rgbout = enemycol.getTransform();
newrgb = new Color(bomb.shotin);
newrgb.setTransform(rgbout);
bomb.typ = "bomb";
bomb._x = p._x;
bomb._y = p._y + 45;
bombcount = bombcount + 1;
bomb.w = 2.5;
bomb.h = 2.5;
bomb.gelsize = (40 * gamelevel) + random(20);
bomb.damage = bomb.gelsize;
bomb.speed = 3 + eny;
bomb._xscale = p._xscale * 2;
bomb._yscale = p._yscale * 2;
p.gun.gotoAndPlay(2);
if ((n == 1) || (n == 4)) {
bomb.speedx = Math.sin(enemy.gun._rotation * 0.0174444444444444);
bomb.speedx = bomb.speedx * 15;
bomb.speedy = Math.cos(enemy.gun._rotation * 0.0174444444444444);
bomb.speedy = bomb.speedy * 15;
}
bomb._x = p._x - (bomb.speedx * 2);
bomb._y = (p._y + (bomb.speedy * 2)) + (100 * (p._yscale / 100));
if (bombcount > 20) {
bombcount = 0;
}
}
}
function boss_move(num) {
encol.ra = enemy._xscale * 2;
encol.rb = 0;
encol.ga = enemy._xscale * 2;
encol.gb = 0;
encol.ba = enemy._xscale * 2;
encol.bb = 0;
encol.aa = 100;
encol.ab = 0;
enemycol = new Color(enemy.bossin);
enemycol.setTransform(encol);
if (enemy._x < 20) {
if (en < 1) {
en = en + 0.5;
}
} else if (enemy._x > 580) {
if (en > -1) {
en = en - 0.5;
}
} else {
en = en + (-0.5 + Math.random());
}
enemy._x = enemy._x + (en * num);
if (enemy._y < 10) {
if (eny < 1) {
eny = eny + 0.2;
}
} else if (enemy._y > 180) {
if (eny > -1) {
eny = eny - 0.2;
}
} else {
eny = eny + (-0.5 + Math.random());
}
enemy._y = enemy._y + (eny * num);
if (enemy._xscale < 25) {
if (ens < 0.3) {
ens = ens + 0.05;
}
} else if (enemy._xscale > 35) {
if (ens > -0.3) {
ens = ens - 0.05;
}
} else {
ens = ens + ((-5 + random(10)) / 100);
}
enemy._xscale = enemy._xscale + ens;
enemy._yscale = enemy._yscale + ens;
enemy._rotation = en * num;
boss_s = eval (("boss_" + num) + "_sounda");
boss_s.setVolume(ens);
enemy.en = en;
enemy.eny = eny;
if (num == 1) {
enemy.x = enemy._x - boat._x;
enemy.y = enemy._y - boat._y;
a = Math.atan2(enemy.x, enemy.y);
atemp = a * 57.2957795130823;
enemy.gun._rotation = ((-atemp) - enemy._rotation) - 180;
}
if (num == 2) {
weak1._x = weak1._x + en;
weak1._y = weak1._y + eny;
enemy.bladesout.blades.bladesin._rotation = enemy.bladesout.blades.bladesin._rotation + (40 - (eny * 3));
enemy.bladesout.blades._yscale = eny * 6;
} else if (num == 5) {
enemy.flame1._xscale = 375 + (enemy.en * 75);
enemy.flame1._yscale = 375 + (enemy.en * 75);
enemy.flame3._xscale = 375 - (enemy.en * 75);
enemy.flame3._yscale = 375 - (enemy.en * 75);
enemy.flame2._xscale = 550 - (enemy.eny * 75);
enemy.flame2._yscale = 550 - (enemy.eny * 75);
}
if (enemy.damage <= 0) {
stats[4] = getTimer() - bosst;
enemy.explode = 1;
}
}
function changeCol(ship) {
ship.col = new Color(ship);
ship.encol = new Object();
ship.encol.ra = ship._xscale * 1.3;
ship.encol.rb = 0;
ship.encol.ga = ship._xscale * 1.3;
ship.encol.gb = 0;
ship.encol.ba = ship._xscale * 1.3;
ship.encol.bb = 0;
ship.encol.aa = 100;
ship.encol.ab = 0;
ship.col.setTransform(ship.encol);
}
function ship_move(ship, sh) {
changeCol(ship);
if (ship._x < 20) {
if (ship.en < 1) {
ship.en = ship.en + 0.5;
}
} else if (ship._x > 560) {
if (ship.en > -1) {
ship.en = ship.en - 0.5;
}
} else {
ship.en = ship.en + (-0.5 + Math.random());
}
ship._x = ship._x + (ship.en * sh);
if (ship._y < 30) {
if (ship.eny < 1) {
ship.eny = ship.eny + 0.5;
}
} else if (ship._y > 220) {
if (ship.eny > -1) {
ship.eny = ship.eny - 0.5;
}
} else {
ship.eny = ship.eny + (-0.5 + Math.random());
}
ship._y = ship._y + (ship.eny * sh);
ship._rotation = ship.en * 2;
if (sh == 5) {
ship._rotation = ship._rotation + 180;
}
if (ship._xscale < 50) {
if (ship.ens < 0.3) {
ship.ens = ship.ens + 0.5;
}
} else if (ship._xscale > 80) {
if (ship.ens > -0.3) {
ship.ens = ship.ens - 0.5;
}
} else {
ship.ens = ship.ens + ((-5 + random(10)) / 100);
}
ship._xscale = ship._xscale + ship.ens;
ship._yscale = ship._yscale + ship.ens;
if ((sh == 1) || (sh == 4)) {
ship.x = ship._x - boat._x;
ship.y = ship._y - boat._y;
a = Math.atan2(ship.x, ship.y);
atemp = a * 57.2957795130823;
ship.gun._rotation = (-atemp) + 180;
}
}
function deleteShip(ds) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == ds) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
}
function ship_pattern_move(ship, num) {
if (ship._visible && (!ship.explode)) {
if (ship.sh > ship1x.length) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == ship) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
ship.removeMovieClip();
}
if (num == 1) {
ship._x = ship1x[ship.sh];
ship._y = ship1y[ship.sh];
ship.x = ship1x[ship.sh] - ship1x[ship.sh - 1];
ship.y = ship1y[ship.sh] - ship1y[ship.sh - 1];
} else if (num == 2) {
ship._x = ship2x[ship.sh];
ship._y = ship2y[ship.sh];
ship.x = ship2x[ship.sh] - ship2x[ship.sh - 1];
ship.y = ship2y[ship.sh] - ship2y[ship.sh - 1];
} else if (num == 3) {
ship._x = ship3x[ship.sh];
ship._y = ship3y[ship.sh];
ship.x = ship3x[ship.sh] - ship3x[ship.sh - 1];
ship.y = ship3y[ship.sh] - ship3y[ship.sh - 1];
} else if (num == 4) {
ship._x = ship4x[ship.sh];
ship._y = ship4y[ship.sh];
ship.x = ship4x[ship.sh] - ship4x[ship.sh - 1];
ship.y = ship4y[ship.sh] - ship4y[ship.sh - 1];
ship.x = ship._x - boat._x;
ship.y = ship._y - boat._y;
a = Math.atan2(ship.x, ship.y);
atemp = a * 57.2957795130823;
ship.gun._rotation = ((-atemp) - ship._rotation) - 180;
} else if (num == 5) {
ship._x = ship5x[ship.sh];
ship._y = ship5y[ship.sh];
ship.x = ship5x[ship.sh] - ship5x[ship.sh - 1];
ship.y = ship5y[ship.sh] - ship5y[ship.sh - 1];
}
ship.sh = ship.sh + 1;
if (((num == 1) || (num == 3)) || (num == 5)) {
a = Math.atan2(ship.x, ship.y);
atemp = a * 57.2957795130823;
ship._rotation = -atemp;
ship.x = ship._x - boat._x;
ship.y = ship._y - boat._y;
a = Math.atan2(ship.x, ship.y);
atemp = a * 57.2957795130823;
ship.gun._rotation = ((-atemp) - ship._rotation) - 180;
}
}
}
function ship_sin_move(ship, num) {
posy = Math.sin((Math.PI/180) * (ship.time * ship.timex));
ship._x = ship._x + ship.speed;
ship._y = ship._y - (posy * 10);
if ((((ship._x > 600) || (ship._x < -20)) || (ship._y < -75)) || (ship._y > 400)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == ship) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
ship.removeMovieClip();
}
if (((num == 1) || (num == 3)) || (num == 5)) {
ship.x = ship._x - boat._x;
ship.y = ship._y - boat._y;
a = Math.atan2(ship.x, ship.y);
atemp = a * 57.2957795130823;
ship.gun._rotation = ((-atemp) - ship._rotation) - 180;
}
}
function shotLoad(p, t) {
p.shit = (Math.PI/180) * p.ang;
p.speedg._xscale = 20;
p.speedg._yscale = 20;
p.speed = 0;
p.can;
p.shotgo = 0;
p.explode = 0;
p.time = 0;
p.otherang = (Math.PI/180) * (180 - (90 + p.ang));
p.dim = Math.sin(p.otherang);
p.dist = p.blow / p.dim;
p.blastcount = 0;
p.inertia = 0;
p._rotation = p.ang;
}
function shotpos(shottemp, a, b) {
angle = findAngle();
if (((curweap != "sparklers") && (curweap != "fountains")) && (!isbomb)) {
shottemp.attachMovie("speedglowlink", "speedg", 405);
}
shottemp.a = a;
shottemp.b = b;
shotarray[shotcount] = 1;
if (shotcount == 20) {
shotcount = 1;
} else {
shotcount = shotcount + 1;
}
}
function outOfAmmo(t) {
outofammo_s.start();
backtext.stext = "OUT OF " + t;
backtext.gotoAndPlay(2);
curweap = "candles";
weapout = curweap.toUpperCase();
ammoout = weap_arrays[itemty][0];
}
function shoot(a, b) {
if (go && (!menupress)) {
if (_xmouse < 580) {
if (curweap == "candles") {
attachMovie("candlelink", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
myColorTransform = new Object();
myColorTransform.ra = 100;
myColorTransform.rb = random(255);
myColorTransform.ga = 100;
myColorTransform.gb = random(255);
myColorTransform.ba = 100;
myColorTransform.bb = random(255);
myColorTransform.aa = 100;
myColorTransform.ab = 0;
rancol = random(999999);
candcol = new Color(shottemp.candleballin.candleback);
candcol.setTransform(myColorTransform);
shotpos(shottemp, a, b);
shottemp._xscale = 15;
shottemp._yscale = 15;
shottemp.n = shotcount;
} else if (curweap == "airbombs") {
if (airbombs[0] > 0) {
attachMovie("lightinlink", "light" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.light" + shotcount);
ammo = ammo - 1;
shotpos(shottemp, a, b);
shottemp._xscale = 15;
shottemp._yscale = 15;
shottemp.n = shotcount;
menu.airbombsout = menu.airbombsout - 1;
} else {
outOfAmmo("AIRBOMBS");
}
} else if (curweap == "fountains") {
if (fountains[0] > 0) {
attachMovie("fountain", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
shottemp.c = shotcount;
fountainsound.stop();
fountainsound = new Sound(shottemp);
fountainsound.attachSound("fountainsoundlink");
fountainsound.start(100);
ammo = ammo - 1;
shotpos(shottemp, a, b);
shottemp.n = shotcount;
menu.fountainsout = menu.fountainsout - 1;
} else {
outOfAmmo("FOUNTAINS");
}
} else if (curweap == "comets") {
if (comets[0] > 0) {
attachMovie("allLink", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
shottemp.c = shotcount;
ammo = ammo - 1;
shotpos(shottemp, a, b);
shottemp._xscale = 15;
shottemp._yscale = 15;
shottemp.n = shotcount;
menu.cometsout = menu.cometsout - 1;
} else {
outOfAmmo("COMETS");
}
} else if (curweap == "bombshells") {
if (bombshells[0] > 0) {
attachMovie("bombshelluplink", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
shottemp._xscale = 15;
shottemp._yscale = 15;
ammo = ammo - 1;
shotpos(shottemp, a, b);
shottemp.n = shotcount;
menu.bombshellsout = menu.bombshellsout - 1;
} else {
outOfAmmo("BOMBSHELLS");
}
} else if (curweap == "glowbombs") {
if (glowbombs[0] > 0) {
attachMovie("glowbomb2", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
shottemp._xscale = 15;
shottemp._yscale = 15;
ammo = ammo - 1;
shotpos(shottemp, a, b);
shottemp.n = shotcount;
menu.glowbombsout = menu.glowbombsout - 1;
} else {
outOfAmmo("GLOWBOMBS");
}
} else if (ammo > 0) {
attachMovie("shotlink", "shot" + shotcount, 2000 + shotcount);
shottemp = eval ("_root.shot" + shotcount);
ammo = ammo - 1;
shotpos(shottemp);
shottemp.n = shotcount;
} else {
outOfAmmo();
}
cweap = eval ("_root." + _root.curweap);
if (curweap != "candles") {
if (cweap[0] > 0) {
cweap[0] = cweap[0] - 1;
ammoout = Math.round(cweap[0]);
cweapout = eval (("menu." + curweap) + "out");
cweapout = cweap[0];
}
}
}
}
}
function levVarReset() {
astc = 0;
gelc = 0;
ranship = 0;
astcount = 0;
pc = 0;
}
function levelReset() {
levVarReset();
menu.levSet();
backtext.gonext = 1;
backtext.gotoAndPlay(2);
stats[3] = ranship - stats[2];
stats[1] = astcount - stats[0];
k = 0;
go = 0;
while (k < stats.length) {
oldstats[k] = oldstats[k] + stats[k];
k = k + 1;
}
}
function gameOver() {
go = 0;
menu.damageout.gotoAndStop(1);
goversound = new Sound(_root);
goversound.attachSound("goversoundlink");
goversound.start();
gameover = 1;
attachMovie("gametextlink", "gametext", 18450);
gametext._x = 290;
gametext._y = 200;
gametext.finalscore = menu.gelout;
boat._visible = 0;
cannon._visible = 0;
}
function boatDamage(d, m, r, b, xb, yb, rx) {
boatdamage_s.start();
shields[0] = shields[0] - (d * (25 / shields[1]));
stats[5] = stats[5] + (d * (25 / shields[1]));
menu.damback.gotoAndPlay(2);
boat.shield.gotoAndPlay(2);
dtemp = Math.round(shields[0] / 5);
if (dtemp <= 0) {
dtemp = 1;
}
menu.damageout.gotoAndStop(dtemp);
rann = random(20);
attachMovie("numberup", "numup" + rann, 83420 + rann);
_root["numup" + rann]._x = xb;
_root["numup" + rann]._y = yb;
_root["numup" + rann].numupin.t = "-" + d;
_root["numup" + rann].gotoAndPlay(26);
attachMovie("remote", "remote", 83440);
remote.m = m;
remote.r = r;
remote.b = b;
remote.x = rx;
if (shields[0] <= 0) {
gameOver();
}
}
function dealdamage(x2, y2, dam) {
stats[6] = stats[6] + dam;
rann = random(20);
attachMovie("numberup", "numup" + rann, 83420 + rann);
_root["numup" + rann]._x = x2;
_root["numup" + rann]._y = y2;
_root["numup" + rann].numupin.t = dam;
_root["numup" + rann].gotoAndPlay(26);
menu.gelout = menu.gelout + dam;
}
function sparkOut(x, y, a) {
i = 0;
while (i < a) {
attachMovie("spark", "spark" + sparkcount, 4795 + sparkcount);
spark = eval ("spark" + sparkcount);
spark._x = x + (-5 + random(10));
spark._y = y + (-5 + random(10));
sparkcount = sparkcount + 1;
i = i + 1;
}
if (sparkcount > 50) {
sparkcount = 0;
}
}
function blastEffect(p, t) {
attachMovie("blastlink", "blast" + blastcount, 480000 + blastcount);
blast = eval ("blast" + blastcount);
blast._x = p._x;
blast._y = p._y;
blast._xscale = t;
blast._yscale = t;
blastcount = blastcount + 1;
if (blastcount > 5) {
blastcount = 0;
}
}
function Gel(x, y, s) {
attachMovie("gel", "gel" + gelc, 3650 + gelc);
gelarray.push(_root["gel" + gelc]);
tempgel = _root["gel" + gelc];
tempgel._x = x;
tempgel._y = y;
tempgel.gelsize = s;
tempgel._xscale = 20 + (s / 2);
tempgel._yscale = 20 + (s / 2);
tempgel.n = gelc;
gelc = gelc + 1;
}
function astdetection(da, db, num, x, y, t, dam) {
x1 = db._x;
y1 = db._y;
x2 = da._x;
y2 = da._y;
if (db.typ == "boss") {
x = db.wid * (db._xscale / 100);
y = db.hei * (db._yscale / 100);
if ((Math.abs(x2 - x1) < (5 + db._xscale)) && (Math.abs(y2 - y1) < (5 + db._yscale))) {
da.speed = da.speed * -1;
da.speed = da.speed / 2;
}
x1 = db._x + (db.xdif * (db._xscale / 100));
y1 = db._y + (db.ydif * (db._yscale / 100));
x2 = da._x;
y2 = da._y;
}
if ((Math.abs(x2 - x1) < x) && (Math.abs(y2 - y1) < y)) {
if (t == "boat") {
if (!db.astsize) {
db.astsize = 10;
}
boatDamage(dam, (x1 - x2) / 5, (x1 - x2) / 7, db.astsize / 2, x1, y1, 0);
db.damage = 0;
}
sran = random(10);
attachMovie("shield2", "shield2" + sran, 69300 + sran);
_root["shield2" + sran]._x = x1;
_root["shield2" + sran]._y = y1;
_root["shield2" + sran]._width = db._width * db.w;
_root["shield2" + sran]._height = db._width * db.w;
if (t == "glow") {
_root["shield2" + sran].gotoAndPlay(8);
}
blastEffect(da, 100);
da.explode = 1;
db.damage = db.damage - dam;
if (db.typ == "boss") {
db.par.damage = db.par.damage - dam;
} else if (db.typ == "guy") {
db.shotHit(da._x, da._y, dam);
} else if (db.typ == "pod") {
podexplode.start();
} else if (t == "boat") {
} else {
explosion_1.start();
}
if (db.damage <= 0) {
dealdamage(x2, y2, Math.round(db.gelsize));
db.explode = 1;
if (db.typ != "bomb") {
}
if (((db.typ == 0) || (db.typ == 1)) || (db.typ == 2)) {
stats[2] = stats[2] + 1;
} else if (db.typ == "ast") {
stats[0] = stats[0] + 1;
}
if (db.typ != "guy") {
if (db.typ != "pod") {
explosion_2.start();
}
astarray.splice(num, 1);
}
}
}
}
function shotCommon(p) {
a = findAngle();
atemp = a * 57.2957795130823;
atemp = atemp - p.a;
a = atemp / 57.2957795130823;
p.x = Math.sin(a);
p.y = Math.cos(a);
p._x = (cannon._x + (18 * p.x)) - (p.b * p.y);
p._y = (cannon._y + (18 * p.y)) + (p.b * p.x);
if (p.speed <= 20) {
p.speedg._xscale = p.speedg._xscale + (sp * 10);
p.speedg._yscale = p.speedg._yscale + (sp * 10);
p.can._yscale = p.can._yscale - (sp * 4);
menu.powerall.gotoAndStop(Math.ceil(p.speed));
p.speed = p.speed + sp;
if (p.speed > 20) {
p.speed = 21;
}
} else if (p.speed == 21) {
p.speed = 22;
menu.powerall.gotoAndPlay(20);
}
}
function shotEvent(p, t) {
if (p.shotgo == 0) {
if (t == "candles") {
weapsound = candle_s;
sp = 4 * (candles[4] / 100);
dam = candles[1] + random(20);
exps = candles[1];
} else if (t == "airbombs") {
weapsound = airbomb_s;
sp = 3 * (airbombs[4] / 100);
dam = (75 * (airbombs[1] / 100)) + random(20);
exps = airbombs[1];
} else if (t == "comets") {
weapsound = comet_s;
sp = 5 * (comets[4] / 100);
dam = (50 * (comets[1] / 100)) + random(20);
exps = comets[1];
} else if (t == "bombshells") {
weapsound = bombshell_s;
sp = 3 * (bombshells[4] / 100);
dam = (100 * (bombshells[1] / 100)) + random(20);
p._rotation = -atemp;
exps = bombshells[1];
} else if (t == "glowbombs") {
weapsound = glowbomb_s;
sp = 2;
dam = 120 + random(40);
exps = glowbombs[1];
} else {
sp = 2;
exps = 10;
}
shotCommon(p);
} else {
p.speedg.removeMovieClip();
p._visible = true;
p.time = p.time + 1;
v = -9.8 * p.time;
p.inertia = p.inertia + (wind / 5);
if (t == "candles") {
p._x = p._x + (((p.speed * (2 * (candles[2] / 100))) * p.x) + p.inertia);
p._y = p._y + (((p.speed * (2 * (candles[2] / 100))) * p.y) - (v / 10));
} else if (t == "comets") {
p._x = p._x + (((p.speed * (1.8 * (comets[2] / 100))) * p.x) + p.inertia);
p._y = p._y + (((p.speed * (1.8 * (comets[2] / 100))) * p.y) - (v / 10));
} else if (t == "airbombs") {
posy = Math.sin((Math.PI/180) * (p.time * 75));
p._x = p._x + ((((p.speed * (1.6 * (airbombs[2] / 100))) * p.x) + (posy * 5)) + p.inertia);
p._y = p._y + (((p.speed * (1.6 * (airbombs[2] / 100))) * p.y) - (v / 10));
airb = random(20);
attachMovie("lightlink", "airbomb" + airb, 6200 + airb);
_root["airbomb" + airb]._x = p._x;
_root["airbomb" + airb]._y = p._y;
_root["airbomb" + airb]._xscale = 150 * (_root.airbombs[3] / 100);
_root["airbomb" + airb]._yscale = 150 * (_root.airbombs[3] / 100);
} else if (t == "bombshells") {
p.x2 = ((p.speed * (2 * (bombshells[2] / 100))) * p.x) + p.inertia;
p.y2 = ((p.speed * (2 * (bombshells[2] / 100))) * p.y) - (v / 10);
p._x = p._x + p.x2;
p._y = p._y + p.y2;
a = Math.atan2(p.x2, p.y2);
atemp = a * 57.2957795130823;
p._rotation = -atemp;
} else if (t == "glowbombs") {
p._x = p._x + (((p.speed * 1.5) * p.x) + p.inertia);
p._y = p._y + (((p.speed * 1.5) * p.y) - (v / 10));
p._rotation = p._rotation + (p.speed * 1.5);
}
if (((p._x < -20) || (p._x > 740)) || (p._y > 400)) {
p.removeMovieClip();
}
c = 0;
while (c < astarray.length) {
if ((astarray[c].typ == "ast") || (astarray[c].typ == "bomb")) {
astdetection(p, astarray[c], c, astarray[c]._width * 2, astarray[c]._height * 2, "", dam);
} else {
astdetection(p, astarray[c], c, astarray[c]._width / 2, astarray[c]._height / 2, "", dam);
}
c++;
}
c = 0;
while (c < itemarray.length) {
if (itemarray[c]._y > 50) {
if ((Math.abs(p._x - itemarray[c]._x) < 20) && (Math.abs(p._y - itemarray[c]._y) < 20)) {
blastEffect(p, 100);
itemarray[c].damage = itemarray[c].damage - dam;
if (itemarray[c].damage <= 0) {
itemarray[c].removeMovieClip();
p.explode = 1;
podexplode.start();
}
}
}
c++;
}
}
}
bombshell1.demo = 1;
blood.demo = 1;
declare();
var set_skew = function (__skew) {
var _local4 = __skew.v;
var _local8 = __skew.h;
var _local2 = Math.sin;
var _local5 = Math.cos;
var _local3 = (Math.PI/180);
var _local11 = _local2(45 * _local3);
this._child._rotation = -45;
var _local12 = (this._rotation = ((_local8 + _local4) / 2) + 45);
var _local9 = _local8 * _local3;
var _local7 = _local4 * _local3;
var _local6 = _local2(_local12 * _local3) / _local11;
this._xscale = (100 * (_local5(_local9) + _local2(_local7))) / _local6;
this._yscale = (100 * (_local2(_local9) + _local5(_local7))) / _local6;
this.__skew = __skew;
};
var get_skew = function () {
return(this.__skew);
};
MovieClip.prototype.attachSkewClip = function (symbolID, nameo, depth, initObject) {
var _local3 = this.createEmptyMovieClip(nameo, depth);
_local3._child = _local3.attachMovie(symbolID, "_embedded", 0);
_local3.addProperty("_skew", get_skew, set_skew);
for (var _local4 in initObject) {
_local3[_local4] = initObject[_local4];
}
return(_local3);
};
var clip = this.attachSkewClip("water", "water", 4, {_x:417, _y:380});
clip._skew = {v:0, h:30};
clip._child.waterin._xscale = (600 - Math.abs(wind * 15)) / 2;
clip._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
var clip2 = this.attachSkewClip("water", "water", 3, {_x:417, _y:365});
wat_col = new Color(clip2);
wat_col.setRGB(255);
clip2._skew = {v:0, h:30};
clip2._child.waterin._xscale = (500 - Math.abs(wind * 20)) / 2;
clip2._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
var clip3 = this.attachSkewClip("water", "water", 2, {_x:417, _y:355});
wat_col = new Color(clip3);
wat_col.setRGB(6724095);
clip3._skew = {v:0, h:30};
clip3._child.waterin._xscale = (400 - Math.abs(wind * 25)) / 2;
clip3._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
nowtime = getTimer();
boat.onEnterFrame = function () {
AddDropItem();
flan = getTimer() - nowtime;
nowtime = getTimer();
a = findAngle();
a = ((a * 57.2957795130823) * -1) + 180;
_root.cannon.guntop._rotation = a;
if (go) {
if (lev == 0) {
posAst(50, 10, 1);
} else if (lev == 1) {
posRanShip(1, 995, 2, 150);
posAst(50, 20, 1);
} else if (lev == 2) {
if (astarray.length < 2) {
posTrans(1, 6, 217, 1000);
}
} else if (lev == 3) {
posRanShip(1, 995, 2, 150);
posAst(50, 20, 1.5);
} else if (lev == 4) {
posAst(50, 10, 1);
} else if (lev == 5) {
backtext.stext = "\"THE WARBLER\"";
lev_1_sound1.stop();
boss_1_music.start(0, 9999);
backtext.intro = 1;
backtext.gotoAndPlay(2);
lev = lev + 1;
} else if (lev == 6) {
} else if (lev == 7) {
bosst = getTimer();
posBoss(1);
lev = lev + 1;
} else if (lev == 8) {
} else if (lev == 9) {
gamelevel = 2;
backtext.stext = "LEVEL 1 COMPLETE";
levelReset();
} else if (lev == 10) {
posAst(75, 9, 1.3);
} else if (lev == 11) {
posRanShip(2, 995, 3, 200);
posAst(50, 20, 1.3);
} else if (lev == 12) {
if (astarray.length < 3) {
posTrans(2, 8, 217, 1000);
}
} else if (lev == 13) {
posRanShip(2, 995, 3, 200);
posAst(50, 20, 1.3);
} else if (lev == 14) {
posAst(100, 9, 1.3);
} else if (lev == 15) {
backtext.stext = "\"THE WIZKID\"";
lev_1_sound1.stop();
boss_1_music.start(0, 9999);
backtext.intro = 1;
backtext.gotoAndPlay(2);
lev = lev + 1;
} else if (lev == 16) {
} else if (lev == 17) {
bosst = getTimer();
posBoss(2);
lev = lev + 1;
} else if (lev == 18) {
} else if (lev == 19) {
gamelevel = 3;
backtext.stext = "LEVEL 2 COMPLETE";
levelReset();
} else if (lev == 20) {
posAst(100, 8, 1.6);
} else if (lev == 21) {
posRanShip(3, 995, 4, 250);
posAst(50, 20, 1.6);
} else if (lev == 22) {
if (astarray.length < 3) {
posTrans(1, 12, 217, 1000);
}
} else if (lev == 23) {
posRanShip(3, 995, 4, 250);
posAst(50, 20, 1.6);
} else if (lev == 24) {
posAst(100, 8, 1.6);
} else if (lev == 25) {
backtext.stext = "\"THE CATFISH\"";
lev_1_sound1.stop();
boss_1_music.start(0, 9999);
backtext.intro = 1;
backtext.gotoAndPlay(2);
lev = lev + 1;
} else if (lev == 26) {
} else if (lev == 27) {
bosst = getTimer();
posBoss(3);
lev = lev + 1;
} else if (lev == 28) {
} else if (lev == 29) {
gamelevel = 4;
backtext.stext = "LEVEL 3 COMPLETE";
levelReset();
} else if (lev == 30) {
posAst(125, 7, 1.9);
} else if (lev == 31) {
posRanShip(4, 995, 5, 300);
posAst(50, 20, 1.9);
} else if (lev == 32) {
if (astarray.length < 4) {
posTrans(2, 16, 217, 1000);
}
} else if (lev == 33) {
posRanShip(4, 995, 5, 300);
posAst(50, 20, 1.9);
} else if (lev == 34) {
posAst(125, 7, 1.9);
} else if (lev == 35) {
backtext.stext = "\"THE PROFESSOR\"";
lev_1_sound1.stop();
boss_1_music.start(0, 9999);
backtext.intro = 1;
backtext.gotoAndPlay(2);
lev = lev + 1;
} else if (lev == 36) {
} else if (lev == 37) {
bosst = getTimer();
posBoss(4);
lev = lev + 1;
} else if (lev == 38) {
} else if (lev == 39) {
gamelevel = 5;
backtext.stext = "LEVEL 4 COMPLETE";
levelReset();
} else if (lev == 40) {
posAst(150, 6, 2.2);
} else if (lev == 41) {
posRanShip(5, 995, 6, 350);
posAst(50, 20, 2.2);
} else if (lev == 42) {
if (astarray.length < 4) {
posTrans(1, 20, 217, 1000);
}
} else if (lev == 43) {
posRanShip(5, 995, 6, 350);
posAst(50, 20, 2.2);
} else if (lev == 44) {
posAst(150, 6, 2.2);
} else if (lev == 45) {
backtext.stext = "\"THE DEATHBRINGER\"";
lev_1_sound1.stop();
boss_1_music.start(0, 9999);
backtext.intro = 1;
backtext.gotoAndPlay(2);
lev = lev + 1;
} else if (lev == 46) {
} else if (lev == 47) {
bosst = getTimer();
posBoss(5);
lev = lev + 1;
} else if (lev == 48) {
} else if (lev == 49) {
gamelevel = 6;
backtext.stext = "LEVEL 5 COMPLETE";
levelReset();
}
c = 0;
while (c < astarray.length) {
x = 60;
y = 25;
astdetection(boat, astarray[c], c, x, y, "boat", 20);
c++;
}
dir = Math.random();
if ((dir > 0.5) && (wind < 2)) {
windchange = 0.1;
} else if ((dir <= 0.5) && (wind > -2)) {
windchange = -0.1;
} else {
windchange = 0;
}
wind = wind + windchange;
waterinertia = waterinertia + (wind / 30);
if (wind >= 0) {
menu.wind2.gotoAndStop(Math.abs(Math.round(wind * 4.5)));
menu.wind1.gotoAndStop(1);
} else {
menu.wind1.gotoAndStop(Math.abs(Math.round(wind * 4.5)));
menu.wind2.gotoAndStop(1);
}
if (Math.abs(waterinertia) > (wind * 5)) {
waterinertia = wind * 5;
}
if (clip._child.waterin.water2._x >= 85) {
clip._child.waterin.water2._x = clip._child.waterin.water2._x - 85;
} else if (clip._child.waterin.water2._x <= -85) {
clip._child.waterin.water2._x = clip._child.waterin.water2._x + 85;
} else {
clip._child.waterin.water2._x = clip._child.waterin.water2._x + (waterinertia * 0.5);
clip._skew = {v:0, h:wind * 5};
}
if (clip3._child.waterin.water2._x >= 85) {
clip2._child.waterin.water2._x = clip2._child.waterin.water2._x - 85;
} else if (clip2._child.waterin.water2._x <= -85) {
clip2._child.waterin.water2._x = clip2._child.waterin.water2._x + 85;
} else {
clip2._child.waterin.water2._x = clip2._child.waterin.water2._x + waterinertia;
clip2._skew = {v:0, h:wind * 5};
}
if (clip3._child.waterin.water2._x <= -85) {
clip3._child.waterin.water2._x = clip3._child.waterin.water2._x + 85;
} else if (clip3._child.waterin.water2._x >= 85) {
clip3._child.waterin.water2._x = clip3._child.waterin.water2._x - 85;
} else {
clip3._child.waterin.water2._x = clip3._child.waterin.water2._x + (waterinertia * 1.5);
clip3._skew = {v:0, h:wind * 5};
}
if (watback._x <= -69) {
watback._x = watback._x + 69;
} else if (watback._x >= 69) {
watback._x = watback._x - 69;
} else {
watback._x = watback._x + (waterinertia * 0.5);
}
if (Key.isDown(39) || (Key.isDown(68))) {
boatvel = boatvel + (4 * (_root.engines[0] / 100));
if (boat.boat_in.engine1.flame._currentframe == 1) {
boat.boat_in.engine1.flame.gotoAndPlay(2);
}
boat.boat_in.engine2.flame.gotoAndStop(1);
} else if (Key.isDown(37) || (Key.isDown(65))) {
boatvel = boatvel - (4 * (_root.engines[0] / 100));
menu.fuelout.gotoAndStop(Math.floor(fuel / 5));
if (boat.boat_in.engine2.flame._currentframe == 1) {
boat.boat_in.engine2.flame.gotoAndPlay(2);
}
boat.boat_in.engine1.flame.gotoAndStop(1);
} else {
if (boatvel > 0) {
boatvel = boatvel - 1;
} else {
boatvel = boatvel + 1;
}
boat.boat_in.engine1.flame.gotoAndStop(1);
boat.boat_in.engine2.flame.gotoAndStop(1);
}
if (boat._x <= 40) {
if (boatvel < 0) {
boatvel = 3;
}
} else if (boat._x >= 540) {
if (boatvel > 0) {
boatvel = -3;
}
}
boat._x = boat._x + (boatvel + wind);
cannon._x = boat._x;
windout = wind;
clip._child.waterin._xscale = (600 - Math.abs(wind * 15)) / 2;
clip._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
clip2._child.waterin._xscale = (500 - Math.abs(wind * 20)) / 2;
clip2._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
clip3._child.waterin._xscale = (400 - Math.abs(wind * 25)) / 2;
clip3._child.waterin._yscale = (100 + Math.abs(wind * 5)) / 2;
}
};
canarray = new Array();
var weapsound;
Instance of Symbol 1231 MovieClip "backplace1" in Frame 3
onClipEvent (load) {
function getbuild() {
ranb = 1 + random(10);
var _local2 = this.attachSkewClip("lev_1_b" + ranb, "build" + bcount, 1 + bcount, {_x:0, _y:95});
_local2._skew = {v:0, h:-20 + random(40)};
build = _local2._child;
build._xscale = 35 + random(50);
build._yscale = 50 + random(100);
col = new Color(this);
encol = new Object();
encol.ra = 25;
encol.rb = 0;
encol.ga = 25;
encol.gb = 0;
encol.ba = 25;
encol.bb = 0;
encol.aa = 100;
encol.ab = 0;
col.setTransform(encol);
bcount = bcount + 1;
}
var set_skew = function (__skew) {
var _local4 = __skew.v;
var _local8 = __skew.h;
var _local2 = Math.sin;
var _local5 = Math.cos;
var _local3 = (Math.PI/180);
var _local11 = _local2(45 * _local3);
this._child._rotation = -45;
var _local12 = (this._rotation = ((_local8 + _local4) / 2) + 45);
var _local9 = _local8 * _local3;
var _local7 = _local4 * _local3;
var _local6 = _local2(_local12 * _local3) / _local11;
this._xscale = (100 * (_local5(_local9) + _local2(_local7))) / _local6;
this._yscale = (100 * (_local2(_local9) + _local5(_local7))) / _local6;
this.__skew = __skew;
};
var get_skew = function () {
return(this.__skew);
};
MovieClip.prototype.attachSkewClip = function (symbolID, nameo, depth, initObject) {
var _local3 = this.createEmptyMovieClip(nameo, depth);
_local3._child = _local3.attachMovie(symbolID, "_embedded", 0);
_local3.addProperty("_skew", get_skew, set_skew);
for (var _local4 in initObject) {
_local3[_local4] = initObject[_local4];
}
return(_local3);
};
bcount = 1;
getbuild();
}
onClipEvent (enterFrame) {
_x = (_x - 1);
if (_x < (build._width / -2)) {
_x = (800 + random(100));
build.removeMovieClip();
getbuild();
}
}
Instance of Symbol 1231 MovieClip "backplace2" in Frame 3
onClipEvent (load) {
function getbuild() {
ranb = 1 + random(10);
var _local2 = this.attachSkewClip("lev_1_b" + ranb, "build" + bcount, 1 + bcount, {_x:0, _y:95});
_local2._skew = {v:0, h:-20 + random(40)};
build = _local2._child;
build._xscale = 35 + random(50);
build._yscale = 50 + random(100);
col = new Color(this);
encol = new Object();
encol.ra = 25;
encol.rb = 0;
encol.ga = 25;
encol.gb = 0;
encol.ba = 25;
encol.bb = 0;
encol.aa = 100;
encol.ab = 0;
col.setTransform(encol);
bcount = bcount + 1;
}
var set_skew = function (__skew) {
var _local4 = __skew.v;
var _local8 = __skew.h;
var _local2 = Math.sin;
var _local5 = Math.cos;
var _local3 = (Math.PI/180);
var _local11 = _local2(45 * _local3);
this._child._rotation = -45;
var _local12 = (this._rotation = ((_local8 + _local4) / 2) + 45);
var _local9 = _local8 * _local3;
var _local7 = _local4 * _local3;
var _local6 = _local2(_local12 * _local3) / _local11;
this._xscale = (100 * (_local5(_local9) + _local2(_local7))) / _local6;
this._yscale = (100 * (_local2(_local9) + _local5(_local7))) / _local6;
this.__skew = __skew;
};
var get_skew = function () {
return(this.__skew);
};
MovieClip.prototype.attachSkewClip = function (symbolID, nameo, depth, initObject) {
var _local3 = this.createEmptyMovieClip(nameo, depth);
_local3._child = _local3.attachMovie(symbolID, "_embedded", 0);
_local3.addProperty("_skew", get_skew, set_skew);
for (var _local4 in initObject) {
_local3[_local4] = initObject[_local4];
}
return(_local3);
};
bcount = 1;
getbuild();
}
onClipEvent (enterFrame) {
_x = (_x - 1);
if (_x < (build._width / -2)) {
_x = (800 + random(100));
build.removeMovieClip();
getbuild();
}
}
Instance of Symbol 1231 MovieClip "backplace3" in Frame 3
onClipEvent (load) {
function getbuild() {
ranb = 1 + random(10);
var _local2 = this.attachSkewClip("lev_1_b" + ranb, "build" + bcount, 1 + bcount, {_x:0, _y:95});
_local2._skew = {v:0, h:-20 + random(40)};
build = _local2._child;
build._xscale = 35 + random(50);
build._yscale = 50 + random(100);
col = new Color(this);
encol = new Object();
encol.ra = 25;
encol.rb = 0;
encol.ga = 25;
encol.gb = 0;
encol.ba = 25;
encol.bb = 0;
encol.aa = 100;
encol.ab = 0;
col.setTransform(encol);
bcount = bcount + 1;
}
var set_skew = function (__skew) {
var _local4 = __skew.v;
var _local8 = __skew.h;
var _local2 = Math.sin;
var _local5 = Math.cos;
var _local3 = (Math.PI/180);
var _local11 = _local2(45 * _local3);
this._child._rotation = -45;
var _local12 = (this._rotation = ((_local8 + _local4) / 2) + 45);
var _local9 = _local8 * _local3;
var _local7 = _local4 * _local3;
var _local6 = _local2(_local12 * _local3) / _local11;
this._xscale = (100 * (_local5(_local9) + _local2(_local7))) / _local6;
this._yscale = (100 * (_local2(_local9) + _local5(_local7))) / _local6;
this.__skew = __skew;
};
var get_skew = function () {
return(this.__skew);
};
MovieClip.prototype.attachSkewClip = function (symbolID, nameo, depth, initObject) {
var _local3 = this.createEmptyMovieClip(nameo, depth);
_local3._child = _local3.attachMovie(symbolID, "_embedded", 0);
_local3.addProperty("_skew", get_skew, set_skew);
for (var _local4 in initObject) {
_local3[_local4] = initObject[_local4];
}
return(_local3);
};
bcount = 1;
getbuild();
}
onClipEvent (enterFrame) {
_x = (_x - 1);
if (_x < (build._width / -2)) {
_x = (800 + random(100));
build.removeMovieClip();
getbuild();
}
}
Instance of Symbol 1237 MovieClip "ground" in Frame 3
onClipEvent (enterFrame) {
_root.gameEvent(this);
updateAfterEvent();
}
onClipEvent (keyDown) {
if (Key.getCode() == 66) {
_root.bombshot();
}
}
onClipEvent (mouseUp) {
if (_root.ammoout && (!_root.menupress)) {
_root.weapsound.start();
}
_root.cannon.guntop.can._yscale = 100;
_root.speedg.removeMovieClip();
_root.menu.powerall.gotoAndStop(1);
if (_root.curweap == "fountains") {
_root.fountain_s.stop();
i = 0;
while (i <= 20) {
shott = eval ("_root.shot" + i);
shott.removeMovieClip();
ft = eval ("_root.fount" + i);
ft.removeMovieClip();
i = i + 1;
}
}
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Instance of Symbol 1269 MovieClip in Frame 3
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_root.bladecol(this);
}
Symbol 32 MovieClip [cannontops] Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 42 Button
on (release) {
_root.gotoAndStop(2);
_root.ClearGame();
}
Symbol 43 Button
on (rollOver) {
rollOv("NEXT CANNON");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.cannonown[_root.currentcan] == 1) {
_root.currentcan = _root.currentcan + 1;
_root.cannon.guntop.gotoAndStop(_root.currentcan);
cannontops.gotoAndStop(_root.currentcan);
}
}
Symbol 44 Button
on (rollOver) {
rollOv("PREVIOUS CANNON");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.currentcan > 1) {
_root.currentcan = _root.currentcan - 1;
_root.cannon.guntop.gotoAndStop(_root.canara[_root.currentcan - 1]);
cannontops.gotoAndStop(_root.cannon.guntop._currentframe);
}
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 20
gotoAndPlay(_currentframe - 2);
Symbol 62 MovieClip Frame 1
stop();
Symbol 66 Button
on (rollOver) {
rollOv("CANDLES");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.candles[0] > 0) {
_root.curweap = "candles";
_root.weapout = _root.curweap.toUpperCase();
_root.ammoout = "UNLIMITED";
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "CANDLES";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 67 Button
on (rollOver) {
rollOv("COMETS");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.comets[0] > 0) {
_root.curweap = "comets";
_root.weapout = _root.curweap.toUpperCase();
_root.ammoout = _root.comets[0];
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "COMETS";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 68 Button
on (rollOver) {
rollOv("AIRBOMBS");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.airbombs[0] > 0) {
_root.curweap = "airbombs";
_root.weapout = _root.curweap.toUpperCase();
_root.ammoout = _root.airbombs[0];
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "AIRBOMBS";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 69 Button
on (rollOver) {
rollOv("BOMBSHELLS");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.bombshells[0] > 0) {
_root.curweap = "bombshells";
_root.weapout = _root.curweap.toUpperCase();
_root.ammoout = _root.bombshells[0];
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "BOMBSHELLS";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 70 Button
on (rollOver) {
rollOv("FOUNTAINS");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.fountains[0] > 0) {
_root.curweap = "fountains";
_root.weapout = _root.curweap.toUpperCase();
_root.ammoout = _root.fountains[0];
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "FOUNTAINS";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 71 Button
on (rollOver) {
rollOv("GLOWBOMBS");
}
on (rollOut) {
rollOu();
}
on (release) {
if (_root.glowbombs[0] > 0) {
_root.curweap = "glowbombs";
_root.ammoout = _root.glowbombs[0];
_root.weapout = _root.curweap.toUpperCase();
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "GLOWBOMBS";
} else {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = "NO AMMO";
}
}
Symbol 91 MovieClip [menu] Frame 1
function rollOv(t) {
attachMovie("dialog1", "dialog1", 60);
dialog1.stext = t;
dialog1._x = _xmouse;
dialog1._y = _ymouse;
}
function rollOu(t) {
dialog1.removeMovieClip();
}
function levSet() {
i = 1;
while (i <= _root.gamelevel) {
templev = eval ("lev_" + i);
if (i == _root.gamelevel) {
templev.gotoAndStop(2);
} else {
templev.gotoAndStop(3);
}
i = i + 1;
}
}
sparklercount = 0;
levSet();
Symbol 151 MovieClip Frame 5
gotoAndPlay (1);
Symbol 151 MovieClip Frame 6
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 6
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 6
this.gotoAndStop(1);
Symbol 190 MovieClip [guy_5] Frame 1
function shotHit(x, y, d) {
dam = 1;
distx = this._x - x;
disty = this._y - (y - 10);
roth = distx / 2;
if (distx < 0) {
en = en - 2;
} else {
en = en + 2;
}
_root.partExplode(x, y, 5, 2);
if ((disty > ((_height / 2) - 10)) && (Math.abs(distx) < (_width / 4))) {
head.gotoAndStop(4);
}
if ((distx < 0) && (disty > 0)) {
if (q[0] == 0) {
arm2.armlow.gotoAndStop(2);
gun2.gotoAndStop(7);
arm2.armup.gotoAndStop(2);
head.gotoAndStop(2);
} else if (q[0] >= 1) {
if (torso._currentframe == 1) {
head.gotoAndStop(3);
torso.gotoAndStop(3);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(4);
head.gotoAndStop(5);
roth = distx / 2;
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
gun1.gotoAndStop(7);
gun2.gotoAndStop(7);
q[1] = 3;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 6) {
torso.gotoAndStop(8);
}
arm2.armup.gotoAndStop(3);
}
q[0] = q[0] + dam;
} else if ((distx > 0) && (disty > 0)) {
if (q[1] == 0) {
arm1.armlow.gotoAndStop(2);
arm1.armup.gotoAndStop(2);
gun1.gotoAndStop(7);
head.gotoAndStop(2);
} else if (q[1] >= 1) {
if (torso._currentframe == 1) {
head.gotoAndStop(3);
torso.gotoAndStop(2);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(4);
head.gotoAndStop(3);
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
gun1.gotoAndStop(7);
gun2.gotoAndStop(7);
q[0] = 3;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 7) {
torso.gotoAndStop(8);
}
arm1.armup.gotoAndStop(3);
}
q[1] = q[1] + dam;
} else if ((distx < 0) && (disty < 0)) {
if (q[2] == 0) {
leg2.gotoAndStop(2);
} else if (q[2] == 1) {
leg2.gotoAndStop(3);
} else if (q[2] == 2) {
leg2.gotoAndStop(4);
} else if (q[2] == 3) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(5);
leg2.gotoAndStop(5);
q[3] = 4;
}
q[2] = q[2] + dam;
} else if ((distx > 0) && (disty < 0)) {
if (q[3] == 0) {
leg1.gotoAndStop(2);
} else if (q[3] == 1) {
leg1.gotoAndStop(3);
} else if (q[3] == 2) {
leg1.gotoAndStop(4);
} else if (q[3] == 3) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(5);
leg2.gotoAndStop(5);
q[2] = 4;
}
q[3] = q[3] + dam;
}
}
q = new Array(0, 0, 0, 0);
para._visible = 0;
stop();
Instance of Symbol 186 MovieClip "remote" in Symbol 190 MovieClip [guy_5] Frame 1
onClipEvent (load) {
tim = 1;
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(2);
gx = -10 + random(20);
gy = -10 + random(20);
ftim = 1;
}
onClipEvent (enterFrame) {
if (_parent._y > 400) {
_root.splash(_parent._x, _parent._y, 12);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
qx = _parent._x - _root.boat._x;
if (qx < 0) {
_root.moveArm(_parent, _parent.arm2);
_parent.arm2._rotation = _parent.arm2._rotation + 180;
_parent.gun2._rotation = _parent.arm2._rotation - 90;
} else {
_root.moveArm(_parent, _parent.arm1);
_parent.gun1._rotation = _parent.arm1._rotation + 90;
}
inertia = inertia / 1.2;
inertia = inertia + (_root.wind / 30);
gy = gy + (tim / 5);
tim = tim + 1;
if (tim < 15) {
_root.changeCol(_parent);
_parent._x = _parent._x + (inertia + gx);
_parent._y = _parent._y + gy;
_parent._xscale = _parent._xscale + 2;
_parent._yscale = _parent._yscale + 2;
_parent._rotation = inertia * 5;
} else if (_parent.head._currentframe >= 4) {
_parent._rotation = _parent._rotation + _parent.roth;
_parent._x = _parent._x + _parent.roth;
_parent._y = _parent._y + ftim;
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else {
_root.ship_move(_parent, 3);
}
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
} else {
_root.partExplode(_parent._x, _parent._y, 20, 5);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Instance of Symbol 189 MovieClip "gun1" in Symbol 190 MovieClip [guy_5] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x - 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if ((x > 0) && (_currentframe < 7)) {
if ((((tim % 20) == 0) || ((tim % 22) == 0)) || ((tim % 25) == 0)) {
_root.gunfire_s.start();
fire.gotoAndPlay(2);
_root.attachMovie("bulsm_1", "bulsm_1" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_1" + _root.bulcount]._x = (_parent._x - 20) - xs;
_root["bulsm_1" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_1" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_1" + _root.bulcount].velx = xs;
_root["bulsm_1" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
this.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 189 MovieClip "gun2" in Symbol 190 MovieClip [guy_5] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x + 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if ((x < 0) && (_currentframe < 7)) {
if ((((tim % 20) == 0) || ((tim % 22) == 0)) || ((tim % 25) == 0)) {
_root.gunfire_s.start();
fire.gotoAndPlay(2);
_root.attachMovie("bulsm_1", "bulsm_1" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_1" + _root.bulcount]._x = (_parent._x + 20) - xs;
_root["bulsm_1" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_1" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_1" + _root.bulcount].velx = xs;
_root["bulsm_1" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
this.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 221 MovieClip [guy_10] Frame 1
function shotHit(x, y, d) {
dam = 1;
distx = this._x - x;
disty = this._y - (y - 10);
roth = distx / 2;
if (distx < 0) {
en = en - 2;
} else {
en = en + 2;
}
_root.partExplode(x, y, 5, 2);
if ((disty > ((_height / 2) - 10)) && (Math.abs(distx) < (_width / 4))) {
head.gotoAndStop(2);
blades._visible = 0;
}
if ((distx < 0) && (disty > 0)) {
if (q[0] == 0) {
arm2.armlow.gotoAndStop(2);
arm2.armup.gotoAndStop(2);
} else if (q[0] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(2);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(4);
mid.gotoAndStop(2);
head.gotoAndStop(3);
roth = distx / 2;
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
blades._visible = 0;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 6) {
torso.gotoAndStop(8);
}
arm2.armup.gotoAndStop(3);
}
q[0] = q[0] + dam;
} else if ((distx > 0) && (disty > 0)) {
if (q[1] == 0) {
arm1.armlow.gotoAndStop(2);
arm1.armup.gotoAndStop(2);
} else if (q[1] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(3);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(4);
mid.gotoAndStop(2);
head.gotoAndStop(3);
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
blades._visible = 0;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 7) {
torso.gotoAndStop(8);
}
arm1.armup.gotoAndStop(3);
}
q[1] = q[1] + dam;
} else if ((distx < 0) && (disty < 0)) {
if (q[2] == 0) {
leg2.gotoAndStop(2);
} else if (q[2] == 1) {
leg2.gotoAndStop(3);
} else if (q[2] == 2) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(4);
leg2.gotoAndStop(4);
q[3] = 4;
}
q[2] = q[2] + dam;
} else if ((distx > 0) && (disty < 0)) {
if (q[3] == 0) {
leg1.gotoAndStop(2);
} else if (q[3] == 1) {
leg1.gotoAndStop(3);
} else if (q[3] == 2) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(4);
leg2.gotoAndStop(4);
q[2] = 4;
}
q[3] = q[3] + dam;
}
}
q = new Array(0, 0, 0, 0);
para._visible = 0;
stop();
Instance of Symbol 186 MovieClip "remote" in Symbol 221 MovieClip [guy_10] Frame 1
onClipEvent (load) {
tim = 1;
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(2);
gx = -10 + random(20);
gy = -10 + random(20);
ftim = 1;
}
onClipEvent (enterFrame) {
if (_parent._y > 400) {
_root.splash(_parent._x, _parent._y, 12);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia / 1.2;
inertia = inertia + (_root.wind / 30);
gy = gy + (tim / 5);
tim = tim + 1;
if (tim < 15) {
_root.changeCol(_parent);
_parent._x = _parent._x + (inertia + gx);
_parent._y = _parent._y + gy;
_parent._xscale = _parent._xscale + 2;
_parent._yscale = _parent._yscale + 2;
_parent._rotation = inertia * 5;
} else if (((_parent.leg1._currentframe >= 2) && (_parent.leg2._currentframe >= 2)) && ((_parent.arm1.armup._currentframe >= 2) || (_parent.arm2.armup._currentframe >= 2))) {
_parent._x = _parent._x + _parent.roth;
_parent._y = _parent._y + ftim;
_parent._rotation = _parent._rotation + (ftim / 2);
_parent.base._rotation = _parent.base._rotation - (ftim / 2);
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else if (_parent.head._currentframe >= 2) {
_parent._x = _parent._x + _parent.roth;
_parent._y = _parent._y + ftim;
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else {
if (random(100) > 90) {
ras = random(20);
_root.attachMovie("shotsm_10", "shotsm" + ras, 13890 + ras);
shotsm = eval ("_root.shotsm" + ras);
shotsm._x = _parent._x;
shotsm._y = _parent._y + (_parent._height / 2);
shotsm.par = _parent;
shotsm._height = 400 - _parent._y;
}
_root.ship_move(_parent, 3);
}
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
} else {
_root.partExplode(_parent._x, _parent._y, 20, 5);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 251 MovieClip [guy_12] Frame 1
function shotHit(x, y, d) {
dam = 1;
distx = this._x - x;
disty = this._y - (y - 10);
if (distx < 0) {
en = en - 2;
} else {
en = en + 2;
}
_root.partExplode2(x, y, 5, 2);
if ((disty > ((_height / 2) - 10)) && (Math.abs(distx) < (_width / 4))) {
head.gotoAndStop(2);
blades._visible = 0;
roth = distx / 2;
}
if ((distx < 0) && (disty > 0)) {
if (q[0] == 0) {
arm2.armlow.gotoAndStop(2);
arm2.armup.gotoAndStop(2);
} else if (q[0] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(2);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(4);
mid.gotoAndStop(2);
head.gotoAndStop(3);
roth = distx / 2;
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
blades._visible = 0;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 6) {
torso.gotoAndStop(8);
}
arm2.armup.gotoAndStop(3);
}
q[0] = q[0] + dam;
} else if ((distx > 0) && (disty > 0)) {
if (q[1] == 0) {
arm1.armlow.gotoAndStop(2);
arm1.armup.gotoAndStop(2);
} else if (q[1] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(3);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(4);
mid.gotoAndStop(2);
head.gotoAndStop(3);
roth = distx / 2;
arm1.armup.gotoAndStop(3);
arm2.armup.gotoAndStop(3);
arm1.armlow.gotoAndStop(2);
arm2.armlow.gotoAndStop(2);
blades._visible = 0;
} else if (torso._currentframe == 5) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 7) {
torso.gotoAndStop(8);
}
arm1.armup.gotoAndStop(3);
}
q[1] = q[1] + dam;
} else if ((distx < 0) && (disty < 0)) {
if (q[2] == 0) {
leg2.gotoAndStop(2);
} else if (q[2] == 1) {
leg2.gotoAndStop(3);
} else if (q[2] == 2) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(4);
leg2.gotoAndStop(4);
q[3] = 4;
}
q[2] = q[2] + dam;
} else if ((distx > 0) && (disty < 0)) {
if (q[3] == 0) {
leg1.gotoAndStop(2);
} else if (q[3] == 1) {
leg1.gotoAndStop(3);
} else if (q[3] == 2) {
mid.gotoAndStop(2);
if (torso._currentframe == 1) {
torso.gotoAndStop(5);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(6);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(8);
}
leg1.gotoAndStop(4);
leg2.gotoAndStop(4);
q[2] = 4;
}
q[3] = q[3] + dam;
}
}
q = new Array(0, 0, 0, 0);
para._visible = 0;
_root.attachMovie("blades2", "blades2" + _root.bladecount, 14650 + _root.bladecount);
blades = eval ("_root.blades2" + _root.bladecount);
_root.bladecount = _root.bladecount + 1;
stop();
Instance of Symbol 235 MovieClip "arm2" in Symbol 251 MovieClip [guy_12] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x + 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if ((x < 0) && (this.armlow._currentframe < 2)) {
if ((tim % 10) == 0) {
fire.gotoAndPlay(2);
_root.attachMovie("shotsm_12", "bulsm_12" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_12" + _root.bulcount]._x = (_parent._x + 20) - xs;
_root["bulsm_12" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_12" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_12" + _root.bulcount].velx = xs;
_root["bulsm_12" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
this.flame.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 235 MovieClip "arm1" in Symbol 251 MovieClip [guy_12] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x - 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if ((x > 0) && (this.armlow._currentframe < 2)) {
if ((tim % 10) == 0) {
fire.gotoAndPlay(2);
_root.attachMovie("shotsm_12", "bulsm_12" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_12" + _root.bulcount]._x = (_parent._x - 20) - xs;
_root["bulsm_12" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_12" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_12" + _root.bulcount].velx = xs;
_root["bulsm_12" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
this.flame.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 186 MovieClip "remote" in Symbol 251 MovieClip [guy_12] Frame 1
onClipEvent (load) {
tim = 1;
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(2);
_parent.en = 0;
_parent.eny = 1 + random(3);
_parent._xscale = 60;
_parent._yscale = 60;
ftim = 1;
}
onClipEvent (enterFrame) {
if (_parent._y > 400) {
_parent.blades.removeMovieClip();
_root.splash(_parent._x, _parent._y, 12);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
_parent.blades.bladesout.bladesin._rotation = _parent.blades.bladesout.bladesin._rotation + (40 - (_parent.eny * 3));
_parent.blades.bladesout._yscale = _parent.eny * 6;
_parent.blades._x = _parent._x + _parent.en;
_parent.blades._y = _parent._y + _parent.eny;
_parent.blades._rotation = _parent._rotation * 2;
_parent.blades._xscale = _parent._xscale;
_parent.blades._yscale = _parent._yscale;
inertia = inertia / 1.2;
qx = _parent._x - _root.boat._x;
if (qx < 0) {
_root.moveArm(_parent, _parent.arm2);
} else {
_root.moveArm(_parent, _parent.arm1);
_parent.arm1._rotation = _parent.arm1._rotation + 180;
}
inertia = inertia + (_root.wind / 30);
if (_parent.head._currentframe >= 2) {
_parent._rotation = _parent._rotation + _parent.roth;
_parent._x = _parent._x + _parent.roth;
_parent._y = _parent._y + ftim;
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else {
_root.ship_move(_parent, 3);
}
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
} else {
_parent.blades.removeMovieClip();
_root.partExplode2(_parent._x, _parent._y, 20, 5);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 280 MovieClip [guy_2] Frame 1
function shotHit(x, y, d) {
head.eye1.gotoAndPlay(2);
head.eye2.gotoAndPlay(2);
head.mouth.gotoAndPlay(2);
dam = 1;
distx = this._x - x;
disty = this._y - (y - 5);
if (distx < 0) {
en = en - 2;
} else {
en = en + 2;
}
_root.partExplode(x, y, 5, 2);
if (disty > ((_height / 2) - 10)) {
head.gotoAndStop(2);
roth = distx / 2;
}
if ((distx < 0) && (disty > 0)) {
if (q[0] == 0) {
arm2.gotoAndStop(2);
} else if (q[0] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(3);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(4);
} else if (torso._currentframe == 7) {
torso.gotoAndStop(9);
} else if (torso._currentframe == 8) {
torso.gotoAndStop(10);
}
arm2.gotoAndStop(3);
}
q[0] = q[0] + dam;
} else if ((distx > 0) && (disty > 0)) {
if (q[1] == 0) {
arm1.gotoAndStop(2);
} else if (q[1] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(2);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(4);
} else if (torso._currentframe == 7) {
torso.gotoAndStop(8);
} else if (torso._currentframe == 9) {
torso.gotoAndStop(10);
}
arm1.gotoAndStop(3);
}
q[1] = q[1] + dam;
} else if ((distx < 0) && (disty < 0)) {
if (q[2] == 0) {
leg2.gotoAndStop(2);
} else if (q[2] == 1) {
leg2.gotoAndStop(3);
} else if (q[2] == 2) {
leg2.gotoAndStop(4);
} else if (q[2] == 3) {
mid.gotoAndStop(3);
if (torso._currentframe == 1) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(8);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(9);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(10);
}
leg1.gotoAndStop(5);
leg2.gotoAndStop(5);
q[3] = 4;
}
q[2] = q[2] + dam;
} else if ((distx > 0) && (disty < 0)) {
if (q[3] == 0) {
leg1.gotoAndStop(2);
} else if (q[3] == 1) {
leg1.gotoAndStop(3);
} else if (q[3] == 2) {
leg1.gotoAndStop(4);
} else if (q[3] == 3) {
mid.gotoAndStop(3);
if (torso._currentframe == 1) {
torso.gotoAndStop(7);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(8);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(9);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(10);
}
leg1.gotoAndStop(5);
leg2.gotoAndStop(5);
q[2] = 4;
}
q[3] = q[3] + dam;
}
}
q = new Array(0, 0, 0, 0);
para._visible = 0;
stop();
Instance of Symbol 271 MovieClip "arm1" in Symbol 280 MovieClip [guy_2] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x - 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if (_currentframe < 2) {
if ((tim % 10) == 0) {
fire.gotoAndPlay(2);
_root.attachMovie("bulsm_2", "bulsm_2" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_2" + _root.bulcount]._x = (_parent._x - 20) - xs;
_root["bulsm_2" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_2" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_2" + _root.bulcount].velx = xs;
_root["bulsm_2" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 271 MovieClip "arm2" in Symbol 280 MovieClip [guy_2] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._x + 20) - _root.boat._x;
y = (_parent._y - 10) - _root.boat._y;
xs = x / 15;
ys = y / 15;
if (_currentframe < 2) {
if ((tim % 10) == 0) {
fire.gotoAndPlay(2);
_root.attachMovie("bulsm_2", "bulsm_2" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_2" + _root.bulcount]._x = (_parent._x + 20) - xs;
_root["bulsm_2" + _root.bulcount]._y = (_parent._y - 10) - ys;
_root["bulsm_2" + _root.bulcount]._rotation = _rotation + 90;
_root["bulsm_2" + _root.bulcount].velx = xs;
_root["bulsm_2" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 186 MovieClip "remote" in Symbol 280 MovieClip [guy_2] Frame 1
onClipEvent (load) {
tim = 1;
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(2);
gx = -10 + random(20);
gy = -15 - random(5);
ftim = 1;
}
onClipEvent (enterFrame) {
if (_parent._y > 400) {
_root.splash(_parent._x, _parent._y, 12);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia / 1.2;
qx = _parent._x - _root.boat._x;
_root.moveArm(_parent, _parent.arm2);
_root.moveArm(_parent, _parent.arm1);
_parent.arm2._rotation = _parent.arm2._rotation + 180;
inertia = inertia + (_root.wind / 30);
gy = gy + (tim / 5);
tim = tim + 1;
if (tim < 23) {
_root.changeCol(_parent);
_parent._x = _parent._x + (inertia + gx);
_parent._y = _parent._y + gy;
_parent._xscale = _parent._xscale + 1;
_parent._yscale = _parent._yscale + 1;
_parent._rotation = inertia * 5;
} else if ((_parent.leg1._currentframe >= 2) && (_parent.leg2._currentframe >= 2)) {
_parent._y = _parent._y + ftim;
ftim = ftim + 1;
} else if (_parent.head._currentframe == 2) {
_parent._rotation = _parent._rotation + _parent.roth;
_parent._y = _parent._y + ftim;
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else {
_root.ship_move(_parent, 3);
}
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
} else {
_root.partExplode(_parent._x, _parent._y, 20, 5);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Instance of Symbol 282 MovieClip in Symbol 283 MovieClip [pod_2] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(3);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + speed;
} else {
_root.explosion3(_parent._x, _parent._y, 6);
_root.posGuy(2, _parent._x, _parent._y, 400);
_parent.removeMovieClip();
}
}
Instance of Symbol 285 MovieClip in Symbol 286 MovieClip [pod_12] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(3);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + speed;
} else {
_root.explosion3(_parent._x, _parent._y, 6);
_root.posGuy(12, _parent._x, _parent._y, 600);
_parent.removeMovieClip();
}
}
Instance of Symbol 288 MovieClip in Symbol 289 MovieClip [pod_10] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(3);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + speed;
} else {
_root.explosion3(_parent._x, _parent._y, 6);
_root.posGuy(10, _parent._x, _parent._y, 450);
_parent.removeMovieClip();
}
}
Instance of Symbol 291 MovieClip in Symbol 292 MovieClip [pod_11] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(3);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + speed;
} else {
_root.explosion3(_parent._x, _parent._y, 6);
_root.posGuy(11, _parent._x, _parent._y, 230);
_parent.removeMovieClip();
}
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 15
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Instance of Symbol 338 MovieClip "armlow" in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._parent._x + 20) - _root.boat._x;
y = (_parent._parent._y - 10) - _root.boat._y;
xs = x / 7;
ys = y / 7;
if ((x < 0) && (_parent._parent.arm2.armlow._visible)) {
if ((tim % 10) == 0) {
_parent._parent.arm2.armlow.fire.gotoAndPlay(2);
_root.attachMovie("bulsm_1", "bulsm_1" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_1" + _root.bulcount]._x = (_parent._parent._x + 20) - xs;
_root["bulsm_1" + _root.bulcount]._y = (_parent._parent._y - 10) - ys;
_root["bulsm_1" + _root.bulcount].velx = xs;
_root["bulsm_1" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Instance of Symbol 338 MovieClip "armlow" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
x = (_parent._parent._x - 20) - _root.boat._x;
y = (_parent._parent._y - 10) - _root.boat._y;
xs = x / 7;
ys = y / 7;
trace(_currentframe);
if ((x > 0) && (_parent._parent.arm1.armlow._visible)) {
if ((tim % 10) == 0) {
_parent._parent.arm1.armlow.fire.gotoAndPlay(2);
_root.attachMovie("bulsm_1", "bulsm_1" + _root.bulcount, 17490 + _root.bulcount);
_root["bulsm_1" + _root.bulcount]._x = (_parent._parent._x - 20) - xs;
_root["bulsm_1" + _root.bulcount]._y = (_parent._parent._y - 10) - ys;
_root["bulsm_1" + _root.bulcount].velx = xs;
_root["bulsm_1" + _root.bulcount].vely = ys;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
tim = tim + 1;
}
}
Symbol 344 MovieClip [guy_11] Frame 1
function shotHit(x, y, d) {
head.eye1.gotoAndPlay(2);
head.eye2.gotoAndPlay(2);
head.mouth.gotoAndPlay(2);
dam = 1;
distx = this._x - x;
disty = this._y - (y - 5);
if (distx < 0) {
remote.inertia = remote.inertia - 5;
} else {
remote.inertia = remote.inertia + 5;
}
_root.partExplode(x, y, 5, 2);
if ((disty > ((_height / 2) - 10)) && (Math.abs(distx) < (_width / 4))) {
head.gotoAndStop(4);
parachute._visible = 0;
roth = distx / 2;
} else if ((distx < 0) && (disty > 0)) {
if (q[0] == 0) {
arm2.armup.gotoAndStop(2);
arm2.armlow._visible = 0;
head.gotoAndStop(2);
} else if (q[0] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(3);
} else if (torso._currentframe == 2) {
torso.gotoAndStop(4);
} else if (torso._currentframe == 10) {
torso.gotoAndStop(12);
} else if (torso._currentframe == 11) {
torso.gotoAndStop(13);
}
arm2.armlow.gotoAndStop(2);
arm2.armup.gotoAndStop(3);
head.gotoAndStop(3);
}
q[0] = q[0] + dam;
} else if ((distx > 0) && (disty > 0)) {
if (q[1] == 0) {
arm1.armup.gotoAndStop(2);
arm1.armlow._visible = 0;
head.gotoAndStop(2);
} else if (q[1] >= 1) {
if (torso._currentframe == 1) {
torso.gotoAndStop(2);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(4);
} else if (torso._currentframe == 10) {
torso.gotoAndStop(11);
} else if (torso._currentframe == 12) {
torso.gotoAndStop(13);
}
arm1.armlow.gotoAndStop(2);
arm1.armup.gotoAndStop(3);
head.gotoAndStop(3);
}
q[1] = q[1] + dam;
} else if ((distx < 0) && (disty < 0)) {
if (q[2] == 0) {
leg2.gotoAndStop(2);
foot2.gotoAndStop(2);
} else if (q[2] == 1) {
foot2.gotoAndStop(2);
mid.gotoAndStop(3);
leg2.gotoAndStop(3);
q[3] = 2;
} else if (q[2] == 2) {
foot1.gotoAndStop(2);
foot2.gotoAndStop(2);
leg1.gotoAndStop(3);
leg2.gotoAndStop(3);
mid.gotoAndStop(4);
q[3] = 3;
} else if (q[2] >= 3) {
foot1.gotoAndStop(2);
foot2.gotoAndStop(2);
leg1.gotoAndStop(3);
leg2.gotoAndStop(3);
mid.gotoAndStop(5);
if (torso._currentframe == 2) {
torso.gotoAndStop(11);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(12);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(13);
} else if (torso._currentframe == 1) {
torso.gotoAndStop(10);
}
q[3] = 4;
}
q[2] = q[2] + dam;
} else if ((distx > 0) && (disty < 0)) {
if (q[3] == 0) {
leg1.gotoAndStop(2);
foot1.gotoAndStop(2);
} else if (q[3] == 1) {
foot1.gotoAndStop(2);
mid.gotoAndStop(2);
leg1.gotoAndStop(3);
q[2] = 2;
} else if (q[3] == 2) {
mid.gotoAndStop(4);
leg1.gotoAndStop(3);
leg2.gotoAndStop(3);
foot1.gotoAndStop(2);
foot2.gotoAndStop(2);
q[2] = 3;
} else if (q[3] >= 3) {
foot1.gotoAndStop(2);
foot2.gotoAndStop(2);
leg1.gotoAndStop(3);
leg2.gotoAndStop(3);
mid.gotoAndStop(5);
if (torso._currentframe == 2) {
torso.gotoAndStop(11);
} else if (torso._currentframe == 3) {
torso.gotoAndStop(12);
} else if (torso._currentframe == 4) {
torso.gotoAndStop(13);
} else if (torso._currentframe == 1) {
torso.gotoAndStop(10);
}
q[2] = 4;
}
q[3] = q[3] + dam;
}
}
q = new Array(0, 0, 0, 0);
stop();
Instance of Symbol 186 MovieClip "remote" in Symbol 344 MovieClip [guy_11] Frame 1
onClipEvent (load) {
tim = 1;
ftim = 1;
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(2);
gx = 0;
gy = -20 - random(5);
ransh = 1 + random(3);
}
onClipEvent (enterFrame) {
if (_parent._y > 400) {
_parent.parachute.removeMovieClip();
_root.splash(_parent._x, _parent._y, 12);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia / 1.2;
qx = _parent._x - _root.boat._x;
if (qx < 0) {
_root.moveArm(_parent, _parent.arm2);
} else {
_root.moveArm(_parent, _parent.arm1);
}
inertia = inertia + (_root.wind / 30);
gy = gy + (tim / 5);
tim = tim + 1;
if (tim < 23) {
_parent._x = _parent._x + (inertia + gx);
_parent._y = _parent._y + gy;
_parent._xscale = _parent._xscale + 0.5;
_parent._yscale = _parent._yscale + 0.5;
_parent._rotation = inertia * 5;
} else if (tim == 23) {
_root.attachMovie("parachute", "parachute" + _root.bladecount, 14650 + _root.bladecount);
_parent.parachute = eval ("_root.parachute" + _root.bladecount);
_root.bladecount = _root.bladecount + 1;
} else if (_parent.head._currentframe >= 4) {
_parent._rotation = _parent._rotation + _parent.roth;
_parent._x = _parent._x + _parent.roth;
_parent._y = _parent._y + ftim;
_parent.arm2._rotation = _parent.arm2._rotation + random(5);
_parent.arm1._rotation = _parent.arm1._rotation + random(5);
ftim = ftim + 1;
} else {
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = (-inertia) * 2;
_parent.parachute._x = _parent._x;
_parent.parachute._y = _parent._y;
_parent.parachute._rotation = _parent._rotation * 2;
_parent.parachute._xscale = _parent._xscale;
_parent.parachute._yscale = _parent._yscale;
}
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
} else {
_parent.parachute.removeMovieClip();
_root.partExplode(_parent._x, _parent._y, 20, 5);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip [orb_1] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(3);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
} else {
_root.explosion3(_parent._x, _parent._y, 6);
_root.posGuy(11, _parent._x, _parent._y);
_parent.removeMovieClip();
}
}
Instance of Symbol 364 MovieClip "star" in Symbol 365 MovieClip [airstar] Frame 1
onClipEvent (load) {
glowtime = 1;
ranx = 30 + random(30);
}
onClipEvent (enterFrame) {
if ((glowtime % 5) == 0) {
c = 0;
while (c < _root.astarray.length) {
_root.astdetection(_parent, _root.astarray[c], c, _parent._width / 2, _parent._height / 2, "", _root.airbombs[1] / 10);
c++;
}
}
if (glowtime < 4) {
_xscale = (_xscale + ranx);
_yscale = (_yscale + ranx);
} else {
_xscale = (_xscale - ranx);
_yscale = (_yscale - ranx);
}
_parent._rotation = _parent._rotation + ranx;
if (_xscale < 0) {
_parent.removeMovieClip();
}
glowtime = glowtime + 1;
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip [lightinlink] Frame 1
onClipEvent (load) {
_root.shotLoad(_parent, "airbombs");
}
onClipEvent (mouseUp) {
_parent.shotgo = 1;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
i = 0;
esize = Math.round(40 * (_root.airbombs[5] / 100));
asize = Math.round(3 * (_root.airbombs[5] / 100));
while (i < asize) {
rnum = random(10);
_root.attachMovie("airstar", "star" + rnum, 20352 + rnum);
tempstar = _root["star" + rnum];
tempstar._x = _parent._x + ((-esize) + random(esize * 2));
tempstar._y = _parent._y + ((-esize) + random(esize * 2));
tempstar._xscale = _root.airbombs[5] + random(10);
tempstar._yscale = _root.airbombs[5] + random(10);
i = i + 1;
}
_parent.removeMovieClip();
}
_root.shotEvent(_parent, "airbombs");
}
Instance of Symbol 367 MovieClip in Symbol 369 MovieClip [lightlink] Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 30);
_yscale = (_yscale - 30);
if (_xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 371 MovieClip in Symbol 372 MovieClip [bombshelluplink] Frame 1
onClipEvent (load) {
_root.shotLoad(_parent, "bombshells");
_xscale = (150 * (_root.bombshells[3] / 100));
_yscale = (150 * (_root.bombshells[3] / 100));
}
onClipEvent (mouseUp) {
_parent.shotgo = 1;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
sth = _root.bombshellcols[random(_root.bombshellcols.length)];
ran = random(500);
_root.attachMovie("bombshellhitlink", "bombshellhit" + ran, 40930 + ran);
_root["bombshellhit" + ran]._x = _parent._x;
_root["bombshellhit" + ran]._y = _parent._y;
_root["bombshellhit" + ran]._visible = 0;
i = 0;
bsize = 12 * (_root.bombshells[5] / 100);
while (i < bsize) {
rannum = random(500);
_root.bombshell1.duplicateMovieClip("bombshell" + rannum, 550400 + rannum);
bombshell = eval ("_root.bombshell" + rannum);
thiscol = new Color(bombshell.bombshellcol);
thiscol.setRGB(sth);
bombshell.initx = (-bsize) + random(bsize * 2);
bombshell.inity = (-bsize) + random(bsize * 2);
bombshell._x = _parent._x;
bombshell._y = _parent._y;
bombshell._xscale = 40 + bsize;
bombshell._yscale = 40 + bsize;
bombshell.demo = 0;
i = i + 1;
}
_parent.removeMovieClip();
}
_root.shotEvent(_parent, "bombshells");
}
Instance of Symbol 374 MovieClip in Symbol 375 MovieClip [bombshellhitlink] Frame 1
onClipEvent (enterFrame) {
_parent._xscale = _parent._xscale + 15;
_parent._yscale = _parent._yscale + 15;
if (_parent._xscale > (_root.bombshells[5] * 2)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 377 MovieClip "flare" in Symbol 378 MovieClip [fireUpLink] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + 10;
_parent._y = _parent._y - 10;
point = new Object();
point.x = _x;
point.y = _y;
localToGlobal(point);
_root.attachMovie("sparkleLink", "sparkleBunch" + _root.SDcount, 15000 + _root.SDcount);
sparkleName = eval ("_root.sparkleBunch" + _root.SDcount);
sparkleName._y = point.y;
sparkleName._x = point.x - 10;
tailCol = new Color(sparkleName);
coltrans = new Object();
coltrans = {ra:0, rb:153, ga:0, gb:153, ba:0, bb:153, aa:100, ab:0};
tailCol.setTransform(coltrans);
_root.SDcount = _root.SDcount + 1;
if (point.y < 120) {
_root.attachMovie("fireworkLink", "firework" + _root.SDcount, 2400 + _root.SDcount);
_root["firework" + _root.SDcount]._x = point.x;
_root["firework" + _root.SDcount]._y = point.y;
_parent.removeMovieClip();
}
}
Instance of Symbol 380 MovieClip in Symbol 381 MovieClip [comethitlink] Frame 1
onClipEvent (load) {
cometCount = 1;
}
onClipEvent (enterFrame) {
if (cometCount < 20) {
_parent.attachMovie("cometfraylink", "cometfray" + cometCount, 10500 + cometCount);
tempvar = eval ("_parent.cometfray" + cometCount);
tempvar._x = _parent._parent._x;
tempvar._y = _parent._parent._y;
cometCount = cometCount + 1;
}
_parent._x = _parent._x + _parent.dirx;
_parent._y = _parent._y - _parent.diry;
_parent._xscale = _parent._xscale - 10;
_parent._yscale = _parent._yscale - 10;
_root.cometExp(_parent);
if (_parent._xscale < 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 380 MovieClip in Symbol 382 MovieClip [cometfraylink] Frame 1
onClipEvent (load) {
xran = -5 + random(10);
yran = -5 + random(10);
}
onClipEvent (enterFrame) {
_parent._xscale = _parent._xscale - 10;
_parent._yscale = _parent._yscale - 10;
if (_parent._xscale < 0) {
_parent.removeMovieClip();
}
_parent._x = _parent._x + xran;
_parent._y = _parent._y + yran;
}
Instance of Symbol 377 MovieClip "flare" in Symbol 383 MovieClip [allLink] Frame 1
onClipEvent (load) {
_root.shotLoad(_parent, "comets");
cometCount = 1;
}
onClipEvent (enterFrame) {
_root.SDcount = _root.SDcount + 1;
if (_parent.explode == 1) {
_root.attachMovie("cometfraylink", "cometfray" + cometCount, 10500 + cometCount);
cometfray = eval ("_root.cometfray" + cometCount);
cometfray._x = _parent._x;
cometfray._y = _parent._y;
cometfray._xscale = _parent._xscale * 5;
cometfray._yscale = _parent._yscale * 5;
cometCount = cometCount + 1;
_parent._xscale = _parent._xscale - (1 + (100 / _root.comets[5]));
_parent._yscale = _parent._yscale - (1 + (100 / _root.comets[5]));
if (_parent._xscale < 0) {
_parent.removeMovieClip();
}
}
_root.shotEvent(_parent, "comets");
}
onClipEvent (mouseUp) {
_parent.shotgo = 1;
}
Symbol 386 MovieClip [lightoff] Frame 6
this.removeMovieClip();
Instance of Symbol 391 MovieClip in Symbol 400 MovieClip [gametextlink] Frame 1
onClipEvent (load) {
if (_root.gamelevel == 1) {
_parent.finalgel = _root.stats[7];
} else {
_parent.finalgel = _root.oldstats[7];
}
}
Symbol 403 MovieClip [blastlink] Frame 5
this.removeMovieClip();
Instance of Symbol 407 MovieClip "candleballin" in Symbol 408 MovieClip [candlelink] Frame 1
onClipEvent (load) {
_root.shotLoad(_parent, "candles");
_xscale = (200 * (_root.candles[3] / 100));
_yscale = (200 * (_root.candles[3] / 100));
}
onClipEvent (mouseUp) {
_parent.shotgo = 1;
}
onClipEvent (enterFrame) {
if (_parent.explode == 1) {
_parent.removeMovieClip();
}
_root.shotEvent(_parent, "candles");
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip [rain] Frame 1
onClipEvent (load) {
inertia = 0;
}
onClipEvent (enterFrame) {
if (((_parent._x > 585) || (_parent._x < 0)) || (_parent._y > Stage.height)) {
_parent.removeMovieClip();
}
if (_root.wind > 0) {
if (inertia < 5) {
inertia = inertia + 0.1;
}
} else if (inertia > -5) {
inertia = inertia - 0.1;
}
_parent._x = _parent._x + (inertia + (random(10) - 5));
_parent._y = _parent._y + (_root.gravity * 4);
}
Instance of Symbol 416 MovieClip in Symbol 417 MovieClip [leaf] Frame 1
onClipEvent (load) {
inertia = 0;
speed = 10 + random(4);
_parent._xscale = speed * 5;
_parent._yscale = _parent._xscale;
}
onClipEvent (enterFrame) {
if (((_parent._x > 585) || (_parent._x < 0)) || (_parent._y > 420)) {
_parent.removeMovieClip();
}
inertia = inertia + (_root.wind / 5);
_parent._x = _parent._x + (inertia + (-1 + random(2)));
_parent._y = _parent._y + speed;
}
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 8
stop();
Symbol 448 MovieClip Frame 1
explode = 0;
count = 720;
damage = 1000;
Instance of Symbol 433 MovieClip "p7" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 433 MovieClip "p8" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 436 MovieClip "p1" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(1);
if (_parent.explode) {
_parent.explodeMe(x, y, this);
this._visible = 0;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 1);
}
}
}
Instance of Symbol 438 MovieClip "p2" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 443 MovieClip "p3" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 443 MovieClip "p4" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 445 MovieClip "p5" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 447 MovieClip "p6" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Symbol 451 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 451 MovieClip Frame 11
stop();
Symbol 452 MovieClip [boss_1] Frame 1
explode = 0;
damage = 1500;
count = 1;
_root.boss_1_sounda.start(0, 9999);
Instance of Symbol 420 MovieClip "gun" in Symbol 452 MovieClip [boss_1] Frame 1
onClipEvent (enterFrame) {
getcol = _root.enemycol.getTransform();
mycol = new Color(this.gunin);
mycol.setTransform(getcol);
}
Instance of Symbol 448 MovieClip "bossin" in Symbol 452 MovieClip [boss_1] Frame 1
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(1);
if (_parent.explode) {
_root.boss_1_sounda.stop();
_root.boss_1_music.stop();
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(1);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 1);
}
}
}
Symbol 464 MovieClip [shot_1] Frame 1
function explodeMe(x, y, p) {
_visible = false;
if (count == 40) {
_root.explosion3(_x, _y, 8);
}
if (count == 0) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == this) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
this.removeMovieClip();
}
count = count - 1;
}
function loadPiece(p) {
p.x = -50 + random(100);
p.y = -50 + random(100);
p.sw = Math.random();
if (p.sw > 0.8) {
p.sw = -1;
}
}
explode = 0;
count = 40;
speed = 2;
tim = 1;
Instance of Symbol 454 MovieClip in Symbol 464 MovieClip [shot_1] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
_parent.tim = _parent.tim + 1;
_parent.speed = _parent.speed + ((9.8 * _parent.tim) / 40);
_parent._y = _parent._y + _parent.speed;
_parent._x = _parent._x + ((-_parent.speedx) + (_root.wind / 3));
if (_parent.explode == 0) {
_parent._rotation = _parent._rotation + _parent.speed;
if (((_parent._x > 600) || (_parent._x - 20)) || (_parent._y > 400)) {
if (_parent._y > 390) {
_parent.explode = 1;
_root.blastEffect(_parent);
}
}
}
}
Instance of Symbol 458 MovieClip in Symbol 464 MovieClip [shot_1] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Symbol 481 Button
on (release) {
this.removeMovieClip();
}
Symbol 485 Button
on (release) {
_root.BuyItem(item, iname, price, qty, total);
}
Symbol 497 Button
on (release) {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = ("LEVEL " + _root.gamelevel) + " START";
_root.go = 1;
_root.stats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.lev = _root.lev + 1;
_root.cannonown[1] = 1;
_root.currentcan = 2;
_root.cannon.guntop.gotoAndStop(_root.currentcan);
_root.menu.cannontops.gotoAndStop(_root.currentcan);
_root.shields[0] = 100;
dtemp = Math.round(_root.shields[0] / 5);
if (dtemp <= 0) {
dtemp = 1;
}
_root.menu.damageout.gotoAndStop(dtemp);
this.removeMovieClip();
}
Symbol 503 Button
on (release) {
this._visible = 0;
}
Symbol 512 Button
on (release) {
this.gotoAndStop(3);
}
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 3
stop();
Symbol 516 Button
on (release) {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = ("LEVEL " + _root.gamelevel) + " START";
_root.go = 1;
_root.stats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.lev = _root.lev + 1;
_root.cannonown[2] = 1;
_root.currentcan = 3;
_root.cannon.guntop.gotoAndStop(_root.currentcan);
_root.menu.cannontops.gotoAndStop(_root.currentcan);
_root.shields[0] = 100;
dtemp = Math.round(_root.shields[0] / 5);
if (dtemp <= 0) {
dtemp = 1;
}
_root.menu.damageout.gotoAndStop(dtemp);
this.removeMovieClip();
}
Symbol 520 Button
on (release) {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = ("LEVEL " + _root.gamelevel) + " START";
_root.go = 1;
_root.stats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.lev = _root.lev + 1;
_root.cannonown[3] = 1;
_root.currentcan = 4;
_root.cannon.guntop.gotoAndStop(_root.currentcan);
_root.menu.cannontops.gotoAndStop(_root.currentcan);
_root.shields[0] = 100;
dtemp = Math.round(_root.shields[0] / 5);
if (dtemp <= 0) {
dtemp = 1;
}
_root.menu.damageout.gotoAndStop(dtemp);
this.removeMovieClip();
}
Symbol 524 Button
on (release) {
_root.backtext.gotoAndPlay(2);
_root.backtext.stext = ("LEVEL " + _root.gamelevel) + " START";
_root.go = 1;
_root.stats = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.lev = _root.lev + 1;
_root.cannonown[4] = 1;
_root.currentcan = 5;
_root.cannon.guntop.gotoAndStop(_root.currentcan);
_root.menu.cannontops.gotoAndStop(_root.currentcan);
_root.shields[0] = 100;
dtemp = Math.round(_root.shields[0] / 5);
if (dtemp <= 0) {
dtemp = 1;
}
_root.menu.damageout.gotoAndStop(dtemp);
this.removeMovieClip();
}
Symbol 528 Button
on (release) {
_root.gotoAndStop(1);
_root.ClearGame();
}
Symbol 537 MovieClip Frame 1
stop();
Symbol 539 Button
on (release) {
gotoAndStop (1);
}
Symbol 635 MovieClip Frame 1
stop();
Instance of Symbol 438 MovieClip "p2" in Symbol 635 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 443 MovieClip "p3" in Symbol 635 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 443 MovieClip "p4" in Symbol 635 MovieClip Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
}
Instance of Symbol 571 MovieClip "bossin" in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(2);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(2);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 2);
}
}
}
Instance of Symbol 589 MovieClip in Symbol 635 MovieClip Frame 3
/* no clip actions */
Instance of Symbol 634 MovieClip "bossin" in Symbol 635 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(5);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(5);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 5);
}
}
}
Symbol 644 MovieClip Frame 1
stop();
Symbol 654 MovieClip [weapons] Frame 1
weapover = 0;
c_price_can = 0;
engineout = _root.engines[0] + "%";
shieldout = Math.floor(_root.shields[0]) + "%";
cannon.guntop.gotoAndStop(_root.cannon.guntop._currentframe);
buybut.gotoAndStop(2);
popup._visible = 0;
popup.gotoAndStop(2);
popup._visible = 1;
_root.lev_1_sound1.stop();
_root.lev_1_sound1.attachSound("storemusic");
_root.lev_1_sound1.setVolume(100);
_root.lev_1_sound1.start(0, 9999);
stop();
Symbol 654 MovieClip [weapons] Frame 25
function seeStats() {
if (i <= _root.stats[0]) {
stat_0 = i;
}
if (i <= _root.stats[1]) {
stat_1 = i;
}
if (i <= _root.stats[2]) {
stat_2 = i;
}
if (i <= _root.stats[3]) {
stat_3 = i;
}
if (i <= _root.stats[4]) {
stat_4 = i;
}
if (i <= _root.stats[5]) {
stat_5 = i;
}
if (i <= _root.stats[6]) {
stat_6 = i;
}
if (i <= _root.stats[7]) {
stat_7 = i;
}
stat_8 = levarray[0 + (_root.gamelevel * 5)];
stat_9 = levarray[1 + (_root.gamelevel * 5)];
stat_10 = levarray[2 + (_root.gamelevel * 5)];
stat_11 = levarray[3 + (_root.gamelevel * 5)];
stat_12 = levarray[4 + (_root.gamelevel * 5)];
if (breaker) {
stat_0 = Math.round(_root.stats[0]);
stat_1 = Math.round(_root.stats[1]);
stat_2 = Math.round(_root.stats[2]);
stat_3 = Math.round(_root.stats[3]);
stat_4 = Math.round(_root.stats[4]);
stat_5 = Math.round(_root.stats[5]);
stat_6 = Math.round(_root.stats[6]);
stat_7 = Math.round(_root.stats[7]);
}
}
bombs.gotoAndStop(_root.gamelevel - 1);
bosses.gotoAndStop(_root.gamelevel - 1);
ships.gotoAndStop(_root.gamelevel - 1);
lastlev = ("LEVEL " + (_root.gamelevel - 1)) + " SUMMARY";
nextlev = "NEXT LEVEL: " + _root.gamelevel;
levarray = new Array(0, 0, 0, 0, 0, "15%", 150, 5, 0, 100, "25%", 300, 30, 1000, 100, "40%", 400, 40, 2000, 200, "55%", 600, 60, 3000, 300, "70%", 800, 80, 4000, 400, "85%", 1000, 100, 5000, 500);
breaker = 0;
i = 0;
Instance of Symbol 493 MovieClip in Symbol 654 MovieClip [weapons] Frame 25
onClipEvent (mouseDown) {
_parent.breaker = 1;
}
onClipEvent (enterFrame) {
_parent.seeStats();
_parent.i = _parent.i + 5;
}
Instance of Symbol 655 MovieClip [speedglowlink] in Symbol 656 MovieClip [gelcollector] Frame 1
onClipEvent (load) {
parent = _parent;
tim = 0;
_root.createEmptyMovieClip("gelcol" + _parent.c, 10678 + _parent.c);
}
onClipEvent (enterFrame) {
if ((tim < 100) && (_root.gelcollects[0] > 0)) {
tim = tim + 1;
if (_root.gelarray.length > 0) {
ran = random(_root.gelarray.length);
target = _root.gelarray[ran];
with (_root["gelcol" + _parent.c]) {
clear();
sx = _root.boat._x;
sy = _root.boat._y;
tx = target._x;
ty = target._y;
difx = (tx - sx) / 50;
dify = (ty - sy) / 10;
lineStyle(4 * (_root.gelcollects[1] / 100), 3368703, 100);
moveTo(sx, sy);
i = 0;
while (i < 8) {
sx = sx + ((difx * i) + (-4 + random(8)));
sy = sy + (dify + (-4 + random(8)));
lineTo(sx, sy);
i = i + 1;
}
lineTo(tx, ty);
rat = dify / difx;
target._x = target._x + ((sx - tx) / (400 / _root.gelcollects[1]));
target._y = target._y + ((sy - ty) / (400 / _root.gelcollects[1]));
if ((tim % 5) == 0) {
_root.gelcollects[0] = _root.gelcollects[0] - 1;
_root.menu.gelcollectout = _root.gelcollects[0];
}
}
} else {
_root["gelcol" + _parent.c].clear();
}
} else {
_root["gelcol" + _parent.c].clear();
_parent.removeMovieClip();
}
}
Instance of Symbol 655 MovieClip [speedglowlink] in Symbol 657 MovieClip [fountain] Frame 1
onClipEvent (load) {
_root.fountain_s.start(0, 9999);
target = 0;
posob = new Object();
parent = _parent;
_root.createEmptyMovieClip("fount" + _parent.c, 10678 + _parent.c);
}
onClipEvent (enterFrame) {
_root.shotCommon(parent);
if ((_root.astarray.length > 0) && (_root.fountains[0] > 0)) {
ran = random(_root.astarray.length);
target = _root.astarray[ran];
focus = 500 / _root.fountains[5];
f2 = focus * 2;
posob._x = (target._x - focus) + random(f2);
posob._y = (target._y - focus) + random(f2);
with (_root["fount" + _parent.c]) {
clear();
sx = parent._x;
sy = parent._y;
tx = posob._x;
ty = posob._y;
difx = (tx - sx) / 50;
dify = (ty - sy) / 10;
lineStyle(2, 10053375, 100);
moveTo(sx, sy);
i = 0;
while (i < 9) {
rans = -4 + random(8);
sx = sx + ((difx * i) + rans);
sy = sy + (dify + rans);
lineTo(sx, sy);
i = i + 1;
}
lineTo(tx, ty);
dam = (45 * (_root.fountains[1] / 100)) + random(15);
_root.blastEffect(posob, random(100));
_root.sparkOut(posob._x, posob._y, 2);
_root.fountains[0] = _root.fountains[0] - 1;
_root.menu.fountainsout = _root.fountains[0];
hitacc = _root.fountains[2];
if (random(100) <= hitacc) {
_root.astdetection(posob, target, ran, 5, 5, "t", dam);
}
}
} else {
_root.fountain_s.stop();
_root["fount" + _parent.c].clear();
_parent.removeMovieClip();
}
}
Instance of Symbol 659 MovieClip in Symbol 660 MovieClip [explosion_yellow] Frame 1
onClipEvent (load) {
x = -10 + random(10);
y = -10 + random(10);
if (x == 0) {
_parent.removeMovieClip();
}
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
_xscale = (_xscale - (Math.abs(x) * 8));
_yscale = _xscale;
if (_xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 659 MovieClip in Symbol 661 MovieClip [explosion_red] Frame 1
onClipEvent (load) {
x = -10 + random(10);
y = -10 + random(10);
if (x == 0) {
_parent.removeMovieClip();
}
}
onClipEvent (enterFrame) {
_x = (_x + x);
_y = (_y + y);
_xscale = (_xscale - (Math.abs(x) * 8));
_yscale = _xscale;
if (_xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 21 MovieClip in Symbol 663 MovieClip [gel] Frame 1
onClipEvent (load) {
inertia = 0;
}
onClipEvent (enterFrame) {
if (((_parent._x > 770) || (_parent._x < -50)) || (_parent._y > 425)) {
i = 0;
while (i <= _root.gelarray.length) {
if (_root.gelarray[i] == _parent) {
_root.gelarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
} else if (((Math.abs(_parent._x - _root.boat._x) < 75) && (Math.abs(_parent._y - _root.boat._y) < 35)) && (!_root.gameover)) {
_root.gelcollected = _root.gelcollected + Math.round(_parent.gelsize * 4);
_root.stats[7] = _root.stats[7] + Math.round(_parent.gelsize * 4);
_root.menu.gelout = _root.gelcollected;
_root.menu.gelback.gotoAndPlay(2);
_root.attachMovie("numberup", "numup" + _parent.n, 83400 + _parent.n);
_root["numup" + _parent.n]._x = _parent._x;
_root["numup" + _parent.n]._y = _parent._y;
_root["numup" + _parent.n].numupin.t = Math.round(_parent.gelsize * 4);
i = 0;
while (i <= _root.gelarray.length) {
if (_root.gelarray[i] == _parent) {
_root.gelarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (_root.wind > 0) {
if (inertia < 5) {
inertia = inertia + 0.1;
}
} else if (inertia > -5) {
inertia = inertia - 0.1;
}
_parent._x = _parent._x + (inertia / 2);
_parent._y = _parent._y + 5;
}
Symbol 667 MovieClip Frame 1
stop();
Instance of Symbol 665 MovieClip in Symbol 669 MovieClip [ship_1_in] Frame 1
onClipEvent (enterFrame) {
if (_parent.typ == 0) {
_root.ship_pattern_move(_parent, 1);
} else if (_parent.typ == 1) {
_root.ship_sin_move(_parent, 1);
} else {
_root.ship_move(_parent, 1);
}
_parent.time = _parent.time + 1;
if (random(100) > 95) {
_root.attachMovie("bullet_1", "bullet_1" + _root.bulcount, 500980 + _root.bulcount);
_root["bullet_1" + _root.bulcount]._x = _parent._x - (_parent.x / 10);
_root["bullet_1" + _root.bulcount]._y = _parent._y - (_parent.y / 10);
_root["bullet_1" + _root.bulcount].velx = _parent.x / 25;
_root["bullet_1" + _root.bulcount].vely = _parent.y / 25;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
if (_parent.explode) {
_root.posGuy(11, _parent._x, _parent._y, 400);
_parent.removeMovieClip();
}
}
Instance of Symbol 669 MovieClip [ship_1_in] "shipin" in Symbol 670 MovieClip [ship_1] Frame 1
onClipEvent (load) {
_parent.r = new Array();
o = 0;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
_parent.r[o] = Math.round(this._y);
o = o + 1;
}
Instance of Symbol 673 MovieClip in Symbol 674 MovieClip [spark] Frame 1
onClipEvent (load) {
ranx = -5 + random(10);
rany = -5 + random(10);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + ranx;
_parent._y = _parent._y + rany;
_parent._xscale = _parent._xscale - 10;
_parent._yscale = _parent._yscale - 10;
if (_parent._xscale <= 0) {
_parent.removeMovieClip();
}
}
Symbol 677 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.candlesout = candle_ammo;
_root.candles[0] = candle_ammo;
_root.candles[1] = candle_strength;
_root.candles[2] = candle_speed;
_root.candles[3] = candle_size;
_root.candles[4] = candle_recharge;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 680 Button
on (release) {
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
}
Symbol 690 Button
on (press) {
placeRemote(2);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 695 Button
on (press) {
placeRemote(1);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 696 Button
on (press) {
placeRemote(4);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 697 Button
on (press) {
placeRemote(3);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 698 Button
on (press) {
placeRemote(6);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 699 Button
on (press) {
placeRemote(5);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 700 Button
on (press) {
placeRemote(8);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 701 Button
on (press) {
placeRemote(7);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 702 Button
on (press) {
placeRemote(10);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 703 Button
on (press) {
placeRemote(9);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 721 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.cometsout = comet_ammo;
_root.comets[0] = comet_ammo;
_root.comets[1] = comet_strength;
_root.comets[2] = comet_speed;
_root.comets[3] = comet_size;
_root.comets[4] = comet_recharge;
_root.comets[5] = comet_trail;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 730 Button
on (press) {
placeRemote(12);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 731 Button
on (press) {
placeRemote(11);
}
on (release) {
remoteP.removeMovieClip();
}
Symbol 751 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.airbombsout = airbomb_ammo;
_root.airbombs[0] = airbomb_ammo;
_root.airbombs[1] = airbomb_strength;
_root.airbombs[2] = airbomb_speed;
_root.airbombs[3] = airbomb_size;
_root.airbombs[4] = airbomb_recharge;
_root.airbombs[5] = airbomb_frequency;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 779 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.bombshellsout = bombshell_ammo;
_root.bombshells[0] = bombshell_ammo;
_root.bombshells[1] = bombshell_strength;
_root.bombshells[2] = bombshell_speed;
_root.bombshells[3] = bombshell_size;
_root.bombshells[4] = bombshell_recharge;
_root.bombshells[5] = bombshell_explosion;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 782 Button
on (release) {
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
}
Symbol 808 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.fountainsout = fountain_ammo;
_root.fountains[0] = fountain_ammo;
_root.fountains[1] = fountain_accuracy;
_root.fountains[2] = fountain_economy;
_root.fountains[3] = fountain_burst;
_root.fountains[4] = fountain_focus;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 832 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.gelcollectout = gelcollect_ammo;
_root.gelcollects[0] = gelcollect_ammo;
_root.gelcollects[1] = gelcollect_strength;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 844 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.healthout = healthpack_ammo;
_root.healthpacks[0] = healthpack_ammo;
_root.healthpacks[1] = healthpack_strength;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 856 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.sparklersout = sparkler_ammo;
_root.sparklers[0] = sparkler_ammo;
_root.sparklers[1] = sparkler_strength;
_root.sparklers[2] = sparkler_burn;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 872 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.glowbombsout = glowbomb_ammo;
_root.glowbombs[0] = glowbomb_ammo;
_root.glowbombs[1] = glowbomb_strength;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 884 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.enginesout = engine_ammo;
_root.weaps.engineout = engine_ammo;
_root.engines[0] = engine_ammo;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_root.boat.boat_in.engine1.flame._xscale = _root.engines[0] * 2.5;
_root.boat.boat_in.engine1.flame._yscale = _root.engines[0] * 2.5;
_root.boat.boat_in.engine2.flame._xscale = _root.engines[0] * 2.5;
_root.boat.boat_in.engine2.flame._yscale = _root.engines[0] * 2.5;
_root.boat.boat_in.engine1.flame._x = _root.boat.boat_in.engine1.flame._x - (_root.engines[0] / 20);
_root.boat.boat_in.engine2.flame._x = _root.boat.boat_in.engine2.flame._x - (_root.engines[0] / 20);
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 892 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.fountainsout = fountain_ammo;
_root.fountains[0] = fountain_ammo;
_root.fountains[1] = fountain_accuracy;
_root.fountains[2] = fountain_economy;
_root.fountains[3] = fountain_burst;
_root.fountains[4] = fountain_focus;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
}
}
Symbol 904 Button
on (release) {
if (_root.gelcollected >= c_price) {
_root.menu.shieldsout = Math.floor(shield_ammo);
_root.weaps.shieldout = Math.floor(shield_ammo);
_root.menu.damageout.gotoAndStop(Math.floor(shield_ammo));
_root.shields[0] = shield_ammo;
_root.shields[1] = shield_strength;
_root.gelcollected = _root.gelcollected - c_price;
_root.menu.gelout = _root.gelcollected;
_parent.gotoAndPlay(11);
_parent._parent.weapover = 0;
c_price = 0;
} else {
_root.weaps.popup._visible = 1;
}
}
Symbol 915 MovieClip [weaponoverlay] Frame 1
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (candle_ammo <= 999) {
candle_ammo = candle_ammo + 1;
candle_ammo_g.gotoAndStop(candle_ammo / 50);
c_price = Number(c_price) + 25;
}
} else if (p == 2) {
if (candle_ammo > _root.candles[0]) {
candle_ammo = candle_ammo - 1;
candle_ammo_g.gotoAndStop(candle_ammo / 50);
c_price = Number(c_price) - 25;
}
} else if (p == 3) {
if (candle_strength <= 99) {
candle_strength = candle_strength + 1;
candle_strength_g.gotoAndStop(candle_strength / 5);
c_price = Number(c_price) + 30;
}
} else if (p == 4) {
if (candle_strength > _root.candles[1]) {
candle_strength = candle_strength - 1;
candle_strength_g.gotoAndStop(candle_strength / 5);
c_price = Number(c_price) - 30;
}
} else if (p == 5) {
if (candle_speed <= 99) {
candle_speed = candle_speed + 1;
candle_speed_g.gotoAndStop(candle_speed / 5);
c_price = Number(c_price) + 25;
}
} else if (p == 6) {
if (candle_speed > _root.candles[2]) {
candle_speed = candle_speed - 1;
candle_speed_g.gotoAndStop(candle_speed / 5);
c_price = Number(c_price) - 25;
}
} else if (p == 7) {
if (candle_size <= 99) {
candle_size = candle_size + 1;
candle_size_g.gotoAndStop(candle_size / 5);
c_price = Number(c_price) + 40;
}
} else if (p == 8) {
if (candle_size > _root.candles[3]) {
candle_size = candle_size - 1;
candle_size_g.gotoAndStop(candle_size / 5);
c_price = Number(c_price) - 40;
}
} else if (p == 9) {
if (candle_recharge <= 99) {
candle_recharge = candle_recharge + 1;
candle_recharge_g.gotoAndStop(candle_recharge / 5);
c_price = Number(c_price) + 45;
}
} else if (p == 10) {
if (candle_recharge > _root.candles[4]) {
candle_recharge = candle_recharge - 1;
candle_recharge_g.gotoAndStop(candle_recharge / 5);
c_price = Number(c_price) - 45;
}
}
}
c_price = 0;
candle_ammo = _root.candles[0];
candle_strength = _root.candles[1];
candle_speed = _root.candles[2];
candle_size = _root.candles[3];
candle_recharge = _root.candles[4];
candle_ammo_g.gotoAndStop(Math.floor(_root.candles[0] / 50));
candle_strength_g.gotoAndStop(Math.floor(_root.candles[1] / 5));
candle_speed_g.gotoAndStop(Math.floor(_root.candles[2] / 5));
candle_size_g.gotoAndStop(Math.floor(_root.candles[3] / 5));
candle_recharge_g.gotoAndStop(Math.floor(_root.candles[4] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 2
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (comet_ammo <= 999) {
comet_ammo = comet_ammo + 1;
comet_ammo_g.gotoAndStop(comet_ammo / 50);
c_price = Number(c_price) + 15;
}
} else if (p == 2) {
if (comet_ammo > _root.comets[0]) {
comet_ammo = comet_ammo - 1;
comet_ammo_g.gotoAndStop(comet_ammo / 50);
c_price = Number(c_price) - 15;
}
} else if (p == 3) {
if (comet_strength <= 99) {
comet_strength = comet_strength + 1;
comet_strength_g.gotoAndStop(comet_strength / 5);
c_price = Number(c_price) + 75;
}
} else if (p == 4) {
if (comet_strength > _root.comets[1]) {
comet_strength = comet_strength - 1;
comet_strength_g.gotoAndStop(comet_strength / 5);
c_price = Number(c_price) - 75;
}
} else if (p == 5) {
if (comet_speed <= 99) {
comet_speed = comet_speed + 1;
comet_speed_g.gotoAndStop(comet_speed / 5);
c_price = Number(c_price) + 80;
}
} else if (p == 6) {
if (comet_speed > _root.comets[2]) {
comet_speed = comet_speed - 1;
comet_speed_g.gotoAndStop(comet_speed / 5);
c_price = Number(c_price) - 80;
}
} else if (p == 7) {
if (comet_size <= 99) {
comet_size = comet_size + 1;
comet_size_g.gotoAndStop(comet_size / 5);
c_price = Number(c_price) + 50;
}
} else if (p == 8) {
if (comet_size > _root.comets[3]) {
comet_size = comet_size - 1;
comet_size_g.gotoAndStop(comet_size / 5);
c_price = Number(c_price) - 50;
}
} else if (p == 9) {
if (comet_recharge <= 99) {
comet_recharge = comet_recharge + 1;
comet_recharge_g.gotoAndStop(comet_recharge / 5);
c_price = Number(c_price) + 75;
}
} else if (p == 10) {
if (comet_recharge > _root.comets[4]) {
comet_recharge = comet_recharge - 1;
comet_recharge_g.gotoAndStop(comet_recharge / 5);
c_price = Number(c_price) - 75;
}
} else if (p == 11) {
if (comet_trail <= 99) {
comet_trail = comet_trail + 1;
comet_trail_g.gotoAndStop(comet_trail / 5);
c_price = Number(c_price) + 100;
}
} else if (p == 12) {
if (comet_trail > _root.comets[5]) {
comet_trail = comet_trail - 1;
comet_trail_g.gotoAndStop(comet_trail / 5);
c_price = Number(c_price) - 100;
}
}
}
c_price = 0;
comet_ammo = _root.comets[0];
comet_strength = _root.comets[1];
comet_speed = _root.comets[2];
comet_size = _root.comets[3];
comet_recharge = _root.comets[4];
comet_trail = _root.comets[5];
comet_ammo_g.gotoAndStop(Math.floor(_root.comets[0] / 5));
comet_strength_g.gotoAndStop(Math.floor(_root.comets[1] / 5));
comet_speed_g.gotoAndStop(Math.floor(_root.comets[2] / 5));
comet_size_g.gotoAndStop(Math.floor(_root.comets[3] / 5));
comet_recharge_g.gotoAndStop(Math.floor(_root.comets[4] / 5));
comet_trail_g.gotoAndStop(Math.floor(_root.comets[5] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 3
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (airbomb_ammo <= 999) {
airbomb_ammo = airbomb_ammo + 1;
airbomb_ammo_g.gotoAndStop(airbomb_ammo / 50);
c_price = Number(c_price) + 25;
}
} else if (p == 2) {
if (airbomb_ammo > _root.airbombs[0]) {
airbomb_ammo = airbomb_ammo - 1;
airbomb_ammo_g.gotoAndStop(airbomb_ammo / 50);
c_price = Number(c_price) - 25;
}
} else if (p == 3) {
if (airbomb_strength <= 99) {
airbomb_strength = airbomb_strength + 1;
airbomb_strength_g.gotoAndStop(airbomb_strength / 5);
c_price = Number(c_price) + 90;
}
} else if (p == 4) {
if (airbomb_strength > _root.airbombs[1]) {
airbomb_strength = airbomb_strength - 1;
airbomb_strength_g.gotoAndStop(airbomb_strength / 5);
c_price = Number(c_price) - 90;
}
} else if (p == 5) {
if (airbomb_speed <= 99) {
airbomb_speed = airbomb_speed + 1;
airbomb_speed_g.gotoAndStop(airbomb_speed / 5);
c_price = Number(c_price) + 95;
}
} else if (p == 6) {
if (airbomb_speed > _root.airbombs[2]) {
airbomb_speed = airbomb_speed - 1;
airbomb_speed_g.gotoAndStop(airbomb_speed / 5);
c_price = Number(c_price) - 95;
}
} else if (p == 7) {
if (airbomb_size <= 99) {
airbomb_size = airbomb_size + 1;
airbomb_size_g.gotoAndStop(airbomb_size / 5);
c_price = Number(c_price) + 115;
}
} else if (p == 8) {
if (airbomb_size > _root.airbombs[3]) {
airbomb_size = airbomb_size - 1;
airbomb_size_g.gotoAndStop(airbomb_size / 5);
c_price = Number(c_price) - 115;
}
} else if (p == 9) {
if (airbomb_recharge <= 99) {
airbomb_recharge = airbomb_recharge + 1;
airbomb_recharge_g.gotoAndStop(airbomb_recharge / 5);
c_price = Number(c_price) + 150;
}
} else if (p == 10) {
if (airbomb_recharge > _root.airbombs[4]) {
airbomb_recharge = airbomb_recharge - 1;
airbomb_recharge_g.gotoAndStop(airbomb_recharge / 5);
c_price = Number(c_price) - 150;
}
} else if (p == 11) {
if (airbomb_frequency <= 99) {
airbomb_frequency = airbomb_frequency + 1;
airbomb_frequency_g.gotoAndStop(airbomb_frequency / 5);
c_price = Number(c_price) + 300;
}
} else if (p == 12) {
if (airbomb_frequency > _root.airbombs[5]) {
airbomb_frequency = airbomb_frequency - 1;
airbomb_frequency_g.gotoAndStop(airbomb_frequency / 5);
c_price = Number(c_price) - 300;
}
}
}
c_price = 0;
airbomb_ammo = _root.airbombs[0];
airbomb_strength = _root.airbombs[1];
airbomb_speed = _root.airbombs[2];
airbomb_size = _root.airbombs[3];
airbomb_recharge = _root.airbombs[4];
airbomb_frequency = _root.airbombs[5];
airbomb_ammo_g.gotoAndStop(Math.floor(_root.airbombs[0] / 50));
airbomb_strength_g.gotoAndStop(Math.floor(_root.airbombs[1] / 5));
airbomb_speed_g.gotoAndStop(Math.floor(_root.airbombs[2] / 5));
airbomb_size_g.gotoAndStop(Math.floor(_root.airbombs[3] / 5));
airbomb_recharge_g.gotoAndStop(Math.floor(_root.airbombs[4] / 5));
airbomb_frequency_g.gotoAndStop(Math.floor(_root.airbombs[5] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 4
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (bombshell_ammo <= 999) {
bombshell_ammo = bombshell_ammo + 1;
bombshell_ammo_g.gotoAndStop(bombshell_ammo / 50);
c_price = Number(c_price) + 50;
}
} else if (p == 2) {
if (bombshell_ammo > _root.bombshells[0]) {
bombshell_ammo = bombshell_ammo - 1;
bombshell_ammo_g.gotoAndStop(bombshell_ammo / 50);
c_price = Number(c_price) - 50;
}
} else if (p == 3) {
if (bombshell_strength <= 99) {
bombshell_strength = bombshell_strength + 1;
bombshell_strength_g.gotoAndStop(bombshell_strength / 5);
c_price = Number(c_price) + 150;
}
} else if (p == 4) {
if (bombshell_strength > _root.bombshells[1]) {
bombshell_strength = bombshell_strength - 1;
bombshell_strength_g.gotoAndStop(bombshell_strength / 5);
c_price = Number(c_price) - 150;
}
} else if (p == 5) {
if (bombshell_speed <= 99) {
bombshell_speed = bombshell_speed + 1;
bombshell_speed_g.gotoAndStop(bombshell_speed / 5);
c_price = Number(c_price) + 160;
}
} else if (p == 6) {
if (bombshell_speed > _root.bombshells[2]) {
bombshell_speed = bombshell_speed - 1;
bombshell_speed_g.gotoAndStop(bombshell_speed / 5);
c_price = Number(c_price) - 160;
}
} else if (p == 7) {
if (bombshell_size <= 99) {
bombshell_size = bombshell_size + 1;
bombshell_size_g.gotoAndStop(bombshell_size / 5);
c_price = Number(c_price) + 180;
}
} else if (p == 8) {
if (bombshell_size > _root.bombshells[3]) {
bombshell_size = bombshell_size - 1;
bombshell_size_g.gotoAndStop(bombshell_size / 5);
c_price = Number(c_price) - 180;
}
} else if (p == 9) {
if (bombshell_recharge <= 99) {
bombshell_recharge = bombshell_recharge + 1;
bombshell_recharge_g.gotoAndStop(bombshell_recharge / 5);
c_price = Number(c_price) + 250;
}
} else if (p == 10) {
if (bombshell_recharge > _root.bombshells[4]) {
bombshell_recharge = bombshell_recharge - 1;
bombshell_recharge_g.gotoAndStop(bombshell_recharge / 5);
c_price = Number(c_price) - 250;
}
} else if (p == 11) {
if (bombshell_explosion <= 99) {
bombshell_explosion = bombshell_explosion + 1;
bombshell_explosion_g.gotoAndStop(bombshell_explosion / 5);
c_price = Number(c_price) + 350;
}
} else if (p == 12) {
if (bombshell_explosion > _root.bombshells[5]) {
bombshell_explosion = bombshell_explosion - 1;
bombshell_explosion_g.gotoAndStop(bombshell_explosion / 5);
c_price = Number(c_price) - 350;
}
}
}
c_price = 0;
bombshell_ammo = _root.bombshells[0];
bombshell_strength = _root.bombshells[1];
bombshell_speed = _root.bombshells[2];
bombshell_size = _root.bombshells[3];
bombshell_recharge = _root.bombshells[4];
bombshell_explosion = _root.bombshells[5];
bombshell_ammo_g.gotoAndStop(Math.floor(_root.bombshells[0] / 50));
bombshell_strength_g.gotoAndStop(Math.floor(_root.bombshells[1] / 5));
bombshell_speed_g.gotoAndStop(Math.floor(_root.bombshells[2] / 5));
bombshell_size_g.gotoAndStop(Math.floor(_root.bombshells[3] / 5));
bombshell_recharge_g.gotoAndStop(Math.floor(_root.bombshells[4] / 5));
bombshell_explosion_g.gotoAndStop(Math.floor(_root.bombshells[5] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 5
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (fountain_ammo <= 999) {
fountain_ammo = fountain_ammo + 1;
fountain_ammo_g.gotoAndStop(fountain_ammo / 50);
c_price = Number(c_price) + 25;
}
} else if (p == 2) {
if (fountain_ammo > _root.fountains[0]) {
fountain_ammo = fountain_ammo - 1;
fountain_ammo_g.gotoAndStop(fountain_ammo / 50);
c_price = Number(c_price) - 25;
}
} else if (p == 3) {
if (fountain_strength <= 99) {
fountain_strength = fountain_strength + 1;
fountain_strength_g.gotoAndStop(fountain_strength / 5);
c_price = Number(c_price) + 250;
}
} else if (p == 4) {
if (fountain_strength > _root.fountains[1]) {
fountain_strength = fountain_strength - 1;
fountain_strength_g.gotoAndStop(fountain_strength / 5);
c_price = Number(c_price) - 250;
}
} else if (p == 5) {
if (fountain_accuracy <= 99) {
fountain_accuracy = fountain_accuracy + 1;
fountain_accuracy_g.gotoAndStop(fountain_accuracy / 5);
c_price = Number(c_price) + 350;
}
} else if (p == 6) {
if (fountain_accuracy > _root.fountains[2]) {
fountain_accuracy = fountain_accuracy - 1;
fountain_accuracy_g.gotoAndStop(fountain_accuracy / 5);
c_price = Number(c_price) - 350;
}
} else if (p == 7) {
if (fountain_economy <= 99) {
fountain_economy = fountain_economy + 1;
fountain_economy_g.gotoAndStop(fountain_economy / 5);
c_price = Number(c_price) + 600;
}
} else if (p == 8) {
if (fountain_economy > _root.fountains[3]) {
fountain_economy = fountain_economy - 1;
fountain_economy_g.gotoAndStop(fountain_economy / 5);
c_price = Number(c_price) - 600;
}
} else if (p == 9) {
if (fountain_burst <= 99) {
fountain_burst = fountain_burst + 1;
fountain_burst_g.gotoAndStop(fountain_burst / 5);
c_price = Number(c_price) + 25;
}
} else if (p == 10) {
if (fountain_burst > _root.fountains[4]) {
fountain_burst = fountain_burst - 1;
fountain_burst_g.gotoAndStop(fountain_burst / 5);
c_price = Number(c_price) - 25;
}
} else if (p == 11) {
if (fountain_focus <= 99) {
fountain_focus = fountain_focus + 1;
fountain_focus_g.gotoAndStop(fountain_focus / 5);
c_price = Number(c_price) + 450;
}
} else if (p == 12) {
if (fountain_focus > _root.fountains[5]) {
fountain_focus = fountain_focus - 1;
fountain_focus_g.gotoAndStop(fountain_focus / 5);
c_price = Number(c_price) - 450;
}
}
}
c_price = 0;
fountain_ammo = _root.fountains[0];
fountain_strength = _root.fountains[1];
fountain_accuracy = _root.fountains[2];
fountain_economy = _root.fountains[3];
fountain_burst = _root.fountains[4];
fountain_focus = _root.fountains[5];
fountain_ammo_g.gotoAndStop(Math.floor(_root.fountains[0] / 50));
fountain_strength_g.gotoAndStop(Math.floor(_root.fountains[1] / 5));
fountain_accuracy_g.gotoAndStop(Math.floor(_root.fountains[2] / 5));
fountain_economy_g.gotoAndStop(Math.floor(_root.fountains[3] / 5));
fountain_burst_g.gotoAndStop(Math.floor(_root.fountains[4] / 5));
fountain_focus_g.gotoAndStop(Math.floor(_root.fountains[5] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 6
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (gelcollect_ammo <= 999) {
gelcollect_ammo = gelcollect_ammo + 1;
gelcollect_ammo_g.gotoAndStop(gelcollect_ammo / 50);
c_price = Number(c_price) + 10;
}
} else if (p == 2) {
if (gelcollect_ammo > _root.gelcollects[0]) {
gelcollect_ammo = gelcollect_ammo - 1;
gelcollect_ammo_g.gotoAndStop(gelcollect_ammo / 50);
c_price = Number(c_price) - 10;
}
} else if (p == 3) {
if (gelcollect_strength <= 99) {
gelcollect_strength = gelcollect_strength + 1;
gelcollect_strength_g.gotoAndStop(gelcollect_strength / 5);
c_price = Number(c_price) + 50;
}
} else if (p == 4) {
if (gelcollect_strength > _root.gelcollects[1]) {
gelcollect_strength = gelcollect_strength - 1;
gelcollect_strength_g.gotoAndStop(gelcollect_strength / 5);
c_price = Number(c_price) - 50;
}
}
}
c_price = 0;
gelcollect_ammo = _root.gelcollects[0];
gelcollect_strength = _root.gelcollects[1];
gelcollect_ammo_g.gotoAndStop(Math.floor(_root.gelcollects[0] / 50));
gelcollect_strength_g.gotoAndStop(Math.floor(_root.gelcollects[1] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 7
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (healthpack_ammo <= 9) {
healthpack_ammo = healthpack_ammo + 1;
healthpack_ammo_g.gotoAndStop(healthpack_ammo / 0.5);
c_price = Number(c_price) + 500;
}
} else if (p == 2) {
if (healthpack_ammo > _root.healthpacks[0]) {
healthpack_ammo = healthpack_ammo - 1;
healthpack_ammo_g.gotoAndStop(healthpack_ammo / 0.5);
c_price = Number(c_price) - 500;
}
} else if (p == 3) {
if (healthpack_strength <= 99) {
healthpack_strength = healthpack_strength + 1;
healthpack_strength_g.gotoAndStop(healthpack_strength / 5);
c_price = Number(c_price) + 750;
}
} else if (p == 4) {
if (healthpack_strength > _root.healthpacks[1]) {
healthpack_strength = healthpack_strength - 1;
healthpack_strength_g.gotoAndStop(healthpack_strength / 5);
c_price = Number(c_price) - 750;
}
}
}
c_price = 0;
healthpack_ammo = _root.healthpacks[0];
healthpack_strength = _root.healthpacks[1];
healthpack_ammo_g.gotoAndStop(Math.floor(_root.healthpacks[0] / 0.5));
healthpack_strength_g.gotoAndStop(Math.floor(_root.healthpacks[1] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 8
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (sparkler_ammo <= 99) {
sparkler_ammo = sparkler_ammo + 1;
sparkler_ammo_g.gotoAndStop(sparkler_ammo / 5);
c_price = Number(c_price) + 50;
}
} else if (p == 2) {
if (sparkler_ammo > _root.sparklers[0]) {
sparkler_ammo = sparkler_ammo - 1;
sparkler_ammo_g.gotoAndStop(sparkler_ammo / 5);
c_price = Number(c_price) - 50;
}
} else if (p == 3) {
if (sparkler_strength <= 99) {
sparkler_strength = sparkler_strength + 1;
sparkler_strength_g.gotoAndStop(sparkler_strength / 5);
c_price = Number(c_price) + 100;
}
} else if (p == 4) {
if (sparkler_strength > _root.sparklers[1]) {
sparkler_strength = sparkler_strength - 1;
sparkler_strength_g.gotoAndStop(sparkler_strength / 5);
c_price = Number(c_price) - 100;
}
} else if (p == 35) {
if (sparkler_burn <= 99) {
sparkler_burn = sparkler_burn + 1;
sparkler_burn_g.gotoAndStop(sparkler_burn / 5);
c_price = Number(c_price) + 150;
}
} else if (p == 6) {
if (sparkler_burn > _root.sparklers[2]) {
sparkler_burn = sparkler_burn - 1;
sparkler_burn_g.gotoAndStop(sparkler_burn / 5);
c_price = Number(c_price) - 150;
}
}
}
c_price = 0;
sparkler_ammo = _root.sparklers[0];
sparkler_strength = _root.sparklers[1];
sparkler_burn = _root.sparklers[2];
sparkler_ammo_g.gotoAndStop(Math.floor(_root.sparklers[0] / 5));
sparkler_strength_g.gotoAndStop(Math.floor(_root.sparklers[1] / 5));
sparkler_burn_g.gotoAndStop(Math.floor(_root.sparklers[2] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 9
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (glowbomb_ammo <= 9) {
glowbomb_ammo = glowbomb_ammo + 1;
glowbomb_ammo_g.gotoAndStop(glowbomb_ammo / 0.5);
c_price = Number(c_price) + 900;
}
} else if (p == 2) {
if (glowbomb_ammo > _root.glowbombs[0]) {
glowbomb_ammo = glowbomb_ammo - 1;
glowbomb_ammo_g.gotoAndStop(glowbomb_ammo / 0.5);
c_price = Number(c_price) - 900;
}
} else if (p == 3) {
if (glowbomb_strength <= 99) {
glowbomb_strength = glowbomb_strength + 1;
glowbomb_strength_g.gotoAndStop(glowbomb_strength / 5);
c_price = Number(c_price) + 750;
}
} else if (p == 4) {
if (glowbomb_strength > _root.glowbombs[1]) {
glowbomb_strength = glowbomb_strength - 1;
glowbomb_strength_g.gotoAndStop(glowbomb_strength / 5);
c_price = Number(c_price) - 750;
}
}
}
c_price = 0;
glowbomb_ammo = _root.glowbombs[0];
glowbomb_strength = _root.glowbombs[1];
glowbomb_ammo_g.gotoAndStop(Math.floor(_root.glowbombs[0] / 0.5));
glowbomb_strength_g.gotoAndStop(Math.floor(_root.glowbombs[1] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 10
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (engine_ammo <= 99) {
engine_ammo = engine_ammo + 1;
engine_ammo_g.gotoAndStop(engine_ammo / 5);
c_price = Number(c_price) + 300;
}
} else if (p == 2) {
if (engine_ammo > _root.engines[0]) {
engine_ammo = engine_ammo - 1;
engine_ammo_g.gotoAndStop(engine_ammo / 5);
c_price = Number(c_price) - 300;
}
}
}
c_price = 0;
engine_ammo = _root.engines[0];
engine_ammo_g.gotoAndStop(Math.floor(_root.engines[0] / 5));
stop();
Symbol 915 MovieClip [weaponoverlay] Frame 12
function placeRemote(p) {
attachMovie("remoteP", "remoteP", 7020);
remoteP._x = remoteP._x - 1000;
remoteP._y = remoteP._y - 1000;
remoteP.p = p;
}
function incIt(p) {
if (p == 1) {
if (shield_ammo <= 99) {
shield_ammo = shield_ammo + 1;
shield_ammo_g.gotoAndStop(Math.floor(shield_ammo / 5));
c_price = Number(c_price) + 15;
}
} else if (p == 2) {
if (shield_ammo > _root.shields[0]) {
shield_ammo = shield_ammo - 1;
shield_ammo_g.gotoAndStop(Math.floor(shield_ammo / 5));
c_price = Number(c_price) - 15;
}
} else if (p == 3) {
if (shield_strength <= 99) {
shield_strength = shield_strength + 1;
shield_strength_g.gotoAndStop(shield_strength / 5);
c_price = Number(c_price) + 100;
}
} else if (p == 4) {
if (shield_strength > _root.shields[1]) {
shield_strength = shield_strength - 1;
shield_strength_g.gotoAndStop(shield_strength / 5);
c_price = Number(c_price) - 100;
}
}
}
c_price = 0;
shield_ammo = Math.floor(_root.shields[0]);
shield_strength = _root.shields[1];
shield_ammo_g.gotoAndStop(Math.floor(_root.shields[0] / 5));
shield_strength_g.gotoAndStop(Math.floor(_root.shields[1] / 5));
stop();
Symbol 917 MovieClip Frame 1
stop();
Symbol 918 MovieClip [numberup] Frame 25
this.removeMovieClip();
Symbol 918 MovieClip [numberup] Frame 51
this.removeMovieClip();
Symbol 918 MovieClip [numberup] Frame 75
this.removeMovieClip();
Instance of Symbol 920 MovieClip in Symbol 921 MovieClip [astbase] Frame 1
onClipEvent (load) {
x = -10 + random(20);
y = -10 + random(20);
}
onClipEvent (enterFrame) {
if (_parent._parent.explode == 1) {
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
_parent._xscale = _parent._xscale + x;
_parent._yscale = _parent._yscale + y;
_parent._alpha = _parent._alpha - 10;
if (_parent._alpha <= 0) {
_parent._parent.removeMovieClip();
}
}
}
Instance of Symbol 921 MovieClip [astbase] in Symbol 922 MovieClip [asteroid] Frame 1
onClipEvent (load) {
inertia = 0;
_parent.explode = 0;
cols = new Array("greys", "blues", "yellows", "reds", "oranges", "greens");
rn = random(5);
thiscol = cols[_root.gamelevel - 1];
speed = _parent.speed + random(7);
astsize = _parent.astsize;
asize = astsize / 2;
i = 0;
while (i <= astsize) {
_parent.attachMovie("astbase", "ast" + i, 700 + i);
ast = eval ("_parent.ast" + i);
mycol = new Color(ast);
mc = eval ("_root." + thiscol);
mycol.setRGB(mc[random(4)]);
ast._x = ast._x + ((-asize) + random(asize * 2));
ast._y = ast._y + ((-asize) + random(asize * 2));
i = i + 1;
}
}
onClipEvent (enterFrame) {
if ((((_parent._x > 600) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_root.splash(_parent._x, _parent._y, 8);
_parent.removeMovieClip();
}
if (!_parent.explode) {
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + speed;
_parent._rotation = _parent._rotation + (speed / 2);
}
}
Instance of Symbol 924 MovieClip in Symbol 925 MovieClip [ship_2_in] Frame 1
onClipEvent (enterFrame) {
if (_parent.typ == 0) {
_root.ship_pattern_move(_parent, 2);
} else if (_parent.typ == 1) {
_root.ship_sin_move(_parent, 2);
} else {
_root.ship_move(_parent, 2);
}
_parent.time = _parent.time + 1;
if (random(100) > 95) {
_root.attachMovie("bullet_2", "bullet_2" + _root.bulcount, 500980 + _root.bulcount);
_root["bullet_2" + _root.bulcount]._x = _parent._x;
_root["bullet_2" + _root.bulcount]._y = _parent._y + 20;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
if (_parent.explode) {
_root.posGuy(10, _parent._x, _parent._y, 400);
_parent.removeMovieClip();
}
}
Instance of Symbol 925 MovieClip [ship_2_in] "shipin" in Symbol 926 MovieClip [ship_2_b] Frame 1
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Instance of Symbol 925 MovieClip [ship_2_in] "shipin" in Symbol 927 MovieClip [ship_2] Frame 1
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Instance of Symbol 929 MovieClip in Symbol 930 MovieClip [ship_3_in] Frame 1
onClipEvent (enterFrame) {
if (_parent.typ == 0) {
_root.ship_pattern_move(_parent, 3);
} else if (_parent.typ == 1) {
_root.ship_sin_move(_parent, 3);
} else {
_root.ship_move(_parent, 3);
}
_parent.time = _parent.time + 1;
if (random(100) > 95) {
_root.attachMovie("bullet_3", "bullet_3" + _root.bulcount, 500980 + _root.bulcount);
_root["bullet_3" + _root.bulcount]._x = _parent._x;
_root["bullet_3" + _root.bulcount]._y = _parent._y + 20;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
if (_parent.explode) {
_root.posGuy(12, _parent._x, _parent._y, 400);
_parent.removeMovieClip();
}
}
Instance of Symbol 930 MovieClip [ship_3_in] "shipin" in Symbol 931 MovieClip [ship_3] Frame 1
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Instance of Symbol 930 MovieClip [ship_3_in] "shipin" in Symbol 931 MovieClip [ship_3] Frame 65
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Symbol 934 MovieClip [ship_5_in] Frame 1
time = 1;
Instance of Symbol 933 MovieClip in Symbol 934 MovieClip [ship_5_in] Frame 1
onClipEvent (enterFrame) {
if (_parent.typ == 0) {
_root.ship_pattern_move(_parent, 5);
} else if (_parent.typ == 1) {
_root.ship_sin_move(_parent, 5);
} else {
_root.ship_move(_parent, 5);
}
_parent.time = _parent.time + 1;
if (random(100) > 95) {
_root.attachMovie("bullet_5", "bullet_5" + _root.bulcount, 500980 + _root.bulcount);
_root["bullet_5" + _root.bulcount]._x = _parent._x;
_root["bullet_5" + _root.bulcount]._y = _parent._y + 20;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
if (_parent.explode) {
_root.posGuy(2, _parent._x, _parent._y, 800);
_parent.removeMovieClip();
}
}
Instance of Symbol 934 MovieClip [ship_5_in] "shipin" in Symbol 935 MovieClip [ship_5] Frame 1
onClipEvent (load) {
_parent.r = new Array();
o = 0;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
_parent.r[o] = Math.round(this._x);
o = o + 1;
}
Instance of Symbol 934 MovieClip [ship_5_in] "shipin" in Symbol 935 MovieClip [ship_5] Frame 135
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Symbol 936 MovieClip [boss_5] Frame 1
explode = 0;
damage = 10000;
count = 1;
Instance of Symbol 634 MovieClip "bossin" in Symbol 936 MovieClip [boss_5] Frame 1
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(5);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(5);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 5);
}
}
}
Symbol 939 MovieClip [shot_5] Frame 1
function explodeMe(x, y, p) {
p._x = p._x + x;
p._y = p._y + y;
p._xscale = p._xscale - (10 * p.sw);
p._yscale = p._yscale - (10 * p.sw);
p.rotation = p.rotation + x;
p._visible = false;
if (count == 40) {
_root.explosion3(_x, _y, 8);
}
if (count == 0) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == this) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
this.removeMovieClip();
}
count = count - 1;
}
function loadPiece(p) {
p.x = -50 + random(100);
p.y = -50 + random(100);
p.sw = Math.random();
if (p.sw > 0.8) {
p.sw = -1;
}
}
explode = 0;
count = 40;
speed = 2;
Instance of Symbol 938 MovieClip in Symbol 939 MovieClip [shot_5] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
x = 0;
y = -10;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
} else {
x = x + ((_root.boat._x - _parent._x) / 200);
y = y + ((_root.boat._y - _parent._y) / 200);
}
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
if (((_parent._x < -30) || (_parent._x > 600)) || (_parent._y > 400)) {
_parent.explodeMe(x, y, this);
}
a = Math.atan2(x, y);
atemp = a * 57.2957795130823;
_parent._rotation = -atemp;
if (((Math.abs(_parent._x - _root.boat._x) < 75) && (Math.abs(_parent._y - _root.boat._y) < 25)) && (!_parent.explode)) {
_parent.explodeMe(x, y, this);
_parent.explode = 1;
x1 = _parent._x;
y1 = _parent._y;
x2 = _root.boat._x;
y2 = _root.boat._y;
_root.boatDamage(20, (x2 - x1) / 7, (x2 - x1) / 10, 10, _parent._x, _parent._y, (x2 - x1) / 5);
}
}
Symbol 940 MovieClip [boss_2] Frame 1
explode = 0;
damage = 4000;
count = 1;
Instance of Symbol 571 MovieClip "bossin" in Symbol 940 MovieClip [boss_2] Frame 1
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(2);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(2);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 2);
}
}
}
Symbol 947 MovieClip [shot_2] Frame 1
explode = 0;
speed = 2;
Instance of Symbol 943 MovieClip "shotin" in Symbol 947 MovieClip [shot_2] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_root.explosion3(_parent._x, _parent._y, 8);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (((Math.abs(_parent._x - _root.boat._x) < 75) && (Math.abs(_parent._y - _root.boat._y) < 40)) && (!_parent.explode)) {
x1 = _parent._x;
y1 = _parent._y;
x2 = _root.boat._x;
y2 = _root.boat._y;
_root.boatDamage(20, (x2 - x1) / 7, (x2 - x1) / 10, 10, _parent._x, _parent._y, (x2 - x1) / 5);
_root.explosion3(_parent._x, _parent._y, 8);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
_parent.speed = _parent.speed * 1.1;
if (_parent._y < 375) {
_parent._y = _parent._y + _parent.speed;
_rotation = (_rotation + _parent.speed);
} else if (_currentframe == 1) {
_rotation = 0;
gotoAndPlay (2);
}
_parent._x = _parent._x + (_root.wind / 3);
}
Symbol 949 MovieClip [boss_4] Frame 1
explode = 0;
damage = 8000;
count = 1;
Instance of Symbol 948 MovieClip "bossin" in Symbol 949 MovieClip [boss_4] Frame 1
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(4);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(4);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 4);
}
}
}
Symbol 954 MovieClip [shot_4] Frame 1
function explodeMe(x, y, p) {
p._x = p._x + x;
p._y = p._y + y;
p._xscale = p._xscale - (10 * p.sw);
p._yscale = p._yscale - (10 * p.sw);
p.rotation = p.rotation + x;
p._visible = false;
if (count == 40) {
_root.explosion3(_x, _y, 8);
}
if (count == 0) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == this) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
this.removeMovieClip();
}
count = count - 1;
}
function loadPiece(p) {
p.x = -50 + random(100);
p.y = -50 + random(100);
p.sw = Math.random();
if (p.sw > 0.8) {
p.sw = -1;
}
}
explode = 0;
count = 40;
speed = 2;
Instance of Symbol 953 MovieClip in Symbol 954 MovieClip [shot_4] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
x = 0;
y = -10;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
} else {
x = x + ((_root.boat._x - _parent._x) / 300);
y = y + ((_root.boat._y - _parent._y) / 300);
_parent._rotation = x;
_parent._x = _parent._x + (x / 2);
_parent._y = _parent._y + (y / 2);
}
if (((_parent._x < -30) || (_parent._x > 600)) || (_parent._y > 400)) {
_parent.explodeMe(x, y, this);
}
if (((Math.abs(_parent._x - _root.boat._x) < 75) && (Math.abs(_parent._y - _root.boat._y) < 40)) && (!_parent.explode)) {
_parent.explodeMe(x, y, this);
_parent.explode = 1;
x1 = _parent._x;
y1 = _parent._y;
x2 = _root.boat._x;
y2 = _root.boat._y;
_root.boatDamage(20, (x2 - x1) / 7, (x2 - x1) / 10, 10, _parent._x, _parent._y, (x2 - x1) / 5);
}
}
Instance of Symbol 589 MovieClip in Symbol 955 MovieClip Frame 1
/* no clip actions */
Symbol 956 MovieClip [boss_3] Frame 1
explode = 0;
damage = 6000;
count = 1;
Instance of Symbol 955 MovieClip "bossin" in Symbol 956 MovieClip [boss_3] Frame 1
onClipEvent (enterFrame) {
if (_root.go) {
_root.boss_move(3);
if (_parent.explode) {
if (_parent.count >= 90) {
_root.lev++;
_parent.removeMovieClip();
}
if (_parent.count == 1) {
_parent._visible = 0;
_root.explosion2(_parent._x, _parent._y);
_root.bossExplode(3);
_root.blastEffect(_parent, 300);
_root.bigExp(_parent._x, _parent._y);
}
_parent.count = _parent.count + 1;
} else if ((((_parent._x > 20) && (_parent._x < 560)) && (_parent._y < 150)) && (_parent._xscale > 20)) {
_root.boss_shot_pos(_parent, 3);
}
}
}
Symbol 959 MovieClip Frame 1
stop();
Symbol 959 MovieClip Frame 15
this.gotoAndPlay(2);
Symbol 960 MovieClip [shot_3] Frame 1
function explodeMe(x, y, p) {
p._x = p._x + x;
p._y = p._y + y;
p._xscale = p._xscale - (10 * p.sw);
p._yscale = p._yscale - (10 * p.sw);
p.rotation = p.rotation + x;
if ((p._xscale < 0) || (p._xscale > 800)) {
p._visible = false;
}
if (count == 0) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == this) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
this.removeMovieClip();
}
count = count - 1;
}
function loadPiece(p) {
p.x = -50 + random(100);
p.y = -50 + random(100);
p.sw = Math.random();
if (p.sw > 0.8) {
p.sw = -1;
}
}
explode = 0;
count = 40;
speed = 2;
Instance of Symbol 959 MovieClip in Symbol 960 MovieClip [shot_3] Frame 1
onClipEvent (load) {
_parent.loadPiece(this);
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.explodeMe(x, y, this);
}
_parent.speed = _parent.speed * 1.05;
if (_parent._y < 380) {
_parent._y = _parent._y + _parent.speed;
_rotation = (_rotation + _parent.speed);
} else {
if ((_parent._x - _root.boat._x) < 0) {
_parent._x = _parent._x + 5;
} else {
_parent._x = _parent._x - 5;
}
if ((Math.abs(_parent._x - _root.boat._x) < 75) && (!_parent.explode)) {
_parent.explodeMe(x, y, this);
_parent.explode = 1;
x1 = _parent._x;
y1 = _parent._y;
x2 = _root.boat._x;
y2 = _root.boat._y;
_root.boatDamage(20, (x2 - x1) / 7, (x2 - x1) / 10, 10, _parent._x, _parent._y, (x2 - x1) / 5);
}
if (_currentframe == 1) {
if ((_parent._x - _root.boat._x) > 0) {
_parent._xscale = _parent._xscale * -1;
}
_rotation = 0;
gotoAndPlay (2);
}
}
_parent._x = _parent._x + (_root.wind / 3);
}
Instance of Symbol 962 MovieClip in Symbol 963 MovieClip [remoteS] Frame 1
onClipEvent (mouseUp) {
_root.boat.attachMovie("sparkler", "sparkler", 109394);
tempp = _root.boat.sparkler;
_parent.removeMovieClip();
}
onClipEvent (enterFrame) {
updateAfterEvent();
}
Instance of Symbol 962 MovieClip in Symbol 964 MovieClip [remoteM] Frame 1
onClipEvent (load) {
_parent.flag = 0;
}
onClipEvent (enterFrame) {
_root.moveItem(_parent.it, _parent.x, _parent.y);
}
Instance of Symbol 962 MovieClip in Symbol 965 MovieClip [remote] Frame 1
onClipEvent (load) {
_parent.flag = 0;
}
onClipEvent (enterFrame) {
_root.rotateBoat(10);
}
Symbol 970 MovieClip [ship_4_in] Frame 1
time = 1;
Instance of Symbol 968 MovieClip in Symbol 970 MovieClip [ship_4_in] Frame 1
onClipEvent (enterFrame) {
if (_parent.typ == 0) {
_root.ship_pattern_move(_parent, 4);
} else if (_parent.typ == 1) {
_root.ship_sin_move(_parent, 4);
} else {
_root.ship_move(_parent, 4);
}
_parent.time = _parent.time + 1;
if (random(100) > 95) {
_root.attachMovie("bullet_4", "bullet_4" + _root.bulcount, 500980 + _root.bulcount);
_root["bullet_4" + _root.bulcount]._x = _parent._x - (_parent.x / 10);
_root["bullet_4" + _root.bulcount]._y = (_parent._y - (_parent.y / 10)) + 30;
_root["bullet_4" + _root.bulcount].velx = _parent.x / 20;
_root["bullet_4" + _root.bulcount].vely = _parent.y / 20;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
if (_parent.explode) {
_root.posGuy(5, _parent._x, _parent._y, 400);
_parent.removeMovieClip();
}
}
Instance of Symbol 970 MovieClip [ship_4_in] in Symbol 971 MovieClip [ship_4] Frame 1
onClipEvent (load) {
_parent.r = new Array();
o = 0;
}
onClipEvent (enterFrame) {
if (_parent.explode) {
_parent.removeMovieClip();
}
_parent.r[o] = Math.round(this._y);
o = o + 1;
}
Instance of Symbol 975 MovieClip in Symbol 976 MovieClip [glowbomb2] Frame 1
onClipEvent (load) {
_root.shotLoad(_parent, "glowbombs");
}
onClipEvent (mouseUp) {
_parent.shotgo = 1;
}
onClipEvent (enterFrame) {
if (_parent.explode == 1) {
_root.glowExp(_parent._x, _parent._y);
_parent.removeMovieClip();
}
_root.shotEvent(_parent, "glowbombs");
}
Symbol 979 MovieClip [shield_life] Frame 1
stop();
Symbol 982 MovieClip [shield2] Frame 7
this.removeMovieClip();
Symbol 982 MovieClip [shield2] Frame 15
this.removeMovieClip();
Instance of Symbol 984 MovieClip in Symbol 985 MovieClip [bullet_5] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 10;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(5, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 600)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 987 MovieClip in Symbol 988 MovieClip [bullet_2] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 10;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(2, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 600)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 990 MovieClip in Symbol 991 MovieClip [bullet_3] Frame 1
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + 40;
_parent._y = _parent._y + 10;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(3, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 600)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 993 MovieClip in Symbol 994 MovieClip [remoteP] Frame 1
onClipEvent (enterFrame) {
_parent._parent.incIt(_parent.p);
}
Instance of Symbol 996 MovieClip in Symbol 997 MovieClip [bullet_1] Frame 1
onClipEvent (load) {
tim = 1;
velx = _parent.velx;
vely = _parent.vely;
g = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - vely;
_parent._x = _parent._x - velx;
_parent._y = _parent._y + g;
g = 1 * tim;
tim = tim + 1;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(1, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 600)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 999 MovieClip in Symbol 1000 MovieClip [bullet_4] Frame 1
onClipEvent (load) {
tim = 1;
velx = _parent.velx;
vely = _parent.vely;
g = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - vely;
_parent._x = _parent._x - velx;
_parent._y = _parent._y + g;
g = 1 * tim;
tim = tim + 1;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(4, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 600)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1002 MovieClip in Symbol 1003 MovieClip [sparkler] Frame 1
onClipEvent (load) {
_root.posob = new Object();
parent = _parent;
strength = 10;
_parent.createEmptyMovieClip("fount", 10678);
_parent.attachMovie("blastin", "blastin", 109);
sx = -40 + random(80);
sy = -15;
tx = -80 + random(160);
ty = -300 + random(150);
linex = tx - sx;
liney = ty - sy;
this._x = sx;
this._y = sy;
_parent.blastin._x = tx;
_parent.blastin._y = ty;
_parent.blastin._xscale = 35;
_parent.blastin._yscale = 35;
}
onClipEvent (enterFrame) {
tx = tx - ((linex / _root.sparklers[2]) / 2);
ty = ty - ((liney / _root.sparklers[2]) / 2);
c = 0;
while (c < 20) {
if (_root.astarray[c]._visible && (!_root.astarray[c].explode)) {
_root.astdetection(_root.posob, _root.astarray[c], c, 25, 25, "", _root.sparklers[1]);
}
c++;
}
if (strength > 4) {
strength = strength - 0.05;
with (_parent.fount) {
clear();
lineStyle(2, 16777215, 100);
moveTo(sx, sy);
lineTo(tx, ty);
_parent.blastin._x = tx;
_parent.blastin._y = ty;
_root.posob._x = tx + _root.boat._x;
_root.posob._y = ty + _root.boat._y;
_root.blastEffect(_root.posob, 65);
_root.sparkOut(_root.posob._x, _root.posob._y, 2);
}
} else {
_parent.fount.clear();
_parent.removeMovieClip();
}
}
Instance of Symbol 1033 MovieClip "debris_in" in Symbol 1034 MovieClip [debris] Frame 1
onClipEvent (load) {
tim = 1;
x = -10 + random(20);
y = -10 + random(20);
}
onClipEvent (enterFrame) {
if (_parent._y < 400) {
y = y + (tim / 4);
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
_parent._xscale = _parent._xscale + (x / 4);
_parent._yscale = _parent._yscale + (x / 4);
_parent._rotation = _parent._rotation + (x * 5);
tim = tim + 1;
} else {
_root.splash(_parent._x, _parent._y, 4);
_parent.removeMovieClip();
}
}
Symbol 1037 MovieClip Frame 1
stop();
Instance of Symbol 1037 MovieClip "glowin" in Symbol 1038 MovieClip [glowout] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.x;
_parent._y = _parent._y + _parent.y;
_parent._alpha = _parent._alpha - 10;
c = 0;
while (c < _root.astarray.length) {
_root.astdetection(_parent, _root.astarray[c], c, 15, 15, "glow", 40 + random(40));
c++;
}
if (_parent._alpha < 0) {
_parent.removeMovieClip();
}
if (_parent.explode) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1043 MovieClip in Symbol 1044 MovieClip [flames] Frame 1
onClipEvent (load) {
y = 2 + random(3);
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - y;
_parent._xscale = _parent._xscale - (y / 2);
_parent._yscale = _parent._yscale - (y / 2);
}
Symbol 1044 MovieClip [flames] Frame 15
this.removeMovieClip();
Instance of Symbol 1042 MovieClip in Symbol 1045 MovieClip [smoke] Frame 1
onClipEvent (load) {
y = 7 + random(7);
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - y;
_parent._x = _parent._x + Math.sin(_parent._y);
_parent._xscale = _parent._xscale - y;
_parent._yscale = _parent._yscale - y;
if (_parent._xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1047 MovieClip "placein" in Symbol 1048 MovieClip [placeob] Frame 1
onClipEvent (load) {
x = -5 + random(10);
y = -5 + random(10);
}
onClipEvent (enterFrame) {
db = _parent;
if (_parent.damage <= 0) {
_root.addflames(_parent._x + (db.xdif * (db._xscale / 100)), _parent._y + (db.ydif * (db._yscale / 100)));
entemp = eval ("_root.enemy.light_" + _parent.thislight);
entemp.gotoAndStop(11);
}
if (!_parent.par._visible) {
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
_parent._xscale = _parent._xscale - 5;
_parent._yscale = _parent._yscale - 5;
if (_parent._xscale <= 0) {
_parent.removeMovieClip();
}
} else {
_parent._x = _parent.par._x + _root.enemy.en;
_parent._y = _parent.par._y + _root.enemy.eny;
_parent._xscale = _parent.par._xscale;
_parent._yscale = _parent.par._yscale;
_parent._rotation = _root.enemy._rotation;
_x = _parent.xdif;
_y = _parent.ydif;
}
}
Instance of Symbol 1049 MovieClip "parts_in" in Symbol 1050 MovieClip [boss_1_parts] Frame 1
onClipEvent (load) {
x = 10 + random(20);
y = 10 + random(20);
}
onClipEvent (enterFrame) {
if (_parent._xscale < 200) {
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
_parent._xscale = _parent._xscale + x;
_parent._yscale = _parent._yscale + x;
_parent._rotation = _parent._rotation + (x * 2);
} else {
_parent.removeMovieClip();
}
}
Symbol 1052 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 1056 Button
on (release) {
_root.declare();
this.removeMovieClip();
}
Symbol 1059 Button
on (release) {
_root.declare();
_root.lev = 0;
_root.gelcollected = 0;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1060 Button
on (release) {
_root.declare();
_root.lev = 3;
_root.gelcollected = 250000 /* 0x03D090 */;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1061 Button
on (release) {
_root.declare();
_root.lev = 15;
_root.gelcollected = 250000 /* 0x03D090 */;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1062 Button
on (release) {
_root.declare();
_root.lev = 27;
_root.gelcollected = 250000 /* 0x03D090 */;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1063 Button
on (release) {
_root.declare();
_root.lev = 51;
_root.gelcollected = 250000 /* 0x03D090 */;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1064 Button
on (release) {
_root.declare();
_root.lev = 39;
_root.gelcollected = 250000 /* 0x03D090 */;
_root.menu.gelout = _root.gelcollected;
this.removeMovieClip();
}
Symbol 1073 MovieClip [betacontrol] Frame 1
stop();
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 10
stop();
Symbol 1084 MovieClip Frame 1
stop();
Instance of Symbol 1076 MovieClip in Symbol 1085 MovieClip [guy_1] Frame 1
onClipEvent (load) {
_parent.arm2.gotoAndStop(2);
inertia = 0;
_parent.explode = 0;
speed = _parent.speed + random(7);
}
onClipEvent (enterFrame) {
if ((((_parent._x > 740) || (_parent._x < -20)) || (_parent._y > 400)) || (_parent._y < -20)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (!_parent.explode) {
_root.moveArm(_parent, _parent.arm1);
inertia = inertia + (_root.wind / 30);
_parent._x = _parent._x + inertia;
_parent._y = _parent._y + (speed / 2);
_parent.x = _parent._x - _root.boat._x;
_parent.y = _parent._y - _root.boat._y;
if (random(100) > 75) {
_root.attachMovie("bulsm_1", "bulsm_1" + _root.bulcount, 500980 + _root.bulcount);
_root["bulsm_1" + _root.bulcount]._x = _parent._x - (_parent.x / 10);
_root["bulsm_1" + _root.bulcount]._y = (_parent._y - (_parent.y / 10)) - 10;
_root["bulsm_1" + _root.bulcount].velx = _parent.x / 20;
_root["bulsm_1" + _root.bulcount].vely = _parent.y / 20;
_root.bulcount = _root.bulcount + 1;
_parent.gun.gotoAndPlay(2);
}
} else {
_root.guyExplode(_parent);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
}
Instance of Symbol 1087 MovieClip in Symbol 1088 MovieClip [blood2] Frame 1
onClipEvent (load) {
tim = 1;
sx = 2 + random(6);
speedx = (-10 + random(20)) / 2;
speedy = (-10 + random(20)) / 4;
_parent._xscale = 3 + random(4);
_parent._yscale = 3 + random(4);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._xscale = _parent._xscale + (sx / 5);
_parent._yscale = _parent._yscale + (sx / 5);
speedx = speedx + (_root.wind / 50);
speedy = speedy + (tim / 15);
tim = tim + 1;
if (_parent._y > 400) {
_root.splash(_parent._x, _parent._y, 3);
_parent.removeMovieClip();
}
}
Symbol 1090 MovieClip [guy_1_parts] Frame 1
stop();
Instance of Symbol 1089 MovieClip in Symbol 1090 MovieClip [guy_1_parts] Frame 1
onClipEvent (load) {
tim = 1;
sx = 2 + random(6);
speedx = -10 + random(20);
speedy = -10 + random(20);
_parent._xscale = 3 + random(8);
_parent._yscale = 3 + random(8);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._xscale = _parent._xscale + (sx / 2);
_parent._yscale = _parent._yscale + (sx / 2);
speedx = speedx + (_root.wind / 50);
speedy = speedy + (tim / 15);
_parent._rotation = _parent._rotation + (speedx * 5);
tim = tim + 1;
if (_parent._y > 400) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1091 MovieClip in Symbol 1092 MovieClip [bulsm_1] Frame 1
onClipEvent (load) {
tim = 1;
velx = _parent.velx;
vely = _parent.vely;
g = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - vely;
_parent._x = _parent._x - velx;
g = tim / 20;
vely = vely - g;
tim = tim + 1;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(1, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 740)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1089 MovieClip in Symbol 1103 MovieClip [guy_parts] Frame 1
onClipEvent (load) {
tim = 1;
sx = 2 + random(6);
speedx = -10 + random(20);
speedy = -10 + random(20);
_parent._xscale = 2 + random(4);
_parent._yscale = 2 + random(4);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._xscale = _parent._xscale + (sx / 4);
_parent._yscale = _parent._yscale + (sx / 4);
speedx = speedx + (_root.wind / 50);
speedy = speedy + (tim / 15);
_parent._rotation = _parent._rotation + (speedx * 5);
tim = tim + 1;
_root.outOfBounds(_parent);
}
Instance of Symbol 1105 MovieClip in Symbol 1106 MovieClip [bulsm_2] Frame 1
onClipEvent (load) {
velx = _parent.velx;
vely = _parent.vely;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - vely;
_parent._x = _parent._x - velx;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(1, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 740)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Symbol 1106 MovieClip [bulsm_2] Frame 5
stop();
Symbol 1109 MovieClip [splash2] Frame 8
this.removeMovieClip();
Instance of Symbol 1115 MovieClip in Symbol 1116 MovieClip [shotsm_10] Frame 1
onClipEvent (load) {
tim = 1;
}
onClipEvent (enterFrame) {
_parent._x = _parent.par._x + _parent.par.en;
_parent._y = (_parent.par._y + (_parent.par._height / 3)) + _parent.par.eny;
x1 = _root.boat._x;
y1 = _root.boat._y;
x2 = _parent._x;
if ((tim % 2) == 0) {
if (Math.abs(x2 - x1) < 70) {
_root.boatDamage(5, (x1 - x2) / 5, (x1 - x2) / 7, 6, x1, y1, 0);
}
}
tim = tim + 1;
}
Symbol 1116 MovieClip [shotsm_10] Frame 5
this.removeMovieClip();
Instance of Symbol 1120 MovieClip in Symbol 1124 MovieClip [trans_ship_1] Frame 1
onClipEvent (load) {
x = 5 + random(20);
t = 1;
}
onClipEvent (enterFrame) {
if ((_parent._x > 620) || (_parent._x < -40)) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (Math.abs(x) < 1) {
t = t + 1;
}
if (t == 1) {
x = x - 0.5;
} else if (t > 20) {
x = x + 0.5;
} else {
if ((t % 10) == 0) {
_root.posGuy(5, _parent._x, _parent._y, 450);
}
x = 0;
}
if (_parent.explode) {
_root.explosion3(_parent._x, _parent._y, 10);
_root.blastEffect(_parent, 200);
_root.bigExp(_parent._x, _parent._y);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
_parent._x = _parent._x + x;
}
Instance of Symbol 1126 MovieClip in Symbol 1127 MovieClip [foreground] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - 1;
}
Instance of Symbol 1135 MovieClip in Symbol 1136 MovieClip [trans_ship_2] Frame 1
onClipEvent (load) {
y = 8 + random(8);
_parent._x = 50 + random(530);
_parent._y = -50;
t = 1;
}
onClipEvent (enterFrame) {
if (_parent._y < -50) {
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
if (Math.abs(y) < 1) {
t = t + 1;
}
if (t == 1) {
y = y - 0.5;
} else if (t > 20) {
y = y - 0.5;
} else {
if ((t % 10) == 0) {
_root.posGuy(10, _parent._x, _parent._y, 650);
}
y = 0;
}
if (_parent.explode) {
_root.explosion3(_parent._x, _parent._y, 10);
_root.blastEffect(_parent, 200);
_root.bigExp(_parent._x, _parent._y);
i = 0;
while (i <= _root.astarray.length) {
if (_root.astarray[i] == _parent) {
_root.astarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
_parent._y = _parent._y + y;
}
Instance of Symbol 1138 MovieClip in Symbol 1139 MovieClip [shotsm_12] Frame 1
onClipEvent (load) {
tim = 1;
velx = _parent.velx;
vely = _parent.vely;
g = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - vely;
_parent._x = _parent._x - velx;
g = tim / 20;
vely = vely - g;
tim = tim + 1;
x1 = _parent._x;
x2 = _root.boat._x;
y1 = _parent._y;
y2 = _root.boat._y;
if ((Math.abs(x1 - x2) < 65) && (Math.abs(y1 - y2) < 20)) {
_root.boatDamage(1, (x1 - x2) / 5, (x1 - x2) / 7, 2, x1, y1, 0);
_root.gooOut(_parent._x, _parent._y);
_parent.removeMovieClip();
}
if ((((_parent._x < -20) || (_parent._x > 740)) || (_parent._y < -20)) || (_parent._y > 400)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1138 MovieClip in Symbol 1140 MovieClip [goo] Frame 1
onClipEvent (load) {
tim = 1;
_parent._xscale = 30 + random(50);
_parent._yscale = _parent._xscale;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.velx;
_parent.vely = _parent.vely + (tim / 4);
_parent._y = _parent._y + _parent.vely;
tim = tim + 1;
if (_parent._y > 400) {
_parent.removeMovieClip();
}
}
Symbol 1148 MovieClip [dropitem] Frame 1
stop();
Instance of Symbol 1147 MovieClip in Symbol 1148 MovieClip [dropitem] Frame 1
onClipEvent (enterFrame) {
if (((_parent._x > 770) || (_parent._x < -50)) || (_parent._y > 425)) {
i = 0;
while (i <= _root.itemarray.length) {
if (_root.itemarray[i] == _parent) {
_root.itemarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
} else if (((Math.abs(_parent._x - _root.boat._x) < 75) && (Math.abs(_parent._y - _root.boat._y) < 35)) && (!_root.gameover)) {
_root.GiveItem(_parent.itemtype);
_root.attachMovie("numberup", "numup" + _parent.n, 83400 + _parent.n);
_root["numup" + _parent.n]._x = _parent._x;
_root["numup" + _parent.n]._y = _parent._y;
_root["numup" + _parent.n].numupin.t = _root.array_weapitem[_parent.itemtype];
i = 0;
while (i <= _root.itemarray.length) {
if (_root.itemarray[i] == _parent) {
_root.itemarray.splice(i, 1);
}
i = i + 1;
}
_parent.removeMovieClip();
}
_parent._y = _parent._y + 3;
_parent._rotation = _parent._rotation + 5;
}
Instance of Symbol 1150 MovieClip in Symbol 1151 MovieClip [blood] Frame 1
onClipEvent (load) {
tim = 1;
sx = 2 + random(6);
speedx = (-10 + random(20)) / 2;
speedy = (-10 + random(20)) / 4;
_parent._xscale = 3 + random(4);
_parent._yscale = 3 + random(4);
}
onClipEvent (enterFrame) {
if (!_parent.demo) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._xscale = _parent._xscale + (sx / 5);
_parent._yscale = _parent._yscale + (sx / 5);
speedx = speedx + (_root.wind / 50);
speedy = speedy + (tim / 15);
tim = tim + 1;
if (_parent._y > 400) {
_parent.removeMovieClip();
}
}
}
Instance of Symbol 1153 MovieClip "bombshellcol" in Symbol 1154 MovieClip [bombshell1link] Frame 1
onClipEvent (load) {
time = 0;
_parent.explode = 0;
}
onClipEvent (enterFrame) {
if (!_parent.demo) {
time = time + 1;
v = -9.8 * time;
_parent._rotation = _parent._rotation + 20;
_parent._x = _parent._x + _parent.initx;
_parent._y = _parent._y - (_parent.inity + (v / 5));
_parent._xscale = _parent._xscale - 5;
_parent._yscale = _parent._yscale - 5;
if (!_parent.explode) {
if ((time % 5) == 0) {
c = 0;
while (c < _root.astarray.length) {
_root.astdetection(_parent, _root.astarray[c], c, _parent._width / 2, _parent._height / 2, "", _root.airbombs[1] / 10);
c++;
}
}
}
if (_parent._xscale < 0) {
_parent.removeMovieClip();
}
}
}
Instance of Symbol 1156 MovieClip in Symbol 1157 MovieClip [splashdrop] Frame 1
onClipEvent (load) {
tim = 1;
_parent._xscale = 8 + random(20);
_parent._yscale = _parent._xscale;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.x;
_parent.y = _parent.y + (tim / 4);
_parent._y = _parent._y + _parent.y;
tim = tim + 1;
if (_parent._y > 400) {
_parent.removeMovieClip();
}
}
Symbol 1175 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 1176 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 1177 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 1178 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 1205 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 1207 MovieClip Frame 40
stop();
Symbol 1219 Button
on (release) {
_root.play();
}
Symbol 1220 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 1220 MovieClip Frame 51
Symbol 1229 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 1234 MovieClip Frame 1
stop();
Symbol 1234 MovieClip Frame 2
backtextin.stext = stext;
Symbol 1234 MovieClip Frame 25
if (gonext) {
_root.showWeap();
gonext = 0;
}
if (intro) {
_root.lev = _root.lev + 1;
intro = 0;
}
Symbol 1237 MovieClip Frame 1
stop();
Symbol 1244 MovieClip Frame 1
stop();
Symbol 1244 MovieClip Frame 10
gotoAndPlay (6);
Instance of Symbol 575 MovieClip in Symbol 1252 MovieClip Frame 1
onClipEvent (enterFrame) {
bladesin._rotation = bladesin._rotation + 60;
}
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 2
_root.bladesgo = 1;
Symbol 1253 MovieClip Frame 180
_root.bladesgo = 0;
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 2
this.gotoAndPlay(3);
Symbol 1257 MovieClip Frame 12
stop();
Symbol 1257 MovieClip Frame 13
_root.giveHealth(_root.boat._x, _root.boat._y, _root.healthpacks[1]);
Symbol 1257 MovieClip Frame 16
_root.giveHealth(_root.boat._x, _root.boat._y, _root.healthpacks[1]);
Symbol 1257 MovieClip Frame 19
_root.giveHealth(_root.boat._x, _root.boat._y, _root.healthpacks[1]);
Symbol 1257 MovieClip Frame 22
_root.giveHealth(_root.boat._x, _root.boat._y, _root.healthpacks[1]);
Symbol 1257 MovieClip Frame 25
_root.giveHealth(_root.boat._x, _root.boat._y, _root.healthpacks[1]);
Symbol 1265 MovieClip Frame 1
stop();
Instance of Symbol 1262 MovieClip "can" in Symbol 1265 MovieClip Frame 1
onClipEvent (mouseDown) {
_root.shoot(0, 0);
}
Instance of Symbol 1262 MovieClip "can1" in Symbol 1265 MovieClip Frame 2
onClipEvent (mouseDown) {
_root.shoot(0, -5);
}
Instance of Symbol 1262 MovieClip "can2" in Symbol 1265 MovieClip Frame 2
onClipEvent (mouseDown) {
_root.shoot(0, 5);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 3
onClipEvent (mouseDown) {
_root.shoot(-5, -6);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 3
onClipEvent (mouseDown) {
_root.shoot(5, 6);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 4
onClipEvent (mouseDown) {
_root.shoot(0, 0);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 4
onClipEvent (mouseDown) {
_root.shoot(-10, -7);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 4
onClipEvent (mouseDown) {
_root.shoot(10, 7);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 5
onClipEvent (mouseDown) {
_root.shoot(-35, -10);
}
Instance of Symbol 1262 MovieClip in Symbol 1265 MovieClip Frame 5
onClipEvent (mouseDown) {
_root.shoot(35, 10);
}
Symbol 1273 Button
on (release) {
if (vol) {
global_sound.setVolume(0);
vol = 0;
} else {
global_sound.setVolume(100);
vol = 1;
}
}
Symbol 1280 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 1298 Button
on (release) {
giveallweaps = 1;
}
Symbol 1299 Button
on (release) {
_root.gotoAndStop(3);
mylev = 39;
}
Symbol 1300 Button
on (release) {
_root.gotoAndStop(3);
mylev = 41;
}
Symbol 1301 Button
on (release) {
_root.gotoAndStop(3);
mylev = 42;
}
Symbol 1302 Button
on (release) {
_root.gotoAndStop(3);
mylev = 43;
}
Symbol 1303 Button
on (release) {
_root.gotoAndStop(3);
mylev = 44;
}
Symbol 1304 Button
on (release) {
_root.gotoAndStop(3);
mylev = 45;
}
Symbol 1305 Button
on (release) {
_root.gotoAndStop(3);
mylev = 29;
}
Symbol 1306 Button
on (release) {
_root.gotoAndStop(3);
mylev = 31;
}
Symbol 1307 Button
on (release) {
_root.gotoAndStop(3);
mylev = 32;
}
Symbol 1308 Button
on (release) {
_root.gotoAndStop(3);
mylev = 33;
}
Symbol 1309 Button
on (release) {
_root.gotoAndStop(3);
mylev = 34;
}
Symbol 1310 Button
on (release) {
_root.gotoAndStop(3);
mylev = 35;
}
Symbol 1311 Button
on (release) {
_root.gotoAndStop(3);
mylev = 19;
}
Symbol 1312 Button
on (release) {
_root.gotoAndStop(3);
mylev = 21;
}
Symbol 1313 Button
on (release) {
_root.gotoAndStop(3);
mylev = 22;
}
Symbol 1314 Button
on (release) {
_root.gotoAndStop(3);
mylev = 23;
}
Symbol 1315 Button
on (release) {
_root.gotoAndStop(3);
mylev = 24;
}
Symbol 1316 Button
on (release) {
_root.gotoAndStop(3);
mylev = 25;
}
Symbol 1317 Button
on (release) {
_root.gotoAndStop(3);
mylev = 9;
}
Symbol 1318 Button
on (release) {
_root.gotoAndStop(3);
mylev = 11;
}
Symbol 1319 Button
on (release) {
_root.gotoAndStop(3);
mylev = 12;
}
Symbol 1320 Button
on (release) {
_root.gotoAndStop(3);
mylev = 13;
}
Symbol 1321 Button
on (release) {
_root.gotoAndStop(3);
mylev = 14;
}
Symbol 1322 Button
on (release) {
_root.gotoAndStop(3);
mylev = 15;
}
Symbol 1333 Button
on (release) {
_root.gotoAndStop(3);
mylev = 0;
}
Symbol 1334 Button
on (release) {
_root.gotoAndStop(3);
mylev = 1;
}
Symbol 1335 Button
on (release) {
_root.gotoAndStop(3);
mylev = 2;
}
Symbol 1336 Button
on (release) {
_root.gotoAndStop(3);
mylev = 3;
}
Symbol 1337 Button
on (release) {
_root.gotoAndStop(3);
mylev = 4;
}
Symbol 1338 Button
on (release) {
_root.gotoAndStop(3);
mylev = 5;
}