Frame 1
stop();
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.b_loaded = _root.getBytesLoaded();
_root.b_total = _root.getBytesTotal();
_root.percent = Math.round((_root.b_loaded / _root.b_total) * 100);
if (_root.percent >= 25) {
_root.play();
}
}
Frame 2
stage.showMenu = false;
stop();
Instance of Symbol 67 MovieClip "load" in Frame 2
on (release, releaseOutside) {
getURL ("http://www.eviludy.net/", "_blank");
}
Frame 3
function button1(obj:Object, item:ContextMenuItem) {
toggleHighQuality();
}
function button9(obj:Object, item:ContextMenuItem) {
stopAllSounds();
music4 = new Sound();
music4.attachSound("music4");
music4.start(0, 50000);
}
function button4(obj:Object, item:ContextMenuItem) {
stopAllSounds();
}
function button6(obj:Object, item:ContextMenuIteme) {
}
function button5(obj:Object, item:ContextMenuIteme) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button8(obj:Object, item:ContextMenuIteme) {
}
function button2(obj:Object, item:ContextMenuItem) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button3(obj:Object, item:ContextMenuItem) {
getURL ("http://www.xgenstudios.com/", "_blank");
}
stop();
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Toggle Quality", button1));
cm.customItems.push(new ContextMenuItem("Start Music", button9));
cm.customItems.push(new ContextMenuItem("Stop Music", button4));
cm.customItems.push(new ContextMenuItem("------------", button6));
cm.customItems.push(new ContextMenuItem("More Games 'n Stuff", button5));
cm.customItems.push(new ContextMenuItem("-------------", button8));
cm.customItems.push(new ContextMenuItem("EviLudy Games", button2));
cm.customItems.push(new ContextMenuItem("Xgen Studios", button3));
_root.menu = cm;
function (gameOver) {
_root.nextFrame();
};
stage.showMenu = true;
stop();
stopAllSounds();
music4 = new Sound();
music4.attachSound("music4");
music4.start(0, 50000);
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 3
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 3
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 3
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 6
function button1(obj:Object, item:ContextMenuItem) {
toggleHighQuality();
}
function button9(obj:Object, item:ContextMenuItem) {
stopAllSounds();
music = new Sound();
music.attachSound("music");
music.start(0, 50000);
}
function button4(obj:Object, item:ContextMenuItem) {
stopAllSounds();
}
function button6(obj:Object, item:ContextMenuIteme) {
}
function button5(obj:Object, item:ContextMenuIteme) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button8(obj:Object, item:ContextMenuIteme) {
}
function button2(obj:Object, item:ContextMenuItem) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button3(obj:Object, item:ContextMenuItem) {
getURL ("http://www.xgenstudios.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Toggle Quality", button1));
cm.customItems.push(new ContextMenuItem("Start Music", button9));
cm.customItems.push(new ContextMenuItem("Stop Music", button4));
cm.customItems.push(new ContextMenuItem("------------", button6));
cm.customItems.push(new ContextMenuItem("More Games 'n Stuff", button5));
cm.customItems.push(new ContextMenuItem("-------------", button8));
cm.customItems.push(new ContextMenuItem("EviLudy Games", button2));
cm.customItems.push(new ContextMenuItem("Xgen Studios", button3));
_root.menu = cm;
function (gameOver) {
_root.nextFrame();
};
stopAllSounds();
music = new Sound();
music.attachSound("music");
music.start(0, 50000);
stop();
_root.score = 0;
_root.quality = "HIGH";
_root.paused = 0;
Instance of Symbol 156 MovieClip "blub1" in Frame 6
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 6
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 6
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 6
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 6
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 6
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 174 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(16010);
}
Frame 7
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 3) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 10) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 15) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.autoadjust = 1;
Instance of Symbol 156 MovieClip "blub1" in Frame 7
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 7
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 7
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3;
}
}
Instance of Symbol 190 MovieClip "fish" in Frame 7
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 7
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = this._width / _root.fish._width;
adding = adding / 4;
_root.fish._width = _root.fish._width + adding;
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 7
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = this._width / _root.fish._width;
adding = adding / 4;
_root.fish._width = _root.fish._width + adding;
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 7
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = this._width / _root.fish._width;
adding = adding / 4;
_root.fish._width = _root.fish._width + adding;
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 7
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 209 MovieClip "chest" in Frame 7
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 212 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Frame 8
a = 1;
while (a <= 3) {
_root["enemyfish_1_" + a]._visible = false;
_root["enemyfish_1_" + a].removeMovieClip();
a++;
}
b = 9;
while (b <= 10) {
_root["enemyfish_2_" + b]._visible = false;
_root["enemyfish_2_" + b].removeMovieClip();
b++;
}
c = 15;
while (c <= 15) {
_root["enemyfish_3_" + c]._visible = false;
_root["enemyfish_3_" + c].removeMovieClip();
c++;
}
Instance of Symbol 156 MovieClip "blub1" in Frame 8
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 8
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 8
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 8
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 8
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 8
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 9
_root.scoretable.filename = "scores/arcade.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
Frame 10
function button1(obj:Object, item:ContextMenuItem) {
toggleHighQuality();
}
function button9(obj:Object, item:ContextMenuItem) {
stopAllSounds();
music3 = new Sound();
music3.attachSound("music3");
music3.start(0, 50000);
}
function button4(obj:Object, item:ContextMenuItem) {
stopAllSounds();
}
function button6(obj:Object, item:ContextMenuIteme) {
}
function button5(obj:Object, item:ContextMenuIteme) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button8(obj:Object, item:ContextMenuIteme) {
}
function button2(obj:Object, item:ContextMenuItem) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button3(obj:Object, item:ContextMenuItem) {
getURL ("http://www.xgenstudios.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Toggle Quality", button1));
cm.customItems.push(new ContextMenuItem("Start Music", button9));
cm.customItems.push(new ContextMenuItem("Stop Music", button4));
cm.customItems.push(new ContextMenuItem("------------", button6));
cm.customItems.push(new ContextMenuItem("More Games 'n Stuff", button5));
cm.customItems.push(new ContextMenuItem("-------------", button8));
cm.customItems.push(new ContextMenuItem("EviLudy Games", button2));
cm.customItems.push(new ContextMenuItem("Xgen Studios", button3));
_root.menu = cm;
function (gameOver) {
_root.nextFrame();
};
stop();
stopAllSounds();
music3 = new Sound();
music3.attachSound("music3");
music3.start(0, 50000);
stop();
_root.score = 0;
_root.quality = "HIGH";
_root.paused = 0;
Instance of Symbol 156 MovieClip "blub1" in Frame 10
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 10
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 10
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 10
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 10
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 10
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 174 MovieClip in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(16010);
}
Frame 11
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.autoadjust = 1;
Instance of Symbol 156 MovieClip "blub1" in Frame 11
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 11
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 11
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3;
}
}
Instance of Symbol 190 MovieClip "fish" in Frame 11
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
sx = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
if (_root.paused == 0) {
sx++;
if (sx == 30) {
_root.score = _root.score + 1;
sx = 0;
}
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 11
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 5;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
_root.nextFrame();
}
}
}
inside._visible = false;
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 5;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 11
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 4;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
_root.nextFrame();
}
}
}
inside._visible = false;
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 4;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 11
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
_root.nextFrame();
} else if (this._width < _root.fish._width) {
_root.nextFrame();
}
}
}
inside._visible = false;
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 11
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 212 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Frame 12
a = 1;
while (a <= 6) {
_root["enemyfish_1_" + a]._visible = false;
_root["enemyfish_1_" + a].removeMovieClip();
a++;
}
b = 9;
while (b <= 13) {
_root["enemyfish_2_" + b]._visible = false;
_root["enemyfish_2_" + b].removeMovieClip();
b++;
}
c = 15;
while (c <= 17) {
_root["enemyfish_3_" + c]._visible = false;
_root["enemyfish_3_" + c].removeMovieClip();
c++;
}
Instance of Symbol 156 MovieClip "blub1" in Frame 12
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 12
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 12
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 12
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 12
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 12
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 13
_root.scoretable.filename = "scores/disaster.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
Frame 14
function button1(obj:Object, item:ContextMenuItem) {
toggleHighQuality();
}
function button9(obj:Object, item:ContextMenuItem) {
stopAllSounds();
music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 50000);
}
function button4(obj:Object, item:ContextMenuItem) {
stopAllSounds();
}
function button6(obj:Object, item:ContextMenuIteme) {
}
function button5(obj:Object, item:ContextMenuIteme) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button8(obj:Object, item:ContextMenuIteme) {
}
function button2(obj:Object, item:ContextMenuItem) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button3(obj:Object, item:ContextMenuItem) {
getURL ("http://www.xgenstudios.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Toggle Quality", button1));
cm.customItems.push(new ContextMenuItem("Start Music", button9));
cm.customItems.push(new ContextMenuItem("Stop Music", button4));
cm.customItems.push(new ContextMenuItem("------------", button6));
cm.customItems.push(new ContextMenuItem("More Games 'n Stuff", button5));
cm.customItems.push(new ContextMenuItem("-------------", button8));
cm.customItems.push(new ContextMenuItem("EviLudy Games", button2));
cm.customItems.push(new ContextMenuItem("Xgen Studios", button3));
_root.menu = cm;
function (gameOver) {
_root.nextFrame();
};
stop();
function over_func() {
gotoAndStop (55);
}
stopAllSounds();
music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 50000);
stop();
_root.score = 0;
_root.quality = "HIGH";
_root.paused = 0;
Instance of Symbol 156 MovieClip "blub1" in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 14
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 14
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 14
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 174 MovieClip in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(16010);
}
Frame 16
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 2) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 10) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 15) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 156 MovieClip "blub1" in Frame 16
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 16
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 16
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y - 3;
}
}
Instance of Symbol 190 MovieClip "fish" in Frame 16
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 16
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 16
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 16
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 16
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 16
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 16
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.fisheaten == 5) {
_root.score = _root.score + 100;
_root.nextFrame();
}
}
Instance of Symbol 212 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 17
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 17
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 17
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 18
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 3) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 10) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 15) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 18
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 18
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 18
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 18
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.fisheaten == 10) {
_root.score = _root.score + 200;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 18
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 18
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 18
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 19
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 19
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 19
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 20
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 3) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 11) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 15) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 20
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 20
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 20
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 20
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.chestcollected == 1) {
_root.score = _root.score + 300;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 20
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 20
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 20
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 21
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 21
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 21
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 22
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 4) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 11) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 15) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 22
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 22
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 22
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 22
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.chestcollected == 3) {
_root.score = _root.score + 400;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 22
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 22
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 22
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 23
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 23
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 23
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 24
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 4) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 11) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 16) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 24
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 24
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 24
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 24
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.surviveminutes == 1) {
_root.score = _root.score + 500;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 24
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 24
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 24
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 25
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 25
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 25
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 26
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 11) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 16) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 26
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 26
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 26
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 26
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.fisheaten == 25) {
_root.score = _root.score + 600;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 26
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 26
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 26
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 27
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 27
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 27
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 28
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 4) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 12) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 16) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 28
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 28
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 28
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 28
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 28
onClipEvent (enterFrame) {
if ((_root.fisheaten == 5) && (_root.surviveminutes < 2)) {
_root.score = _root.score + 700;
_root.nextFrame();
}
if (_root.surviveminutes >= 2) {
_root.gotoAndStop("levels", 42);
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 28
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 28
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 28
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 29
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 29
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 29
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 30
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 4) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 12) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 30
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 30
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 30
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 30
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.chestcollected == 7) {
_root.score = _root.score + 800;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 30
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 30
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 30
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 31
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 31
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 31
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 32
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 12) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 32
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 32
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 32
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 32
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.chestcollected == 9) {
_root.score = _root.score + 900;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 32
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 32
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 32
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 33
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 33
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 33
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 34
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 34
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 34
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 34
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 34
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (_root.fisheaten == 40) {
_root.score = _root.score + 1000;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 34
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 34
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 34
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 35
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 35
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 35
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 36
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 36
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 36
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 36
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 36
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.fisheaten == 50) {
_root.score = _root.score + 1100;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 36
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 36
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 36
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 37
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 37
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 37
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 38
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 38
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 38
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 38
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 38
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 38
onClipEvent (enterFrame) {
if ((_root.fisheaten == 15) && (_root.surviveminutes < 5)) {
_root.score = _root.score + 1200;
_root.nextFrame();
}
if (_root.surviveminutes >= 2) {
_root.gotoAndStop("levels", 42);
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 38
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 38
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 38
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 39
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 39
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 39
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 40
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 40
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 40
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 40
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 40
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.chestcollected == 15) {
_root.score = _root.score + 1300;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 40
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 40
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 40
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 41
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 41
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 41
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 42
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 42
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 42
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 42
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 42
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 42
onClipEvent (enterFrame) {
if ((_root.fisheaten == 20) && (_root.chestcollected == 5)) {
_root.score = _root.score + 1400;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 42
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 42
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 42
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 43
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 43
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 43
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 44
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 5) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 44
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 44
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 44
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 44
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 44
onClipEvent (enterFrame) {
if ((chestcollected == 5) && (_root.surviveminutes < 10)) {
_root.score = _root.score + 1500;
_root.nextFrame();
}
if (_root.surviveminutes >= 2) {
_root.gotoAndStop("levels", 42);
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 44
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 44
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 44
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 45
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 45
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 45
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 46
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 13) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 46
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 46
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 46
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 46
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 46
onClipEvent (enterFrame) {
if ((_root.fisheaten == 45) && (_root.surviveminutes < 15)) {
_root.score = _root.score + 1600;
_root.nextFrame();
}
if (_root.surviveminutes >= 2) {
_root.gotoAndStop("levels", 42);
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 46
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 46
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 46
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 47
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 47
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 47
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 48
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 14) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 17) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 48
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 48
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 48
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 48
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.chestcollected == 15) {
_root.score = _root.score + 1700;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 48
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 48
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 48
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 49
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 49
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 49
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 50
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 14) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 18) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 50
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 50
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 50
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 50
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.surviveminutes == 25) {
_root.score = _root.score + 1800;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 50
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 50
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 50
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 51
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 51
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 51
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 52
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 14) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 18) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 52
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 52
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 52
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 52
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.fisheaten == 75) {
_root.score = _root.score + 1900;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 52
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 52
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 52
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 53
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 53
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 53
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 54
xsetdepth = 10000;
stop();
_root.a = 0;
_root.fishOnScreen = 0;
i = 1;
while (i < 3) {
_root.blub1.duplicateMovieClip("blub1" + i, xsetdepth);
_root["blub1" + i]._x = Math.random() * 600;
vali1 = i * 75;
vali2 = 365 - vali1;
_root["blub1" + i]._y = vali2;
sizevar = (Math.random() * 5) + 3;
_root["blub1" + i]._width = _root.sizevar;
_root["blub1" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
i = 1;
while (i < 2) {
_root.blub1.duplicateMovieClip("blub2" + i, xsetdepth);
_root["blub2" + i]._x = Math.random() * 600;
vali1 = i * 100;
vali2 = 365 - vali1;
_root["blub2" + i]._y = vali2;
sizevar = (Math.random() * 9) + 7;
_root["blub2" + i]._width = _root.sizevar;
_root["blub2" + i]._height = _root.sizevar;
xsetdepth = xsetdepth + 1;
i++;
}
a = 1;
while (a <= 6) {
_root.enemyFish1.duplicateMovieClip("enemyfish_1_" + a, a + 100);
a++;
}
b = 9;
while (b <= 14) {
_root.enemyFish2.duplicateMovieClip("enemyfish_2_" + b, b + 100);
b++;
}
c = 15;
while (c <= 18) {
_root.enemyFish3.duplicateMovieClip("enemyfish_3_" + c, c + 100);
c++;
}
_root.fisheaten = 0;
_root.chestcollected = 0;
_root.surviveseconds = 0;
_root.surviveminutes = 0;
_root.autoadjust = 1;
Instance of Symbol 190 MovieClip "fish" in Frame 54
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.35;
maxSpeed = 8;
varY = 1;
facingRight = false;
countdowner = 0;
countnow = false;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
varY = varY + 1;
if (varY >= 60) {
_root.bubble.duplicateMovieClip("bubble" + _root.a, 11000 + _root.a);
_root["bubble" + _root.a]._x = this._x;
_root["bubble" + _root.a]._y = this._y;
if (lastpr == 1) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x - styler;
} else if (lastpr == 2) {
_root["bubble" + _root.a]._x = _root["bubble" + _root.a]._x + styler;
}
_root.a++;
varY = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._height = this._width * 0.58490566;
_x = (_x - xspeed);
_y = (_y - yspeed);
if (Key.isDown(37)) {
this.gotoAndStop(1);
lastpr = 1;
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
this.gotoAndStop(2);
lastpr = 2;
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
stghoog = Stage.height;
stgwijd = Stage.width;
styler = this._width / 2;
stylerb = this._height / 2;
if (this._x < (-styler)) {
this._x = stgwijd;
this._x = this._x + styler;
}
if (this._x > (stgwijd + styler)) {
this._x = -styler;
}
if (this._y < 0) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 0;
}
if (this._y > 310) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
this._y = 310;
}
}
}
onClipEvent (enterFrame) {
if (((_root.paused == 0) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 1;
countnow = true;
} else if (((_root.paused == 1) && (Key.isDown(80))) && (countdowner == 0)) {
_root.paused = 0;
countnow = true;
}
if (countnow == true) {
countdowner = countdowner + 1;
}
if (countdowner == 15) {
countdowner = 0;
countnow = false;
}
}
Instance of Symbol 202 MovieClip "fpscounter" in Frame 54
onClipEvent (load) {
swapDepths(1000007);
}
onClipEvent (enterFrame) {
with (this) {
f = Math.round(1000 / (getTimer() - t));
fff = f;
t = getTimer();
this.fps2 = f;
_root.framez = this.fps2;
}
}
Instance of Symbol 279 MovieClip "chest" in Frame 54
onClipEvent (load) {
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
this._y = -2500;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._y = this._y + 5;
if ((this._y >= 320) && (setting == 0)) {
setting = 1;
}
if (setting == 1) {
this._y = this._y - 5;
count = count + 1;
}
if ((count == 150) && (setting == 1)) {
setting = 2;
}
if ((this._y >= 350) && (setting == 2)) {
this._y = -2500;
this.gotoAndStop(1);
this._x = (Math.random() * 599) + 1;
setting = 0;
count = 0;
}
}
}
Instance of Symbol 284 MovieClip in Frame 54
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 30) {
_root.surviveseconds++;
count = 0;
}
if (_root.surviveseconds == 60) {
_root.surviveminutes++;
_root.surviveseconds = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 54
onClipEvent (enterFrame) {
if ((_root.fisheaten == 125) && (_root.chestcollected == 25)) {
_root.score = _root.score + 50000;
_root.nextFrame();
}
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 54
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 54
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if (((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 54
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
da = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (this.hitTest(_root.fish)) {
if ((((((((((((((((((((((_root.fish.hitTest(this.dot1) || (_root.fish.hitTest(this.dot2))) || (_root.fish.hitTest(this.dot3))) || (_root.fish.hitTest(this.dot4))) || (_root.fish.hitTest(this.dot5))) || (_root.fish.hitTest(this.dot6))) || (_root.fish.hitTest(this.dot7))) || (_root.fish.hitTest(this.dot8))) || (_root.fish.hitTest(this.dot9))) || (_root.fish.hitTest(this.dot10))) || (_root.fish.hitTest(this.dot11))) || (_root.fish.hitTest(this.dot12))) || (_root.fish.hitTest(this.dot13))) || (_root.fish.hitTest(this.dot14))) || (_root.fish.hitTest(_root.fish.dot15))) || (_root.fish.hitTest(this.dot16))) || (_root.fish.hitTest(this.dot17))) || (_root.fish.hitTest(this.dot18))) || (_root.fish.hitTest(this.dot19))) || (_root.fish.hitTest(this.dot20))) || (_root.fish.hitTest(this.dot21))) || (_root.fish.hitTest(this.dot22))) || (_root.fish.hitTest(this.dot23))) {
if (this._width >= _root.fish._width) {
trace("lol die");
_root.over_func();
} else if (this._width < _root.fish._width) {
eat = new Sound();
eat.attachSound("eat");
eat.start(0, 0);
setting = 0;
setting = this._width / 10;
setting = setting + 10;
setting = setting * 2;
setting = Math.round(setting);
_root.score = _root.score + setting;
adding = _root.fish._width / this._width;
adding = adding / 8;
_root.fish._width = _root.fish._width + adding;
if (da == 0) {
_root.fisheaten = _root.fisheaten + 1;
da = 1;
}
this._visible = false;
}
}
}
if (this._width < _root.fish._width) {
inside._visible = false;
} else if (this._width >= _root.fish.width) {
inside._visible = true;
}
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
da = 0;
this._visible = true;
}
}
}
Instance of Symbol 212 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.paused == 0) {
this._visible = false;
} else if (_root.paused == 1) {
this._visible = true;
}
this.swapDepths(16009);
}
onClipEvent (load) {
this._visible = false;
}
Frame 55
a = 1;
while (a <= 6) {
_root["enemyfish_1_" + a]._visible = false;
_root["enemyfish_1_" + a].removeMovieClip();
a++;
}
b = 9;
while (b <= 13) {
_root["enemyfish_2_" + b]._visible = false;
_root["enemyfish_2_" + b].removeMovieClip();
b++;
}
c = 15;
while (c <= 17) {
_root["enemyfish_3_" + c]._visible = false;
_root["enemyfish_3_" + c].removeMovieClip();
c++;
}
Instance of Symbol 156 MovieClip "blub1" in Frame 55
onClipEvent (enterFrame) {
this._y = this._y - 3.5;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 5) + 3;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "blub2" in Frame 55
onClipEvent (enterFrame) {
this._y = this._y - 2;
if (this._y < 0) {
this._y = 350;
this._x = Math.random() * 600;
sizevar = (Math.random() * 9) + 7;
this._width = sizevar;
this._height = sizevar;
}
}
Instance of Symbol 156 MovieClip "bubble" in Frame 55
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 87 MovieClip "enemyFish2" in Frame 55
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 120) + 150;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 270) {
r = 270;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 9) + 3;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 40) + 15;
this._width = sizevar;
sizevar2 = sizevar * 0.513;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 100 MovieClip "enemyFish1" in Frame 55
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -300 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 900 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 300) + 120;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 420) {
r = 420;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 7) + 2;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 45) + 40;
this._width = sizevar;
sizevar2 = sizevar * 0.5882;
this._height = sizevar2;
this._visible = true;
}
}
Instance of Symbol 106 MovieClip "enemyFish3" in Frame 55
onClipEvent (load) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -100 - this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 700 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 75) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
}
onClipEvent (enterFrame) {
if (prry == 1) {
this._x = this._x + sSpeed;
} else if (prry == 2) {
this._x = this._x - sSpeed;
}
if (((this._x > 0) && (this._x < stgwijd)) && (thisset == 0)) {
_root.fishOnScreen = _root.fishOnScreen + 1;
thisset = 1;
} else if ((this._x < 0) || (this._x > stgwijd)) {
if (thisset == 1) {
_root.fishOnScreen = _root.fishOnScreen - 1;
thisset = 2;
outside = 1;
}
}
if (outside == 1) {
respawn = (Math.random() * 100) + 75;
respawn = Math.round(respawn);
outside = 3;
}
if (outside == 3) {
r++;
}
if (r > 175) {
r = 175;
}
if (r > respawn) {
this._y = Math.random() * 305;
this._y = this._y + 10;
thisset = 0;
outside = 0;
respawn = 0;
r = 0;
stgwijd = Stage.width;
sSpeed = (Math.random() * 5) + 1;
sSpeed = Math.round(sSpeed);
select = Math.random() * 2;
select = Math.round(select);
if (select == 2) {
prry = 1;
this._x = -this._width;
} else if ((select == 1) || (select == 0)) {
prry = 2;
this._x = 600 + this._width;
}
if (prry == 1) {
this.gotoAndStop(1);
} else if (prry == 2) {
this.gotoAndStop(2);
}
sizevar = (Math.random() * 55) + 85;
this._width = sizevar;
sizevar2 = sizevar * 0.5046;
this._height = sizevar2;
this._visible = true;
}
}
Frame 56
_root.scoretable.filename = "scores/level.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
Symbol 66 MovieClip Frame 243
stop();
_root.nextFrame();
Symbol 67 MovieClip Frame 1
stop();
Instance of Symbol 21 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.b_loaded = _root.getBytesLoaded();
_root.b_total = _root.getBytesTotal();
_root.percent = Math.round((_root.b_loaded / _root.b_total) * 100);
this._width = _root.percent * 3;
if (_root.percent == 100) {
_root.load.play();
}
}
Symbol 67 MovieClip Frame 15
stop();
Instance of Symbol 66 MovieClip in Symbol 67 MovieClip Frame 15
on (release, releaseOutside) {
getURL ("http://www.eviludy.net/", "_blank");
}
Symbol 118 Button
on (release) {
gotoAndStop (14);
}
Symbol 120 Button
on (release) {
gotoAndStop (6);
}
Symbol 122 Button
on (release) {
gotoAndStop (10);
}
Symbol 124 Button
on (release) {
_root.nextFrame();
}
Symbol 126 Button
on (release) {
getURL ("http://www.eviludy.net/", "_blank");
}
Symbol 129 Button
on (release) {
gotoAndStop (5);
}
Symbol 147 Button
on (release) {
_root.prevFrame();
}
Symbol 154 Button
on (release) {
gotoAndStop (3);
}
Symbol 160 Button
on (release) {
nextFrame();
}
Symbol 162 Button
on (release) {
gotoAndStop (9);
}
Symbol 164 Button
on (release) {
stopAllSounds();
gotoAndStop (3);
}
Symbol 190 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip "meter" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
highfps = 0;
}
onClipEvent (enterFrame) {
nowfps = _parent._parent.f;
this._yscale = (nowfps * 100) / 30;
}
Instance of Symbol 199 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.autoadjust == 1) {
if ((_root.framez < 25) && (_root.framez > 18)) {
_root._quality = "MEDIUM";
_root.autoadjust = 0;
} else if (_root.framez < 19) {
_root._quality = "LOW";
_root.autoadjust = 0;
}
}
}
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 203 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
getchest = new Sound();
getchest.attachSound("getchest");
getchest.start(0, 0);
_root.score = _root.score + 1000;
_root.chest.play();
}
}
Symbol 209 MovieClip Frame 12
stop();
Symbol 215 Button
on (release) {
gotoAndStop (6);
}
Symbol 217 Button
on (release) {
nextFrame();
}
Symbol 224 Button
on (release) {
_root.scoretable.filename = "scores/arcade.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = _root.alias;
_root.scoretable.winscore = _root.score;
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
_root.submitscore._visible = false;
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 258 Button
on (release) {
gotoAndStop (13);
}
Symbol 259 Button
on (release) {
gotoAndStop (10);
}
Symbol 260 Button
on (release) {
_root.score = Math.round(_root.score);
gotoAndStop (13);
}
Symbol 262 Button
on (release) {
_root.scoretable.filename = "scores/disaster.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = _root.alias;
_root.scoretable.winscore = _root.score;
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
_root.submitscore._visible = false;
}
Symbol 268 Button
on (release) {
gotoAndStop (56);
}
Symbol 279 MovieClip Frame 1
stop();
Instance of Symbol 203 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
getchest = new Sound();
getchest.attachSound("getchest");
getchest.start(0, 0);
_root.score = _root.score + 1000;
_root.chest.play();
}
}
Symbol 279 MovieClip Frame 12
stop();
_root.chestcollected = _root.chestcollected + 1;
Symbol 302 MovieClip Frame 41
stop();
Symbol 395 Button
on (release) {
gotoAndStop (14);
}
Symbol 396 Button
on (release) {
_root.scoretable.filename = "scores/level.sco";
_root.scoretable.scoresize = 8;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = _root.alias;
_root.scoretable.winscore = _root.score;
_root.scoretable.loadVariables("http://www.eviludy.net/games/flashsetting/scores.php", "GET");
_root.submitscore._visible = false;
}