Frame 1
stop();
fscommand ("trapallkeys", true);
menumusic = "music1";
Instance of Symbol 104 MovieClip "narf" in Frame 1
onClipEvent (enterFrame) {
_root.gotoAndStop(1);
lod = _root.getBytesLoaded();
tot = _root.getBytesTotal();
center = (lod / tot) * 100;
if (center > 99) {
narf++;
if (narf > 10) {
_root.p.nextFrame();
_alpha = (_alpha - 10);
}
}
cent = ((cent * 2) + center) / 3;
l._xscale = cent;
l._yscale = l._xscale;
_root.byte = (Math.round((tot / 1024) * 100) / 100) + "KB";
}
onClipEvent (load) {
narf = 0;
cent = 0;
}
onClipEvent (mouseUp) {
if (narf > 10) {
_root.p.gotoAndStop("allclear");
}
}
Frame 2
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
function itemHandler0(obj, item) {
getURL ("http://www.komix-games.com", "_blank");
}
function itemHandler1(obj, item) {
getURL ("http://www.coldstoragedesigns.com/", "_blank");
}
function unlockSteamAchievement(achievement) {
achievementConnection.send("as2_ach_connection", "as2UnlockSteamAchievement", achievement);
trace("Unlocked AS2 Achievement: " + achievement);
}
stopAllSounds();
larvacount = 0;
so = SharedObject.getLocal("options");
if (so.data.l == undefined) {
larvacollect = "00000000";
} else {
larvacollect = so.data.l;
}
if (so.data.u == undefined) {
levlun = false;
} else {
levlun = true;
}
_quality = "MEDIUM";
if (so.data.m == undefined) {
vol = 100;
} else {
vol = so.data.m;
}
if (so.data.mo == undefined) {
musicon = true;
} else {
musicon = so.data.mo;
}
so.flush();
score = 0;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Florian!", itemHandler0));
myMenu.customItems.push(new ContextMenuItem("Edmund!", itemHandler1));
menu = myMenu;
unpause = true;
if (musicon) {
sound1 = new Sound(this);
sound1.attachSound(menumusic);
sound1.start(0, 100);
}
var achievementConnection:LocalConnection = new LocalConnection();
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 1;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 8;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 2;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 3;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 4;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 5;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 6;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 140 MovieClip in Frame 2
onClipEvent (load) {
stop();
v1 = 7;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop (2);
}
}
Instance of Symbol 144 MovieClip "w" in Frame 2
onClipEvent (enterFrame) {
if (_root.unpause) {
if (_alpha > -100) {
_alpha = (_alpha - 4.3);
if (_alpha < 0) {
_alpha = 0;
gotoAndStop ("empty");
}
}
}
}
onClipEvent (load) {
stop();
}
Frame 3
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 4
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 5
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 6
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Instance of Symbol 190 MovieClip in Frame 6
onClipEvent (enterFrame) {
_x = (150 + _root.vol);
}
Frame 7
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 8
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 9
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 10
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 11
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Instance of Symbol 369 MovieClip in Frame 12
onClipEvent (load) {
v1 = 1;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 12
onClipEvent (load) {
v1 = 2;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 13
onClipEvent (load) {
v1 = 3;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 13
onClipEvent (load) {
v1 = 4;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 14
onClipEvent (load) {
v1 = 5;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 14
onClipEvent (load) {
v1 = 6;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 15
onClipEvent (load) {
v1 = 7;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Instance of Symbol 369 MovieClip in Frame 15
onClipEvent (load) {
v1 = 8;
if (_root.larvacollect.charAt(v1 - 1) == "1") {
gotoAndStop(v1 + 1);
}
}
Frame 16
stopAllSounds();
w._alpha = 125;
w.gotoAndStop(1);
if (so.data.q == undefined) {
_quality = "MEDIUM";
} else {
_quality = so.data.q;
}
Instance of Symbol 783 MovieClip "a" in Frame 16
onClipEvent (load) {
function RightClickDown() {
rightclick_down = true;
if (!click_down) {
presser();
}
}
function RightClickUp() {
if (!click_down) {
letgo();
}
rightclick_down = false;
}
function letgo() {
loz = false;
with (_parent.a) {
if ((bar1 != 0) && (ke != -1)) {
if (hiter[ke]) {
sound1 = new Sound(this);
sound1.attachSound("claw");
sound1.start(0, 1);
}
ke = -1;
grab = -1;
}
}
}
function presser() {
with (_parent.a) {
xmouse = _xmouse;
ymouse = _ymouse;
if ((bar1 != 0) && (ups or _parent.unpause)) {
v1 = 1000;
if (v1 > 10) {
xenf = xp[0] - xmouse;
yenf = yp[0] - ymouse;
enf = Math.sqrt((yenf * yenf) + (xenf * xenf));
if (enf < 10) {
scaletime = 50;
ke = -1;
}
}
e = 4;
while (e < 7) {
if (sorter[e] > 0) {
xenf = xp[e] - xmouse;
yenf = yp[e] - ymouse;
enf = Math.sqrt((yenf * yenf) + (xenf * xenf));
if (enf < v1) {
v1 = enf;
ke = e;
}
}
e++;
}
if ((ke != -1) && (neti[ke] != 0)) {
e = 0;
while (e < netz.length) {
a = 1;
while (a < netz[e].length) {
if (((!netz[e][a][1]) && (netz[e][a][2] == ke)) && (netz[e].length > 2)) {
netkill(e, a);
}
a++;
}
e++;
}
}
neti[ke] = 24;
}
}
}
function hix(f1) {
return((f1 * 1.5) + 227.5);
}
function hiy(f1) {
return((f1 * 1.5) + 60);
}
function movetime(doz) {
if (doz > 0) {
if ((done + doz) <= 1) {
e = 0;
while (e < xp.length) {
if (sorter[e] > 0) {
speed = (xbew[e] * xbew[e]) + (ybew[e] * ybew[e]);
if (speed > 0) {
xp[e] = xp[e] + (xbew[e] * doz);
yp[e] = yp[e] + (ybew[e] * doz);
} else {
xbew[e] = 0;
ybew[e] = 0;
}
}
e++;
}
} else {
done = 1;
}
}
}
rightclick_down = false;
rightClickConnection = new LocalConnection();
rightClickConnection.connect("as2_rightclick");
rightClickConnection.rightClickDown = RightClickDown;
rightClickConnection.rightClickUp = RightClickUp;
Mouse.removeListener();
v321 = 0;
_parent.maxlarv = 0;
_parent.alarvac = _parent.larvacount;
music = new Array(2, 2, 0, 1, 2, 0, 0, 1, 0, 0, 0, 2, 0, 2);
frames = 0;
ter = "organic";
rumblel = "rumble_loop.wav";
if ((_parent.nowlev == 11) or (_parent.nowlev == 1)) {
rumblel = "rumble_inside_body_loop.wav";
}
rumbleloop = new Sound(this);
guardians = 0;
waterhurt = 0;
if (_parent.soundon) {
_parent.a.createEmptyMovieClip("teststring", 24);
}
zarp = 0;
_parent.a.createEmptyMovieClip("teststring", 24);
_parent.a.createEmptyMovieClip("string", 23);
_parent.a.createEmptyMovieClip("soup", 1999);
comicgo = new Array("c7", "ctest", "ctest", "ctest", "ctest", "c2", "c1", "c4", "c3", "c6", "c8", "c5");
gotoAndStop(_parent.nowlev);
_parent.walls.gotoAndStop(_parent.nowlev);
_parent.walls2.gotoAndStop(_parent.nowlev);
walls.gotoAndStop(_parent.nowlev);
tern.gotoAndStop(_parent.nowlev);
_parent.walls.bit.gotoAndStop(_parent.nowlev);
_parent.walls2.bit.gotoAndStop(_parent.nowlev);
walls.bit.gotoAndStop(_parent.nowlev);
fg.swapDepths(1000000);
think.swapDepths(999999);
think._xscale = 20;
think._yscale = think._xscale;
fg.gotoAndStop(_parent.nowlev);
fg2.swapDepths(1000001);
fg2.gotoAndStop(_parent.nowlev);
exit.gotoAndStop(_parent.nowlev);
windsh.gotoAndStop(_parent.nowlev);
death.gotoAndStop(_parent.nowlev);
bg.gotoAndStop(_parent.nowlev);
c.swapDepths(1231014772);
_parent.bg.gotoAndStop(_parent.nowlev);
_parent.bg.cacheAsBitmap = true;
_parent.sbg.gotoAndStop(_parent.nowlev);
_parent.sbg.cacheAsBitmap = true;
_parent.map.map.gotoAndStop(_parent.nowlev);
sca = 0.5;
alltimer = 0;
walls.swapDepths(2000);
_parent.walls._xscale = 100 * sca;
_parent.walls._yscale = 100 * sca;
_parent.walls2._xscale = 100 * sca;
_parent.walls2._yscale = 100 * sca;
scaletime = 40;
op = 1.3;
op2 = 0.8;
rob = 0.2;
ber = 0;
e = 0;
a = 0;
frame = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
netz = new Array();
headgrab = -1;
clouds = true;
_parent.info = _parent.nowlev;
imp = new Array();
if (_parent.nowlev == 1) {
v1 = 650;
v2 = -400;
xp = new Array(-100, -121, 150, 943, 1035, -500, -520, v1, 588, 676, 454, 336, 336);
yp = new Array(-100, 491, 235, 18, 264, -100, 300, v2 + 20, -517, 376, 203, 260, 264);
sorter = new Array(6, 5, 4, 4, 7, 4, 8, 11, 17, 12, 21, 21, 10);
soupdrawx = new Array(-725, -725, 0, 0, -235);
soupdrawy = new Array(300, 630, 630, 300, 300);
larvacol = new Array(5, 0);
} else if (_parent.nowlev == 2) {
v1 = 0;
v2 = 0;
xp = new Array(36, 400, -407, -350, -500);
yp = new Array(-187, 0, 56, 0, -590);
sorter = new Array(9, 8, 9, 6, 4);
soupdrawx = new Array(360, 450, 750, 840);
soupdrawy = new Array(100, 400, 400, 100);
} else if (_parent.nowlev == 3) {
v1 = 0;
v2 = 650;
xp = new Array(992, -150, 300);
yp = new Array(-845, 40, 560);
sorter = new Array(9, 4, 10);
} else if (_parent.nowlev == 4) {
v1 = 1700;
v2 = 0;
xp = new Array();
yp = new Array();
sorter = new Array();
netz[0] = new Array(new Array(0, true, -1500, 0, 0, 0), new Array(3000, true, 1500, 200));
} else if (_parent.nowlev == 5) {
v1 = 0;
v2 = -30;
xp = new Array(100, 0, 150);
yp = new Array(-30, -180, -50);
sorter = new Array(11, 12, 10);
} else if (_parent.nowlev == 6) {
v1 = -500;
v2 = 0;
xp = new Array(686, 334, -400, 574);
yp = new Array(74, 210, 30, -578);
sorter = new Array(16, 9, 11, 10);
soupdrawx = new Array(267, 300, 1000, 1221);
soupdrawy = new Array(1072, 1250, 1250, 1072);
larvacol = new Array(1, 0);
} else if (_parent.nowlev == 7) {
v1 = -888;
v2 = 570;
xp = new Array(-750, -800, -656, 410, 410, -320);
yp = new Array(-570, -500, 656, 738, 718, 573);
sorter = new Array(13, 14, 21, 21, 10, 12);
soupdrawx = new Array(-850, -850, -514, -500);
soupdrawy = new Array(244, 350, 350, 244);
larvacol = new Array(0, 0);
} else if (_parent.nowlev == 8) {
v1 = -500;
v2 = 400;
xp = new Array(-192, 120, 160, 160, 788, 400, 902, 577, 148);
yp = new Array(640, 922, 860, 859, 930, 900, -214, 982, -32);
sorter = new Array(15, 15, 15, 10, 15, 15, 12, 21, 21);
soupdrawx = new Array(-400, -150, 1250, 1100, -580, -90);
soupdrawy = new Array(560, 1100, 1100, -550, -550, 560);
thislev = function () {
if (((sorter[9] != 0) && (sorter[10] != 0)) && (!uncon)) {
xenf = ((xp[9] + xbew[9]) - xp[10]) - xbew[10];
yenf = (((yp[9] + ybew[9]) - yp[10]) - ybew[10]) + 15;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
xenf = xenf / 3;
yenf = yenf / 3;
xbew[9] = xbew[9] - (xenf / 3);
ybew[9] = ybew[9] - (yenf / 3);
xbew[10] = xbew[10] + xenf;
ybew[10] = ybew[10] + yenf;
imp[10] = 2;
imp[9] = 2;
if ((grab == 9) or (grab == 10)) {
uncon = true;
}
}
};
larvacol = new Array(2, 0);
} else if (_parent.nowlev == 9) {
v1 = 100;
v2 = 100;
xp = new Array(380, 100, 350);
yp = new Array(-200, 120, 365);
sorter = new Array(6, 11, 21);
} else if (_parent.nowlev == 10) {
v1 = 3300;
v2 = -700;
xp = new Array(1810, 1326, 858, 318, v1, 3124, 3205);
yp = new Array(-428, -220, -250, 34, v2 + 20, -638, -1216);
sorter = new Array(16, 16, 16, 16, 11, 21, 10);
larvacol = new Array(4, 0);
} else if (_parent.nowlev == 11) {
bl = 0;
v1 = 400;
v2 = -700;
v1 = -400;
v2 = -180;
xp = new Array(14, 432, 200, 200, 551, 475, 626, 586, v1, 280, 828);
yp = new Array(417, 417, 80, 120, -721, -780, -731, -550, v2 + 20, -650, -188);
sorter = new Array(17, 17, 10, 10, 18, 19, 19, 19, 11, 20, 12);
soupdrawx = new Array(-260, -223, 690, 700);
soupdrawy = new Array(585, 947, 910, 585);
netz[0] = new Array(new Array(0, true, 400, -848), new Array(101, false, 12));
netz[1] = new Array(new Array(0, true, 704, -736), new Array(101, false, 13));
netz[2] = new Array(new Array(0, true, 586, -400), new Array(101, false, 14));
netz[3] = new Array(new Array(0, false, 11), new Array(101, false, 12));
netz[4] = new Array(new Array(0, false, 11), new Array(101, false, 13));
netz[5] = new Array(new Array(0, false, 11), new Array(101, false, 14));
netz[6] = new Array(new Array(0, true, 182, -827), new Array(120, false, 16));
e = 0;
while (e < netz.length) {
netz[e][0][5] = 1;
e++;
}
thislev = function () {
if (_parent.nowlev == 11) {
think.gotoAndStop(1);
if (bl != 0) {
shake = shake + bl;
_parent.w.gotoAndStop(2);
_parent.w._alpha = _parent.w._alpha + (bl * 2);
if (_parent.w._alpha > 100) {
endit();
}
}
}
};
larvacol = new Array(6, 7);
} else if (_parent.nowlev == 12) {
v1 = 640;
v2 = 80;
xp = new Array(720, 816, 231, 147, 30, 81, 606, 60, 266, 660);
yp = new Array(287, 280, -78, 14, -358, -218, -335, -100, 141, -350);
sorter = new Array(15, 15, 4, 4, 9, 20, 10, 11, 21, 12);
soupdrawx = new Array(607, 1176, 2176, 942);
soupdrawy = new Array(243, 1376, 1376, 243);
netz[0] = new Array(new Array(0, true, 104, -296), new Array(100, false, 12));
netz[1] = new Array(new Array(0, true, 159, -201), new Array(100, false, 12));
e = 0;
while (e < netz.length) {
netz[e][0][5] = 1;
e++;
}
larvacol = new Array(3, 0);
} else if (_parent.nowlev == 13) {
v1 = 136;
v2 = 71;
xp = new Array(158, 198);
yp = new Array(-80, -62);
sorter = new Array(23, 22);
netz[0] = new Array(new Array(0, true, 46, -250), new Array(130, false, 8));
netz[1] = new Array(new Array(0, true, 262, -250), new Array(130, false, 8));
e = 0;
while (e < netz.length) {
netz[e][0][5] = 1;
e++;
}
soupdrawx = new Array(-126, -126, 456, 456);
soupdrawy = new Array(114, 168, 168, 114);
soupsta = 134;
thislev = function () {
_parent.alltimer = v321;
soupmove = soupmove + (((Math.sin(v321 / 10) * 0.2) + (v321 / 15000)) + 0.04);
soupmove = soupmove * 0.7;
soupy = soupy - soupmove;
soupy = Math.min(174, Math.max(-284, soupy));
watermove = true;
};
}
windz = new Array(0, 0, 0, 0, 0, 0, 0.6, 1, 0, 0, 1.5, 0, 0, 0, 0);
wind = windz[_parent.nowlev];
waterup = new Array();
wallt = new Array("walls", "walls", "walls", "walls", "walls", "walls", "walls", "walls", "walls", "walls", "walls", "walls2", "walls2", "walls2", "walls2", "walls", "walls", "walls", "walls2", "walls", "walls2", "walls", "walls2", "walls");
if (soupdrawx != undefined) {
soupx = soupdrawx[0];
soupy = soupdrawy[0];
soupxl = soupdrawx[soupdrawx.length - 1] - soupdrawx[0];
soupmove = 0;
}
haft = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
xp.splice(0, 0, v1, v1, v1 - 50, v1 + 50, v1, v1 - 50, v1 + 50);
yp.splice(0, 0, v2 + 30, v2, v2, v2, v2 + 50, v2 + 50, v2 + 50);
sorter.splice(0, 0, 1, 2, 2, 2, 3, 3, 3);
haft.splice(0, 0, 0, 0, 0, 0, 3, 3, 3);
sizor = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
hitty = new Array();
sp = new Array(0, 1, 2, 3, 0, 0, 0);
ep = new Array(0, 4, 5, 6, 1, 2, 3);
neti = new Array();
extra = new Array();
xbew = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
ybew = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
dreh = new Array();
xb = new Array();
yb = new Array();
savex = new Array();
savey = new Array();
slang = new Array(0, 50, 50, 50, 50, 50, 50);
spower = 40;
slang2 = new Array(sp.length);
a = 1;
while (a < sp.length) {
namer = "st" + a;
_parent.a.st.duplicateMovieClip(namer, a + 400);
_parent.a[namer].xp = _parent.a["ball" + sp[a]].xp;
_parent.a[namer].yp = _parent.a["ball" + sp[a]].yp;
slang2[a] = slang[a];
a++;
}
v1 = 0;
e = 0;
while (e < xp.length) {
imp[e] = 1;
waterup[e] = 0.25;
sizor[e];
sizor[e] = 1;
neti[e] = 0;
extra[e] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
savex[e] = xp[e];
savey[e] = yp[e];
namer = "ball" + e;
if (namer != "ball0") {
_parent.a.ball0.duplicateMovieClip(namer, (e + a) + 400);
} else {
_parent.a.ball0.swapDepths(900);
}
_parent.a[namer]._xscale = 20;
_parent.a[namer]._yscale = 20;
_parent.a[namer].e = e;
_parent.a[namer].gotoAndStop(sorter[e]);
ybew[e] = 0;
xbew[e] = 0;
hitty[e] = true;
if ((sorter[e] == 8) || (sorter[e] > 10)) {
dreh[e] = 0;
} else {
dreh[e] = "no";
}
if (sorter[e] == 8) {
waterup[e] = 0.7;
}
if (sorter[e] == 4) {
sizor[e] = 0.5;
guardians++;
} else if (sorter[e] == 9) {
v1++;
extra[e][2] = v1;
extra[e][0] = xp[e];
extra[e][1] = yp[e];
} else if (sorter[e] == 10) {
extra[e].numb = larvacol.shift();
extra[e][0] = 0;
extra[e][1] = 0;
extra[e][2] = 0;
extra[e][3] = 0;
extra[e][4] = 0;
} else if (sorter[e] == 11) {
sizor[e] = 1.7;
_parent.a[namer].cacheAsBitmap = true;
xenf = xp[e] - xp[0];
yenf = (yp[e] - yp[0]) - 10;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < 30) {
headgrab = e;
}
imp[e] = 2;
} else if (sorter[e] == 12) {
sizor[e] = 5;
} else if (sorter[e] == 13) {
sizor[e] = 1;
} else if (sorter[e] == 14) {
sizor[e] = 6;
} else if (sorter[e] == 15) {
hitty[e] = false;
} else if (sorter[e] == 16) {
waterup[e] = -0.5;
hitty[e] = false;
dreh[e] = "no";
haft[e] = 2;
} else if (sorter[e] == 17) {
neti[e] = 10;
dreh[e] = "no";
extra[e][1] = xp[e];
extra[e][2] = yp[e] - 40;
} else if (sorter[e] == 18) {
sizor[e] = 3;
neti[e] = 10;
} else if (sorter[e] == 19) {
hitty[e] = false;
neti[e] = 10;
} else {
if (sorter[e] == 20) {
sizor[e] = 2;
neti[e] = 10;
guardians = guardians - 2;
}
if (sorter[e] == 22) {
hitty[e] = false;
sizor[e] = 3;
neti[e] = 10;
extra[e][0] = xp[e];
extra[e][1] = yp[e];
}
}
e++;
}
ke = -1;
arr_add = function (t, v11, v12, v13) {
arr_t[arr_t.length] = new Array(t, v11, v12);
};
wallhit = function (e) {
hitz = wallt[sorter[e]];
if (sorter[e] != 9) {
speed = (xbew[e] * xbew[e]) + (ybew[e] * ybew[e]);
if (_root[hitz].hitTest(hix((xp[e] + (xbew[e] * (1 - done))) * sca), hiy((yp[e] + (ybew[e] * (1 - done))) * sca), true) || (speed > 500)) {
speed = Math.sqrt(speed);
if (dreh[e] != "no") {
v1 = Math.abs(dreh[e]) * 6;
} else {
v1 = 0;
}
if (hiter[e] && ((speed + v1) < (1 + (haft[e] * 50)))) {
ybew[e] = yp[e] - savey[e];
xbew[e] = xp[e] - savex[e];
arr_add(0, e, "wall");
stupify[e] = 23;
if (dreh[e] != "no") {
dreh[e] = dreh[e] * 0.7;
}
} else if (speed > 0) {
doz = Math.sqrt(speed) * 2;
t1 = 0;
z = 0;
while (z < doz) {
t = z / doz;
if (_root[hitz].hitTest(hix((xp[e] + (xbew[e] * t)) * sca), hiy((yp[e] + (ybew[e] * t)) * sca), true)) {
t = t1;
if (t <= (1 - done)) {
arr_add(t, e, "wall");
} else {
a = 10000;
}
} else {
savex[e] = xp[e] + (xbew[e] * t);
savey[e] = yp[e] + (ybew[e] * t);
t1 = t;
}
z++;
}
}
}
}
};
hiter = new Array();
middle = 0;
b0b = false;
blink = 1;
lookat = 0;
hrot = new Array();
hrot2 = new Array(0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23, 0.23);
keyp = 0.4;
if (soupdrawx != undefined) {
souppy = new Array(soupxl / 25);
souppx = new Array();
soupybew = new Array();
soupxbew = new Array();
watermove = true;
e = 0;
while (e < souppy.length) {
souppy[e] = 0;
souppx[e] = 0;
soupybew[e] = 0;
soupxbew[e] = 0;
e++;
}
inwater = function (v2, v1, v4) {
var _local2 = v1 - (soupmove * 3);
v3 = (((-((v2 - soupx) - soupxl)) / soupxl) * (souppy.length - 2)) + 0.5;
if ((v3 > 1) && (v3 < (souppy.length - 2))) {
v3 = Math.round(v3);
soupybew[v3] = soupybew[v3] * 0.7;
soupybew[v3] = soupybew[v3] + (_local2 / 3);
var _local1 = ((souppx[v3] - v2) + soupx) * 0.01;
soupxbew[v3] = soupxbew[v3] - _local1;
xbew[v4] = xbew[v4] + _local1;
}
if (Math.abs(xbew[v4]) > 0.3) {
watermove = true;
}
};
}
depthcheck = function () {
waterhit[e] = 0.5;
if (soup.hitTest(hix(xp[e] + _x), hiy((yp[e] + _y) - 20), true)) {
waterhit[e] = 1;
return(0.5);
}
if (soup.hitTest(hix(xp[e] + _x), hiy((yp[e] + _y) - 15), true)) {
return(1.5);
}
if (soup.hitTest(hix(xp[e] + _x), hiy((yp[e] + _y) - 10), true)) {
return(1.2);
}
if (soup.hitTest(hix(xp[e] + _x), hiy((yp[e] + _y) - 5), true)) {
return(1);
}
return(0.75);
};
bar1 = 1;
bar2 = 1;
waterhit = new Array();
cur = function () {
if ((ke == -1) || (bar1 == 0)) {
_parent.pf.p._y = _parent.pf.p._y * 0.8;
_parent.pf.p._y = _parent.pf.p._y + 3;
} else {
v1 = 100 / _xscale;
_parent.pf._x = (xp[ke] / v1) + _x;
_parent.pf._y = (yp[ke] / v1) + _y;
xenf = (xp[ke] - xmouse) / v1;
yenf = (yp[ke] - ymouse) / v1;
enf = (yenf * yenf) + (xenf * xenf);
if (enf > 0) {
enf = Math.sqrt(enf);
_parent.pf.p._y = (_parent.pf.p._y / 3) - ((enf / 3) * 2);
w = yenf / enf;
if (xenf > 0) {
_parent.pf._rotation = 270 + (Math.asin(w) / 0.017453);
} else {
_parent.pf._rotation = 90 - (Math.asin(w) / 0.017453);
}
if (enf < 50) {
_parent.pf.p.gotoAndStop(1);
} else if (enf < 150) {
_parent.pf.p.gotoAndStop(2);
} else {
_parent.pf.p.gotoAndStop(3);
}
}
}
};
ups = false;
sizen = function (f1) {
if (wallt[sorter[f1]] == "walls2") {
siz = siz + 20;
}
};
ballcheck = function (e, a) {
if (hitty[a]) {
if (hitty[e]) {
if (sorter[a] > 0) {
if (sorter[e] > 0) {
if (((e != a) && ((the_e != e) || (the_a != a))) && ((the_e != a) || (the_a != e))) {
if (((spidernear[a] > 21) || (e > 6)) && ((spidernear[a] != 23) || (e != 0))) {
if (((spidernear[e] > 21) || (a > 6)) && ((spidernear[e] != 23) || (a != 0))) {
if ((((a == 0) or (a > 3)) && ((e == 0) or (e > 3))) or true) {
siz = 20;
sizen(e);
sizen(a);
if (Math.abs(yp[a] - yp[e]) < (Math.abs(ybew[a] - ybew[e]) + (siz * 1.2))) {
if (Math.abs(xp[a] - xp[e]) < (Math.abs(xbew[a] - xbew[e]) + (siz * 1.2))) {
xenf = ((xp[a] + xbew[a]) - xp[e]) - xbew[e];
yenf = ((yp[a] + ybew[a]) - yp[e]) - ybew[e];
enf = (xenf * xenf) + (yenf * yenf);
if ((enf < (siz * siz)) && (enf > 0)) {
arr_add(0.18, e, a);
} else if (enf > 0) {
yy1 = (((((xbew[e] * xbew[e]) - ((2 * xbew[e]) * xbew[a])) + (ybew[e] * ybew[e])) - ((2 * ybew[e]) * ybew[a])) + (xbew[a] * xbew[a])) + (ybew[a] * ybew[a]);
yy2 = (((-xp[e]) * xp[e]) * (((ybew[e] * ybew[e]) - ((2 * ybew[e]) * ybew[a])) + (ybew[a] * ybew[a]))) + ((((((2 * xp[e]) * (ybew[e] - ybew[a])) + (yp[e] * (xbew[a] - xbew[e]))) + (xp[a] * (ybew[a] - ybew[e]))) + (yp[a] * (xbew[e] - xbew[a]))) * (((yp[e] * (xbew[e] - xbew[a])) + (xp[a] * (ybew[e] - ybew[a]))) + (yp[a] * (xbew[a] - xbew[e]))));
yy3 = (((xp[e] * (xbew[a] - xbew[e])) + (yp[e] * (ybew[a] - ybew[e]))) + (xp[a] * (xbew[e] - xbew[a]))) + (yp[a] * (ybew[e] - ybew[a]));
yy2 = ((siz * siz) * yy1) + yy2;
if ((yy2 > 0) && (yy1 > 0)) {
yy2 = Math.sqrt(yy2);
t1 = (yy3 - yy2) / yy1;
t2 = (yy3 + yy2) / yy1;
if (((t1 < t2) && (t1 > 0)) && (t1 < (1 - done))) {
arr_add(t1, e, a);
} else if ((t2 > 0) && (t2 < (1 - done))) {
arr_add(t2, e, a);
}
}
}
}
}
}
}
}
}
}
}
}
}
};
phcheck = function () {
done = 0;
arr_t = new Array();
t3 = 0;
the_a = -1;
the_e = -1;
spidernear = new Array();
stupify = new Array();
e = 7;
while (e < xp.length) {
if ((headgrab != e) && (grab != e)) {
if ((Math.abs(xp[0] - xp[e]) < (Math.abs(xbew[e]) + 200)) && (Math.abs(yp[0] - yp[e]) < (Math.abs(ybew[e]) + 200))) {
spidernear[e] = 22;
if (random(30) == 0) {
lookat = e;
}
if (((sorter[e] == 8) || (sorter[e] == 10)) || (sorter[e] == 11)) {
spidernear[e] = 23;
}
}
}
e++;
}
e = 0;
while (e < xp.length) {
if (sorter[e] > 0) {
hrot[e] = 0;
wallhit(e);
if (stupify[e] != 23) {
a = Math.max(7, e);
while (a < xp.length) {
if (stupify[a] != 23) {
ballcheck(e, a);
}
a++;
}
}
}
e++;
}
tries = 0;
hiter = new Array();
while ((done < 1) && (tries < 26)) {
arr_t.sortOn(0);
tries++;
t3 = 1 - done;
if ((arr_t[0] != (1 - done)) && (arr_t.length != 0)) {
t3 = arr_t[0][0];
movetime(t3);
e = arr_t[0][1];
a = arr_t[0][2];
z = 0;
while (z < arr_t.length) {
if (((arr_t[z][1] == e) || (arr_t[z][2] == e)) || ((arr_t[z][2] != "wall") && ((arr_t[z][2] == a) || (arr_t[z][1] == e)))) {
arr_t.splice(z, 1);
z--;
} else {
arr_t[z][0] = arr_t[z][0] - t3;
}
z++;
}
if (a == "wall") {
hitz = wallt[sorter[e]];
if (_root[hitz].hitTest(hix(xp[e] * sca), hiy(yp[e] * sca), true)) {
xp[e] = savex[e];
yp[e] = savey[e];
if (rep) {
rep = false;
if (_root[hitz].hitTest(hix(xp[e] * sca), hiy(yp[e] * sca), true)) {
z = 0;
while (z < 6.28) {
if (_root[hitz].hitTest((savex[e] + (Math.sin(z) * 9)) * sca, (savey[e] - (Math.cos(z) * 9)) * sca, true)) {
xp[e] = xp[e] - (Math.sin(z) * 2);
yp[e] = yp[e] + (Math.cos(z) * 2);
}
z = z + 0.628;
}
if (_root[hitz].hitTest(hix(xp[e] * sca), hiy(yp[e] * sca), true)) {
xp[e] = savex[e];
yp[e] = savey[e];
} else {
savex[e] = xp[e];
savey[e] = yp[e];
}
}
}
} else {
enf = (xp[e] * xp[e]) + (yp[e] * yp[e]);
if (enf > 0) {
savex[e] = xp[e];
savey[e] = yp[e];
}
}
soundy = false;
if (hrot2[e] != 0.23) {
rot = hrot2[e];
narf = 1;
} else {
if ((((e > 3) && (e < 7)) && ((ke != e) || (grab == -1))) && (bar1 > 0)) {
soundy = true;
}
narf = 0;
rot = 0;
z = 0;
while (z < (Math.PI*2)) {
if (_root[hitz].hitTest(hix((savex[e] + (Math.sin(z) * 7)) * sca), hiy((savey[e] - (Math.cos(z) * 7)) * sca), true)) {
narf++;
rot1 = z;
while (((rot / narf) - rot1) < -3.14) {
rot1 = rot1 - 6.28;
}
while (((rot / narf) - rot1) > 3.14) {
rot1 = rot1 + 6.28;
}
rot = rot + rot1;
}
z = z + 0.628318530717959;
}
}
speed = (xbew[e] * xbew[e]) + (ybew[e] * ybew[e]);
spiker = 0;
if ((narf != 0) && (narf < 8)) {
rot = rot / narf;
if (speed > 0) {
speed = Math.sqrt(speed);
if (death.hitTest(hix(xp[e] + _x), hiy(yp[e] + _y), true)) {
spiker = 2.3;
}
if (((ke == e) && (!click_down)) && (loz != 2)) {
loz = true;
}
if ((soundy && (spiker == 0)) && (ke != e)) {
sound1 = new Sound(this);
sound1.attachSound("claw");
sound1.start(0, 1);
}
if ((hrot2[e] == 0.23) && (sorter[e] != 11)) {
v1 = speed * sizor[e];
if (v1 > 6) {
v2 = "low";
if (v1 > 60) {
v2 = "high";
} else if (v1 > 20) {
v2 = "medium";
}
if (tern.hitTest(hix(xp[e] + _x), hiy(yp[e] + _y), true)) {
tery = ter2;
} else {
tery = ter;
}
siz = 20;
sizen(e);
z = 0;
while (z < 3) {
v4 = (rot + Math.random()) - 0.5;
xenf = Math.sin(v4);
yenf = -Math.cos(v4);
bubble(-xenf, -yenf, xp[e] + (xenf * siz), yp[e] + (yenf * siz), random(100) + 30, "d" + tery);
z++;
}
if (tery == "organic") {
v1 = (random(2) * 1) + 1;
} else {
v1 = (random(4) * 1) + 1;
}
sound1 = new Sound(this);
sound1.attachSound(((((tery + "_0") + v1) + "_") + v2) + ".wav");
sound1.start(0, 1);
}
}
hurt(((speed / 30) + 0.5) + spiker, e);
w = ybew[e] / speed;
if (xbew[e] > 0) {
rot1 = 1.57 + Math.asin(w);
} else {
rot1 = -1.57 - Math.asin(w);
}
while ((rot - rot1) > 3.14) {
rot1 = rot1 + 6.28;
}
while ((rot - rot1) < 3.14) {
rot1 = rot1 - 6.28;
}
} else {
rot1 = rot;
}
hrot[e] = rot;
hrot2[e] = rot;
if (speed > 0) {
v1 = Math.abs(Math.cos(rot - rot1));
xbew[e] = xbew[e] - (((Math.sin(rot) * speed) * v1) * 2);
ybew[e] = ybew[e] + (((Math.cos(rot) * speed) * v1) * 2);
v1 = Math.abs(Math.sin(rot - rot1));
v2 = speed;
v3 = (0.45 * v1) + 0.45;
speed = (speed / Math.sqrt((xbew[e] * xbew[e]) + (ybew[e] * ybew[e]))) * v3;
xbew[e] = xbew[e] * speed;
ybew[e] = ybew[e] * speed;
speed = v2 * v3;
if (haft[e] != 0) {
xbew[e] = xbew[e] * 0.01;
ybew[e] = ybew[e] * 0.01;
}
if (dreh[e] != "no") {
if (wallt[sorter[e]] == "walls2") {
v3 = 376.991118;
} else {
v3 = 125.663706;
}
v2 = ((Math.sin(rot - rot1) * speed) / v3) * 360;
v1 = (dreh[e] + v2) / 2;
v4 = dreh[e];
if (Math.abs(v1) > 0) {
dreh[e] = (dreh[e] + v1) / 2;
}
v1 = (v4 - v2) / 2;
xbew[e] = xbew[e] - ((Math.cos(rot) * v1) / 360);
ybew[e] = ybew[e] - ((Math.sin(rot) * v1) / 360);
}
}
if ((speed * sizor[e]) > 25) {
shake = speed * sizor[e];
}
} else {
ybew[e] = 0;
xbew[e] = 0;
}
if ((hrot2[e] != 0.23) && (spiker == 0)) {
hiter[e] = true;
}
} else {
siz = 20;
sizen(e);
sizen(a);
v = sizor[e] / (sizor[e] + sizor[a]);
xenf = ((xp[a] + (xbew[a] * t3)) - xp[e]) - (xbew[e] * t3);
yenf = ((yp[a] + (ybew[a] * t3)) - yp[e]) - (ybew[e] * t3);
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
xbewenf = (xbew[e] * v) - (xbew[a] * (1 - v));
ybewenf = (ybew[e] * v) - (ybew[a] * (1 - v));
p = Math.sqrt((ybewenf * ybewenf) + (xbewenf * xbewenf));
v3 = 125.663706;
v2 = (((-Math.sin(rot - rot1)) * p) / v3) * 360;
if (p > 0) {
w = ybewenf / p;
if (xbewenf > 0) {
rot1 = 1.57 + Math.asin(w);
} else {
rot1 = 4.71 - Math.asin(w);
}
w = yenf / enf;
if (xenf > 0) {
rot = 1.57 + Math.asin(w);
} else {
rot = 4.71 - Math.asin(w);
}
while ((rot - rot1) < -1.57) {
rot1 = rot1 - 3.14;
}
while ((rot - rot1) > 1.57) {
rot1 = rot1 + 3.14;
}
p = p * (Math.abs(Math.cos(rot - rot1)) * 2);
v4 = Math.min(15, Math.max(0, siz - enf) * 2);
if (v4 > 9.9) {
v4 = 0;
}
xenf = xenf / enf;
yenf = yenf / enf;
xbew[e] = xbew[e] - ((xenf * (1 - v)) * (p + v4));
ybew[e] = ybew[e] - ((yenf * (1 - v)) * (p + v4));
xbew[a] = xbew[a] + ((xenf * v) * (p + v4));
ybew[a] = ybew[a] + ((yenf * v) * (p + v4));
v1 = (p / 20) + 0.5;
hurt((v1 * (1 - v)) * 2, e);
hurt((v1 * v) * 2, a);
if (((dreh[e] != "no") || (dreh[a] != "no")) && false) {
if (dreh[e] != "no") {
p = dreh[e];
} else {
p = 0;
}
if (dreh[a] != "no") {
p = p - dreh[a];
}
v1 = (p + v2) / 2;
if (dreh[e] != "no") {
dreh[e] = dreh[e] - ((dreh[e] - v1) / 2);
}
if (dreh[a] != "no") {
dreh[a] = dreh[a] + ((dreh[a] - v1) / 2);
}
v1 = (v1 - v2) / 2;
xbew[e] = xbew[e] + (((yenf * v1) / 360) * v3);
ybew[e] = ybew[e] - (((xenf * v1) / 360) * v3);
xbew[a] = xbew[a] - (((yenf * v1) / 360) * v3);
ybew[a] = ybew[a] + (((xenf * v1) / 360) * v3);
}
}
}
done = done + t3;
the_e = e;
the_a = a;
stupify[e] = 0;
wallhit(the_e);
ballhit(the_e);
if (the_a != "wall") {
stupify[a] = 0;
wallhit(the_a);
ballhit(the_a);
}
continue;
}
movetime(1 - done);
done = 1;
}
t3 = -1;
e = 0;
while (e < xp.length) {
yb[e] = ybew[e];
xb[e] = xbew[e];
if (!hiter[e]) {
hrot2[e] = 0.23;
}
e++;
}
};
feet = function () {
waterup[e] = 0.1;
xbew[e] = xbew[e] - (v1 / 216);
if (bar1 != 0) {
if (((ke > 0) && (ke < 7)) && (ke != e)) {
xbew[e] = xbew[e] + (xenf1 / 1.8);
ybew[e] = ybew[e] + (yenf1 / 1.8);
}
if (ke == e) {
haft[e] = 5;
xbew[e] = xbew[e] - (xenf1 * 1.3);
ybew[e] = ybew[e] - (yenf1 * 1.3);
xbew[e - 3] = xbew[e - 3] - xenf1;
ybew[e - 3] = ybew[e - 3] - yenf1;
xbew[0] = xbew[0] - xenf1;
ybew[0] = ybew[0] - yenf1;
enf = Math.sqrt((xenf1 * xenf1) + (yenf1 * yenf1));
w = yenf1 / enf;
if (xenf1 > 0) {
hrot[e] = 4.71 + Math.asin(w);
} else {
hrot[e] = 1.57 - Math.asin(w);
}
v6 = hrot[e];
if (grab == -1) {
if (grabsch) {
a = 7;
while (a < xp.length) {
if ((sorter[a] > 3) && (sorter[a] != 9)) {
xenf = xp[e] - xp[a];
yenf = yp[e] - yp[a];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
v1 = 0;
siz = 20;
sizen(a);
if (enf < (siz + 8)) {
v = sizor[e] / (sizor[e] + sizor[a]);
enf = Math.min(0, ((((enf - siz) - 2) / enf) / 2) * v);
xbew[e] = xbew[e] - ((xenf * enf) * (1 - v));
ybew[e] = ybew[e] - ((yenf * enf) * (1 - v));
xbew[a] = xbew[a] + ((xenf * enf) * v);
ybew[a] = ybew[a] + ((yenf * enf) * v);
if (_parent.a["ball" + e].c._currentframe == 4) {
grab = a;
c = 0;
while (c < netz.length) {
z = 0;
while (z < netz[c].length) {
if (netz[c][0][5] == 0) {
if ((!netz[c][z][1]) && (netz[c][z][2] == grab)) {
if (netz[c].length > 2) {
netkill(c, z);
neti[grab] = 24;
} else {
netz[c][z][1] = 23;
netz[c][z][2] = xp[grab];
netz[c][z][3] = yp[grab];
netz[c][z][4] = xbew[grab];
netz[c][z][5] = ybew[grab];
neti[grab] = 24;
}
z--;
}
}
if ((((!netz[c][z][1]) && (netz[c][z][2] == ke)) && (netz[c].length > 2)) && (z != 0)) {
netkill(c, z);
z--;
}
z++;
}
c++;
}
z = 100000 /* 0x0186A0 */;
}
xenf = ((xp[e] + (xbew[e] * 3)) - xp[grab]) - (xbew[grab] * 3);
yenf = ((yp[e] + (ybew[e] * 3)) - yp[grab]) - (ybew[grab] * 3);
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
w = (-yenf) / enf;
if (xenf < 0) {
v1 = 1.57 + Math.asin(w);
} else {
v1 = -1.57 - Math.asin(w);
}
v1 = v1 * 57.3248407643312;
_parent.a["ball" + e].c._rotation = v1;
enf = -23;
break;
}
}
a++;
}
}
if (enf == -23) {
}
} else if ((grab > -1) && (grabsch)) {
grabrot = true;
hiter[e] = false;
hrot2[e] = 0.23;
hrot[e] = hrot2[e];
xenf = xp[e] - xp[grab];
yenf = yp[e] - yp[grab];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
siz = 20;
sizen(grab);
if (enf < (siz + 10)) {
v = sizor[e] / (sizor[e] + sizor[grab]);
hiter[e] = false;
hrot[e] = 0.23;
haft[e] = 0;
xenf = (xmouse - xp[grab]) - xbew[grab];
yenf = (ymouse - yp[grab]) - ybew[grab];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
enf = (Math.min(2, enf) / enf) * 2;
xbew[grab] = xbew[grab] + ((xenf * enf) * v);
ybew[grab] = ybew[grab] + ((yenf * enf) * v);
xenf = ((xp[e] + xbew[e]) - xp[grab]) - xbew[grab];
yenf = ((yp[e] + ybew[e]) - yp[grab]) - ybew[grab];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
enf = ((enf - siz) - 2) / enf;
xenf = xenf * enf;
yenf = yenf * enf;
xbew[e] = xbew[e] - (xenf * (1 - v));
ybew[e] = ybew[e] - (yenf * (1 - v));
xbew[grab] = xbew[grab] + (xenf * v);
ybew[grab] = ybew[grab] + (yenf * v);
if ((sorter[grab] > 16) && (sorter[grab] < 20)) {
shake = 15;
emo = 50;
emo2 = "mad";
} else if (sorter[grab] == 4) {
extra[grab][1] = extra[grab][1] + 0.03;
extra[grab][1] = extra[grab][1] * 0.9;
emo = 50;
emo2 = "mad";
} else if ((sorter[grab] == 10) || (sorter[grab] == 11)) {
emo = 50;
emo2 = "happy";
}
} else {
grab = -1;
}
xenf = ((xp[e] + (xbew[e] * 3)) - xp[grab]) - (xbew[grab] * 3);
yenf = ((yp[e] + (ybew[e] * 3)) - yp[grab]) - (ybew[grab] * 3);
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
w = (-yenf) / enf;
if (xenf < 0) {
v6 = 1.57 + Math.asin(w);
} else {
v6 = -1.57 - Math.asin(w);
}
enf = -23;
}
} else if (e > 3) {
neti[e] = 1;
xbew[e] = xbew[e] - (headx / 3);
ybew[e] = ybew[e] - (heady / 3);
haft[e] = 15;
if (hiter[e] || (waterhit[e] == 0.5)) {
if (hiter[e]) {
xbew[e - 3] = xbew[e - 3] - Math.sin(hrot[e]);
ybew[e - 3] = ybew[e - 3] + Math.cos(hrot[e]);
} else {
ybew[e - 3] = ybew[e - 3] - 0.35;
}
ybew[0] = ybew[0] - 0.075;
ybew[e] = ybew[e] - 0.15;
middle = middle + xp[e];
middles++;
xenf = xp[0] - xp[e];
yenf = yp[0] - yp[e];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((enf > 0) && (hiter[e])) {
xenf = xenf * (-0.3 / enf);
yenf = yenf * (-0.3 / enf);
xbew[e] = xbew[e] - xenf;
ybew[e] = ybew[e] - yenf;
xbew[0] = xbew[0] + xenf;
ybew[0] = ybew[0] + yenf;
}
}
}
if (e > 3) {
rot = (_parent.a["ball" + e].c._rotation * 3.14) / 180;
v1 = rot;
if ((hrot2[e] != 0.23) || ((ke == e) && (enf == -23))) {
_parent.a["ball" + e].c.nextFrame();
} else {
_parent.a["ball" + e].c.prevFrame();
}
if (hrot2[e] != 0.23) {
v1 = hrot2[e];
} else if (ke == e) {
v1 = v6;
} else if ((hrot2[e] == 0.23) && (waterhit[e] == 0.5)) {
v1 = 3.14;
} else if (hrot2[e] == 0.23) {
speed = Math.sqrt((xbew[e] * xbew[e]) + (ybew[e] * ybew[e]));
if (speed > 2) {
w = (-ybew[e]) / speed;
if (xbew[e] < 0) {
v1 = 4.71 + Math.asin(w);
} else {
v1 = 1.57 - Math.asin(w);
}
} else {
v1 = rot;
}
}
while ((v1 - rot) < -1.57) {
rot = rot - 3.14;
}
while ((v1 - rot) > 1.57) {
rot = rot + 3.14;
}
rot = ((rot * 2) + v1) / 3;
rot = (rot / 3.14) * 180;
v2 = rot - _parent.a["ball" + e].c._rotation;
_parent.a["ball" + e].c._rotation = rot;
if ((((grab != -1) && (dreh[grab] != "no")) && (ke == e)) && (grabrot)) {
_parent.a["ball" + e].c._rotation = _parent.a["ball" + e].c._rotation + (dreh[grab] / 2);
while ((-v2) < 180) {
v2 = v2 - 360;
}
while ((-v2) > 180) {
v2 = v2 + 360;
}
if (Math.abs(v2) < 30) {
dreh[grab] = (dreh[grab] + v2) / 2;
}
}
}
} else {
haft[e] = 0;
}
};
hurt = function (v1, v2) {
if (v2 < 7) {
v1 = v1 + (totalspeed / 10);
if (v2 > 1) {
v1 = v1 * 0.75;
}
if (v1 > 2.4) {
v1 = v1 - 2;
v1 = v1 * (v1 * 0.3);
bar1 = bar1 - v1;
spiderhurt = 5;
emo = 30;
emo2 = "hurt";
}
} else if ((sorter[v2] == 4) && (v1 > 2)) {
extra[v2][0] = extra[v2][0] + (v1 / 2);
extra[v2][1] = extra[v2][1] + (v1 / 2);
}
};
the_e = -1;
the_a = -1;
ballhit = function (e) {
if (stupify[e] != 23) {
a = 0;
while (a < xp.length) {
if (stupify[a] != 23) {
if ((e < 7) && (a < 7)) {
a = 7;
}
ballcheck(e, a);
}
a++;
}
}
};
grab = -1;
headx = 0;
heady = 0;
v1 = 0;
middle = 0;
middles = 0;
mov = function () {
v1 = 700 / _xscale;
_x = (_x + shakex);
_y = (_y + shakey);
_x = (Math.round((_x * 4) + (275 - (((((((xp[0] + xp[1]) + xp[2]) + xp[3]) + xp[4]) + xp[5]) + xp[6]) / v1))) / 5);
_y = (Math.round((_y * 4) + (200 - (((((((yp[0] + yp[1]) + yp[2]) + yp[3]) + yp[4]) + yp[5]) + yp[6]) / v1))) / 5);
_x = Math.min((-bo._x) + (bo._xscale * 5), Math.max(_x, ((-bo._x) - (bo._xscale * 5)) + 550));
_y = Math.min((-bo._y) + (bo._yscale * 5), Math.max(_y, ((-bo._y) - (bo._yscale * 5)) + 400));
_parent.bg._x = 275 + ((_x - 275) / 10);
_parent.bg._y = 200 + ((_y - 200) / 10);
_parent.map.map._x = (_x - 275) / 20;
_parent.map.map._y = (_y - 200) / 20;
fg._x = 275 + ((_x - 275) * (fgsize - 1));
fg._y = 200 + ((_y - 200) * (fgsize - 1));
fg._xscale = 100 * fgsize;
fg._yscale = 100 * fgsize;
xenf = ((((((xbew[0] + xbew[1]) + xbew[2]) + xbew[3]) + xbew[4]) + xbew[5]) + xbew[6]) / 7;
yenf = ((((((ybew[0] + ybew[1]) + ybew[2]) + ybew[3]) + ybew[4]) + ybew[5]) + ybew[6]) / 7;
totalspeed = Math.sqrt((xenf * xenf) + (yenf * yenf));
};
top = function () {
timer = getTimer();
};
tip = function () {
alltimer = alltimer + ((getTimer() - timer) / 20);
};
netkill = function (f1, f2) {
netz[f1][f2 + 1][0] = netz[f1][f2 + 1][0] + netz[f1][f2][0];
netz[f1].splice(f2, 1);
};
stringhead = false;
emo = 100;
emo2 = "sad";
grabsch = false;
ef.i = 0;
_parent.men.gotoAndStop("empty");
stroke = 0;
sack = -1;
killball = function (f1) {
sorter[f1] = 0;
if (f1 == headgrab) {
headgrab = -1;
}
if (f1 == grab) {
grab = -1;
}
removeMovieClip(_parent.a["ball" + f1]);
};
spideravoid = function (f1, f2) {
if (grab != e) {
xenf = (xp[e] + xbew[e]) - xp[0];
yenf = ((yp[e] + ybew[e]) - yp[0]) - 30;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < f1) {
enf = Math.min(f2, (f1 - enf) / 6) / enf;
xbew[e] = xbew[e] + (xenf * enf);
ybew[e] = ybew[e] + (yenf * enf);
enf = -1;
}
}
};
newball = function (f1, f2, f3, f4, f5, f6) {
z = xp.length;
dreh[z] = f6;
hitty[z] = true;
sorter[z] = f1;
xp[z] = f2;
yp[z] = f3;
xbew[z] = f4;
ybew[z] = f5;
imp[z] = 1;
waterup[z] = 0.25;
sizor[z] = 1;
neti[z] = 0;
extra[z] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
savex[z] = xp[z];
savey[z] = yp[z];
namer = "ball" + z;
_parent.a.ball0.duplicateMovieClip(namer, (z + sp.length) + 400);
_parent.a[namer]._x = xp[z];
_parent.a[namer]._y = yp[z];
_parent.a[namer]._xscale = 20;
_parent.a[namer]._yscale = 20;
_parent.a[namer].e = z;
_parent.a[namer].gotoAndStop(sorter[z]);
};
endit = function () {
if (_parent.nowlev == 11) {
_parent.unlockSteamAchievement("_tri1");
}
_parent.collarv = _parent.larvacount - _parent.alarvac;
if (_parent.larvacount >= 8) {
_parent.unlockSteamAchievement("_tri2");
}
_parent.gotoAndStop(comicgo[_parent.nowlev - 1]);
};
unnet = function () {
z = 0;
while (z < netz.length) {
if (netz[z][0][5] == 1) {
a = 0;
while (a < netz[z].length) {
if ((!netz[z][a][1]) && (netz[z][a][2] == e)) {
netz[z][a][1] = 23;
netz[z][a][2] = xp[e];
netz[z][a][3] = yp[e];
netz[z][a][4] = xbew[e];
netz[z][a][5] = ybew[e];
}
a++;
}
}
z++;
}
};
shootpart = function () {
z = 0;
while (z < 15) {
bubble((v1 / 10) + (Math.random() - 0.5), (v2 / 10) + (Math.random() - 0.5), (xp[e] + v1) + ((Math.random() - 0.5) * 9), (yp[e] + v2) + ((Math.random() - 0.5) * 9), random(100) + 60, "dorganic");
z++;
}
};
larvc = function () {
_parent.larvacollect = (_parent.larvacollect.slice(0, extra[e].numb) + "1") + _parent.larvacollect.slice(extra[e].numb + 1);
so = SharedObject.getLocal("options");
so.data.l = _parent.larvacollect;
so.flush();
};
fly = function (f1, f2) {
if (grab != e) {
if (_parent.walls.hitTest(hix(xp[e] * sca), hiy((yp[e] + f1) * sca), true)) {
ybew[e] = ybew[e] - f2;
}
if (_parent.walls.hitTest(hix(xp[e] * sca), hiy((yp[e] - f1) * sca), true)) {
ybew[e] = ybew[e] + f2;
}
if (_parent.walls.hitTest(hix((xp[e] + f1) * sca), hiy(yp[e] * sca), true)) {
xbew[e] = xbew[e] - f2;
}
if (_parent.walls.hitTest(hix((xp[e] - f1) * sca), hiy(yp[e] * sca), true)) {
xbew[e] = xbew[e] + f2;
}
}
};
turny = function () {
if (xenf > 0) {
_parent.a["ball" + e]._xscale = -Math.abs(_parent.a["ball" + e]._xscale);
} else {
_parent.a["ball" + e]._xscale = Math.abs(_parent.a["ball" + e]._xscale);
}
};
bubble = function (f1, f2, f3, f4, f5, f6) {
ef.i++;
namer = ("" + f6) + ef.i;
_parent.v1 = f6;
tellTarget (ef) {
duplicateMovieClip (_parent.v1, _parent.a.namer, i);
};
ef[namer]._visible = true;
ef[namer].xbew = f1;
ef[namer].ybew = f2;
ef[namer]._x = f3;
ef[namer]._y = f4;
ef[namer]._yscale = f5;
};
fa0 = new Color(ball0);
fa1 = new Color(ball1);
fa2 = new Color(ball2);
fa3 = new Color(ball3);
fa4 = new Color(ball4);
fa5 = new Color(ball5);
fa6 = new Color(ball6);
fa7 = new Color(st1);
fa8 = new Color(st2);
fa9 = new Color(st3);
fa10 = new Color(st4);
fa11 = new Color(st5);
fa12 = new Color(st6);
spiderhurt = 0;
_x = (275 - (((((((xp[0] + xp[1]) + xp[2]) + xp[3]) + xp[4]) + xp[5]) + xp[6]) / 7));
_y = (200 - (((((((yp[0] + yp[1]) + yp[2]) + yp[3]) + yp[4]) + yp[5]) + yp[6]) / 7));
_parent.unpause = false;
shake = 0;
if (_parent.musicon) {
sound1 = new Sound(this);
sound1.attachSound("music" + music[_parent.nowlev]);
sound1.start(0, 100);
}
netcal = new Array();
stringz = function () {
if (netz.length > 0) {
netcal[e] = false;
teststring.clear();
string.clear();
e = 0;
while (e < netz.length) {
if (netz[e][0][5] == 1) {
teststring.lineStyle(3, "0xB33C3C", 100);
string.lineStyle(10, "0x9F3535", 100);
} else {
teststring.lineStyle(21, _parent.c_string, 0);
string.lineStyle(3, _parent.c_string, 100);
}
if (netz[e][0][1]) {
v1 = netz[e][0][2];
v2 = netz[e][0][3];
v3 = -1;
} else {
z = netz[e][0][2];
v1 = xp[z];
v2 = yp[z];
v3 = z;
if (sorter[z] > 0) {
netcal[e] = true;
} else if (netcal[e] && (sorter[z] < 0)) {
sorter[z] = -sorter[z];
}
}
a = 1;
while (a < netz[e].length) {
if (netz[e][a][1] == 23) {
v4 = netz[e][a][2];
v5 = netz[e][a][3];
v6 = -23;
} else if (netz[e][a][1]) {
v4 = netz[e][a][2];
v5 = netz[e][a][3];
v6 = -1;
} else {
z = netz[e][a][2];
v4 = xp[z];
v5 = yp[z];
v6 = z;
if (sorter[z] == 0) {
netkill(e, a);
}
if (sorter[z] > 0) {
netcal[e] = true;
} else if (netcal[e] && (sorter[z] < 0)) {
sorter[z] = -sorter[z];
}
}
teststring.moveTo(v1, v2);
string.moveTo(v1, v2);
z = netz[e];
xenf = v4 - v1;
yenf = v5 - v2;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
v7 = Math.min(enf - netz[e][a][0], 0);
if (((_parent.heartblood != 0) && (sorter[v3] == 18)) && (netz[e][a][1] == 23)) {
p = (_parent.heartblood / Math.sqrt((xenf * xenf) + ((yenf + v7) * (yenf + v7)))) * 3;
bl++;
z = 0;
while (z < (_parent.heartblood * 4)) {
bubble((xenf * p) + (((Math.random() - 0.5) * (3 - _parent.heartblood)) * 2), ((yenf + v7) * p) + (((Math.random() - 0.5) * (3 - _parent.heartblood)) * 2), netz[e][a][2], netz[e][a][3], random(50) + 10, "B");
z++;
}
}
teststring.curveTo((v1 + v4) / 2, ((v2 + v5) / 2) - v7, v4, v5);
string.curveTo((v1 + v4) / 2, ((v2 + v5) / 2) - v7, v4, v5);
v1 = (v1 + v4) / 2;
v2 = (v2 + v5) / 2;
v4 = v4 - v1;
v5 = v5 - v2;
i = 4;
while (i < xp.length) {
if ((((((neti[i] == 0) || (neti[i] == 23)) && (sorter[i] != 0)) && ((i != ke) || (((grabsch && (loz != 2)) && (grab == -1)) && (ke == i)))) && ((i != grab) || (!grabsch))) && (headgrab != i)) {
if (teststring.hitTest(hix(xp[i] + _x), hiy(yp[i] + _y), true)) {
if ((i != ke) && (netz[e][0][5] != 0)) {
neti[i] = 23;
} else if (neti[i] == 23) {
neti[i] = 24;
} else {
if (Math.abs(v4) > Math.abs(v5)) {
v8 = Math.max(-0.5, Math.min(0.5, ((xp[i] - v1) / v4) / 2));
} else {
v8 = Math.max(-0.5, Math.min(0.5, ((yp[i] - v2) / v5) / 2));
}
neti[i] = 1;
v9 = netz[e][a][0] * (0.5 + v8);
netz[e][a][0] = netz[e][a][0] - v9;
netz[e].splice(a, 0, new Array(v9, false, i));
}
}
}
i++;
}
v4 = v4 + v1;
v5 = v5 + v2;
v1 = v4;
v2 = v5;
v3 = v6;
a++;
}
e++;
}
string.endFill();
teststring.endFill();
e = 0;
while (e < netz.length) {
if (netcal[e]) {
if (netz[e][0][1]) {
v1 = netz[e][0][2];
v2 = netz[e][0][3];
v3 = -1;
v7 = 1000;
} else {
z = netz[e][0][2];
v7 = sizor[z];
if (((sorter[z] == 3) && (hiter[z])) && (ke == z)) {
netz[e][0][1] = true;
netz[e][0][2] = (v1 = xp[z] + (Math.sin(hrot[z]) * 11));
netz[e][0][3] = (v2 = yp[z] - (Math.cos(hrot[z]) * 11));
neti[z] = 24;
v3 = -1;
} else {
v1 = xp[z] + xb[z];
v2 = yp[z] + yb[z];
v3 = z;
}
}
a = 1;
while (a < netz[e].length) {
if (netz[e][a][1] == 23) {
netz[e][a][5] = netz[e][a][5] + 0.5;
netz[e][a][4] = netz[e][a][4] * 0.95;
netz[e][a][5] = netz[e][a][5] * 0.95;
netz[e][a][2] = netz[e][a][2] + netz[e][a][4];
netz[e][a][3] = netz[e][a][3] + netz[e][a][5];
v4 = netz[e][a][2] + netz[e][a][4];
v5 = netz[e][a][3] + netz[e][a][5];
v6 = -23;
v8 = 0.1;
} else if (netz[e][a][1]) {
v4 = netz[e][a][2];
v5 = netz[e][a][3];
v6 = -1;
v8 = 1000;
} else {
z = netz[e][a][2];
v8 = sizor[z];
v4 = xp[z] + xb[z];
v5 = yp[z] + yb[z];
v6 = z;
if (sorter[z] == 0) {
netkill(e, a);
}
}
z = netz[e];
v9 = v8 / (v7 + v8);
xenf = v4 - v1;
yenf = v5 - v2;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (((enf > netz[e][a][0]) || (netz[e][0][5] != 0)) && (enf != netz[e][a][0])) {
v1 = (netz[e][a][0] - enf) * 0.2;
if ((netz[e][0][5] == 1) && (v1 > 0)) {
v1 = v1 * 0.2;
}
if (v3 == -23) {
netz[e][a - 1][4] = netz[e][a - 1][4] - (((xenf / enf) * v1) / 2);
netz[e][a - 1][5] = netz[e][a - 1][5] - (((yenf / enf) * v1) / 2);
} else if ((v3 != -1) && (v6 != -23)) {
xbew[v3] = xbew[v3] - ((((xenf / enf) * v1) * v9) / 2);
ybew[v3] = ybew[v3] - ((((yenf / enf) * v1) * v9) / 2);
}
if (v6 == -23) {
netz[e][a][4] = netz[e][a][4] + (((xenf / enf) * v1) / 2);
netz[e][a][5] = netz[e][a][5] + (((yenf / enf) * v1) / 2);
} else if ((v6 != -1) && (v3 != -23)) {
xbew[v6] = xbew[v6] + ((((xenf / enf) * v1) * (1 - v9)) / 2);
ybew[v6] = ybew[v6] + ((((yenf / enf) * v1) * (1 - v9)) / 2);
if (v6 == 0) {
v1 = v1 * 2;
netz[e][a][0] = netz[e][a][0] - v1;
}
}
} else if (v6 == 0) {
v1 = ((netz[e][a][0] - enf) - 20) / 80;
netz[e][a][0] = netz[e][a][0] - v1;
}
v1 = v4;
v2 = v5;
v3 = v6;
v7 = v8;
a++;
}
}
e++;
}
}
};
fps = 30;
fpstime = getTimer();
fpz = function () {
v1 = getTimer();
v2 = 1000 / (v1 - fpstime);
fps = (fps * 0.95) + (v2 * 0.05);
fpstime = v1;
_parent.alltimer = Math.round(fps * 100) / 100;
};
nowlarv = 0;
mouseListener = new Object();
mouseListener = new Object();
mouseListener.onMouseDown = function () {
click_down = true;
if (!rightclick_down) {
presser();
}
};
mouseListener.onMouseUp = function () {
if (!rightclick_down) {
letgo();
}
click_down = false;
};
Mouse.addListener(mouseListener);
}
onClipEvent (enterFrame) {
xmouse = _xmouse;
ymouse = _ymouse;
top();
sound1.setVolume(_parent.vol);
if (ups) {
ups = false;
_parent.unpause = true;
}
if (Key.isDown(85) || (Key.isDown(27))) {
if (pac == 23) {
pac = 0;
if (_parent.unpause) {
_parent.unpause = false;
_parent.info = "pause";
} else {
_parent.unpause = true;
}
}
} else {
pac = 23;
}
if (!_parent.unpause) {
_parent.men.prevFrame();
} else {
frames++;
v321++;
fpz();
thislev();
if (ball0.head._currentframe > 2) {
ball0.head.nextFrame();
}
rep = true;
_parent.maxlarv = Math.max(nowlarv, _parent.maxlarv);
_parent.nowlarv = nowlarv;
nowlarv = 0;
shake = shake * 0.9;
shake = shake - 0.4;
shake = Math.max(0, Math.min(100, shake));
shakey = (Math.random() - 0.5) * shake;
shakex = (Math.random() - 0.5) * shake;
_parent.men.nextFrame();
spiderhurt = spiderhurt - 0.3;
if (spiderhurt > 0) {
v1 = spiderhurt * 10;
} else {
v1 = 0;
}
if (spiderhurt > -3) {
v1 = {ra:100, rb:v1 * 2, ga:100 - v1, ba:100 - v1};
fa0.setTransform(v1);
fa1.setTransform(v1);
fa2.setTransform(v1);
fa3.setTransform(v1);
fa4.setTransform(v1);
fa5.setTransform(v1);
fa6.setTransform(v1);
fa7.setTransform(v1);
fa8.setTransform(v1);
fa9.setTransform(v1);
fa10.setTransform(v1);
fa11.setTransform(v1);
fa12.setTransform(v1);
}
if (exit.hitTest(hix(xp[0] + _x), hiy(yp[0] + _y), true)) {
if (exit.hitTest(hix(xp[sack] + _x), hiy(yp[sack] + _y), true) || (sack == -1)) {
_parent.w._alpha = _parent.w._alpha + 10;
_parent.w.gotoAndStop(1);
if (_parent.w._alpha > 100) {
endit();
}
think.prevFrame();
} else {
think.nextFrame();
if (think._currentframe > 20) {
emo2 = "sad";
emo = 10;
}
}
} else {
think.prevFrame();
}
if ((bar1 <= 0.001) or ((sack != -1) && ((!bo.hitTest(_parent.a["ball" + sack])) or (soup.hitTest(hix(xp[sack] + _x), hiy(yp[sack] + _y), true) && (waterhurt > 0))))) {
_parent.w._alpha = _parent.w._alpha + 10;
_parent.w.gotoAndStop(1);
if (_parent.w._alpha > 100) {
if (_parent.nowlev == 13) {
_parent.score = v321;
_parent.gotoAndStop("score");
} else {
_parent.gotoAndStop("gameOver");
}
}
if (bar1 > 0.001) {
emo2 = "sad";
emo = 10;
}
}
if (underwater && (random(20) == 1)) {
bubble(xbew[0], ybew[0], xp[0], yp[0], random(40) + 10, "S");
}
if ((Key.isDown(17) or Key.isDown(88)) or Key.isDown(32)) {
if (sap != 23) {
sap = 23;
if (!stringhead) {
if ((ke > 3) && (ke < 7)) {
xenf = xp[0] - xp[ke];
yenf = yp[0] - yp[ke];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
netz[netz.length] = new Array(new Array(0, false, ke, 0, 0, 0, 0), new Array(enf, false, 0));
sap = 23;
neti[ke] = 1;
stringhead = true;
}
} else {
stringhead = false;
e = 0;
while (e < netz.length) {
if (netz[e][netz[e].length - 1][2] == 0) {
a = netz[e].length - 1;
netz[e][netz[e].length - 1][1] = 23;
netz[e][netz[e].length - 1][2] = xp[0];
netz[e][netz[e].length - 1][3] = yp[0];
netz[e][netz[e].length - 1][4] = xbew[0];
netz[e][netz[e].length - 1][5] = ybew[0];
}
e++;
}
}
}
} else {
sap = 0;
}
e = 7;
while (e < xp.length) {
xenf = Math.abs(xp[e] + _x);
yenf = Math.abs(yp[e] + _y);
if ((((sorter[e] > 0) && (imp[e] < 2)) && ((xenf > 650) || (yenf > 600))) && ((Math.abs(xbew[e]) + Math.abs(ybew[e])) < 20)) {
sorter[e] = -sorter[e];
} else if (((sorter[e] < 0) && ((xenf < 650) && (yenf < 600))) || (imp[e] > 1)) {
sorter[e] = Math.abs(sorter[e]);
}
e++;
}
if (bar1 != 0) {
bar2 = bar2 + 0.011;
bar2 = Math.max(-0.013, Math.min(bar2, 1));
bar1 = Math.max(0, Math.min(bar1, 1));
} else {
bar1 = (bar2 = 0);
}
_parent.hud.bar1._x = (_parent.hud.bar1._x - (bar1 * 61)) / 2;
_parent.hud.bar2._x = (_parent.hud.bar2._x + (bar2 * 61)) / 2;
if ((watermove && (soupdrawx != undefined)) && ((v321 / 3) != Math.round(v321 / 3))) {
souppx[0] = soupxl;
souppx[souppy.length - 1] = 0;
soupby = new Array();
soupbx = new Array();
e = 0;
while (e < (souppy.length + 1)) {
soupby[e] = soupybew[e];
soupbx[e] = soupxbew[e];
e++;
}
watermove = false;
e = 1;
while (e < (souppy.length - 1)) {
soupxbew[e] = soupxbew[e] - ((souppx[e] - ((soupxl / (souppy.length - 1)) * ((souppy.length - 1) - e))) / 100);
soupxbew[e] = soupxbew[e] - ((soupbx[e - 1] - soupbx[e + 1]) * 0.05);
soupxbew[e] = soupxbew[e] - ((((souppx[e] * 2) - souppx[e - 1]) - souppx[e + 1]) * 0.005);
soupxbew[e] = soupxbew[e] - ((Math.abs(souppy[e - 1]) - Math.abs(souppy[e + 1])) * 0.0025);
soupybew[e] = soupybew[e] + ((soupby[e - 1] + soupby[e + 1]) * 0.05);
soupybew[e] = soupybew[e] - ((souppy[e] + (soupybew[e] * 3)) / 30);
soupybew[e] = soupybew[e] - ((((souppy[e] * 2) - souppy[e - 1]) - souppy[e + 1]) / 20);
e++;
}
e = 1;
for ( ; e < (souppy.length - 1) ; e++) {
souppy[e] = souppy[e] + soupybew[e];
souppx[e] = souppx[e] + soupxbew[e];
soupybew[e] = soupybew[e] * 0.93;
soupxbew[e] = soupxbew[e] * 0.93;
if (random(2)) {
if (soupybew[e] > 4) {
bubble(0, soupybew[e] * 0.6, ((soupx + souppx[e]) + random(60)) - 30, (soupy - souppy[e]) + random(soupybew[e] * 1.5), random(40) + 10, "S");
continue;
}
if (soupybew[e] < -4) {
bubble(0, soupybew[e] * 0.6, ((soupx + souppx[e]) + random(60)) - 30, (soupy - souppy[e]) - random(soupybew[e] * 1.5), random(40) + 10, "D");
}
}
if (Math.abs(soupybew[e]) > 0.1) {
watermove = true;
}
}
soup.clear();
soup.beginFill(_parent.c_water, _parent.a_water);
soup.lineStyle(18, "0x000000", 0);
soup.moveTo(soupdrawx[0], soupdrawy[0]);
e = 1;
while (e < soupdrawx.length) {
soup.lineTo(soupdrawx[e], soupdrawy[e]);
e++;
}
e = 1;
while (e < (souppy.length - 1)) {
souppx[e] = (soupxl / (souppy.length - 1)) * ((souppy.length - 1) - e);
e++;
}
e = 1;
while (e < (souppy.length - 1)) {
soup.curveTo(soupx + souppx[e], soupy - souppy[e], (soupx + (souppx[e] / 2)) + (souppx[e + 1] / 2), (soupy - (souppy[e + 1] / 2)) - (souppy[e] / 2));
e++;
}
soup.endFill();
}
if (bar1 != 0) {
grabrot = false;
if (Key.isDown(87)) {
heady = heady - keyp;
}
if (Key.isDown(83)) {
heady = heady + keyp;
}
if (Key.isDown(65)) {
headx = headx - keyp;
}
if (Key.isDown(68)) {
headx = headx + keyp;
}
headx = headx * 0.7;
heady = heady * 0.7;
xbew[0] = xbew[0] + headx;
ybew[0] = ybew[0] + heady;
}
if (underwater) {
emo2 = "dive";
emo = 2;
} else if (emo2 == "dive") {
emo2 = "out";
emo = 20;
}
if (bar1 == 0) {
emo2 = "dead";
emo = 10000;
}
if (emo > 0) {
ball0.b.gotoAndStop(emo2);
emo--;
} else {
if ((ball0.b._currentframe + blink) < 7) {
ball0.b.gotoAndStop(ball0.b._currentframe + blink);
} else {
ball0.b.gotoAndStop(6);
}
if ((ball0.b._currentframe == 6) && (random(3) == 0)) {
lookat = 0;
blink = -1;
}
if ((ball0.b._currentframe == 1) && (random(40) == 0)) {
blink = 1;
}
}
v1 = middle - xp[0];
if (v1 != 0) {
v1 = (Math.min(5, Math.abs(v1)) * v1) / Math.abs(v1);
}
if ((lookat == 0) || (bar1 == 0)) {
ball0.b._x = ball0.b._x * 0.5;
ball0.b._y = ball0.b._y * 0.5;
} else {
if (lookat == -1) {
xenf = xmouse;
yenf = ymouse;
} else {
xenf = xp[lookat];
yenf = yp[lookat];
}
xenf = (xenf - xp[0]) / 10;
yenf = (yenf - yp[0]) / 5;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
enf = Math.min(1, enf) / enf;
ball0.b._x = ((xenf * enf) * 6) + (ball0.b._x / 2);
ball0.b._y = ((yenf * enf) * 4) + (ball0.b._y / 2);
}
middle = 0;
middles = 0;
maxp = 0;
xbew[0] = xbew[0] + (v1 / 36);
if (ke > 0) {
xenf1 = (xp[ke] - xmouse) / 30;
yenf1 = ((yp[ke] + 6) - ymouse) / 30;
enf = Math.sqrt(((xenf1 * xenf1) * yenf1) * yenf1);
enf = Math.min(enf * 1.3, 1) / enf;
xenf1 = xenf1 * enf;
yenf1 = yenf1 * enf;
}
if (bar1 != 0) {
if (_parent.walls.hitTest(hix(xp[0] * sca), hiy((yp[0] + 35) * sca), true) || (soup.hitTest(hix(xp[e] + _x), hiy((yp[e] + _y) + 25), true))) {
ybew[0] = ybew[0] - 0.6;
}
if (_parent.walls.hitTest(hix(xp[0] * sca), hiy((yp[0] - 35) * sca), true)) {
ybew[0] = ybew[0] + 0.45;
}
if (_parent.walls.hitTest(hix((xp[0] + 35) * sca), hiy(yp[0]), true)) {
xbew[0] = xbew[0] - 0.45;
}
if (_parent.walls.hitTest(hix((xp[0] - 35) * sca), hiy(yp[0]), true)) {
xbew[0] = xbew[0] + 0.45;
}
}
underwater = false;
stroke = Math.min(stroke - 1, 5);
e = 0;
while (e < xp.length) {
if (Math.abs(sorter[e]) == 10) {
nowlarv++;
}
if (sorter[e] > 0) {
if (windsh.hitTest(hix(xp[e] + _x), hiy(yp[e] + _y), true)) {
xbew[e] = xbew[e] + ((wind / sizor[e]) / 10);
}
if (dreh[e] != "no") {
if ((!Math.abs(dreh[e])) > 0) {
dreh[e] = 0.001;
}
_parent.a["ball" + e].d._rotation = _parent.a["ball" + e].d._rotation + dreh[e];
dreh[e] = dreh[e] * 0.98;
if (((sorter[e] == 20) or (sorter[e] == 19)) && (extra[e][2] == 0)) {
extra[e][1] = extra[e][1] + dreh[e];
dreh[e] = dreh[e] * 0.3;
}
}
if ((sorter[e] != 17) && (sorter[e] != 9)) {
xbew[e] = xbew[e] - ((shakex / sizor[e]) / 5);
ybew[e] = ybew[e] - ((shakey / sizor[e]) / 5);
}
if (soup.hitTest(hix(xp[e] + _x), hiy(yp[e] + _y), true)) {
if (waterhurt > 0) {
if (e < 7) {
if (bar1 != 0) {
bar1 = bar1 - waterhurt;
spiderhurt = 5;
emo = 10;
emo2 = "hurt";
}
}
}
if (sorter[e] == 4) {
extra[e][0] = 10000;
}
v1 = depthcheck();
ybew[e] = ybew[e] - (waterup[e] * v1);
if (waterhit[e] == 0.5) {
inwater(xp[e], (((-ybew[e]) * 2) - 2) / 1.5, e);
ybew[e] = ybew[e] * surfbreak;
xbew[e] = xbew[e] * (surfbreak - 0.05);
} else {
xbew[e] = xbew[e] * waterbreak;
ybew[e] = ybew[e] * waterbreak;
if (((Math.abs(xbew[e]) + Math.abs(ybew[e])) > 15) && (underwater)) {
if (stroke < 0) {
stroke = 20;
sound1 = new Sound(this);
sound1.attachSound("stroke" + random(3));
sound1.start(0, 1);
} else {
stroke++;
}
}
if (e == 0) {
underwater = true;
if (bar1 != 0) {
if (!air.hitTest(hix(xp[0] + _x), hiy(yp[0] + _y), true)) {
bar2 = bar2 - 0.013;
}
if (bar2 < 0) {
bar1 = bar1 - 0.009;
}
}
}
}
ybew[e] = ybew[e] - ((soupmove / 10) / sizor[e]);
} else {
waterhit[e] = 0;
}
ybew[e] = ybew[e] * 0.999;
xbew[e] = xbew[e] * 0.999;
ybew[e] = ybew[e] + (0.2 + (0.05 * sizor[e]));
if (e > 6) {
if (((headgrab == -1) && (e == grab)) && (sizor[e] < 2)) {
if (ball0.head._currentframe == 2) {
ball0.head.gotoAndStop(1);
}
xenf = xp[e] - xp[0];
if (Math.abs(xenf) < 30) {
yenf = (yp[e] - yp[0]) - 25;
if (Math.abs(yenf) < 30) {
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < 30) {
headgrab = e;
}
}
}
} else if (headgrab == e) {
if (ball0.head._currentframe == 1) {
ball0.head.gotoAndStop(2);
}
xenf = ((xp[e] + xbew[e]) - xp[0]) - xbew[0];
yenf = (((yp[e] + ybew[e]) - yp[0]) - ybew[0]) - 18;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((enf < 20) || ((wallt[sorter[headgrab]] == "walls2") && (enf < 40))) {
enf = Math.min(enf, 15) / enf;
if (grab == e) {
enf = enf * 0.1;
}
xbew[0] = xbew[0] + ((xenf * enf) / 2.2);
ybew[0] = ybew[0] + ((yenf * enf) / 2.2);
xbew[e] = xbew[e] - ((xenf * enf) / 2.2);
ybew[e] = ybew[e] - ((yenf * enf) / 2.2);
if (dreh[e] != "no") {
dreh[e] = dreh[e] * 0.5;
}
} else {
headgrab = -1;
}
if ((sorter[headgrab] == 15) && (!grabsch)) {
removeMovieClip(_parent.a["ball" + headgrab]);
sorter[headgrab] = 0;
bar1 = bar1 + 0.4;
headgrab = -1;
ball0.head.gotoAndStop("eat1");
} else if (sorter[headgrab] == 4) {
if (grabsch) {
extra[headgrab][1] = extra[headgrab][1] + (0.03 * v);
extra[headgrab][1] = extra[headgrab][1] * 0.9;
emo = 50;
emo2 = "mad";
lookat = e;
} else {
ball0.head.gotoAndStop("bb");
extra[headgrab][0] = 1000000 /* 0x0F4240 */;
bar1 = bar1 + 0.4;
headgrab = -1;
}
} else if ((sorter[e] > 16) && (sorter[e] < 20)) {
if (sorter[e] == 19) {
unnet();
_parent.a["ball" + e].d.play();
sorter[e] = 0;
headgrab = -1;
ball0.head.gotoAndStop("bb");
}
shake = 70;
emo = 50;
emo2 = "mad";
}
}
if (sorter[e] == 23) {
a = 1;
while (a < 4) {
v1 = "s" + a;
xenf = (xp[e] + xbew[e]) - walls[v1]._x;
yenf = (yp[e] + ybew[e]) - walls[v1]._y;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (_parent.a["ball" + e].d._currentframe == a) {
v2 = -1;
} else {
v2 = 1;
}
if (enf < 6) {
if (_parent.a["ball" + e].d._currentframe == a) {
soupmove = soupmove - (10 - ((soupy - 150) / 7));
guardians--;
walls[v1].s.gotoAndStop(2);
killball(e);
} else {
xbew[e] = xbew[e] + (Math.sin((walls[v1]._rotation / 180) * 3.14) * 20);
ybew[e] = ybew[e] + (Math.cos((walls[v1]._rotation / 180) * 3.14) * 20);
}
} else if (enf < 20) {
xbew[e] = xbew[e] - (xenf / enf);
ybew[e] = ybew[e] - (yenf / enf);
}
a++;
}
} else if (sorter[e] == 16) {
ybew[e] = ybew[e] - 0.15;
ybew[e] = ybew[e] * 0.96;
xbew[e] = xbew[e] * 0.96;
extra[e][1]--;
spideravoid(150, 1.6);
if (enf < 0) {
extra[e][1] = 40;
haft[e] = 0;
fly(40, 3);
} else {
haft[e] = 2;
fly(140, -0.2);
}
rot = _parent.a["ball" + e].d._rotation;
speed = Math.sqrt((xbew[e] * xbew[e]) + (ybew[e] * ybew[e]));
extra[e][1]--;
if (hiter[e]) {
_parent.a["ball" + e].d._rotation = ((hrot[e] / 3.14) * 180) + 180;
if (_parent.a["ball" + e].d._currentframe > 6) {
_parent.a["ball" + e].d.gotoAndStop(7);
}
_parent.a["ball" + e].d.prevFrame();
} else if (speed > 1) {
w = -Math.abs(ybew[e] / speed);
if (xbew[e] > 0) {
v1 = (((-Math.acos(w)) * 180) / 3.141593) + 180;
} else {
v1 = ((Math.acos(w) * 180) / 3.141593) + 180;
}
_parent.a["ball" + e].d._rotation = v1;
_parent.a["ball" + e].d.nextFrame();
}
} else if (sorter[e] == 15) {
if (soup.hitTest(hix(xp[e] + _x), hiy(yp[e] + _y), true)) {
if ((!extra[e][1]) > 0) {
fly(20, 0.4);
fly(70, -0.1);
} else {
fly(40, 1.2);
}
spideravoid(140, 1.5);
rot = _parent.a["ball" + e].d._rotation;
speed = Math.sqrt((xbew[e] * xbew[e]) + (ybew[e] * ybew[e]));
extra[e][1]--;
}
if (speed > 1) {
extra[e][1] = 40;
w = ybew[e] / speed;
if (xbew[e] > 0) {
v1 = (((-Math.acos(w)) * 180) / 3.141593) + 90;
} else {
v1 = ((Math.acos(w) * 180) / 3.141593) + 90;
}
_parent.a["ball" + e].d._rotation = v1;
}
} else if (sorter[e] == 13) {
xbew[e] = xbew[e] + wind;
dreh[e] = dreh[e] + wind;
} else if (sorter[e] == 11) {
v1 = 1;
if (ball0.larva._currentframe != 1) {
v1 = 0;
xenf = xp[e] - xp[0];
yenf = yp[e] - yp[0];
enf = (xenf * xenf) + (yenf * yenf);
if (enf < 2500) {
ball0.larva.gotoAndStop(1);
}
}
_parent.a["ball" + e].d.larva.gotoAndStop(_parent.larvacount + v1);
_parent.a["ball" + e].d.st.gotoAndStop(10 - Math.round(xbew[e]));
_parent.a["ball" + e].d.st._rotation = -_parent.a["ball" + e].d._rotation;
_parent.a["ball" + e].d.st1.gotoAndStop(10 - Math.round(xbew[e]));
_parent.a["ball" + e].d.st1._rotation = -_parent.a["ball" + e].d._rotation;
sack = e;
} else if (sorter[e] == 10) {
if (sack != -1) {
xenf = xp[e] - xp[sack];
yenf = yp[e] - yp[sack];
enf = (xenf * xenf) + (yenf * yenf);
if (enf < 2500) {
_parent.larvacount++;
killball(e);
larvc();
}
}
if (grab == e) {
_parent.a["ball" + e].d.b.gotoAndStop("happy");
} else {
_parent.a["ball" + e].d.b.gotoAndStop(_parent.a["ball" + e].d.b._currentframe + extra[e][0]);
if ((_parent.a["ball" + e].d.b._currentframe == 6) || (_parent.a["ball" + e].d.b._currentframe == 1)) {
extra[e][0] = 0;
}
if ((_parent.a["ball" + e].d.b._currentframe == 6) && (random(3) == 0)) {
extra[e][0] = -1;
}
if ((_parent.a["ball" + e].d.b._currentframe == 1) && (random(40) == 0)) {
extra[e][0] = 1;
}
}
extra[e][1] = extra[e][1] - xbew[e];
extra[e][2] = extra[e][2] - (ybew[e] - 5);
extra[e][3] = extra[e][3] - xbew[e];
extra[e][4] = extra[e][4] - (ybew[e] - 5);
z = 1;
while (z < 5) {
extra[e][z] = extra[e][z] * 0.9;
z++;
}
xenf = (-_parent.a["ball" + e].d.b0._x) - extra[e][1];
yenf = (-_parent.a["ball" + e].d.b0._y) - extra[e][2];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf > 35) {
enf = (enf - 35) / enf;
extra[e][1] = extra[e][1] + (xenf * enf);
extra[e][2] = extra[e][2] + (yenf * enf);
}
xenf = ((_parent.a["ball" + e].d.b0._x + extra[e][1]) - _parent.a["ball" + e].d.b1._x) - extra[e][3];
yenf = ((_parent.a["ball" + e].d.b0._y + extra[e][2]) - _parent.a["ball" + e].d.b1._y) - extra[e][4];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf > 50) {
enf = (enf - 50) / enf;
extra[e][1] = extra[e][1] - (xenf * enf);
extra[e][2] = extra[e][2] - (yenf * enf);
extra[e][3] = extra[e][3] + (xenf * enf);
extra[e][4] = extra[e][4] + (yenf * enf);
}
_parent.a["ball" + e].d.b0._x = _parent.a["ball" + e].d.b0._x + extra[e][1];
_parent.a["ball" + e].d.b0._y = _parent.a["ball" + e].d.b0._y + extra[e][2];
_parent.a["ball" + e].d.b1._x = _parent.a["ball" + e].d.b1._x + extra[e][3];
_parent.a["ball" + e].d.b1._y = _parent.a["ball" + e].d.b1._y + extra[e][4];
if (ball0.larva._currentframe == 1) {
xenf = xp[e] - xp[0];
yenf = yp[e] - yp[0];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < 20) {
killball(e);
ball0.larva.gotoAndPlay(2);
_parent.larvacount++;
larvc();
}
}
} else if (sorter[e] == 9) {
xenf = xp[e] - extra[e][0];
yenf = yp[e] - extra[e][1];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < 9) {
if (enf > 0) {
enf = Math.min(0.3, enf) / enf;
xbew[e] = xbew[e] * 0.8;
ybew[e] = ybew[e] * 0.8;
xbew[e] = xbew[e] - (xenf * enf);
ybew[e] = ybew[e] - (yenf * enf);
}
} else {
sorter[e] = 0;
enf = (9 - enf) / enf;
_parent.a["ball" + e]._x = xp[e] - (xenf * enf);
_parent.a["ball" + e]._y = yp[e] - (yenf * enf);
_parent.a["ball" + e].d.play();
walls["g" + extra[e][2]].play();
_parent.walls["g" + extra[e][2]].play();
_parent.walls2["g" + extra[e][2]].play();
}
} else if (sorter[e] == 8) {
if (_parent.a["ball" + e].d._currentframe == 5) {
removeMovieClip(_parent.a["ball" + e]);
sorter[e] = 0;
bar1 = bar1 + 0.4;
headgrab = -1;
} else if ((headgrab == e) && (!grabsch)) {
ball0.head.gotoAndStop(3);
headgrab = -1;
_parent.a["ball" + e].d.play();
}
} else if ((sorter[e] > 4) && (sorter[e] < 8)) {
if (((sorter[e] == 6) && (headgrab != e)) && (grab != e)) {
ybew[e] = ybew[e] - 0.25;
ybew[e] = ybew[e] * 0.98;
xbew[e] = xbew[e] * 0.98;
fly(40, 0.3);
spideravoid(200, 2);
}
v1 = sorter[e] - 4;
xenf = (xp[e] + xbew[e]) - _parent.a["l" + v1]._x;
yenf = (yp[e] + ybew[e]) - _parent.a["l" + v1]._y;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < 10) {
xbew[e] = xbew[e] - (xenf / enf);
ybew[e] = ybew[e] - (yenf / enf);
_parent.a["ball" + e].d.nextFrame();
if (_parent.a["ball" + e].d._currentframe > 9) {
walls["d" + v1].play();
_parent.walls["d" + v1].play();
_parent.walls2["d" + v1].play();
sorter[e] = 0;
ybew[e] = 0;
xbew[e] = 0;
xp[e] = _parent.a["l" + v1]._x;
yp[e] = _parent.a["l" + v1]._y;
}
if (grab == e) {
grab = -1;
}
}
} else if (sorter[e] == 4) {
if (extra[e][0] > 2) {
_parent.a["ball" + e].c.gotoAndStop(1);
if (_parent.a["ball" + e].d._currentframe < 21) {
guardians--;
_parent.a["ball" + e].d.gotoAndPlay(21);
}
sorter[e] = 0;
ybew[e] = 0;
xbew[e] = 0;
} else if (extra[e][1] > 0) {
_parent.a["ball" + e].d.gotoAndStop(2);
extra[e][1] = extra[e][1] - 0.007;
ybew[e] = ybew[e] + 0.25;
} else {
_parent.a["ball" + e].d.gotoAndStop(1);
ybew[e] = ybew[e] - 0.25;
ybew[e] = ybew[e] * 0.98;
xbew[e] = xbew[e] * 0.98;
fly(30, 0.2);
xenf = (xp[e] + xbew[e]) - xp[0];
turny();
yenf = (yp[e] + ybew[e]) - yp[0];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((enf < 33) || ((enf < 75) && (_parent.a["ball" + e].c._currentframe != 1))) {
rot = (_parent.a["ball" + e].c._rotation / 180) * 3.14;
w = yenf / enf;
if (xenf > 0) {
v1 = 4.71 + Math.asin(w);
} else {
v1 = 1.57 - Math.asin(w);
}
while ((v1 - rot) < -1.57) {
rot = rot - 3.14;
}
while ((v1 - rot) > 1.57) {
rot = rot + 3.14;
}
rot = ((rot * 2) + v1) / 3;
_parent.a["ball" + e].c._rotation = (rot / 3.14) * 180;
_parent.a["ball" + e].c.play();
if (((enf < 40) && (_parent.a["ball" + e].c._currentframe == 11)) && (bar1 != 0)) {
bar1 = bar1 - 0.201;
spiderhurt = 5;
emo = 10;
emo2 = "hurt";
}
} else if (enf < 200) {
xenf = (xp[e] + (xbew[e] * 20)) - xp[0];
yenf = (yp[e] + (ybew[e] * 20)) - yp[0];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
enf = (Math.min(20, enf - 30) / enf) / 100;
xbew[e] = xbew[e] - (xenf * enf);
ybew[e] = ybew[e] - (yenf * enf);
}
}
}
} else {
feet();
}
if (hiter[e]) {
if (neti[e] == 0) {
neti[e] = -1;
}
if (haft[e] > 0) {
xbew[e] = xbew[e] + (Math.sin(hrot[e]) * haft[e]);
ybew[e] = ybew[e] - (Math.cos(hrot[e]) * haft[e]);
}
} else if (neti[e] == -1) {
neti[e] = 0;
}
}
e++;
}
if (rightclick_down) {
grabsch = true;
}
if ((grabsch && (!rightclick_down)) or loz) {
if ((ke != -1) && (neti[ke] != 0)) {
e = 0;
while (e < netz.length) {
a = 0;
while (a < netz[e].length) {
if (((!netz[e][a][1]) && (netz[e][a][2] == ke)) && (netz[e].length > 2)) {
if (((sorter[ke] == 3) && (hiter[ke])) && (netz[e][0][5] == 0)) {
netz[e][a][1] = true;
netz[e][a][2] = xp[ke] + (Math.sin(hrot[ke]) * 11);
netz[e][a][3] = yp[ke] - (Math.cos(hrot[ke]) * 11);
neti[ke] = 24;
} else if (a != 0) {
netkill(e, a);
}
}
a++;
}
e++;
}
neti[ke] = 24;
}
if (!rightclick_down) {
grabsch = false;
grab = -1;
}
loz = 2;
}
if (!rightclick_down) {
loz = false;
}
if (middles != 0) {
middle = middle / middles;
} else {
middle = xp[0];
}
phcheck();
a = 1;
while (a < sp.length) {
if (a > 3) {
v = 0.5;
} else {
v = 2;
}
yenf = ((yp[sp[a]] + (yb[sp[a]] / 2)) - yp[ep[a]]) - (yb[ep[a]] / 2);
xenf = ((xp[sp[a]] + (xb[sp[a]] / 2)) - xp[ep[a]]) - (xb[ep[a]] / 2);
enf = (yenf * yenf) + (xenf * xenf);
if (enf > 0) {
enf = Math.sqrt(enf);
enfspeed = slang2[a] - enf;
if (enf == 0) {
p = spower / 5;
xenf = 1;
enf = 1;
} else {
p = (-(slang[a] - enf)) * 0.4;
}
yenf = yenf * (p / enf);
xenf = xenf * (p / enf);
ybew[ep[a]] = ybew[ep[a]] + (yenf / v);
xbew[ep[a]] = xbew[ep[a]] + (xenf / v);
ybew[sp[a]] = ybew[sp[a]] - (yenf * v);
xbew[sp[a]] = xbew[sp[a]] - (xenf * v);
slang2[a] = Math.round(enf * 10);
}
a++;
}
if (_parent.nowlev == 11) {
bl = bl * 0.8;
}
e = 0;
while (e < xp.length) {
namer = "ball" + e;
_parent.a[namer].nr = e;
_parent.a[namer]._x = xp[e];
_parent.a[namer]._y = yp[e];
if (neti[e] == 24) {
neti[e] = 23;
} else if (neti[e] == 23) {
neti[e] = 0;
}
if (sorter[e] == 22) {
dreh[e] = dreh[e] + 0.1;
xenf = xp[e] - extra[e][0];
yenf = yp[e] - extra[e][1];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
enf = Math.min(2, enf) / enf;
xbew[e] = xbew[e] * 0.9;
ybew[e] = ybew[e] * 0.9;
xbew[e] = xbew[e] - (xenf * enf);
ybew[e] = ybew[e] - (yenf * enf);
if (_parent.a["ball" + e].d._currentframe == 1) {
if (guardians < 1) {
_parent.a["ball" + e].d.nextFrame();
}
} else {
if (_parent.a["ball" + e].d._currentframe == 5) {
guardians++;
v1 = (-Math.sin((_parent.a["ball" + e].d._rotation / 180) * 3.14)) * 29;
v2 = Math.cos((_parent.a["ball" + e].d._rotation / 180) * 3.14) * 29;
newball(23, xp[e] + v1, yp[e] + v2, v1 / 10, v2 / 10, (Math.random() - 0.5) * 9);
shootpart();
}
_parent.a["ball" + e].d.nextFrame();
}
}
if (sorter[e] == 19) {
if ((Math.abs(extra[e][1]) < 120) && (extra[e][2] == 0)) {
} else if (extra[e][2] == 0) {
sorter[e] = 0;
unnet();
extra[e][2] = 1;
_parent.a["ball" + e].d.play();
}
}
if (sorter[e] == 20) {
if ((Math.abs(extra[e][1]) < 180) && (extra[e][2] == 0)) {
if (_parent.a["ball" + e].d._currentframe == 1) {
if ((random(60) == 1) && (guardians < 0)) {
_parent.a["ball" + e].d.nextFrame();
}
} else {
if (_parent.a["ball" + e].d._currentframe == 6) {
guardians++;
v1 = (-Math.sin((_parent.a["ball" + e].d._rotation / 180) * 3.14)) * 29;
v2 = Math.cos((_parent.a["ball" + e].d._rotation / 180) * 3.14) * 29;
newball(4, xp[e] + v1, yp[e] + v2, v1 / 5, v2 / 5, "no");
shootpart();
}
_parent.a["ball" + e].d.nextFrame();
}
} else if (extra[e][2] == 0) {
unnet();
extra[e][2] = 1;
}
}
if (sorter[e] == 17) {
xenf = xp[e] - extra[e][1];
yenf = yp[e] - extra[e][2];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
w = yenf / enf;
if (xenf > 0) {
_parent.a["ball" + e].d._rotation = ((-Math.acos(w)) * 180) / 3.141593;
} else {
_parent.a["ball" + e].d._rotation = (Math.acos(w) * 180) / 3.141593;
}
_parent.a["ball" + e].d.l._yscale = (enf * 2) + 15;
xenf = (xp[e] + xbew[e]) - extra[e][1];
yenf = (yp[e] + ybew[e]) - extra[e][2];
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((extra[e][0] != 23) && (enf > 60)) {
walls.i.play();
_parent.walls.i.play();
_parent.walls2.i.play();
extra[e][0] = 23;
_parent.a["ball" + e].d.nextFrame();
}
enf = ((40 - enf) / enf) * 0.4;
xbew[e] = xbew[e] + (xenf * enf);
ybew[e] = ybew[e] + (yenf * enf);
}
e++;
}
a = 1;
while (a < sp.length) {
namer = "st" + a;
_parent.a[namer]._x = xp[sp[a]];
_parent.a[namer]._y = yp[sp[a]];
yenf = yp[sp[a]] - yp[ep[a]];
xenf = xp[sp[a]] - xp[ep[a]];
enf = Math.sqrt((yenf * yenf) + (xenf * xenf));
w = yenf / enf;
if (xenf > 0) {
_parent.a[namer]._rotation = 180 + (Math.asin(w) / 0.017453);
} else {
_parent.a[namer]._rotation = (-Math.asin(w)) / 0.017453;
}
_parent.a[namer]._xscale = enf;
_parent.a[namer]._yscale = slang[a];
a++;
}
stringz();
cur();
mov();
if (!ball0.hitTest(bo)) {
bar1 = bar1 - 0.3;
spiderhurt = 5;
emo = 30;
emo2 = "hurt";
}
think._x = xp[0];
think._y = yp[0];
}
tip();
alltimer = alltimer * 0.95;
}
Instance of Symbol 785 MovieClip "sound" in Frame 16
onClipEvent (enterFrame) {
if (rumbleloop.duration == rumbleloop.position) {
rumbleloop = new Sound(this);
rumbleloop.attachSound(_root.a.rumblel);
rumbleloop.start(0, 3);
}
vol = ((vol * 3) + (_root.a.shake * 30)) / 4;
rumbleloop.setVolume(Math.round(vol));
}
onClipEvent (load) {
vol = 0;
}
Instance of Symbol 785 MovieClip "sound2" in Frame 16
onClipEvent (enterFrame) {
if (windloop.duration == windloop.position) {
windloop = new Sound(this);
windloop.attachSound("wind0");
windloop.start(0, 3);
}
if (!_root.a.windsh.hitTest(_root.a.xp[0] + _root.a._x, _root.a.yp[0] + _root.a._y, true)) {
vol = vol * 0.9;
} else {
vol = ((vol * 9) + 100) / 10;
}
windloop.setVolume(Math.round(vol));
}
onClipEvent (load) {
vol = 0;
}
Frame 17
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
larvacount = alarvac;
Instance of Symbol 96 MovieClip in Frame 17
onClipEvent (enterFrame) {
_x = (_x+1);
}
Instance of Symbol 96 MovieClip in Frame 17
onClipEvent (enterFrame) {
_x = (_x+1);
}
Frame 18
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Instance of Symbol 890 MovieClip "scorez" in Frame 18
onClipEvent (load) {
_root.score = _root.score + "";
v1 = _root.score.length - 1;
e = 0;
while (e < 8) {
if (e > v1) {
_root.scorez["n" + e].gotoAndStop(11);
} else {
_root.scorez["n" + e].gotoAndStop((_root.score.charAt(v1 - e) * 1) + 1);
}
e++;
}
}
Frame 19
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 20
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 21
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 22
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 23
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 24
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 25
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 26
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 27
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 28
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 29
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 30
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 31
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 32
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 33
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 34
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 35
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 36
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 37
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 38
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
levlun = true;
so = SharedObject.getLocal("options");
so.data.u = true;
so.flush();
Frame 39
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 40
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 41
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
Frame 42
w._alpha = 50;
_root.unpause = true;
w.gotoAndStop(1);
maxlarv = 8;
collarv = larvacount;
Symbol 96 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
_x = (_x+1);
}
}
Symbol 99 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 87
_root.nextFrame();
Symbol 124 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 128 Button
on (release) {
_root.gotoAndStop("ins");
}
Symbol 132 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 136 Button
on (release) {
_root.gotoAndStop("credit");
}
Symbol 140 MovieClip Frame 1
stop();
if (_root.collarv > 0) {
_root.collarv--;
nextFrame();
}
Symbol 148 Button
on (press) {
_root.gotoAndStop("c0");
}
Symbol 150 Button
on (press) {
_root.gotoAndStop("mini");
}
Symbol 151 Button
on (release) {
_root.gotoAndStop("bestiary");
}
Symbol 153 Button
on (press) {
_root.gotoAndStop("select");
}
Symbol 154 MovieClip Frame 1
stop();
if (_root.levlun) {
nextFrame();
}
this.onEnterFrame = function () {
if ((((_currentframe == 1) && (Key.isDown(84))) && (Key.isDown(82))) && (Key.isDown(32))) {
nextFrame();
}
};
Symbol 158 Button
on (release) {
_root.nowlev = 13;
_root.gotoAndStop("game");
}
Symbol 165 Button
on (release) {
_root.gotoAndStop("c0");
}
Symbol 166 Button
on (release) {
_root.nowlev = 6;
_root.gotoAndStop("game");
}
Symbol 167 Button
on (release) {
_root.nowlev = 9;
_root.gotoAndStop("game");
}
Symbol 168 Button
on (release) {
_root.nowlev = 8;
_root.gotoAndStop("game");
}
Symbol 169 Button
on (release) {
_root.nowlev = 12;
_root.gotoAndStop("game");
}
Symbol 170 Button
on (release) {
_root.nowlev = 10;
_root.gotoAndStop("game");
}
Symbol 171 Button
on (release) {
_root.nowlev = 1;
_root.gotoAndStop("game");
}
Symbol 172 Button
on (release) {
_root.nowlev = 11;
_root.gotoAndStop("game");
}
Symbol 173 MovieClip Frame 1
gotoAndStop (8);
Symbol 178 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 184 Button
on (press) {
_root._quality = "LOW";
so = SharedObject.getLocal("options");
so.data.q = _root._quality;
so.flush();
}
Symbol 185 Button
on (press) {
_root._quality = "MEDIUM";
so = SharedObject.getLocal("options");
so.data.q = _root._quality;
so.flush();
}
Symbol 186 Button
on (press) {
_root._quality = "HIGH";
so = SharedObject.getLocal("options");
so.data.q = _root._quality;
so.flush();
}
Symbol 187 Button
on (press) {
if (!musicon) {
sound1 = new Sound();
sound1.attachSound(menumusic);
sound1.start(0, 100);
}
musicon = true;
so = SharedObject.getLocal("options");
so.data.mo = true;
so.flush();
}
Symbol 188 Button
on (press) {
musicon = false;
so = SharedObject.getLocal("options");
so.data.mo = false;
so.flush();
stopAllSounds();
}
Symbol 191 Button
on (press) {
vol = Math.max(0, Math.min(200, _root._xmouse - 150));
so = SharedObject.getLocal("options");
so.data.mo = vol;
so.flush();
}
Symbol 247 Button
on (release) {
getURL ("http://www.komix-games.com ", "_blank");
}
Symbol 257 Button
on (release) {
getURL ("http://www.coldstoragedesigns.com ", "_blank");
}
Symbol 284 Button
on (release) {
nextFrame();
}
Symbol 299 Button
on (release) {
prevFrame();
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 373 MovieClip Frame 2
this.cacheAsBitmap = false;
_root.a.shake = 40;
Symbol 373 MovieClip Frame 31
this.cacheAsBitmap = true;
stop();
Symbol 378 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 378 MovieClip Frame 2
this.cacheAsBitmap = false;
Symbol 378 MovieClip Frame 31
this.cacheAsBitmap = true;
stop();
Symbol 384 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 384 MovieClip Frame 2
this.cacheAsBitmap = true;
stop();
_root.a.shake = 40;
Symbol 393 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 393 MovieClip Frame 2
this.cacheAsBitmap = false;
_root.a.shake = 40;
Symbol 393 MovieClip Frame 15
this.cacheAsBitmap = true;
stop();
Symbol 393 MovieClip Frame 16
this.cacheAsBitmap = false;
_root.a.shake = 40;
Symbol 393 MovieClip Frame 30
this.cacheAsBitmap = true;
stop();
Symbol 396 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 396 MovieClip Frame 2
this.cacheAsBitmap = false;
_root.a.shake = 40;
Symbol 396 MovieClip Frame 31
this.cacheAsBitmap = true;
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 428 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 429 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 454 MovieClip Frame 130
gotoAndStop (1);
Symbol 475 MovieClip Frame 80
gotoAndStop (1);
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 5
stop();
Symbol 490 MovieClip Frame 1
gotoAndPlay (2);
Symbol 490 MovieClip Frame 2
if (_root.unpause) {
if (random(40) == 2) {
_root.a.bubble((-(Math.random() - 0.5)) * 2, (-Math.random()) * 3, _x + ((Math.random() - 0.5) * 5), _y + ((Math.random() - 0.5) * 5), random(50) + 20, "S");
}
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 10
gotoAndStop (1);
Symbol 524 MovieClip Frame 1
stop();
Instance of Symbol 495 MovieClip in Symbol 524 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.a.underwater) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 524 MovieClip Frame 17
gotoAndStop (1);
Symbol 524 MovieClip Frame 32
gotoAndStop (1);
Symbol 524 MovieClip Frame 33
_root.a.ybew[0] = _root.a.ybew[0] - 5;
Symbol 524 MovieClip Frame 34
_root.a.ybew[0] = _root.a.ybew[0] - 5;
Symbol 524 MovieClip Frame 35
_root.a.ybew[0] = _root.a.ybew[0] + 15;
Symbol 524 MovieClip Frame 36
_root.a.ybew[0] = _root.a.ybew[0] * 0.7;
Symbol 524 MovieClip Frame 37
gotoAndStop (1);
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 7
sound1 = new Sound();
sound1.attachSound("grumpy" + random(4));
sound1.start(0, 1);
Symbol 542 MovieClip Frame 11
sound1 = new Sound();
sound1.attachSound("pain" + random(3));
sound1.start(0, 1);
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 400
gotoAndPlay (2);
Symbol 547 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 22
gotoAndStop (1);
Symbol 555 MovieClip Frame 4
gotoAndStop (1);
Symbol 560 MovieClip Frame 1
stop();
Instance of Symbol 555 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 555 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 560 MovieClip Frame 21
gotoAndStop (22);
kill = true;
Symbol 565 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 5
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 8
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
gotoAndStop(_root.nowlev);
Instance of Symbol 555 MovieClip in Symbol 605 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 555 MovieClip in Symbol 605 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 608 MovieClip Frame 15
gotoAndPlay (6);
Symbol 613 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 1
_root.heartblood = 0;
Symbol 617 MovieClip Frame 2
_root.heartblood = 0.5;
Symbol 617 MovieClip Frame 3
_root.heartblood = 2;
Symbol 617 MovieClip Frame 4
_root.heartblood = 1;
Symbol 617 MovieClip Frame 5
_root.heartblood = 0.5;
Symbol 617 MovieClip Frame 6
_root.heartblood = 0;
Symbol 617 MovieClip Frame 7
_root.heartblood = 0.5;
Symbol 617 MovieClip Frame 8
_root.heartblood = 0;
Symbol 617 MovieClip Frame 9
_root.heartblood = 0;
Symbol 617 MovieClip Frame 30
gotoAndStop (1);
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 14
gotoAndStop (1);
Symbol 639 MovieClip Frame 1
gotoAndStop(_root.nowlev);
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 12
gotoAndStop (1);
Symbol 645 MovieClip Frame 1
if (_root.foodsortvar == undefined) {
_root.foodsortvar = 0;
}
_root.foodsortvar++;
gotoAndStop(_root.foodsortvar);
if (_root.foodsortvar > 2) {
_root.foodsortvar = 0;
}
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
this.cacheAsBitmap = true;
Symbol 646 MovieClip Frame 4
onEnterFrame = function () {
if (d.kill) {
d.kill = false;
z = 0;
while (z < 15) {
v1 = (Math.random() - 0.5) * 10;
v2 = (-Math.random()) * 10;
v3 = 80;
if (z == 1) {
v4 = "La";
} else if (z < 6) {
v4 = "Lb";
v3 = 40 + random(30);
} else {
v4 = "B";
v3 = 8 + random(10);
}
_root.a.bubble(v1, v2, _root.a.xp[e] + v1, _root.a.yp[e] + v2, v3, v4);
z++;
}
}
};
Instance of Symbol 555 MovieClip in Symbol 646 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 555 MovieClip in Symbol 646 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 513 MovieClip "d" in Symbol 646 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 617 MovieClip "d" in Symbol 646 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 648 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 651 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 651 MovieClip Frame 3
removeMovieClip("_root.a.ef." + _name);
Symbol 654 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 654 MovieClip Frame 3
removeMovieClip("_root.a.ef." + _name);
Symbol 658 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 658 MovieClip Frame 3
if (random(200) == 1) {
gotoAndStop (4);
} else {
removeMovieClip("_root.a.ef." + _name);
}
Symbol 658 MovieClip Frame 4
if (_root.a.bg.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (xbew > 0) {
_rotation = (-(Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778));
} else {
_rotation = (Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778);
}
this.cacheAsBitmap = true;
onEnterFrame = undefined;
} else {
prevFrame();
}
Symbol 664 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 664 MovieClip Frame 3
if (random(200) == 1) {
gotoAndStop (4);
} else {
removeMovieClip("_root.a.ef." + _name);
}
Symbol 664 MovieClip Frame 4
if (_root.a.bg.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (xbew > 0) {
_rotation = (-(Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778));
} else {
_rotation = (Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778);
}
w._rotation = -_rotation;
this.cacheAsBitmap = true;
onEnterFrame = undefined;
} else {
prevFrame();
}
Symbol 668 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 668 MovieClip Frame 3
if (random(200) == 1) {
gotoAndStop (4);
} else {
removeMovieClip("_root.a.ef." + _name);
}
Symbol 668 MovieClip Frame 4
if (_root.a.bg.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (xbew > 0) {
_rotation = (-(Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778));
} else {
_rotation = (Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778);
}
w._rotation = -_rotation;
this.cacheAsBitmap = true;
onEnterFrame = undefined;
} else {
prevFrame();
}
Symbol 671 MovieClip Frame 70
removeMovieClip("_root.a.ef." + _name);
Symbol 674 MovieClip Frame 70
removeMovieClip("_root.a.ef." + _name);
Symbol 677 MovieClip Frame 70
removeMovieClip("_root.a.ef." + _name);
Instance of Symbol 651 MovieClip "S" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.2 + (_yscale * 0.02);
_xscale = _yscale;
if (_name == "S") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
if (_root.a.underwater) {
sound1 = new Sound();
sound1.attachSound(("bubbles_0" + (1 + (random(3) * 1))) + ".wav");
sound1.start(0, 1);
}
this.onEnterFrame = function () {
if (_currentframe == 1) {
if (_root.unpause) {
ybew = ybew - (0.5 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
xbew = xbew * 0.8;
ybew = ybew * 0.8;
if ((!_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) - 15, true)) or _root.a.walls.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
play();
}
}
}
};
}
}
Instance of Symbol 654 MovieClip "D" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
Farbe = new Color(this);
Farbe.setRGB(_root.c_water);
v1 = 0.2 + (_yscale * 0.02);
_xscale = _yscale;
if (_name == "D") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
this.onEnterFrame = function () {
if (_root.unpause) {
if (_currentframe == 1) {
ybew = ybew + (0.8 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
xbew = xbew * 0.85;
ybew = ybew * 0.85;
if (_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) + (ybew * 1), true) or _root.a.walls.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
play();
}
}
}
};
}
}
Instance of Symbol 658 MovieClip "B" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.2 + (_yscale * 0.02);
_xscale = _yscale;
if (_name == "B") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
this.onEnterFrame = function () {
if (_currentframe == 1) {
if (_root.unpause) {
if (random(200) == 1) {
gotoAndStop (4);
}
ybew = ybew + (0.8 * v1);
if (_root.a.windsh.hitTest(_root.a._x + _x, _root.a._y + _y, true)) {
xbew = xbew + (_root.a.wind / 2);
}
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
if (_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) + (ybew * 1), true) or _root.a.walls.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (random(200) == 1) {
gotoAndStop (4);
} else {
play();
}
}
}
}
};
}
}
Instance of Symbol 664 MovieClip "La" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.1 + (_yscale * 0.01);
_xscale = _yscale;
if (_name == "La") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
this.onEnterFrame = function () {
if (_currentframe == 1) {
if (_root.unpause) {
if (random(60) == 1) {
gotoAndStop (4);
}
ybew = ybew + (0.8 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
if (_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) + (ybew * 1), true) or _root.a.walls.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (random(4) == 1) {
gotoAndStop (4);
} else {
play();
}
}
}
}
};
}
}
Instance of Symbol 668 MovieClip "Lb" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.1 + (_yscale * 0.01);
_xscale = _yscale;
if (_name == "Lb") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
this.onEnterFrame = function () {
if (_currentframe == 1) {
if (xbew > 0) {
_rotation = (-(Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778));
} else {
_rotation = (Math.acos(ybew / Math.sqrt((xbew * xbew) + (ybew * ybew))) / 0.0174532777777778);
}
if (_root.unpause) {
if (random(80) == 1) {
gotoAndStop (4);
}
ybew = ybew + (0.8 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
if (_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) + (ybew * 1), true) or _root.a.walls.hitTest(_x + _root.a._x, _y + _root.a._y, true)) {
if (random(30) == 1) {
gotoAndStop (4);
} else {
play();
}
}
}
}
};
}
}
Instance of Symbol 671 MovieClip "drock" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.1 + (_yscale * 0.01);
_xscale = _yscale;
if (_name == "drock") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
xbew = xbew * 3;
ybew = ybew * 3;
this.onEnterFrame = function () {
nextFrame();
if (_root.unpause) {
if (_root.a.windsh.hitTest(_root.a._x + _x, _root.a._y + _y, true)) {
xbew = xbew + (_root.a.wind / 2);
}
ybew = ybew + (0.2 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
}
};
}
}
Instance of Symbol 674 MovieClip "ddust" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.2 + (_yscale * 0.02);
_xscale = _yscale;
if (_name == "ddust") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
this.onEnterFrame = function () {
nextFrame();
if (_root.unpause) {
ybew = ybew + (0.07 * v1);
if (_root.a.windsh.hitTest(_root.a._x + _x, _root.a._y + _y, true)) {
xbew = xbew + (_root.a.wind / 2);
}
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
}
};
}
}
Instance of Symbol 677 MovieClip "dorganic" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
v1 = 0.1 + (_yscale * 0.01);
_xscale = _yscale;
if (_name == "dorganic") {
this.onEnterFrame = function () {
_visible = false;
gotoAndStop (1);
};
} else {
xbew = xbew * 3;
ybew = ybew * 3;
this.onEnterFrame = function () {
if (_root.unpause) {
nextFrame();
if (_root.a.windsh.hitTest(_root.a._x + _x, _root.a._y + _y, true)) {
xbew = xbew + _root.a.wind;
}
if (_root.a.soup.hitTest(_x + _root.a._x, (_y + _root.a._y) + (ybew * 1), true)) {
if (random(200) == 1) {
gotoAndStop (4);
} else {
play();
}
}
ybew = ybew + (0.1 * v1);
_y = (_y + (ybew * v1));
_x = (_x + (xbew * v1));
}
};
}
}
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
stop();
Symbol 685 MovieClip Frame 29
gotoAndStop (1);
Instance of Symbol 685 MovieClip "s" in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause && (_currentframe > 1)) {
nextFrame();
}
}
Symbol 702 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 6
stop();
Symbol 751 MovieClip Frame 20
gotoAndStop ("empty");
Symbol 751 MovieClip Frame 25
stop();
Symbol 751 MovieClip Frame 40
gotoAndStop ("empty");
Symbol 752 MovieClip Frame 1
gotoAndPlay (2);
Symbol 752 MovieClip Frame 2
if (_root.unpause) {
if (xbew == undefined) {
xbew = 0;
ybew = 0;
}
if (_root.a.windsh.hitTest(_root.a._x + _x, _root.a._y + _y, true)) {
xbew = xbew + _root.a.wind;
}
_x = (_x + xbew);
_y = (_y + ybew);
ybew = ybew + ((Math.random() - 0.5) * 3);
xbew = xbew + ((Math.random() - 0.5) * 3);
ybew = ybew + 0.2;
ybew = ybew * 0.9;
xbew = xbew * 0.9;
if (_root.walls.hitTest(_x * _root.a.sca, (_y + 30) * _root.a.sca, true)) {
ybew = ybew - 3;
}
if (_root.walls.hitTest(_x * _root.a.sca, (_y - 30) * _root.a.sca, true)) {
ybew = ybew + 3;
}
if (_root.walls.hitTest((_x + 30) * _root.a.sca, _y * _root.a.sca, true)) {
xbew = xbew - 3;
}
if (_root.walls.hitTest((_x - 30) * _root.a.sca, _y * _root.a.sca, true)) {
xbew = xbew + 3;
}
v1 = 0;
if (_root.a.ke > 0) {
v1 = _root.a.ke;
}
xenf = (_x + xbew) - _root.a.xp[v1];
yenf = ((_y + ybew) - _root.a.yp[v1]) + 20;
if ((Math.abs(xenf) < 200) && (Math.abs(xenf) < 200)) {
enf = -0.3 / Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((Math.abs(_root.a.xbew[v1]) + Math.abs(_root.a.ybew[v1])) > 6) {
enf = -4 * enf;
}
xbew = xbew + (xenf * enf);
ybew = ybew + (yenf * enf);
}
}
Symbol 758 MovieClip Frame 40
gotoAndStop (1);
Symbol 761 MovieClip Frame 1
gotoAndPlay(random(100));
Symbol 761 MovieClip Frame 120
gotoAndPlay (2);
Symbol 763 MovieClip Frame 1
gotoAndPlay (2);
Symbol 763 MovieClip Frame 2
if (_root.unpause) {
if (random(17) == 2) {
_root.a.bubble((Math.random() - 0.5) * 2, (-Math.random()) * 3, _x + ((Math.random() - 0.5) * 5), _y + ((Math.random() - 0.5) * 5), random(100) + 30, "ddust");
}
}
Symbol 764 MovieClip Frame 1
gotoAndPlay (2);
Symbol 764 MovieClip Frame 2
if (_root.unpause) {
if (random(10) == 2) {
_root.a.bubble((Math.random() - 0.5) * 2, (Math.random() - 0.5) * 2, _x + ((Math.random() - 0.5) * 5), _y + ((Math.random() - 0.5) * 5), random(100) + 30, "drock");
}
}
Symbol 769 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 5
p = false;
gotoAndStop (1);
Symbol 770 MovieClip Frame 40
gotoAndStop (1);
Instance of Symbol 474 MovieClip in Symbol 773 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
}
}
Instance of Symbol 474 MovieClip in Symbol 773 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
}
}
Instance of Symbol 475 MovieClip in Symbol 773 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
}
}
Instance of Symbol 475 MovieClip in Symbol 773 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
}
}
Instance of Symbol 473 MovieClip in Symbol 773 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
}
}
Symbol 779 MovieClip Frame 15
this.cacheAsBitmap();
stop();
Symbol 783 MovieClip Frame 1
ter = "organic";
_root.rockset = 1;
_root.c_string = "0xFFFFFF";
_root.c_water = "0x72B847";
_root.a_water = 50;
_root.a.fgsize = 1.2;
_root.a.surfbreak = 0.8;
_root.a.waterbreak = 0.97;
Instance of Symbol 648 MovieClip "st" in Symbol 783 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name == "st") {
_alpha = 0;
} else {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
_x = xp;
_y = yp;
}
}
Symbol 783 MovieClip Frame 6
ter = "dust";
ter2 = "rock";
Instance of Symbol 751 MovieClip in Symbol 783 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_currentframe == 1) {
look = 0;
gotoAndStop (1);
}
if (this.hitTest(_root.a.ball0)) {
if (l1.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 1;
gotoAndPlay("look" + look);
}
} else if (look == 1) {
play();
}
if (l2.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 2;
gotoAndPlay("look" + look);
}
} else if (look == 2) {
play();
}
}
}
onClipEvent (load) {
stop();
look = 0;
}
Instance of Symbol 751 MovieClip in Symbol 783 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_currentframe == 1) {
look = 0;
gotoAndStop (1);
}
if (this.hitTest(_root.a.ball0)) {
if (l1.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 1;
gotoAndPlay("look" + look);
}
} else if (look == 1) {
play();
}
if (l2.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 2;
gotoAndPlay("look" + look);
}
} else if (look == 2) {
play();
}
}
}
onClipEvent (load) {
stop();
look = 0;
}
Instance of Symbol 751 MovieClip in Symbol 783 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_currentframe == 1) {
look = 0;
gotoAndStop (1);
}
if (this.hitTest(_root.a.ball0)) {
if (l1.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 1;
gotoAndPlay("look" + look);
}
} else if (look == 1) {
play();
}
if (l2.hitTest(_root.a.ball0)) {
if (look == 0) {
look = 2;
gotoAndPlay("look" + look);
}
} else if (look == 2) {
play();
}
}
}
onClipEvent (load) {
stop();
look = 0;
}
Instance of Symbol 758 MovieClip in Symbol 783 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 454 MovieClip in Symbol 783 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 7
ter = "dust";
ter2 = "rock";
_root.c_string = "0xFFFFFF";
_root.c_water = "0x72B847";
_root.a_water = 50;
_root.a.surfbreak = 0.99;
_root.a.waterbreak = 0.7;
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 770 MovieClip in Symbol 783 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 8
ter = "dust";
ter2 = "rock";
_root.c_string = "0xFFFFFF";
_root.c_water = "0xA0ACC5";
_root.a_water = 15;
_root.a.fgsize = 1.2;
_root.a.surfbreak = 0.99;
_root.a.waterbreak = 0.97;
clouds = false;
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (random(100) == 1) {
play();
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (random(100) == 1) {
play();
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Instance of Symbol 769 MovieClip in Symbol 783 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.unpause) {
if (random(100) == 1) {
p = true;
}
if (p) {
nextFrame();
}
}
}
Symbol 783 MovieClip Frame 9
ter = "rock";
clouds = false;
Instance of Symbol 779 MovieClip in Symbol 783 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 10
ter = "dust";
ter2 = "organic";
Instance of Symbol 454 MovieClip in Symbol 783 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 11
ter = "organic";
_root.c_string = "0xFFFFFF";
_root.c_water = "0xCCFF66";
_root.a_water = 70;
_root.a.fgsize = 1.2;
_root.a.surfbreak = 0.94;
_root.a.waterbreak = 0.94;
_root.a.waterhurt = 0.05;
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 12
ter = "rock";
_root.c_string = "0xFFFFFF";
_root.c_water = "0x869AAC";
_root.a_water = 65;
_root.a.fgsize = 1.2;
_root.a.surfbreak = 0.8;
_root.a.waterbreak = 0.97;
Instance of Symbol 454 MovieClip in Symbol 783 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Instance of Symbol 454 MovieClip in Symbol 783 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.unpause) {
nextFrame();
} else {
stop();
}
}
Symbol 783 MovieClip Frame 13
ter = "organic";
ter2 = "dust";
Symbol 800 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 1
p.cacheAsBitmap = true;
Instance of Symbol 839 MovieClip "lev" in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
narf = new Array(7, 0, 0, 0, 0, 2, 1, 4, 3, 6, 8, 5, 9);
gotoAndStop(narf[_root.nowlev - 1]);
fader = 10;
_alpha = 1;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha + fader);
fader = fader - 0.05;
fader = fader * 0.95;
}
}
Symbol 846 Button
on (release) {
_root.unpause = true;
}
Symbol 860 Button
on (release) {
_root.gotoAndStop(2);
}
Instance of Symbol 861 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.info);
}
Symbol 868 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 883 Button
on (release) {
_root.gotoAndStop("mini");
}
Symbol 889 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 100
_root.nextFrame();
Symbol 896 Button
on (release) {
_root.nextFrame();
}
Symbol 899 MovieClip Frame 100
_root.nextFrame();
Symbol 900 Button
on (release) {
_root.prevFrame();
}
Symbol 903 MovieClip Frame 100
_root.nextFrame();
Symbol 906 MovieClip Frame 100
_root.nextFrame();
Symbol 909 MovieClip Frame 100
stop();
Symbol 910 Button
on (release) {
_root.nowlev = 7;
_root.gotoAndStop("game");
}
Symbol 915 MovieClip Frame 1
if (_root.maxlarv == 0) {
stop();
_alpha = 0;
} else {
gotoAndStop(_root.maxlarv);
}
Symbol 916 Button
on (release) {
_root.nowlev = 6;
_root.gotoAndStop("game");
}
Symbol 923 Button
on (release) {
_root.nowlev = 9;
_root.gotoAndStop("game");
}
Symbol 928 MovieClip Frame 100
_root.nextFrame();
Symbol 931 MovieClip Frame 100
_root.nextFrame();
Symbol 934 MovieClip Frame 100
_root.nextFrame();
Symbol 939 MovieClip Frame 100
stop();
Symbol 940 Button
on (release) {
_root.nowlev = 8;
_root.gotoAndStop("game");
}
Symbol 943 Button
on (release) {
_root.nowlev = 12;
_root.gotoAndStop("game");
}
Symbol 946 Button
on (release) {
_root.nowlev = 10;
_root.gotoAndStop("game");
}
Symbol 949 MovieClip Frame 150
_root.nextFrame();
Symbol 952 MovieClip Frame 100
_root.nextFrame();
Symbol 955 MovieClip Frame 100
stop();
Symbol 958 Button
on (release) {
_root.nowlev = 1;
_root.gotoAndStop("game");
}
Symbol 961 Button
on (release) {
_root.nowlev = 11;
_root.gotoAndStop("game");
}
Symbol 968 MovieClip Frame 100
_root.nextFrame();
Symbol 971 MovieClip Frame 100
_root.nextFrame();
Symbol 974 MovieClip Frame 100
_root.nextFrame();
Symbol 981 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 982 MovieClip Frame 174
stop();