Frame 1
function createStattooz(thisSkin, thisDomain, thisHosted) {
_root.Stattooz = new stattooz(myGameName, myDeveloper, myGenre, myGameType, thisSkin, myPlayer, myThreshold, thisDomain);
_root.Stattooz.reportEvent("load");
}
function createBranditz() {
_root.Branditz = new branditz(myGameName, myGameType, myGameWidth, myGameHeight, createStattooz);
}
function initialize() {
var _local1 = new expressinstall();
if (!_local1.init()) {
createBranditz();
}
}
this._lockroot = true;
stop();
var myGameName = "aquatica";
var myDeveloper = "3RDsense";
var myGenre = 2;
var myGameType = 1;
var myGameWidth = 640;
var myGameHeight = 480;
var myThreshold = 2000;
_root.score = 0;
_root.startGame = function () {
_root.gotoAndStop("mainmenu");
};
_root.playAgain = function () {
_root.gotoAndStop("mainmenu");
};
System.security.allowDomain("*");
_root.checkPirate = function () {
_root.Branditz.pHosted = ((_root.Branditz.pHosted == undefined) ? (_root.Stattooz.isDomainAllowed()) : (_root.Branditz.pHosted));
if ((System.capabilities.playerType == "External") || (_root.Stattooz.isDomainAllowed())) {
_root.Branditz.pHosted = true;
} else {
((myGameType != 1) ? (getURL ("javascript:if (top.location != location) top.location.href ='http://www.fizzy.com/';")) : null);
}
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
var _local2 = false;
if (myGameType == 1) {
_local2 = true;
} else {
_local2 = _root.Branditz.pHosted;
}
if (_local2) {
_root.startGame();
} else {
_root.reportEvent("pirate");
_root.gotoAndStop("pirate");
}
};
_root.loadComplete = function () {
_root.gotoAndStop("splash");
};
var myPlayer = System.capabilities.playerType;
initialize();
stop();
Frame 2
stop();
Frame 12
stop();
Frame 13
var speedcoefficient;
var initialspeed = 0.3;
var thrust = 0.5;
var inklevel = 100;
var inkloss = 49;
var inkrecovery = 0;
var squidsize = 0.2;
var squidsizeoverall = 1;
var squidsizebonus = squidsizeoverall;
var score = 0;
var health = 100;
var mapname = String("map" + currentlevel);
var blood = false;
var dead = false;
var preybonus = 0;
var inkbonus = 0;
var powerupbonus = 0;
var wateroverlay = true;
var bubblewater = true;
var lives = 3;
var hypermode = 0;
var oldthrust = thrust;
var radarmode = 0;
var visionmode = 0;
var x1;
var x2;
var y1;
var y2;
var distancetemp;
aquatica_data = SharedObject.getLocal("asquatica_data");
if ((aquatica_data.data.game_level == undefined) || (aquatica_data.data.game_level == null)) {
currentlevel = 1;
aquatica_data.data.game_level = currentlevel;
aquatica_data.data.squidsizeoverall = squidsizeoverall;
} else {
currentlevel = parseInt(aquatica_data.data.game_level);
squidsizeoverall = parseInt(aquatica_data.data.squidsizeoverall);
}
play();
Frame 47
manta.manta.stop();
turtle.turtle.stop();
shark.shark.stop();
seahorse.seahorse.stop();
manta.stop();
turtle.stop();
shark.stop();
seahorse.stop();
stop();
Frame 87
if (action == "startgame") {
_quality = "LOW";
gotoAndPlay ("gonow");
} else if (action == "howtoplay") {
_quality = "HIGH";
gotoAndStop ("howtoplay");
} else if (action == "aquarium") {
_quality = "HIGH";
gotoAndStop ("aquarium");
} else {
stop();
}
Frame 88
stop();
Frame 97
gotoAndStop ("yourcharacter");
Frame 98
stop();
Frame 99
stop();
Frame 100
stop();
Frame 101
stop();
Frame 102
stop();
Frame 103
stop();
Frame 104
stop();
Frame 105
stop();
Frame 106
stop();
Frame 107
stop();
Frame 117
stop();
Frame 118
stop();
Frame 119
man.arm.gotoAndPlay("handpoint");
stop();
Frame 120
man.arm.gotoAndPlay("handpoint");
stop();
Frame 121
man.arm.gotoAndPlay("handpoint");
stop();
Frame 122
man.arm.gotoAndPlay("handpoint");
stop();
Frame 123
man.arm.gotoAndPlay("handpoint");
stop();
Frame 124
man.arm.gotoAndPlay("handpoint");
stop();
Frame 125
man.arm.gotoAndPlay("handpoint");
stop();
Frame 126
man.arm.gotoAndPlay("handpoint");
stop();
Frame 127
man.arm.gotoAndPlay("handpoint");
stop();
Frame 128
man.arm.gotoAndPlay("handpoint");
stop();
Frame 129
man.arm.gotoAndPlay("handpoint");
stop();
Frame 130
man.arm.gotoAndPlay("handpoint");
stop();
Frame 131
man.arm.gotoAndPlay("handpoint");
stop();
Frame 132
man.arm.gotoAndPlay("handpoint");
stop();
Frame 133
man.arm.gotoAndPlay("handpoint");
stop();
Frame 134
man.arm.gotoAndPlay("handpoint");
stop();
Frame 135
function InitialiseMapRespawn() {
maptime = 0;
if (initialmapX1 == undefined) {
initiallevel = currentlevel;
initialmapX1 = mapp._x;
initialmapX2 = waterdepth._x;
initialmapY1 = mapp._y;
initialmapY2 = waterdepth._y;
} else if (initiallevel == currentlevel) {
mapp._x = initialmapX1;
mapp._y = initialmapY1;
waterdepth._x = initialmapX2;
waterdepth._y = initialmapY2;
} else {
initiallevel = currentlevel;
initialmapX1 = mapp._x;
initialmapX2 = waterdepth._x;
initialmapY1 = mapp._y;
initialmapY2 = waterdepth._y;
}
mapstartscore = _root.score;
mapstarthealth = _root.health;
mapstartsquidsizeoverall = _root.squidsizeoverall;
mapstartstage1flag = _root.stage1flag;
mapstartstage2flag = _root.stage2flag;
mapstartstage3flag = _root.stage3flag;
mapstartstage4flag = _root.stage4flag;
mapstartstage5flag = _root.stage5flag;
}
function SetSquidSize() {
squidsizeadjustment = 0.5;
squid._rotation = 0;
squid2._rotation = 0;
tail1._rotation = 0;
tail2._rotation = 0;
squid._height = (squidsizeadjustment * (135.4 * squidsize)) * squidsizeoverall;
squid._width = (squidsizeadjustment * (77.3 * squidsize)) * squidsizeoverall;
squid2._height = (squidsizeadjustment * (18 * (squidsize * 2.5))) * squidsizeoverall;
squid2._width = (squidsizeadjustment * (18 * (squidsize * 2.5))) * squidsizeoverall;
tail1._height = (squidsizeadjustment * (43.7 * (squidsize * 5))) * squidsizeoverall;
tail1._width = (squidsizeadjustment * (1 * (squidsize * 5))) * squidsizeoverall;
tail2._height = (squidsizeadjustment * (51.3 * (squidsize * 5))) * squidsizeoverall;
tail2._width = (squidsizeadjustment * (1 * (squidsize * 5))) * squidsizeoverall;
}
function InitialiseGameMusic(tracknumber) {
if (!tracknumber) {
tracknumber = random(4) + 2;
}
var _local1 = new Sound();
_local1.attachSound("GameMusic" + tracknumber);
_local1.start(0, 999);
}
function InitialiseMouseListener() {
var _local1 = new Object();
_local1.onMouseDown = function () {
if ((squidswimming && (inklevel > inkloss)) && (exitLevelFlag != true)) {
shootink = true;
}
if (mousebuttondown != true) {
InitialiseTimer();
}
mousebuttondown = true;
};
_local1.onMouseUp = function () {
shootink = false;
xdistance = 0;
ydistance = 0;
};
Mouse.addListener(_local1);
}
function InitialiseCheater() {
}
function InitialiseTimer() {
var _local1 = new Date();
temptime = _local1.getTime();
HUDmaptimer = "";
}
function SquidEngineRoom() {
if (mousebuttondown == true) {
var _local2 = new Date();
HUDmaptimer = int((maptimer + 1) - ((_local2.getTime() - temptime) / 1000));
if (HUDmaptimer == 0) {
health = 0;
}
if (hypermode > 0) {
hypermode--;
thrust = oldthrust * 2;
} else {
thrust = oldthrust;
}
if (visionmode > 0) {
visionmode--;
if (visionmode <= 40) {
tunnelvision._alpha = 100 - ((visionmode / 40) * 100);
} else if (visionmode > 1160) {
tunnelvision._alpha = ((visionmode - 1160) / 40) * 100;
} else {
tunnelvision._alpha = 0;
}
} else {
tunnelvision._alpha = 100;
}
if (radarmode > 0) {
radarmode--;
}
if (exitLevelFlag) {
squid._rotation = 0;
squid2._rotation = 0;
} else if (dead) {
squid._rotation = squid._rotation + 1;
squid2._rotation = squid2._rotation + 1;
} else {
squid._rotation = Trig.findAngle(_xmouse, _ymouse, squid._x, squid._y);
squid2._rotation = Trig.findAngle(_xmouse, _ymouse, squid._x, squid._y);
}
tail1._rotation = rot4 + 1;
tail2._rotation = rot4 - 1;
rot1 = rot1a;
rot1a = rot2;
rot2 = rot2a;
rot2a = rot3;
rot3 = rot3a;
rot3a = rot4;
rot4 = squid._rotation;
if (CollisionDetection2.checkForCollision(squid2, mapp.mapp)) {
if (abovewater) {
tempxdistance = tempxdistance * -1;
mapp._x = xmaptemp3;
waterdepth._x = xwaterdepthtemp3;
mapp._x = mapp._x - ((tempxdistance / 50) * speedcoefficient);
waterdepth._x = waterdepth._x - ((tempxdistance / 50) * speedcoefficient);
} else {
mapp._x = xmaptemp;
mapp._y = ymaptemp;
waterdepth._x = xwaterdepthtemp;
waterdepth._y = ywaterdepthtemp;
gravity = 0;
secondarycounter = 1;
if (!collisioncounter) {
collisioncounter = 0;
}
collisioncounter++;
if (collisioncounter >= 50) {
mapp._x = xmaptemp3;
mapp._y = ymaptemp3;
waterdepth._x = xwaterdepthtemp3;
waterdepth._y = ywaterdepthtemp3;
}
}
if (((abovetime >= (HUDmaptimer + 3)) && (abovewater == true)) && (abovetime != "")) {
_root.health = 0;
}
} else {
collisioncounter = 0;
x2 = x1;
y2 = y1;
x1 = _xmouse;
y1 = _ymouse;
distancetemp = Trig.findDistance(x2, y2, x1, y1);
if (distancetemp > 200) {
if ((hypermode < 40) && (tail1._alpha >= 50)) {
hypermode = 40;
squid.play();
}
}
if (dead) {
xdistance = 0;
ydistance = 2;
speedcoefficient = 1;
} else if (!abovewater) {
xdistance = _xmouse - squid._x;
ydistance = _ymouse - squid._y;
}
if (waterdepth._y > 240) {
abovewater = true;
if (localcounter == 1) {
localcounter = 40;
abovetime = HUDmaptimer;
tempxdistance = xdistance;
tempydistance = ydistance;
}
gravity = Trig.toStart(squidsizeoverall * 150, 40 - localcounter, 40);
if (hypermode > 0) {
gravity = gravity * 2;
}
localcounter--;
secondarycounter = 40;
xdistance = tempxdistance;
ydistance = tempydistance;
if (((abovetime >= (HUDmaptimer + 3)) && (abovewater == true)) && (abovetime != "")) {
_root.health = 0;
}
} else {
abovewater = false;
if (secondarycounter > 1) {
gravity = (squidsizeoverall * 12) - Trig.toStop(squidsizeoverall * 12, 41 - secondarycounter, 41);
secondarycounter--;
} else {
gravity = 0;
}
localcounter = 1;
abovetime = HUDmaptimer;
}
if (speedcoefficient < 1) {
speedcoefficient = 1;
}
mapp._x = mapp._x - ((xdistance / 50) * speedcoefficient);
mapp._y = mapp._y - (((ydistance / 50) * speedcoefficient) + gravity);
waterdepth._x = waterdepth._x - ((xdistance / 50) * speedcoefficient);
waterdepth._y = waterdepth._y - (((ydistance / 50) * speedcoefficient) + gravity);
xmaptemp3 = xmaptemp2;
ymaptemp3 = ymaptemp2;
xwaterdepthtemp3 = xwaterdepthtemp2;
ywaterdepthtemp3 = ywaterdepthtemp2;
xmaptemp2 = xmaptemp;
ymaptemp2 = ymaptemp;
xwaterdepthtemp2 = xwaterdepthtemp;
ywaterdepthtemp2 = ywaterdepthtemp;
xmaptemp = mapp._x;
ymaptemp = mapp._y;
xwaterdepthtemp = waterdepth._x;
ywaterdepthtemp = waterdepth._y;
squidswimming = true;
}
if (_root.health <= 0) {
dead = true;
squid._alpha = 0;
tail1._alpha = 0;
tail2._alpha = 0;
} else {
dead = false;
}
}
}
SetSquidSize();
squidswimming = false;
InitialiseMouseListener();
InitialiseCheater();
InitialiseTimer();
if (aquatica_data.data.game_level < currentlevel) {
aquatica_data.data.game_level = currentlevel;
aquatica_data.data.squidsizeoverall = squidsizeoverall;
aquatica_data.flush();
trace("flushed");
}
this.onEnterFrame = function () {
SquidEngineRoom();
};
Frame 136
function InitialiseMapRespawn() {
maptime = 0;
if (initialmapX1 == undefined) {
initiallevel = currentlevel;
initialmapX1 = mapp._x;
initialmapX2 = waterdepth._x;
initialmapY1 = mapp._y;
initialmapY2 = waterdepth._y;
} else if (initiallevel == currentlevel) {
mapp._x = initialmapX1;
mapp._y = initialmapY1;
waterdepth._x = initialmapX2;
waterdepth._y = initialmapY2;
} else {
initiallevel = currentlevel;
initialmapX1 = mapp._x;
initialmapX2 = waterdepth._x;
initialmapY1 = mapp._y;
initialmapY2 = waterdepth._y;
}
mapstartscore = _root.score;
mapstarthealth = _root.health;
mapstartsquidsizeoverall = _root.squidsizeoverall;
mapstartstage1flag = _root.stage1flag;
mapstartstage2flag = _root.stage2flag;
mapstartstage3flag = _root.stage3flag;
mapstartstage4flag = _root.stage4flag;
mapstartstage5flag = _root.stage5flag;
}
function SetSquidSize() {
squidsizeadjustment = 0.5;
squid._rotation = 0;
squid2._rotation = 0;
tail1._rotation = 0;
tail2._rotation = 0;
squid._height = (squidsizeadjustment * (135.4 * squidsize)) * squidsizeoverall;
squid._width = (squidsizeadjustment * (77.3 * squidsize)) * squidsizeoverall;
squid2._height = (squidsizeadjustment * (18 * (squidsize * 2.5))) * squidsizeoverall;
squid2._width = (squidsizeadjustment * (18 * (squidsize * 2.5))) * squidsizeoverall;
tail1._height = (squidsizeadjustment * (43.7 * (squidsize * 5))) * squidsizeoverall;
tail1._width = (squidsizeadjustment * (1 * (squidsize * 5))) * squidsizeoverall;
tail2._height = (squidsizeadjustment * (51.3 * (squidsize * 5))) * squidsizeoverall;
tail2._width = (squidsizeadjustment * (1 * (squidsize * 5))) * squidsizeoverall;
}
function InitialiseGameMusic(tracknumber) {
if (!tracknumber) {
tracknumber = random(4) + 2;
}
var _local1 = new Sound();
_local1.attachSound("GameMusic" + tracknumber);
_local1.start(0, 999);
}
function InitialiseMouseListener() {
var _local1 = new Object();
_local1.onMouseDown = function () {
if ((squidswimming && (inklevel > inkloss)) && (exitLevelFlag != true)) {
shootink = true;
}
if (mousebuttondown != true) {
InitialiseTimer();
}
mousebuttondown = true;
};
_local1.onMouseUp = function () {
shootink = false;
xdistance = 0;
ydistance = 0;
};
Mouse.addListener(_local1);
}
function InitialiseCheater() {
}
function InitialiseTimer() {
var _local1 = new Date();
temptime = _local1.getTime();
HUDmaptimer = "";
}
function SquidEngineRoom() {
if (mousebuttondown == true) {
var _local2 = new Date();
HUDmaptimer = int((maptimer + 1) - ((_local2.getTime() - temptime) / 1000));
if (HUDmaptimer == 0) {
health = 0;
}
if (hypermode > 0) {
hypermode--;
thrust = oldthrust * 2;
} else {
thrust = oldthrust;
}
if (visionmode > 0) {
visionmode--;
if (visionmode <= 40) {
tunnelvision._alpha = 100 - ((visionmode / 40) * 100);
} else if (visionmode > 1160) {
tunnelvision._alpha = ((visionmode - 1160) / 40) * 100;
} else {
tunnelvision._alpha = 0;
}
} else {
tunnelvision._alpha = 100;
}
if (radarmode > 0) {
radarmode--;
}
if (exitLevelFlag) {
squid._rotation = 0;
squid2._rotation = 0;
} else if (dead) {
squid._rotation = squid._rotation + 1;
squid2._rotation = squid2._rotation + 1;
} else {
squid._rotation = Trig.findAngle(_xmouse, _ymouse, squid._x, squid._y);
squid2._rotation = Trig.findAngle(_xmouse, _ymouse, squid._x, squid._y);
}
tail1._rotation = rot4 + 1;
tail2._rotation = rot4 - 1;
rot1 = rot1a;
rot1a = rot2;
rot2 = rot2a;
rot2a = rot3;
rot3 = rot3a;
rot3a = rot4;
rot4 = squid._rotation;
if (CollisionDetection2.checkForCollision(squid2, mapp.mapp)) {
if (abovewater) {
tempxdistance = tempxdistance * -1;
mapp._x = xmaptemp3;
waterdepth._x = xwaterdepthtemp3;
mapp._x = mapp._x - ((tempxdistance / 50) * speedcoefficient);
waterdepth._x = waterdepth._x - ((tempxdistance / 50) * speedcoefficient);
} else {
mapp._x = xmaptemp;
mapp._y = ymaptemp;
waterdepth._x = xwaterdepthtemp;
waterdepth._y = ywaterdepthtemp;
gravity = 0;
secondarycounter = 1;
if (!collisioncounter) {
collisioncounter = 0;
}
collisioncounter++;
if (collisioncounter >= 50) {
mapp._x = xmaptemp3;
mapp._y = ymaptemp3;
waterdepth._x = xwaterdepthtemp3;
waterdepth._y = ywaterdepthtemp3;
}
}
if (((abovetime >= (HUDmaptimer + 3)) && (abovewater == true)) && (abovetime != "")) {
_root.health = 0;
}
} else {
collisioncounter = 0;
x2 = x1;
y2 = y1;
x1 = _xmouse;
y1 = _ymouse;
distancetemp = Trig.findDistance(x2, y2, x1, y1);
if (distancetemp > 200) {
if ((hypermode < 40) && (tail1._alpha >= 50)) {
hypermode = 40;
squid.play();
}
}
if (dead) {
xdistance = 0;
ydistance = 2;
speedcoefficient = 1;
} else if (!abovewater) {
xdistance = _xmouse - squid._x;
ydistance = _ymouse - squid._y;
}
if (waterdepth._y > 240) {
abovewater = true;
if (localcounter == 1) {
localcounter = 40;
abovetime = HUDmaptimer;
tempxdistance = xdistance;
tempydistance = ydistance;
}
gravity = Trig.toStart(squidsizeoverall * 150, 40 - localcounter, 40);
if (hypermode > 0) {
gravity = gravity * 2;
}
localcounter--;
secondarycounter = 40;
xdistance = tempxdistance;
ydistance = tempydistance;
if (((abovetime >= (HUDmaptimer + 3)) && (abovewater == true)) && (abovetime != "")) {
_root.health = 0;
}
} else {
abovewater = false;
if (secondarycounter > 1) {
gravity = (squidsizeoverall * 12) - Trig.toStop(squidsizeoverall * 12, 41 - secondarycounter, 41);
secondarycounter--;
} else {
gravity = 0;
}
localcounter = 1;
abovetime = HUDmaptimer;
}
if (speedcoefficient < 1) {
speedcoefficient = 1;
}
mapp._x = mapp._x - ((xdistance / 50) * speedcoefficient);
mapp._y = mapp._y - (((ydistance / 50) * speedcoefficient) + gravity);
waterdepth._x = waterdepth._x - ((xdistance / 50) * speedcoefficient);
waterdepth._y = waterdepth._y - (((ydistance / 50) * speedcoefficient) + gravity);
xmaptemp3 = xmaptemp2;
ymaptemp3 = ymaptemp2;
xwaterdepthtemp3 = xwaterdepthtemp2;
ywaterdepthtemp3 = ywaterdepthtemp2;
xmaptemp2 = xmaptemp;
ymaptemp2 = ymaptemp;
xwaterdepthtemp2 = xwaterdepthtemp;
ywaterdepthtemp2 = ywaterdepthtemp;
xmaptemp = mapp._x;
ymaptemp = mapp._y;
xwaterdepthtemp = waterdepth._x;
ywaterdepthtemp = waterdepth._y;
squidswimming = true;
}
if (_root.health <= 0) {
dead = true;
squid._alpha = 0;
tail1._alpha = 0;
tail2._alpha = 0;
} else {
dead = false;
}
}
}
mapp.gotoAndStop(mapname);
mapp.fish1.gotoAndStop(mapname);
exitLevelFlag = false;
InitialiseMapRespawn();
stop();
Frame 139
if (mapname != "aquarium") {
mapname = String("map" + currentlevel);
}
gotoAndPlay ("gonow2");
Frame 140
_quality = "HIGH";
stop();
Frame 142
stop();
Frame 143
stop();
Frame 144
stopAllSounds();
gotoAndPlay ("mainmenu");
Symbol 29 MovieClip Frame 1
function InitialRadarContact() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
k = 80;
}
}
function ResidualRadarContact() {
if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
}
function ActivateAnglerFish() {
if (_parent.swim != true) {
_parent.swim = true;
}
}
function InitialAttackMode() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("Roar");
_local3.start();
_local3.attachSound("Breathing");
_local3.start(0, 999);
}
k = 160;
}
}
function ResidualAttackMode() {
if ((k > 0) && (_root.dead == false)) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if (_parent.collisionstate == false) {
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
}
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if (_parent.originalswimdirectionY != 0) {
_parent.originalswimdirectionY = _parent.originalswimdirectionY * 0.98;
if ((_parent.originalswimdirectionX > -1) && (_parent.originalswimdirectionX < 1)) {
_parent.originalswimdirectionX = _parent.originalswimdirectionX + 0.02;
}
}
k = 0;
TimeToPanic.stop();
}
}
if ((_root.squidsizeoverall < _parent.fishsize) && (_parent.prey != false)) {
gotoAndPlay (3);
}
if (_parent.onScreen(640, 480, _parent.xoffset, _parent.yoffset)) {
if (this.hitTest(_root.squid)) {
ActivateAnglerFish();
InitialRadarContact();
} else {
ResidualRadarContact();
}
}
Symbol 29 MovieClip Frame 2
function InitialRadarContact() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
k = 80;
}
}
function ResidualRadarContact() {
if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
}
function ActivateAnglerFish() {
if (_parent.swim != true) {
_parent.swim = true;
}
}
function InitialAttackMode() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("Roar");
_local3.start();
_local3.attachSound("Breathing");
_local3.start(0, 999);
}
k = 160;
}
}
function ResidualAttackMode() {
if ((k > 0) && (_root.dead == false)) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if (_parent.collisionstate == false) {
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
}
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if (_parent.originalswimdirectionY != 0) {
_parent.originalswimdirectionY = _parent.originalswimdirectionY * 0.98;
if ((_parent.originalswimdirectionX > -1) && (_parent.originalswimdirectionX < 1)) {
_parent.originalswimdirectionX = _parent.originalswimdirectionX + 0.02;
}
}
k = 0;
TimeToPanic.stop();
}
}
ResidualRadarContact();
gotoAndPlay (1);
Symbol 29 MovieClip Frame 3
function InitialRadarContact() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
k = 80;
}
}
function ResidualRadarContact() {
if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
}
function ActivateAnglerFish() {
if (_parent.swim != true) {
_parent.swim = true;
}
}
function InitialAttackMode() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("Roar");
_local3.start();
_local3.attachSound("Breathing");
_local3.start(0, 999);
}
k = 160;
}
}
function ResidualAttackMode() {
if ((k > 0) && (_root.dead == false)) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if (_parent.collisionstate == false) {
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
}
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if (_parent.originalswimdirectionY != 0) {
_parent.originalswimdirectionY = _parent.originalswimdirectionY * 0.98;
if ((_parent.originalswimdirectionX > -1) && (_parent.originalswimdirectionX < 1)) {
_parent.originalswimdirectionX = _parent.originalswimdirectionX + 0.02;
}
}
k = 0;
TimeToPanic.stop();
}
}
if (_root.squidsizeoverall >= _parent.fishsize) {
gotoAndPlay (1);
}
if (_parent.onScreen(640, 480, _parent.xoffset, _parent.yoffset)) {
if (this.hitTest(_root.squid) && (_root.dead == false)) {
ActivateAnglerFish();
InitialAttackMode();
} else {
ResidualAttackMode();
}
}
Symbol 29 MovieClip Frame 4
function InitialRadarContact() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
k = 80;
}
}
function ResidualRadarContact() {
if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * _parent.fishspeed;
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * _parent.fishspeed;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
}
function ActivateAnglerFish() {
if (_parent.swim != true) {
_parent.swim = true;
}
}
function InitialAttackMode() {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
var _local3 = new Sound();
_local3.attachSound("Roar");
_local3.start();
_local3.attachSound("Breathing");
_local3.start(0, 999);
}
k = 160;
}
}
function ResidualAttackMode() {
if ((k > 0) && (_root.dead == false)) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if (_parent.collisionstate == false) {
_parent.swimdirectionX = Math.sin(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
_parent.swimdirectionY = Math.cos(temp * (Math.PI/180)) * (_parent.fishspeed * -1);
}
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if (_parent.originalswimdirectionY != 0) {
_parent.originalswimdirectionY = _parent.originalswimdirectionY * 0.98;
if ((_parent.originalswimdirectionX > -1) && (_parent.originalswimdirectionX < 1)) {
_parent.originalswimdirectionX = _parent.originalswimdirectionX + 0.02;
}
}
k = 0;
TimeToPanic.stop();
}
}
if (_parent.onScreen(640, 480, _parent.xoffset, _parent.yoffset)) {
if (this.hitTest(_root.squid) && (_root.dead == false)) {
ActivateAnglerFish();
InitialAttackMode();
} else {
ResidualAttackMode();
}
}
gotoAndPlay (3);
Symbol 34 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
if (_root.radarmode > 0) {
if ((_parent.counter == undefined) || (_parent.counter == 0)) {
if ((_root.squidsizeoverall >= _parent.fishsize) && (_parent.prey != true)) {
var matrix = new Array();
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0.5, 0]);
} else {
var matrix = new Array();
matrix = matrix.concat([1, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0.5, 0]);
}
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
gotoAndPlay(random(39) + 2);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
Symbol 35 MovieClip Frame 42
if (_root.radarmode > 0) {
if ((_parent.counter == undefined) || (_parent.counter == 0)) {
if ((_root.squidsizeoverall >= _parent.fishsize) && (_parent.prey != true)) {
var matrix = new Array();
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0, 0.5, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
this.filters = new Array(filter);
}
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
Symbol 42 MovieClip Frame 1
function StunnedAura() {
if (_parent.counter > 0) {
aura._alpha = 50;
} else {
aura._alpha = 0;
}
}
function AttackDamage() {
if (collisionarea.hitTest(_root.squid.head)) {
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
} else if (_root.exitLevelFlag != true) {
_root.inkbar.blood.gotoAndPlay("ouch");
_root.health = _root.health - _parent.attackdamage;
if (!attackstate) {
attackstate = true;
var _local3 = new Sound();
_local3.attachSound("Growl-Bite");
_local3.start();
}
}
} else {
attackstate = false;
}
}
function MapCollisionDetect() {
if (CollisionDetection2.checkForCollision(collisionarea, _root.mapp.mapp)) {
_parent.originalswimrotation = temprot;
_parent.originalswimdirectionX = Math.sin((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent.originalswimdirectionY = Math.cos((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent._x = tempx;
_parent._y = tempy;
_parent.collisionstate = true;
_parent.radar.k = 0;
tempradarheight = _parent.radar._height;
tempradarwidth = _parent.radar._width;
_parent.radar._height = 0;
_parent.radar._width = 0;
q = 20;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
temprot = 90;
_parent.originalswimrotation = temprot;
}
} else {
tempx = _parent._x;
tempy = _parent.__y;
temprot = (_parent.food._rotation + random(30)) + 165;
_parent.collisionstate = false;
if ((q > 0) && (q != undefined)) {
_parent.radar._height = 0;
_parent.radar._width = 0;
q--;
} else if (q <= 0) {
_parent.radar._height = tempradarheight;
_parent.radar._width = tempradarwidth;
}
}
}
StunnedAura();
Symbol 42 MovieClip Frame 2
if (_root.squidsizeoverall < _parent.fishsize) {
if ((_parent.prey == true) || (_parent.prey == "sometimes")) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
} else if (_parent.prey == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 42 MovieClip Frame 3
function StunnedAura() {
if (_parent.counter > 0) {
aura._alpha = 50;
} else {
aura._alpha = 0;
}
}
function AttackDamage() {
if (collisionarea.hitTest(_root.squid.head)) {
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
} else if (_root.exitLevelFlag != true) {
_root.inkbar.blood.gotoAndPlay("ouch");
_root.health = _root.health - _parent.attackdamage;
if (!attackstate) {
attackstate = true;
var _local3 = new Sound();
_local3.attachSound("Growl-Bite");
_local3.start();
}
}
} else {
attackstate = false;
}
}
function MapCollisionDetect() {
if (CollisionDetection2.checkForCollision(collisionarea, _root.mapp.mapp)) {
_parent.originalswimrotation = temprot;
_parent.originalswimdirectionX = Math.sin((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent.originalswimdirectionY = Math.cos((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent._x = tempx;
_parent._y = tempy;
_parent.collisionstate = true;
_parent.radar.k = 0;
tempradarheight = _parent.radar._height;
tempradarwidth = _parent.radar._width;
_parent.radar._height = 0;
_parent.radar._width = 0;
q = 20;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
temprot = 90;
_parent.originalswimrotation = temprot;
}
} else {
tempx = _parent._x;
tempy = _parent.__y;
temprot = (_parent.food._rotation + random(30)) + 165;
_parent.collisionstate = false;
if ((q > 0) && (q != undefined)) {
_parent.radar._height = 0;
_parent.radar._width = 0;
q--;
} else if (q <= 0) {
_parent.radar._height = tempradarheight;
_parent.radar._width = tempradarwidth;
}
}
}
StunnedAura();
if (_parent.onScreen(640, 480, _parent.xoffset, _parent.yoffset)) {
AttackDamage();
}
MapCollisionDetect();
Symbol 42 MovieClip Frame 4
function StunnedAura() {
if (_parent.counter > 0) {
aura._alpha = 50;
} else {
aura._alpha = 0;
}
}
function AttackDamage() {
if (collisionarea.hitTest(_root.squid.head)) {
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
} else if (_root.exitLevelFlag != true) {
_root.inkbar.blood.gotoAndPlay("ouch");
_root.health = _root.health - _parent.attackdamage;
if (!attackstate) {
attackstate = true;
var _local3 = new Sound();
_local3.attachSound("Growl-Bite");
_local3.start();
}
}
} else {
attackstate = false;
}
}
function MapCollisionDetect() {
if (CollisionDetection2.checkForCollision(collisionarea, _root.mapp.mapp)) {
_parent.originalswimrotation = temprot;
_parent.originalswimdirectionX = Math.sin((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent.originalswimdirectionY = Math.cos((_parent.originalswimrotation + 90) * (Math.PI/180)) * (_parent.fishspeed * -0.5);
_parent._x = tempx;
_parent._y = tempy;
_parent.collisionstate = true;
_parent.radar.k = 0;
tempradarheight = _parent.radar._height;
tempradarwidth = _parent.radar._width;
_parent.radar._height = 0;
_parent.radar._width = 0;
q = 20;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
temprot = 90;
_parent.originalswimrotation = temprot;
}
} else {
tempx = _parent._x;
tempy = _parent.__y;
temprot = (_parent.food._rotation + random(30)) + 165;
_parent.collisionstate = false;
if ((q > 0) && (q != undefined)) {
_parent.radar._height = 0;
_parent.radar._width = 0;
q--;
} else if (q <= 0) {
_parent.radar._height = tempradarheight;
_parent.radar._width = tempradarwidth;
}
}
}
if (_root.squidsizeoverall < _parent.fishsize) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
StunnedAura();
if (_parent.onScreen(640, 480, _parent.xoffset, _parent.yoffset)) {
AttackDamage();
}
MapCollisionDetect();
gotoAndPlay (3);
Symbol 45 MovieClip Frame 20
gotoAndPlay (1);
Symbol 45 MovieClip Frame 22
if (_parent.radar.k > 0) {
gotoAndPlay (21);
} else {
gotoAndPlay (1);
}
Symbol 49 MovieClip [guppy] Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 49 MovieClip [guppy] Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 49 MovieClip [guppy] Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 49 MovieClip [guppy] Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 49 MovieClip [guppy] Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 49 MovieClip [guppy] Frame 17
removeMovieClip(this);
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
function loadFinished() {
clearInterval(myStartInterval);
this.preloader.myBarAnim.gotoAndStop(100);
this.preloader.percentage.text = "100%";
_parent.play();
}
var myMinLength = 10000;
var myStartTime = getTimer();
var myStartInterval;
this.onEnterFrame = function () {
var _local8 = _root.getBytesTotal();
var _local5 = _root.getBytesLoaded();
var _local7 = (_local5 / _local8) * 100;
var _local4 = getTimer() - myStartTime;
var _local6 = (_local4 / myMinLength) * 100;
var _local3 = Math.min(_local6, _local7);
if (_local3 < 98) {
this.preloader.bar.gotoAndStop(Math.ceil(_local3));
this.preloader.percentage.text = Math.ceil(_local3) + "%";
this.preloader.myBarAnim.gotoAndStop(Math.round(_local3));
iLastBytes = _local3;
} else if (_root.Branditz.pAdDone) {
myStartInterval = setInterval(this, "loadFinished", 2000);
this.onEnterFrame = undefined;
} else if (_local4 > 30000) {
_root.Branditz.pAdDone = true;
}
};
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.doAffiliates();
};
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 84 MovieClip [Preloader] Frame 1
_root.Branditz.activateElement("intro", this);
Symbol 84 MovieClip [Preloader] Frame 2
function getPromoPaths(thisPromo) {
var _local5 = _root.Branditz.pDomain + "/branditz/promo/";
if (_root.Stattooz.pGameType == 1) {
_local5 = "http://skins.branditz.com/promo/";
}
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pController = this;
_local4.pHolder = thisPromo;
_local4.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("my promo file location internal = " + this.promourl);
this.pController.attachPromotion(this.promourl, this.pHolder);
} else {
trace("my error finding promo file location internal");
_root.Branditz.pAdDone = true;
pController.gotoAndStop("show");
}
};
_local3.version = _root.Stattooz.pVersion;
_local3.url = _root._url;
_local3.gamename = _root.Stattooz.pGameName;
_local3.gametype = _root.Stattooz.pGameType;
_local3.sendAndLoad(_local5, _local4, "POST");
}
function attachPromotion(thisFile, thisHolder) {
var _local3 = new Object();
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.pController = this;
_local3.onLoadInit = function (target_mc) {
target_mc.myX = this.X;
target_mc.myY = this.Y;
target_mc.gotoAndStop("show");
};
_local3.onLoadError = function (target_mc, errorCode, httpStatus) {
trace(">> loadListener.onLoadError()");
trace(">> ==========================");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
_root.Branditz.pAdDone = true;
this.pController.gotoAndStop("show");
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(thisFile, thisHolder);
}
_root.Branditz.pSkipIntro = true;
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
myCanvas._alpha = 100;
myCanvas._width = Stage.width;
myCanvas._height = Stage.height;
_root.Affiliateid = _level0.affiliateId;
((((_root.Affiliateid == undefined) || (_root.Affiliateid == null)) || (_root.Affiliateid == "")) ? ((_root.Affiliateid = "9ffc8f4")) : null);
_root.AffiliateProgram = _level0.aProgram;
((((_root.AffiliateProgram == undefined) || (_root.AffiliateProgram == null)) || (_root.AffiliateProgram == "")) ? ((_root.AffiliateProgram = "fizzy")) : null);
_root.MoreGamesLink = _level0.aLink;
((((_root.MoreGamesLink == undefined) || (_root.MoreGamesLink == null)) || (_root.MoreGamesLink == "")) ? ((_root.MoreGamesLink = "http://www.fizzy.com?a_aid=" + _root.Affiliateid)) : (_root.MoreGamesLink));
_root.BuyGameLink = (_root.Branditz.pHosted ? ((_root.Branditz.pDomain + "games/") + _root.Branditz.pGameName) : ("http://www.fizzy.com/games/" + _root.Branditz.pGameName));
_root.doMoreGames = function () {
if (!_root.MoreGamesClicked) {
_root.MoreGamesClicked = true;
_root.Stattooz.reportEvent("moregames");
}
_root.getURL(_root.MoreGamesLink, _root.Branditz.pLinkWindow);
};
_root.doBuyGame = function () {
_root.Stattooz.reportEvent("moregames");
_root.getURL(_root.BuyGameLink, _root.Branditz.pLinkWindow);
};
_root.doAffiliates = function () {
_root.Stattooz.reportEvent("moregames");
var _local2 = "http://www.fizzy.com/affiliates?a_aid=" + _root.Affiliateid;
_root.getURL(_local2, _root.Branditz.pLinkWindow);
};
stop();
Instance of Symbol 68 MovieClip in Symbol 84 MovieClip [Preloader] Frame 2
on (release) {
_root.doMoreGames();
}
Instance of Symbol 73 MovieClip "myPromotionHolder" in Symbol 84 MovieClip [Preloader] Frame 2
on (rollOver) {
_parent.myPromotionTile.gotoAndStop(2);
}
on (rollOut) {
_parent.myPromotionTile.gotoAndStop(1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 76 MovieClip in Symbol 84 MovieClip [Preloader] Frame 2
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
Symbol 84 MovieClip [Preloader] Frame 27
stop();
_root.checkPirate();
Symbol 1065 MovieClip [__Packages.Trig] Frame 0
class Trig
{
function Trig () {
}
static function findAngle(xTarget, yTarget, xOrigin, yOrigin) {
xTarget = xTarget - xOrigin;
yTarget = yTarget - yOrigin;
var _local2 = Math.sqrt((xTarget * xTarget) + (yTarget * yTarget));
_local2 = Math.round(_local2);
var _local1 = Math.asin(yTarget / _local2) + (Math.PI/2);
_local1 = Math.round(_local1 * 57.2957795130823);
if (xTarget < 0) {
_local1 = _local1 * -1;
}
return(_local1);
}
static function findDistance(xTarget, yTarget, xOrigin, yOrigin) {
xTarget = xTarget - xOrigin;
yTarget = yTarget - yOrigin;
var _local1 = Math.sqrt((xTarget * xTarget) + (yTarget * yTarget));
_local1 = Math.round(_local1);
return(_local1);
}
static function toStart(distance, thisframe, frames) {
if (thisframe > frames) {
thisframe = frames;
}
var _local3 = (thisframe / frames) * distance;
var _local1 = Math.sqrt((distance * distance) - (_local3 * _local3));
_local1 = distance - _local1;
return(_local1);
}
static function toStop(distance, thisframe, frames) {
if (thisframe > frames) {
thisframe = frames;
}
var _local1 = (1 - (thisframe / frames)) * distance;
var _local4 = Math.sqrt((distance * distance) - (_local1 * _local1));
return(_local4);
}
static function decelerate(distance, thisframe, frames) {
if (thisframe > frames) {
thisframe = frames;
}
var _local1 = (thisframe / frames) * 90;
_local1 = _local1 * (Math.PI/180);
var _local4 = Math.sin(_local1) * distance;
return(_local4);
}
static function accelerate(distance, thisframe, frames) {
if (thisframe > frames) {
thisframe = frames;
}
var _local1 = (thisframe / frames) * 90;
_local1 = _local1 * (Math.PI/180);
var _local4 = (1 - Math.cos(_local1)) * distance;
return(_local4);
}
static function bounceOnce(distance, thisframe, frames) {
if (thisframe > frames) {
thisframe = frames;
}
var _local1 = Math.sin((thisframe * Math.PI) / frames);
_local1 = Math.sqrt(Math.pow(_local1, 2));
_local1 = _local1 * distance;
return(_local1);
}
static function dropAndBounce(distance, thisframe, frames, bounces, kinetic) {
var _local3 = new Array();
var _local2 = 0;
if (kinetic == undefined) {
kinetic = 1.2;
}
if (bounces == undefined) {
bounces = 5;
}
if (thisframe > frames) {
thisframe = frames;
}
_local3[_local2] = Math.pow(kinetic, bounces) / 2;
_local2++;
var _local1 = bounces - 1;
while (_local1 > 0) {
_local3[_local2] = Math.pow(kinetic, _local1);
_local2++;
_local1--;
}
var _local7 = 0;
_local1 = 0;
while (_local1 < bounces) {
_local7 = _local7 + _local3[_local1];
_local1++;
}
_local1 = 0;
while (_local1 < bounces) {
_local3[_local1] = (_local3[_local1] / _local7) * frames;
_local1++;
}
_local2 = 0;
var _local4 = 0;
var _local8 = thisframe;
var _local6 = parseInt(_local3[_local2]);
do {
_local6 = _local6 - 1;
_local8--;
if (_local2 == 0) {
_local4 = _local4 + 0.5;
} else {
_local4++;
}
if (_local6 <= 0) {
_local2++;
_local6 = parseInt(_local3[_local2]);
_local4 = 0;
}
} while (_local8 >= 0);
if (_local2 > 0) {
if (_local2 > bounces) {
distance = 0;
} else {
distance = distance / Math.pow(kinetic, _local2 + _local2);
}
}
if (_local2 == 0) {
_local4 = _local4 + (_local3[_local2] / 2);
if (_local3[_local2] == undefined) {
_local3[_local2] = 0;
}
var _local11 = bounceOnce(distance, _local4, _local3[_local2]);
} else {
if (_local3[_local2] == undefined) {
_local3[_local2] = 0;
}
var _local11 = bounceOnce(distance, _local4, _local3[_local2]);
}
if (isNaN(_local11)) {
var _local11 = 0;
}
return(_local11);
}
}
Symbol 1066 MovieClip [__Packages.CollisionDetection2] Frame 0
class CollisionDetection2
{
function CollisionDetection2 () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var _local7 = p_clip1.getBounds(_root);
var _local6 = p_clip2.getBounds(_root);
if (((_local7.xMax < _local6.xMin) || (_local6.xMax < _local7.xMin)) || ((_local7.yMax < _local6.yMin) || (_local6.yMax < _local7.yMin))) {
return(null);
}
var _local4 = {};
_local4.xMin = Math.max(_local7.xMin, _local6.xMin);
_local4.xMax = Math.min(_local7.xMax, _local6.xMax);
_local4.yMin = Math.max(_local7.yMin, _local6.yMin);
_local4.yMax = Math.min(_local7.yMax, _local6.yMax);
var _local9 = new flash.display.BitmapData(_local4.xMax - _local4.xMin, _local4.yMax - _local4.yMin, false);
var _local5 = p_clip1.transform.matrix;
var _local2 = p_clip1._parent;
while (_local2 != _root) {
_local5.concat(_local2.transform.matrix);
_local2 = _local2._parent;
}
_local5.tx = _local5.tx - _local4.xMin;
_local5.ty = _local5.ty - _local4.yMin;
_local9.draw(p_clip1, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local5 = p_clip2.transform.matrix;
var _local3 = p_clip2._parent;
while (_local3 != _root) {
_local5.concat(_local3.transform.matrix);
_local3 = _local3._parent;
}
_local5.tx = _local5.tx - _local4.xMin;
_local5.ty = _local5.ty - _local4.yMin;
_local9.draw(p_clip2, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local8 = _local9.getColorBoundsRect(4294967295, 4278255615);
_local9.dispose();
if (_local8.width == 0) {
return(null);
}
_local8.x = _local8.x + _local4.xMin;
_local8.y = _local8.y + _local4.yMin;
return(_local8);
}
}
Symbol 1067 MovieClip [__Packages.branditz] Frame 0
class branditz
{
var pPreLoadCount, pVersion, pGameName, pGameType, pGameWidth, pGameHeight, pStartFunction, pLoadedList, pLoaded, pLoadWhenCached, pCacheKiller, pBreak, pBreakID, pDomain, pRequestAddress, pElements, pPreLoadingHolder, pPreloadComments, pSkinPath;
function branditz (thisGameName, thisGameType, thisGameWidth, thisGameHeight, thisStartFunction) {
function itemHandler1(obj, item) {
getURL (("http://www.fizzy.com/games/" + _root.Stattooz.pGameName) + "/play");
}
trace("INSTANCE CREATED - BRANDITZ");
_root.mySandbox.text = "Sandbox = " + System.security.sandboxType;
pPreLoadCount = 0;
pVersion = 2;
pGameName = thisGameName;
pGameType = thisGameType;
pGameWidth = thisGameWidth;
pGameHeight = thisGameHeight;
pStartFunction = thisStartFunction;
System.security.allowDomain("*");
pLoadedList = [];
pLoaded = false;
pLoadWhenCached = false;
pCacheKiller = "";
pBreak = false;
pBreakID = setInterval(this, "serverTimer", 20000);
pDomain = getDomain(_root._url);
createLoadComments();
if (Number(thisGameType) == 1) {
pRequestAddress = "http://skins.branditz.com";
} else if (pDomain != "default") {
pRequestAddress = pDomain + "branditz/";
} else {
pRequestAddress = "http://skins.branditz.com";
}
if (_root._url.slice(0, 4) != "file") {
pCacheKiller = "?cache=" + Math.random();
}
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (Number(thisGameType) == 1) {
var _local4 = new ContextMenuItem("Play the full version of this game!", itemHandler1);
_local3.customItems.push(_local4);
}
_root.menu = _local3;
getRemotePaths();
}
function getRemotePaths() {
trace("GET REMOTE PATHS");
var _local3 = new LoadVars();
var _local5 = new LoadVars();
_local5.pController = this;
var _local6 = pRequestAddress;
_root.myFeedback.text = _root.myFeedback.text + (("OPENING: " + pRequestAddress) + newline);
_local5.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("RETURN PROPS: ");
for (var _local3 in this) {
trace((("REURN PROPERTY " + _local3) + " = ") + this[_local3]);
}
this.pController.pSkinPath = this.skinurl;
this.pController.pElements = this.elements.split(",");
this.pController.pHosted = Boolean(Number(this.hosted));
this.pController.pBuy = Boolean(Number(this.buy));
_root.myFeedback.text = _root.myFeedback.text + ((" LOADED " + this) + newline);
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
if (((this.pController.pSkinPath == undefined) || (this.pController.pSkinPath == "noskin")) || (this.pController.pElements.length < 1)) {
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
} else {
this.pController.preloadElements();
}
} else {
_root.myFeedback.text = _root.myFeedback.text + " ERROR - \r";
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
_root.pStattooz.reportEvent("patherror");
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
};
trace("REQUEST LOCATION = " + pRequestAddress);
_local3.version = pVersion;
_local3.url = _root._url;
_local3.gamename = pGameName;
_local3.gametype = pGameType;
trace("PROPS SENT :");
for (var _local4 in _local3) {
trace((("DATA TO SEND " + _local4) + " = ") + _local3[_local4]);
}
_local3.sendAndLoad(_local6, _local5, "POST");
}
function preloadElements() {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = (pPreLoadingHolder = _root.createEmptyMovieClip("myBrandingLoader", _root.getNextHighestDepth()));
_local3._xscale = 1;
_local3._yscale = 1;
_local3._x = -1000;
_local3._y = -1000;
_local3._alpha = 0;
preloadNext(pPreLoadingHolder);
} else {
trace((("I AM NOT PRELOADING! - Elements = " + pElements.length) + ". pBreak = ") + pBreak);
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
}
function preloadElement(thisElement, thisContainer) {
trace("LOAD ELEMENT - " + thisElement);
_root.skin_loading_text.text = pPreloadComments[pPreLoadCount];
var _local5 = thisContainer.createEmptyMovieClip(thisElement + "Holder", thisContainer.getNextHighestDepth());
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.myContainer = thisContainer;
_local3.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
_root.myLoadingText.text = "LOADING:" + thisElement;
};
_local3.onLoadInit = function (thisClip) {
trace("BRANDING ELEMENT PRELOADED: " + thisClip);
this.myController.addToLoaded(this.myElement);
this.myController.preloadNext(this.myContainer);
};
_local3.onLoadError = function (thisClip) {
trace("PRELOAD ERROR - " + this.myElement);
this.myController.preloadNext(this.myContainer);
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
var _local6 = (pSkinPath + thisElement) + ".swf";
_local4.loadClip(_local6, _local5);
pPreLoadCount++;
}
function preloadNext(thisContainer) {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = pElements.splice(0, 1)[0];
preloadElement(_local3, pPreLoadingHolder);
} else {
_root.skin_loading_text.removeTextField();
pPreLoadingHolder.removeMovieClip();
pLoaded = true;
_root.gotoAndStop("preloader");
}
}
function reportHttpStatus(thisStatusNumber) {
var _local1;
if (thisStatusNumber < 100) {
_local1 = "flashError";
} else if (thisStatusNumber < 200) {
_local1 = "informational";
} else if (thisStatusNumber < 300) {
_local1 = "successful";
} else if (thisStatusNumber < 400) {
_local1 = "redirection";
} else if (thisStatusNumber < 500) {
_local1 = "clientError";
} else if (thisStatusNumber < 600) {
_local1 = "serverError";
} else if (thisStatusNumber == undefined) {
_local1 = "File Not found";
}
return(_local1);
}
function addToLoaded(thisElement) {
pLoadedList.push(thisElement);
}
function serverTimer() {
trace("TIMER FINISHED");
if (!pLoaded) {
trace("NOT LOADED");
pBreak = true;
}
clearInterval(pBreak);
}
function createLoadComments() {
var _local5 = 25;
var _local4 = _root.createTextField("skin_loading_text", _root.getNextHighestDepth(), 0, (pGameHeight / 2) - (_local5 / 2), pGameWidth, _local5);
_local4.selectable = false;
var _local3 = new TextFormat();
_local3.font = "Arial";
_local3.size = 18;
_local3.color = 16737843 /* 0xFF6633 */;
_local3.align = "center";
_local4.setNewTextFormat(_local3);
_local4.text = "preparing fizzy game...";
pPreloadComments = new Array();
pPreloadComments.push("Harnessing the gas");
pPreloadComments.push("Inflating the bubbles");
pPreloadComments.push("Adding the juice");
pPreloadComments.push("Starting the mixer");
pPreloadComments.push("Shaking, not stirring");
pPreloadComments.push("Getting ready to serve...");
}
function activateElement(thisElement, thisHolder, thisForce) {
if (isInArray(thisElement, pLoadedList) || (thisForce)) {
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.onLoadInit = function (thisClip) {
_root.myFeedback.text = "Load success - " + this.myElement;
thisClip.myX = this.X;
thisClip.myY = this.Y;
thisClip.gotoAndStop("show");
};
var _local5 = new MovieClipLoader();
_local5.addListener(_local3);
trace((((thisElement + " PATH = ") + pSkinPath) + thisElement) + ".swf");
_local5.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, thisHolder);
}
}
function isInArray(thisItem, thisArray) {
var _local2 = false;
for (var _local3 in thisArray) {
if (thisArray[_local3] == thisItem) {
_local2 = true;
break;
}
}
return(_local2);
}
function getDomain(thisUrl) {
var _local2;
var _local3 = thisUrl.split(":")[0];
switch (_local3) {
case "http" :
case "https" :
var _local1 = thisUrl.split("/");
_local2 = ((((_local1[0] + "/") + _local1[1]) + "/") + _local1[2]) + "/";
break;
default :
_local2 = "default";
}
return(_local2);
}
}
Symbol 1068 MovieClip [__Packages.expressinstall] Frame 0
class expressinstall
{
var needsUpdate, updater, hold;
function expressinstall () {
needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
}
function init() {
if (needsUpdate) {
loadUpdater();
return(true);
}
return(false);
}
function loadUpdater() {
System.security.allowDomain("fpdownload.macromedia.com");
updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
updater.installStatus = _self.onInstallStatus;
hold = updater.createEmptyMovieClip("hold", 1);
updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3);
}
function initUpdater() {
hold.redirectURL = _root.MMredirectURL;
hold.MMplayerType = _root.MMplayerType;
hold.MMdoctitle = _root.MMdoctitle;
hold.startUpdate();
}
function onInstallStatus(msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
getURL ("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.')");
}
}
}
Symbol 1069 MovieClip [__Packages.stattooz] Frame 0
class stattooz
{
var pGameName, pDeveloper, pGenre, pGameType, pGameSkin, pThreshold, pDomain, pAllowedDomains, pPlayer, pGameUrl, pStatsPath;
function stattooz (thisGameName, thisDeveloper, thisGenre, thisGameType, thisGameSkin, thisPlayer, thisThreshold, thisDomain) {
trace("INSTANCE CREATED - STATTOOZ");
pGameName = thisGameName;
pDeveloper = thisDeveloper;
pGenre = thisGenre;
pGameType = thisGameType;
pGameSkin = thisGameSkin;
pThreshold = thisThreshold;
pDomain = thisDomain;
pAllowedDomains = getAllowedDomains();
if (pGameSkin == undefined) {
pGameSkin = "noskin";
}
pPlayer = thisPlayer;
if ((thisPlayer != "activate") && (thisPlayer != "nopirate")) {
pPlayer = System.capabilities.playerType;
}
pGameUrl = _root._url;
pStatsPath = "http://log.stattooz.com";
}
function getAllowedDomains() {
var _local1 = new Array();
_local1.push("http://developer.fizzy.jonathan.3rdsense.local/");
_local1.push("http://developer.fizzy.steve.3rdsense.local/");
_local1.push("http://developer.fizzy.3rdsense.local/");
_local1.push("http://developer.fizzy.deej.3rdsense.local/");
_local1.push("http://developers.fizzy.com/");
_local1.push("http://www.fizzy.com/");
_local1.push("http://www.3rdsense.com/");
_local1.push("http://admin.3rdsense.com/");
_local1.push("http://fizzy.deej.3rdsense.local/");
_local1.push("http://fizzy.steve.3rdsense.local/");
_local1.push("http://fizzy.jonathan.3rdsense.local/");
_local1.push("http://fizzy.3rdsense.local/");
_local1.push("http://fizzy.gamedev.3rdsense.local/");
_local1.push("http://localhost/");
return(_local1);
}
function isDomainAllowed() {
trace("MY DOMAIN = " + _url);
var _local3 = false;
for (var _local4 in pAllowedDomains) {
var _local2 = pAllowedDomains[_local4];
if (_url.indexOf(_local2, 0) == 0) {
_local3 = true;
}
}
trace("DOMAIN ALLOWED = " + _local3);
return(_local3);
}
function reportEvent(thisEventName) {
if (pPlayer != "External") {
var _local2 = getEventId(thisEventName);
sendStat(_local2);
}
}
function sendStat(thisEventID) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pEvent = thisEventID;
_local4.pController = this;
_local4.onLoad = function (success) {
var _local3;
if (success) {
if (this.done == "true") {
_local3 = (("SUCCESS - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
}
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Log file not located: ") + this.pStatsPath;
}
_root.myFeedback.text = _root.myFeedback.text + (_local3 + newline);
};
_local3.skin = pGameSkin;
_local3.gamename = pGameName;
_local3.genre = pGenre;
_local3.developer = pDeveloper;
_local3.url = pGameUrl;
_local3.event = thisEventID;
_local3.type = pGameType;
_local3.sendAndLoad(pStatsPath, _local4, "POST");
}
function getEventId(thisEventName) {
var _local1;
if (!isNaN(Number(thisEventName))) {
_local1 = thisEventName;
} else {
switch (thisEventName) {
case "load" :
_local1 = 1;
break;
case "play" :
_local1 = 2;
break;
case "endpass" :
_local1 = 3;
break;
case "endfail" :
_local1 = 4;
break;
case "submit" :
_local1 = 5;
break;
case "moregames" :
_local1 = 6;
break;
case "creditsview" :
_local1 = 7;
break;
case "creditsthrough" :
_local1 = 8;
break;
case "pirate" :
_local1 = 9;
break;
case "patherror" :
_local1 = 10;
break;
case "skinerror" :
_local1 = 11;
break;
default :
_local1 = 0;
}
}
return(_local1);
}
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
_root.Branditz.activateElement("pirate", this);
stop();
Instance of Symbol 100 MovieClip in Symbol 110 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 101 MovieClip in Symbol 110 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Symbol 117 MovieClip Frame 1
i = random(_parent._width);
this._x = i;
Symbol 117 MovieClip Frame 2
j = random(20);
if (j == 10) {
play();
} else {
gotoAndPlay (1);
}
Symbol 117 MovieClip Frame 321
removeMovieClip(this);
stop();
Symbol 118 MovieClip Frame 1
this.onEnterFrame = function () {
i = random(4);
if (j == undefined) {
j = 0;
} else {
j++;
}
if (i == 1) {
container = bubble.duplicateMovieClip(bubble + j, this.getNextHighestDepth());
container._x = container._x + random(640);
}
};
Symbol 123 MovieClip Frame 1
if (_root.wateroverlay) {
play();
} else {
stop();
}
Symbol 123 MovieClip Frame 41
if (_root.wateroverlay) {
gotoAndPlay ("wateroverlay");
} else {
gotoAndStop (1);
}
Symbol 128 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
_root.Branditz.activateElement("moregames", this);
if (_root.Branditz.pBuy) {
this.myButtonText.text = "BUY THIS GAME";
}
Instance of Symbol 128 MovieClip in Symbol 130 MovieClip Frame 1
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (!this.clicked) {
if (_root.Branditz.pBuy) {
_root.doMoreGames();
} else {
_root.doBuyGame();
}
this.clicked = true;
}
}
on (rollOut) {
gotoAndPlay (2);
}
Symbol 133 MovieClip Frame 141
stop();
Symbol 140 MovieClip Frame 2
_root.play();
Symbol 140 MovieClip Frame 350
gotoAndPlay (250);
Symbol 140 MovieClip Frame 351
this.onEnterFrame = function () {
_parent.manta._alpha = _parent.manta._alpha - 1;
_parent.turtle._alpha = _parent.turtle._alpha - 1;
_parent.seahorse._alpha = _parent.seahorse._alpha - 1;
_parent.shark._alpha = _parent.shark._alpha - 1;
};
Symbol 140 MovieClip Frame 451
this.onEnterFrame = null;
_parent.play();
Symbol 150 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 150 MovieClip Frame 41
gotoAndPlay (2);
Symbol 150 MovieClip Frame 60
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 153 MovieClip Frame 1
this._rotation = (_parent._parent._parent.food._rotation - _parent._parent._parent.temprot) * -1;
Symbol 153 MovieClip Frame 2
this._rotation = (_parent._parent._parent.food._rotation - _parent._parent._parent.temprot) * -1;
Symbol 158 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 158 MovieClip Frame 41
gotoAndPlay (2);
Symbol 158 MovieClip Frame 60
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 20
stop();
Symbol 166 MovieClip Frame 24
gotoAndPlay (20);
Symbol 167 MovieClip Frame 1
if (!counter) {
counter = 1;
totalframes = random(20) + 20;
newwidth = random(94);
oldwidth = 94;
}
this.onEnterFrame = function () {
if (counter == totalframes) {
counter = 1;
oldwidth = newwidth;
newwidth = random(94);
totalframes = random(20) + 20;
}
thelight._width = Trig.bounceOnce(newwidth, counter, totalframes);
counter++;
};
Symbol 168 MovieClip Frame 24
gotoAndPlay (20);
Symbol 171 Button
on (release) {
currentlevel = 1;
squidsizeoverall = 1;
titlemovie.gotoAndPlay("fadeaway");
action = "startgame";
_root.Stattooz.reportEvent("play");
nextFrame();
}
on (rollOver) {
turtle.play();
turtle.turtle.play();
}
on (rollOut) {
turtle.stop();
turtle.turtle.stop();
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 20
stop();
Symbol 175 Button
on (release) {
titlemovie.gotoAndPlay("fadeaway");
action = "startgame";
_root.Stattooz.reportEvent("play");
nextFrame();
}
on (rollOver) {
manta.play();
manta.manta.play();
}
on (rollOut) {
manta.stop();
manta.manta.stop();
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 20
stop();
Symbol 179 Button
on (release) {
titlemovie.gotoAndPlay("fadeaway");
action = "howtoplay";
nextFrame();
}
on (rollOver) {
shark.play();
shark.shark.play();
}
on (rollOut) {
shark.stop();
shark.shark.stop();
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 20
stop();
Symbol 183 Button
on (release) {
titlemovie.gotoAndPlay("fadeaway");
action = "aquarium";
nextFrame();
}
on (rollOver) {
seahorse.play();
seahorse.seahorse.play();
}
on (rollOut) {
seahorse.stop();
seahorse.seahorse.stop();
}
Symbol 203 MovieClip Frame 1
Symbol 203 MovieClip Frame 80
gotoAndPlay (2);
Symbol 203 MovieClip Frame 101
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 231 Button
on (release) {
gotoAndPlay ("exithowtoplay");
}
Symbol 235 MovieClip Frame 31
_parent.play();
stop();
Symbol 238 MovieClip Frame 10
stop();
Symbol 239 Button
on (rollOver) {
gotoAndStop ("healthtracker");
}
Symbol 240 Button
on (rollOver) {
gotoAndStop ("maptimer");
}
Symbol 241 Button
on (rollOver) {
gotoAndStop ("poweruptimer");
}
Symbol 242 Button
on (rollOver) {
gotoAndStop ("inkicon");
}
Symbol 243 Button
on (rollOver) {
gotoAndStop ("scoretracker");
}
Symbol 244 Button
on (rollOver) {
gotoAndStop ("evolution");
}
Symbol 245 Button
on (rollOver) {
gotoAndStop ("powerupicon");
}
Symbol 246 Button
on (rollOver) {
gotoAndStop ("yourcharacter");
}
Symbol 247 Button
on (rollOver) {
gotoAndStop ("frenemies");
}
Symbol 248 Button
on (rollOver) {
gotoAndStop ("exit");
}
Symbol 319 MovieClip Frame 31
stopAllSounds();
_parent.gotoAndPlay("mainmenu");
stop();
Symbol 330 MovieClip Frame 2
i = random(300);
if (i == 50) {
gotoAndPlay ("headtiltup");
}
if (i == 60) {
gotoAndPlay ("headtiltdown");
}
gotoAndPlay (1);
Symbol 330 MovieClip Frame 100
gotoAndPlay (1);
Symbol 334 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 160
gotoAndPlay (1);
Symbol 335 MovieClip Frame 1
this.onEnterFrame = function () {
if ((!counter) || (counter == 80)) {
counter = 1;
i = random(5) - 2.5;
}
this._rotation = Trig.bounceOnce(i, counter, 80);
counter++;
};
Symbol 336 MovieClip Frame 31
_parent.play();
stop();
Symbol 340 Button
on (press) {
gotoAndStop ("angelfish");
}
Symbol 341 Button
on (press) {
gotoAndStop ("carp");
}
Symbol 342 Button
on (press) {
gotoAndStop ("clownfish");
}
Symbol 343 Button
on (press) {
gotoAndStop ("guppy");
}
Symbol 344 Button
on (press) {
gotoAndStop ("manta");
}
Symbol 345 Button
on (press) {
gotoAndStop ("marlin");
}
Symbol 346 Button
on (press) {
gotoAndStop ("pufferfish");
}
Symbol 347 Button
on (press) {
gotoAndStop ("seahorse");
}
Symbol 348 Button
on (press) {
gotoAndStop ("shark");
}
Symbol 349 Button
on (press) {
gotoAndStop ("snapper");
}
Symbol 350 Button
on (press) {
gotoAndStop ("turtle");
}
Symbol 351 Button
on (press) {
gotoAndStop ("spermwhale");
}
Symbol 352 Button
on (press) {
gotoAndStop ("orca");
}
Symbol 366 Button
on (release) {
gotoAndPlay ("exitaquarium");
}
Symbol 376 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 376 MovieClip Frame 40
gotoAndPlay (2);
Symbol 376 MovieClip Frame 60
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 377 MovieClip Frame 193
stop();
stop();
stop();
Symbol 389 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 389 MovieClip Frame 21
gotoAndPlay (2);
Symbol 389 MovieClip Frame 25
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 400 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 400 MovieClip Frame 21
gotoAndPlay (2);
Symbol 400 MovieClip Frame 23
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 401 MovieClip Frame 193
stop();
stop();
stop();
stop();
Symbol 426 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 426 MovieClip Frame 21
gotoAndPlay (2);
Symbol 426 MovieClip Frame 25
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 427 MovieClip Frame 192
stop();
stop();
stop();
stop();
stop();
stop();
Symbol 428 MovieClip Frame 192
stop();
stop();
stop();
stop();
stop();
stop();
stop();
Symbol 430 MovieClip Frame 395
stop();
Symbol 437 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 437 MovieClip Frame 41
gotoAndPlay (2);
Symbol 437 MovieClip Frame 60
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 439 MovieClip Frame 198
stop();
Symbol 441 MovieClip Frame 280
stop();
Symbol 453 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 453 MovieClip Frame 21
gotoAndPlay (2);
Symbol 453 MovieClip Frame 30
stop();
Symbol 453 MovieClip Frame 40
gotoAndPlay (2);
Symbol 454 MovieClip Frame 103
puffer.gotoAndPlay("panic");
Symbol 454 MovieClip Frame 189
puffer.gotoAndPlay("panic3");
Symbol 454 MovieClip Frame 260
stop();
Symbol 457 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 457 MovieClip Frame 21
gotoAndPlay (2);
Symbol 457 MovieClip Frame 30
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 458 MovieClip Frame 193
stop();
stop();
stop();
stop();
stop();
Symbol 460 MovieClip Frame 199
stop();
Symbol 472 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 472 MovieClip Frame 21
gotoAndPlay (2);
Symbol 472 MovieClip Frame 25
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 473 MovieClip Frame 193
stop();
stop();
stop();
stop();
stop();
stop();
Symbol 475 MovieClip Frame 304
stop();
Symbol 485 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 490 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 495 MovieClip Frame 1
Symbol 495 MovieClip Frame 80
gotoAndPlay (2);
Symbol 495 MovieClip Frame 101
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic");
} else {
gotoAndPlay (2);
}
Symbol 496 MovieClip Frame 470
stop();
Symbol 508 MovieClip Frame 1
this._y = random(2000) - 1300;
this.onEnterFrame = function () {
this._x = this._x - 4;
if (this._x < -2000) {
this._x = 2000;
this._y = random(2000) - 1300;
this._alpha = random(15) + 10;
}
};
Symbol 511 MovieClip Frame 21
removeMovieClip(this);
stop();
Symbol 577 MovieClip Frame 36
stop();
Symbol 579 MovieClip Frame 1
inksize = (50 * (_root.squidsizeoverall / 6)) * 2;
if (inksize > 100) {
inksize = 100;
}
this._width = inksize;
this._height = inksize;
Symbol 579 MovieClip Frame 2
if (_root.shootink && (_root.inklevel > _root.inkloss)) {
gotoAndPlay ("startInk");
} else {
gotoAndPlay (1);
}
Symbol 579 MovieClip Frame 3
this._x = (_root.waterdepth._x * -1) + 320;
this._y = (_root.waterdepth._y * -1) + 240;
this._rotation = _root.squid._rotation;
if (_root.inklevel <= _root.inkloss) {
_root.inklevel = 0;
} else {
_root.inklevel = _root.inklevel - _root.inkloss;
}
Symbol 579 MovieClip Frame 38
gotoAndPlay (1);
Symbol 584 MovieClip Frame 1
i = 0;
j = random(_root.squidsizeoverall * 50) - ((_root.squidsizeoverall * 50) * 0.5);
k = random(_root.squidsizeoverall * 25);
this._alpha = random(100);
this.onEnterFrame = function () {
this._y = -Trig.bounceOnce(k, i, 20);
this._x = (j / 20) * i;
i++;
if (i == 20) {
this._alpha = 0;
removeMovieClip(this);
this.onEnterFrame = null;
}
};
Symbol 586 MovieClip Frame 1
if (!splashdown) {
gotoAndStop (22);
}
Symbol 586 MovieClip Frame 3
i = 1;
while (i < 50) {
container = waterparticle.duplicateMovieClip("particle" + i, this.getNextHighestDepth());
i++;
}
Symbol 586 MovieClip Frame 22
splashdown = true;
stop();
Symbol 587 MovieClip Frame 1
i = 0;
j = random(_root.squidsizeoverall * 50) - ((_root.squidsizeoverall * 50) * 0.5);
k = random(_root.squidsizeoverall * 5);
this._alpha = random(25);
this.onEnterFrame = function () {
this._y = -Trig.bounceOnce(k, i, 20);
this._x = (j / 20) * i;
i++;
if (i == 20) {
this._alpha = 0;
removeMovieClip(this);
this.onEnterFrame = null;
}
};
Symbol 589 MovieClip Frame 1
if (!splashdown) {
gotoAndStop (22);
}
Symbol 589 MovieClip Frame 3
i = 1;
while (i < 50) {
container = waterparticle.duplicateMovieClip("particle" + i, this.getNextHighestDepth());
i++;
}
Symbol 589 MovieClip Frame 22
splashdown = true;
stop();
Symbol 590 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = _root.leftX;
this._y = _root.topY;
WaterDynamicMask._x = 0;
WaterDynamicMask._y = 0;
WaterDynamicMask._width = _root.rightX - _root.leftX;
WaterDynamicMask._height = _root.bottomY - _root.topY;
i = random(2);
if ((i == 1) && (_root.bubblewater)) {
duplicateMovieClip (bubble, bubble + j, this.getNextHighestDepth());
if (j == undefined) {
j = 0;
} else {
j++;
}
}
if ((k == undefined) || (k == 0)) {
k = 5;
}
if ((k == 5) && (_root.mousebuttondown == true)) {
container = tester.duplicateMovieClip("bubbletrail", this.getNextHighestDepth());
container._x = (_root.waterdepth._x * -1) + 320;
container._y = (_root.waterdepth._y * -1) + 240;
container._rotation = _root.squid._rotation;
if (_root.speedcoefficient) {
container._alpha = _root.speedcoefficient * 15;
}
k--;
} else {
k--;
}
surface._x = (this._x - 320) * -1;
surface2._x = (this._x - 320) * -1;
sky._x = (this._x - 320) * -1;
if (this._y < 240) {
sky._y = surface._height;
surface2._height = 0;
watergradientbg._alpha = 100;
sky.gotoAndStop(2);
if (abovewater) {
abovewater = false;
splashanimation2.play();
splashanimation2._x = (this._x - 320) * -1;
}
} else {
sky._y = (this._y - 240) * -1;
surface2._height = (this._y - 240) * 1.5;
sky.gotoAndStop(1);
if (!abovewater) {
abovewater = true;
splashanimation.play();
splashanimation._x = (this._x - 320) * -1;
}
watergradientbg._alpha = ((400 - surface2._height) / 400) * 100;
}
if (this._y > 0) {
surface._height = (140 * (240 - this._y)) / 240;
} else {
surface._height = 140;
}
};
stop();
Symbol 593 MovieClip Frame 1
this.onEnterFrame = function () {
tail._rotation = _root.rot1 - _root.rot2;
};
Symbol 594 MovieClip Frame 1
this.onEnterFrame = function () {
tail._rotation = _root.rot2 - _root.rot3;
};
Symbol 595 MovieClip Frame 1
this.onEnterFrame = function () {
tail._rotation = _root.rot3 - _root.rot4;
};
Symbol 600 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 601 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 606 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
if (_parent._parent.mousebuttondown == true) {
play();
} else {
gotoAndPlay (1);
}
Symbol 607 MovieClip Frame 3
_root.speedcoefficient = (_root.initialspeed * _root.squidsizeoverall) - ((_root.squidsizeoverall * _root.squidsizeoverall) / 12);
i = _root.thrust;
Symbol 607 MovieClip Frame 10
_root.speedcoefficient = _root.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 11
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 12
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 13
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 14
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 15
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 16
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 17
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 18
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 19
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 20
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 25
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 29
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 33
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 37
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 41
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 45
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 49
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 52
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 56
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 58
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 607 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 607 MovieClip Frame 62
gotoAndPlay ("dead");
Symbol 610 MovieClip Frame 16
stop();
Symbol 611 MovieClip Frame 2
this.onEnterFrame = null;
counter = 100;
stop();
Symbol 611 MovieClip Frame 3
this.onEnterFrame = function () {
if (_root.squidsizeoverall < 2) {
_root.stage1flag = false;
gotoAndPlay (1);
}
this._alpha = counter;
counter--;
};
Symbol 612 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 612 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 613 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 613 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 614 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 614 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 615 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 615 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 616 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 616 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 617 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 617 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 618 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 618 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 619 MovieClip Frame 2
i = random(3);
if ((i == 1) && (_parent._parent.mousebuttondown == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 619 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 620 MovieClip Frame 2
if (_parent._parent.mousebuttondown == true) {
play();
} else {
gotoAndPlay (1);
}
Symbol 620 MovieClip Frame 3
_parent._parent.speedcoefficient = _root.initialspeed * _root.squidsizeoverall;
i = _parent._parent.thrust;
Symbol 620 MovieClip Frame 10
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 11
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 12
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 13
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 14
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 15
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 16
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 17
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 18
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 19
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 20
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient + (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 25
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 29
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 33
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 37
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 41
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 45
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 49
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 52
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 56
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 58
_parent._parent.speedcoefficient = _parent._parent.speedcoefficient - (i * (_root.initialspeed * _root.squidsizeoverall));
Symbol 620 MovieClip Frame 60
if (_parent._parent.mousebuttondown == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 620 MovieClip Frame 62
gotoAndPlay ("dead");
Symbol 621 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.dead) {
head.gotoAndStop("dead");
}
};
stop();
Symbol 625 MovieClip Frame 1
this.onEnterFrame = function () {
_root.rightX = this._x + _parent._x;
_root.bottomY = this._y + _parent._y;
};
Symbol 626 MovieClip Frame 1
this.onEnterFrame = function () {
_root.leftX = this._x + _parent._x;
_root.topY = this._y + _parent._y;
};
Symbol 633 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 0, 0)) {
if (lifetime == 0) {
gotoAndStop (15);
} else if (lifetime != undefined) {
lifetime--;
if (lifetime < 100) {
this._alpha = lifetime;
}
}
if ((j == undefined) || (j <= 0)) {
j = 40;
}
if (j == 40) {
temprot = random(360) - 180;
j--;
} else {
j--;
}
swimdirectionX = Math.sin(temprot * (Math.PI/180)) * fishspeed;
swimdirectionY = Math.cos(temprot * (Math.PI/180)) * fishspeed;
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
if (eatarea.hitTest(_root.squid)) {
gotoAndPlay ("eaten");
}
}
Symbol 634 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 0, 0)) {
if (lifetime == 0) {
gotoAndStop (15);
} else if (lifetime != undefined) {
lifetime--;
if (lifetime < 100) {
this._alpha = lifetime;
}
}
if ((j == undefined) || (j <= 0)) {
j = 40;
}
if (j == 40) {
temprot = random(360) - 180;
j--;
} else {
j--;
}
swimdirectionX = Math.sin(temprot * (Math.PI/180)) * fishspeed;
swimdirectionY = Math.cos(temprot * (Math.PI/180)) * fishspeed;
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
if (eatarea.hitTest(_root.squid)) {
gotoAndPlay ("eaten");
}
}
gotoAndPlay (1);
Symbol 634 MovieClip Frame 4
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 634 MovieClip Frame 15
removeMovieClip(this);
stop();
Symbol 642 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 1
function onScreen(stageWidth, stageHeight) {
if ((((((this._x + _parent._x) + _root.mapp._x) > 0) && (((this._x + _parent._x) + _root.mapp._x) < stageWidth)) && (((this._y + _parent._y) + _root.mapp._y) > 0)) && (((this._y + _parent._y) + _root.mapp._y) < stageHeight)) {
return(true);
}
return(null);
}
function BombHang() {
if (onScreen(640, 480)) {
if (this.hitTest(_root.squid)) {
if (!dropbomb) {
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
dropbomb = true;
vine._alpha = 0;
this._rotation = 0;
g = 0;
pod.play();
}
}
}
function BombDrop() {
if (dropbomb) {
this._y = this._y + 2;
if (CollisionDetection2.checkForCollision(pod, _root.mapp.mapp)) {
i = 0;
while (i < 20) {
_parent.spawncreature("plankton", _parent.h, this._x, this._y + 20);
_parent.container.lifetime = 400;
_parent.h++;
i++;
}
var _local4 = new Sound();
_local4.attachSound("PodBreakOpen");
_local4.start();
_parent.plankton1.gotoAndStop(15);
gotoAndStop (3);
}
}
}
BombHang();
BombDrop();
Symbol 643 MovieClip Frame 2
function onScreen(stageWidth, stageHeight) {
if ((((((this._x + _parent._x) + _root.mapp._x) > 0) && (((this._x + _parent._x) + _root.mapp._x) < stageWidth)) && (((this._y + _parent._y) + _root.mapp._y) > 0)) && (((this._y + _parent._y) + _root.mapp._y) < stageHeight)) {
return(true);
}
return(null);
}
function BombHang() {
if (onScreen(640, 480)) {
if (this.hitTest(_root.squid)) {
if (!dropbomb) {
var _local3 = new Sound();
_local3.attachSound("PanicSound");
_local3.start();
}
dropbomb = true;
vine._alpha = 0;
this._rotation = 0;
g = 0;
pod.play();
}
}
}
function BombDrop() {
if (dropbomb) {
this._y = this._y + 2;
if (CollisionDetection2.checkForCollision(pod, _root.mapp.mapp)) {
i = 0;
while (i < 20) {
_parent.spawncreature("plankton", _parent.h, this._x, this._y + 20);
_parent.container.lifetime = 400;
_parent.h++;
i++;
}
var _local4 = new Sound();
_local4.attachSound("PodBreakOpen");
_local4.start();
_parent.plankton1.gotoAndStop(15);
gotoAndStop (3);
}
}
}
BombHang();
BombDrop();
gotoAndPlay (1);
Symbol 643 MovieClip Frame 3
removeMovieClip(this);
stop();
Symbol 648 MovieClip Frame 1
i = random(40);
this._x = this._x - (i - 20);
Symbol 648 MovieClip Frame 2
j = random(10);
if (j == 1) {
play();
} else {
gotoAndPlay (1);
}
Symbol 648 MovieClip Frame 321
removeMovieClip(this);
stop();
Symbol 658 MovieClip Frame 44
stop();
Symbol 659 MovieClip Frame 1
if (hitArea.hitTest(_root.squid)) {
gotoAndPlay (3);
}
i = random(4);
if (i == 1) {
duplicateMovieClip (bubble, bubble + j, this.getNextHighestDepth());
if (j == undefined) {
j = 0;
} else {
j++;
}
}
tempcounter = random(500);
if (tempcounter == 50) {
var grumble = new Sound();
grumble.attachSound("BedTrapperGrumble");
grumble.start();
}
Symbol 659 MovieClip Frame 2
if (hitArea.hitTest(_root.squid)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 659 MovieClip Frame 10
if (hitArea.hitTest(_root.squid.head)) {
_root.health = 0;
_root.inkbar.blood.gotoAndPlay("ouch");
}
Symbol 659 MovieClip Frame 40
if (_root.dead) {
stop();
}
Symbol 659 MovieClip Frame 41
gotoAndPlay (1);
Symbol 659 MovieClip Frame 42
removeMovieClip(this);
stop();
Symbol 660 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 660 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 661 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 661 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 661 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 661 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 661 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 661 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 662 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 662 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 663 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 663 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 663 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 663 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 663 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 663 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 664 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 664 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 665 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 665 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 665 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 665 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 665 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 665 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 666 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 666 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 667 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 667 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 667 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 667 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 667 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 667 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 668 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 668 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 669 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 669 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 669 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 669 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 669 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 669 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 670 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 670 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 671 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 671 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
Symbol 671 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
EngineRoom();
RadarResize();
}
StayOnMap();
gotoAndPlay (3);
Symbol 671 MovieClip Frame 5
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
CreatureNoise();
Symbol 671 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 671 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 674 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 674 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 675 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 675 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else {
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
if (swim) {
light._alpha = 0;
food._alpha = 100;
EngineRoom();
RadarResize();
} else {
light._alpha = 100;
food._alpha = 10;
}
}
StayOnMap();
Symbol 675 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
} else if (swim) {
light._alpha = 0;
food._alpha = 100;
EngineRoom();
RadarResize();
} else {
light._alpha = 100;
food._alpha = 10;
}
StayOnMap();
gotoAndPlay (3);
Symbol 675 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 25;
this._height = 17;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 675 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 676 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 676 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 677 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 677 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
Symbol 677 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
gotoAndPlay (3);
Symbol 677 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 677 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 678 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 678 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 679 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 679 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
Symbol 679 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
gotoAndPlay (3);
Symbol 679 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 679 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 680 MovieClip Frame 2
i = random(200);
if (i == 50) {
var whalenoise = new Sound();
whalenoise.attachSound("WhaleAmbient" + (random(3) + 1));
whalenoise.start();
}
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 680 MovieClip Frame 4
i = random(200);
if (i == 50) {
var whalenoise = new Sound();
whalenoise.attachSound("WhaleAmbient" + (random(3) + 1));
whalenoise.start();
}
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 681 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 681 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 400, 250)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
Symbol 681 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 400, 250)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
gotoAndPlay (3);
Symbol 681 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 681 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 682 MovieClip Frame 2
i = random(200);
if (i == 50) {
var whalenoise = new Sound();
whalenoise.attachSound("WhaleAmbient" + (random(3) + 1));
whalenoise.start();
}
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 682 MovieClip Frame 4
i = random(200);
if (i == 50) {
var whalenoise = new Sound();
whalenoise.attachSound("WhaleAmbient" + (random(3) + 1));
whalenoise.start();
}
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 683 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 683 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 400, 250)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
Symbol 683 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, 400, 250)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
gotoAndPlay (3);
Symbol 683 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 683 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 684 MovieClip Frame 1
if (this.hitTest(_root.squid)) {
if (_parent.counter <= 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = 0;
_parent.swimdirectionY = 0;
if ((k == 0) || (k == undefined)) {
_parent.food.food.gotoAndPlay("panic");
}
k = 120;
}
} else if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = 0;
_parent.swimdirectionY = 0;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
Symbol 684 MovieClip Frame 2
if (k > 0) {
temp = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = temp + 90;
_parent.eatarea._rotation = temp + 90;
}
_parent.swimdirectionX = 0;
_parent.swimdirectionY = 0;
k--;
} else {
_parent.swimdirectionX = _parent.originalswimdirectionX;
_parent.swimdirectionY = _parent.originalswimdirectionY;
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
_parent.food._rotation = _parent.food._rotation + 1;
_parent.eatarea._rotation = _parent.eatarea._rotation + 1;
} else {
_parent.food._rotation = _parent.originalswimrotation;
_parent.eatarea._rotation = _parent.originalswimrotation;
}
k = 0;
}
Symbol 685 MovieClip Frame 1
if (_parent.counter > 0) {
aura._alpha = 50;
} else {
aura._alpha = 0;
}
if (this.hitTest(_root.squid)) {
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
} else {
_root.inkbar.blood.gotoAndPlay("ouch");
_root.health = _root.health - _parent.attackdamage;
}
}
Symbol 685 MovieClip Frame 2
gotoAndPlay (1);
Symbol 686 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 686 MovieClip Frame 21
gotoAndPlay (2);
Symbol 686 MovieClip Frame 30
if (_parent._parent.radar.k > 0) {
gotoAndPlay ("panic2");
} else {
gotoAndPlay ("panic3");
}
Symbol 686 MovieClip Frame 40
gotoAndPlay (2);
Symbol 687 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 687 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 688 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 688 MovieClip Frame 3
if (this.hitTest(_parent.xMark)) {
this._x = this._x + 0;
this._y = this._y + 0.5;
food._rotation = food._rotation + 1;
radarpowerup.gotoAndPlay("startloop");
counter = 600;
} else if ((counter > 0) && (counter != undefined)) {
radar.k = 0;
eatarea.aura._alpha = 50;
this._x = this._x + 0;
this._y = this._y + 0.5;
food._rotation = food._rotation + 1;
counter--;
if (eatarea.hitTest(_root.squid)) {
gotoAndPlay ("eaten");
}
} else {
eatarea.aura._alpha = 0;
counter = 0;
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.bottomY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) > _root.bottomY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
Symbol 688 MovieClip Frame 4
if (this.hitTest(_parent.xMark)) {
this._x = this._x + 0;
this._y = this._y + 0.5;
food._rotation = food._rotation + 1;
radarpowerup.gotoAndPlay("startloop");
counter = 600;
} else if ((counter > 0) && (counter != undefined)) {
radar.k = 0;
eatarea.aura._alpha = 50;
this._x = this._x + 0;
this._y = this._y + 0.5;
food._rotation = food._rotation + 1;
counter--;
if (eatarea.hitTest(_root.squid)) {
gotoAndPlay ("eaten");
}
} else {
eatarea.aura._alpha = 0;
counter = 0;
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.bottomY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) > _root.bottomY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
gotoAndPlay (3);
Symbol 688 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 688 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 694 MovieClip Frame 2
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if (_parent.radar.k == 0) {
if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (5);
} else {
gotoAndPlay (7);
}
Symbol 694 MovieClip Frame 4
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if (_parent.radar.k == 0) {
if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (5);
} else {
gotoAndPlay (7);
}
Symbol 694 MovieClip Frame 6
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if (_parent.radar.k == 0) {
if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (5);
} else {
gotoAndPlay (7);
}
Symbol 694 MovieClip Frame 8
if ((_parent.counter > 0) && (_parent.counter != undefined)) {
gotoAndPlay (1);
} else if (_parent.radar.k == 0) {
if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
} else if ((this._rotation <= 90) && (this._rotation >= -90)) {
gotoAndPlay (5);
} else {
gotoAndPlay (7);
}
Symbol 695 MovieClip Frame 2
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 695 MovieClip Frame 3
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
Symbol 695 MovieClip Frame 4
function CreatureNoise() {
var _local1 = new Sound();
randomsound = random(2) + 1;
_local1.attachSound("Bell");
_local1.start();
_local1.attachSound("Eaten" + randomsound);
_local1.start();
}
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if ((((((this._x + _parent._x) + _root.mapp._x) > (-xoffset)) && (((this._x + _parent._x) + _root.mapp._x) < (stageWidth + xoffset))) && (((this._y + _parent._y) + _root.mapp._y) > (-yoffset))) && (((this._y + _parent._y) + _root.mapp._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
function StayOnMap() {
if (((this._x + _parent._x) + _root.mapp._x) < _root.leftX) {
this._x = (_root.rightX - _parent._x) - _root.mapp._x;
}
if (((this._y + _parent._y) + _root.mapp._y) < _root.topY) {
this._y = (_root.topY - _parent._y) - _root.mapp._y;
}
if (((this._x + _parent._x) + _root.mapp._x) > _root.rightX) {
this._x = (_root.leftX - _parent._x) - _root.mapp._x;
}
return(true);
}
function RadarResize() {
radar._height = 69.3 * radarsize;
radar._width = 69.3 * radarsize;
radarpowerup._height = 69.3 * radarsize;
radarpowerup._width = 69.3 * radarsize;
return(true);
}
function EatTest() {
if (eatarea.hitTest(_root.squid) && (_root.squidsizeoverall >= fishsize)) {
gotoAndPlay ("eaten");
return(true);
}
return(null);
}
function EngineRoom() {
if (onScreen(640, 480, xoffset, yoffset)) {
counter = 0;
if (_root.exitLevelFlag != true) {
this._x = this._x + swimdirectionX;
this._y = this._y - swimdirectionY;
}
temprot = food._rotation;
food._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea._rotation = Trig.findAngle(swimdirectionX, -swimdirectionY, 0, 0) + 90;
eatarea.auro._alpha = 0;
} else {
gotoAndPlay (1);
}
}
function Stunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
radarpowerup.gotoAndPlay("startloop");
if (!inkhitme) {
var _local3 = new Sound();
_local3.attachSound("gurgle");
_local3.start();
inkhitme = true;
}
food.food.stop();
counter = (250 / fishsize) * _root.squidsizeoverall;
_root.inkbonus = _root.inkbonus + 50;
}
function StillStunned() {
if (collisionstate == false) {
this._y = this._y + 0.5;
temprot = food._rotation;
food._rotation = food._rotation + 1;
eatarea._rotation = eatarea._rotation + 1;
}
counter--;
if (counter == 0) {
food.food.play();
inkhitme = false;
}
}
if (onScreen(640, 480, xoffset, yoffset)) {
EatTest();
if (eatarea.hitTest(_parent.xMark)) {
Stunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
}
}
if ((counter > 0) && (counter != undefined)) {
StillStunned();
var filter = (new flash.filters.BlurFilter(5, 5, 3));
food.filters = new Array(filter);
} else {
EngineRoom();
RadarResize();
var filter = (new flash.filters.BlurFilter(0, 0, 0));
food.filters = new Array(filter);
}
StayOnMap();
gotoAndPlay (3);
Symbol 695 MovieClip Frame 6
scoredisplay.score = "+" + score;
_root.score = _root.score + score;
_root.preybonus = _root.preybonus + score;
_root.health = _root.health + fishsize;
if (_root.health > 100) {
_root.health = 100;
}
this._width = 51;
this._height = 23;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
Symbol 695 MovieClip Frame 17
removeMovieClip(this);
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 40
stop();
Symbol 707 MovieClip Frame 2
if (_root.abovewater) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 707 MovieClip Frame 4
if (_root.abovewater) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 707 MovieClip Frame 40
_root.endGame.play();
Symbol 707 MovieClip Frame 81
_root.onEnterFrame = null;
_parent._parent.onEnterFrame = null;
_parent._parent._y = _parent._parent._y + 8;
_parent._parent.smoke._alpha = _parent._parent.smoke._alpha - 1;
_root.endGameShip = true;
gotoAndPlay (80);
Symbol 709 MovieClip Frame 4
if (_root.abovewater) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 709 MovieClip Frame 7
if (_root.abovewater) {
gotoAndPlay (6);
} else {
gotoAndPlay (3);
}
Symbol 711 MovieClip Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.squid2) && (counter <= 0)) && (_root.dead != true)) {
_parent.damageoverlay.gotoAndPlay(1);
hitdamage = (_root.squidsizeoverall / 5) * _root.speedcoefficient;
_parent.shiphealth = _parent.shiphealth - hitdamage;
hitpoint = (((_parent._x + _parent._parent._x) + _root.mapp._x) - 320) * -0.8;
hitrotation = (((_root.squidsizeoverall / 10) * _root.speedcoefficient) * ((_root.squidsizeoverall / 10) * _root.speedcoefficient)) * (hitpoint / 20);
if (hitrotation > 20) {
hitrotation = 20;
}
if (hitrotation < -20) {
hitrotation = -20;
}
var _local4 = new Sound();
_local4.attachSound("SmallExplosion" + (random(3) + 1));
_local4.start();
_parent.explosion._x = hitpoint - 50;
if ((hitdamage > _root.squidsizeoverall) || (_parent.shiphealth < 50)) {
_parent.explosion.gotoAndPlay("startexplosion");
}
counter = 60;
shakecounter = 20;
shake = "left";
shakedistance = hitdamage * 2;
if (shakedistance > 10) {
shakedistance = 10;
}
i = 1;
} else {
if ((shakecounter > 0) && (shakecounter != undefined)) {
shakecounter--;
if (shake == "left") {
shake = "right";
_parent._x = _parent._x + shakedistance;
} else {
shake = "left";
_parent._x = _parent._x - shakedistance;
shakedistance--;
}
}
if (counter > 0) {
_parent.boat.boat.boat1._rotation = Trig.bounceOnce(hitrotation, 60 - counter, 60) * -1;
_parent.boat.boat.boat2._rotation = Trig.bounceOnce(hitrotation, 60 - counter, 60) * -1;
_parent.boat.boat.boat1._y = 58.6 - Trig.bounceOnce(hitdamage * 2, 60 - counter, 60);
_parent.boat.boat.boat2._y = 58.6 - Trig.bounceOnce(hitdamage * 2, 60 - counter, 60);
counter--;
} else {
if ((!counter) || (counter == 0)) {
counter = 0;
}
if ((!i) || (i == 81)) {
i = 1;
}
if ((i > 0) && (i <= 40)) {
_parent.boat.boat.boat1._rotation = Trig.bounceOnce(2.5, i, 40);
_parent.boat.boat.boat2._rotation = Trig.bounceOnce(2.5, i, 40);
i++;
}
if ((i > 40) && (i <= 80)) {
_parent.boat.boat.boat1._rotation = Trig.bounceOnce(-2.5, i - 40, 40);
_parent.boat.boat.boat2._rotation = Trig.bounceOnce(-2.5, i - 40, 40);
i++;
}
}
}
};
Symbol 714 MovieClip Frame 11
stop();
Symbol 715 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.abovewater) {
this.blendMode = 1;
} else {
this.blendMode = 13;
}
};
Symbol 715 MovieClip Frame 37
stop();
Symbol 716 MovieClip Frame 36
if (_parent._parent.shiphealth < 50) {
gotoAndPlay ("startsmoke");
} else {
stop();
}
Symbol 721 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.squid.head) && (_parent.harpoondanger)) {
_root.health = _root.health - 30;
_root.inkbar.blood.gotoAndPlay("ouch");
}
};
Symbol 729 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 2
this._alpha = 100;
harpoondanger = true;
Symbol 729 MovieClip Frame 10
harpoondanger = false;
this.onEnterFrame = function () {
this._rotation = this._rotation * 0.98;
};
Symbol 729 MovieClip Frame 50
this._alpha = 0;
this.onEnterFrame = null;
Symbol 730 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.squid2) && (_root.dead != true)) {
if ((counter <= 0) || (counter == undefined)) {
temprot = Trig.findAngle((_parent._x + _parent._parent._x) + _parent._parent._parent._x, (_parent._y + _parent._parent._y) + _parent._parent._parent._y, _root.squid._x, _root.squid._y);
if (!temprot) {
temprot = 0;
}
harpoon._rotation = temprot;
harpoon.play();
counter = 100 + random(50);
} else {
counter--;
}
} else {
if (!counter) {
counter = 0;
}
counter--;
}
};
Symbol 735 MovieClip Frame 1
this.onEnterFrame = function () {
healthbar._width = 100 - _parent.shiphealth;
};
Symbol 736 MovieClip Frame 1
this.onEnterFrame = function () {
if (!shiphealth) {
shiphealth = 100;
}
if ((shiphealth < 50) && (shiphealth > 0)) {
smoke._alpha = 100;
} else {
smoke._alpha = 0;
}
if (shiphealth <= 0) {
radar.onEnterFrame = null;
boathitarea.onEnterFrame = null;
radar.stop();
boathitarea.stop();
if (!shipsinking) {
boat.boat.gotoAndPlay("startSink");
explosion.gotoAndPlay("startexplosion");
shipsinking = true;
}
healthbar._alpha = 0;
}
if (_root.abovewater) {
this._y = ((_root.topY - _parent._y) - _root.mapp._y) + (30 - (_root.waterdepth._y / 8));
} else {
this._y = ((_root.topY - _parent._y) - _root.mapp._y) + (30 - (_root.waterdepth._y / 8));
}
randomiser = random(1000);
if (randomiser == 50) {
var _local4 = new Sound();
_local4.attachSound("BoatHorn");
_local4.start();
}
};
Symbol 737 MovieClip Frame 1
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
this.onEnterFrame = function () {
if (_root.shootink && (_root.inklevel >= _root.inkloss)) {
xMark.gotoAndPlay(2);
xMark._width = (5 * (_root.squidsizeoverall / 6)) * 8;
xMark._height = (5 * (_root.squidsizeoverall / 6)) * 8;
xMark._x = (320 - this._x) - _parent._x;
xMark._y = (240 - this._y) - _parent._y;
xMark._rotation = _root.squid._rotation;
}
marlin.gotoAndStop(15);
whale.gotoAndStop(15);
shark.gotoAndStop(15);
fish.gotoAndStop(15);
angelfish.gotoAndStop(15);
manta.gotoAndStop(15);
seahorse.gotoAndStop(15);
carp.gotoAndStop(15);
snapper.gotoAndStop(15);
clownfish.gotoAndStop(15);
plankton1.gotoAndStop(15);
anglerfish.gotoAndStop(15);
pufferfish.gotoAndStop(15);
turtle.gotoAndStop(15);
orca.gotoAndStop(15);
planktonbomb.gotoAndStop(3);
bedtrapper.gotoAndStop(42);
};
stop();
Symbol 737 MovieClip Frame 2
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map1world();
stop();
Symbol 737 MovieClip Frame 3
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map2world();
stop();
Symbol 737 MovieClip Frame 4
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map3world();
stop();
Symbol 737 MovieClip Frame 5
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map4world();
stop();
Symbol 737 MovieClip Frame 6
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map5world();
stop();
Symbol 737 MovieClip Frame 7
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map6world();
stop();
Symbol 737 MovieClip Frame 8
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map7world();
stop();
Symbol 737 MovieClip Frame 9
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map8world();
stop();
Symbol 737 MovieClip Frame 10
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map9world();
stop();
Symbol 737 MovieClip Frame 11
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map10world();
stop();
Symbol 737 MovieClip Frame 12
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map11world();
stop();
Symbol 737 MovieClip Frame 13
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map12world();
stop();
Symbol 737 MovieClip Frame 14
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map13world();
stop();
Symbol 737 MovieClip Frame 15
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map14world();
stop();
Symbol 737 MovieClip Frame 16
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map15world();
stop();
Symbol 737 MovieClip Frame 17
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map16world();
stop();
Symbol 737 MovieClip Frame 18
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
h = 0;
map17world();
stop();
Symbol 741 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 741 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 741 MovieClip Frame 4
_root.inklevel = 100;
_root.score = _root.score + 500;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 741 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 745 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 745 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 745 MovieClip Frame 4
_root.hypermode = 1200;
_root.score = _root.score + 500;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 745 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 748 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 748 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 748 MovieClip Frame 4
_root.health = _root.health + 25;
if (_root.health > 100) {
_root.health = 100;
}
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 748 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 752 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 752 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 752 MovieClip Frame 4
_root.radarmode = 1200;
_root.score = _root.score + 500;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 752 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 755 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 755 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 755 MovieClip Frame 4
fishfood = 0.5;
_root.score = _root.score + 1000;
if (_root.squidsizeoverall <= 6) {
_root.squid._height = (_root.squid._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid._width = (_root.squid._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._height = (_root.squid2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.squid2._width = (_root.squid2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._height = (_root.tail1._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail1._width = (_root.tail1._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._height = (_root.tail2._height / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
_root.tail2._width = (_root.tail2._width / _root.squidsizeoverall) * (_root.squidsizeoverall + fishfood);
} else {
_root.squidsizeoverall = 6;
}
_root.squidsizeoverall = _root.squidsizeoverall + fishfood;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 755 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 758 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 758 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 758 MovieClip Frame 4
_root.visionmode = 1200;
_root.score = _root.score + 225;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 758 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 762 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 762 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 762 MovieClip Frame 4
_root.score = _root.score + 50;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 762 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 765 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 765 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 765 MovieClip Frame 4
_root.score = _root.score + 100;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 765 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 768 MovieClip Frame 2
function onScreen(stageWidth, stageHeight, xoffset, yoffset) {
if (xoffset == undefined) {
xoffset = 0;
}
if (yoffset == undefined) {
yoffset = 0;
}
if (((((this._x + _parent._x) > (-xoffset)) && ((this._x + _parent._x) < (stageWidth + xoffset))) && ((this._y + _parent._y) > (-yoffset))) && ((this._y + _parent._y) < (stageHeight + yoffset))) {
return(true);
}
return(null);
}
if (onScreen(640, 480, 20, 20)) {
gotoAndStop (3);
} else {
this.onEnterFrame = null;
gotoAndPlay (1);
}
Symbol 768 MovieClip Frame 3
this.onEnterFrame = function () {
if (this.hitTest(_root.squid)) {
play();
}
if (!onScreen(640, 480, 20, 20)) {
gotoAndPlay (1);
}
};
stop();
Symbol 768 MovieClip Frame 4
_root.score = _root.score + 500;
_root.powerupbonus = _root.powerupbonus + 100;
Symbol 768 MovieClip Frame 23
this.onEnterFrame = null;
stop();
Symbol 781 MovieClip Frame 1
if (clam.hitTest(_root.squid)) {
_root.exitLevelFlag = true;
_root.onEnterFrame = null;
this.stop();
}
_root.clamX = this._x + _root.mapp._x;
_root.clamY = this._y + _root.mapp._y;
Symbol 781 MovieClip Frame 2
if (clam.hitTest(_root.squid)) {
_root.exitLevelFlag = true;
_root.onEnterFrame = null;
this.stop();
}
Symbol 789 MovieClip Frame 1
_root.rocklevel = false;
Symbol 790 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 793 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 796 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 799 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 802 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 805 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 810 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 817 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 820 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 831 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
maskee2.cacheAsBitmap = true;
masket2.cacheAsBitmap = true;
maskee2.setMask(masket2);
Symbol 836 MovieClip Frame 1
_root.rocklevel = false;
Symbol 837 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 843 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 846 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 849 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 852 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 861 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
maskee2.cacheAsBitmap = true;
masket2.cacheAsBitmap = true;
maskee2.setMask(masket2);
Symbol 868 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
maskee2.cacheAsBitmap = true;
masket2.cacheAsBitmap = true;
maskee2.setMask(masket2);
Symbol 871 MovieClip Frame 1
maskee.cacheAsBitmap = true;
masket.cacheAsBitmap = true;
maskee.setMask(masket);
Symbol 872 MovieClip Frame 1
_root.abovetime = _root.HUDmaptimer;
Symbol 872 MovieClip Frame 2
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 3
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 4
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 5
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 6
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 7
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 8
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 9
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 10
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 11
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 12
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 13
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 14
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 15
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 16
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 17
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 18
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 19
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 20
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 872 MovieClip Frame 40
_root.maptimer = 999;
_root.abovetime = _root.HUDmaptimer;
stop();
Symbol 877 MovieClip Frame 1
this.onEnterFrame = function () {
overall = _parent.squidsizeoverall;
if ((overall >= 0) && (overall < 2)) {
tunnelvision._width = 797.6;
tunnelvision._height = 580;
}
if ((overall >= 2) && (overall < 3)) {
tunnelvision._width = 1276.16;
tunnelvision._height = 928;
}
if ((overall >= 3) && (overall < 4)) {
tunnelvision._width = 1595.2;
tunnelvision._height = 1160;
}
if ((overall >= 4) && (overall < 5)) {
tunnelvision._width = 1914.24;
tunnelvision._height = 1392;
}
if (overall >= 5) {
tunnelvision._alpha = 0;
}
};
Symbol 880 MovieClip Frame 1
this._rotation = Trig.findAngle(_root.clamX, _root.clamY, this._x, this._y);
Symbol 880 MovieClip Frame 2
this._rotation = Trig.findAngle(_root.clamX, _root.clamY, this._x, this._y);
Symbol 890 Button
on (release) {
play();
}
Symbol 909 MovieClip Frame 14
if (_root.exitLevelFlag == true) {
_root.onEnterFrame = null;
play();
} else {
gotoAndPlay (13);
}
Symbol 909 MovieClip Frame 15
_root.onEnterFrame = null;
maptime = _root.HUDmaptimer * 40;
if (maptime < 0) {
maptime = 0;
}
maptimedisplay = ("(" + _root.HUDmaptimer) + " x 40pts)";
squidsizebonus = Math.round((_root.squidsizeoverall - _root.squidsizebonus) * 5000);
squidsizeincrease = String(("(+" + Math.round(((_root.squidsizeoverall / _root.squidsizebonus) - 1) * 100)) + "%)");
_root.squidsizebonus = _root.squidsizeoverall;
preybonus = _root.preybonus;
powerupbonus = _root.powerupbonus;
inkbonus = _root.inkbonus;
totalbonus = ((maptime + preybonus) + powerupbonus) + inkbonus;
_root.preybonus = 0;
_root.maptime = 0;
_root.HUDmaptimer = "";
_root.inkbonus = 0;
_root.powerupbonus = 0;
Symbol 909 MovieClip Frame 27
_root.inklevel = 100;
_root.hypermode = 0;
_root.radarmode = 0;
_root.visionmode = 0;
_root.squid._rotation = 0;
_root.squid2._rotation = 0;
_root.tail1._rotation = 0;
_root.tail2._rotation = 0;
_root.currentlevel++;
_root.nextFrame();
stop();
Symbol 909 MovieClip Frame 28
this.onEnterFrame = function () {
if (totalbonus >= 300) {
_root.score = _root.score + 300;
totalbonus = totalbonus - 300;
my_sound.start();
} else {
_root.score = _root.score - totalbonus;
totalbonus = 0;
this.play();
}
};
var my_sound = new Sound();
my_sound.attachSound("Ping Pong Paddle 03");
stop();
Symbol 909 MovieClip Frame 29
this.onEnterFrame = null;
Symbol 909 MovieClip Frame 39
stopAllSounds();
var my_sound = new Sound();
my_sound.attachSound("Dun6A");
my_sound.start();
_root.gotoAndPlay("gonow");
Symbol 914 MovieClip Frame 1
function HUDCalculations() {
if (_root.dead) {
health = 0;
deadblood.play();
} else {
health = int(_root.health);
}
lives = _root.lives;
inklevel._width = _parent.inklevel * 2;
if (_parent.inklevel < 100) {
_parent.inklevel = _parent.inklevel + _parent.inkrecovery;
}
overall = _root.squidsizeoverall;
score = _root.score;
if (_parent.inklevel < _parent.inkloss) {
inkicon._alpha = 30;
inkborder._alpha = 30;
temp = false;
} else {
inkicon._alpha = 100;
inkborder._alpha = 100;
if (temp == false) {
inkborder.play();
inkicon.play();
temp = true;
}
}
if (_root.blood) {
blood.gotoAndPlay("ouch");
}
temptimer = maptimer;
maptimer = _root.HUDmaptimer;
if (maptimer < 30) {
_root.maparrow._alpha = 50;
} else {
_root.maparrow._alpha = 0;
}
if ((maptimer < 11) && (temptimer != maptimer)) {
var _local3 = new Sound();
_local3.attachSound("Ping Pong Paddle 03");
_local3.start();
}
if (maptimer != "") {
timeranimation._alpha = 20;
} else {
timeranimation._alpha = 0;
}
}
function Evolution() {
overall = _parent.overall;
if ((overall >= 1) && (overall < 2)) {
stage1i = overall - 1;
_root.tail1._alpha = 0;
_root.tail2._alpha = 0;
_root.inkrecovery = 0;
} else {
stage1i = 1;
_root.tail1._alpha = 50;
_root.tail2._alpha = 50;
_root.inkrecovery = _root.squidsizeoverall * 0.05;
}
if ((overall >= 2) && (overall < 3)) {
stage2i = overall - 2;
} else if (overall > 3) {
stage2i = 1;
} else {
stage2i = 0;
}
if ((overall >= 3) && (overall < 4)) {
stage3i = overall - 3;
} else if (overall > 4) {
stage3i = 1;
} else {
stage3i = 0;
}
if ((overall >= 4) && (overall < 5)) {
stage4i = overall - 4;
} else if (overall > 5) {
stage4i = 1;
} else {
stage4i = 0;
}
if ((overall >= 5) && (overall < 6)) {
stage5i = overall - 5;
} else if (overall > 6) {
stage5i = 1;
}
stage1bar._height = 33 * stage1i;
stage2bar._height = 48.3 * stage2i;
stage3bar._height = 52 * stage3i;
stage4bar._height = 59.3 * stage4i;
stage5bar._height = 61.8 * stage5i;
if (((stage1i == 1) && (!_root.stage1flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage1flag = true;
}
if (((stage2i == 1) && (!_root.stage2flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage2flag = true;
}
if (((stage3i == 1) && (!_root.stage3flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage3flag = true;
}
if (((stage4i == 1) && (!_root.stage4flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage4flag = true;
}
if (((stage5i == 1) && (!_root.stage5flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage5flag = true;
}
}
function RadarHUD() {
radarmode = int(_root.radarmode / 40);
if (_root.radarmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
if (_root.visionmode > 0) {
this._y = 84.5;
} else {
this._y = 54.5;
}
} else if (_root.visionmode > 0) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function VisionmodeHUD() {
visionmode = int(_root.visionmode / 40);
if (_root.visionmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function HypermodeHUD() {
hypermode = int(_root.hypermode / 40);
this._y = 24.5;
if (_root.hypermode > 40) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
this.onEnterFrame = function () {
HypermodeHUD();
};
Symbol 917 MovieClip Frame 1
function HUDCalculations() {
if (_root.dead) {
health = 0;
deadblood.play();
} else {
health = int(_root.health);
}
lives = _root.lives;
inklevel._width = _parent.inklevel * 2;
if (_parent.inklevel < 100) {
_parent.inklevel = _parent.inklevel + _parent.inkrecovery;
}
overall = _root.squidsizeoverall;
score = _root.score;
if (_parent.inklevel < _parent.inkloss) {
inkicon._alpha = 30;
inkborder._alpha = 30;
temp = false;
} else {
inkicon._alpha = 100;
inkborder._alpha = 100;
if (temp == false) {
inkborder.play();
inkicon.play();
temp = true;
}
}
if (_root.blood) {
blood.gotoAndPlay("ouch");
}
temptimer = maptimer;
maptimer = _root.HUDmaptimer;
if (maptimer < 30) {
_root.maparrow._alpha = 50;
} else {
_root.maparrow._alpha = 0;
}
if ((maptimer < 11) && (temptimer != maptimer)) {
var _local3 = new Sound();
_local3.attachSound("Ping Pong Paddle 03");
_local3.start();
}
if (maptimer != "") {
timeranimation._alpha = 20;
} else {
timeranimation._alpha = 0;
}
}
function Evolution() {
overall = _parent.overall;
if ((overall >= 1) && (overall < 2)) {
stage1i = overall - 1;
_root.tail1._alpha = 0;
_root.tail2._alpha = 0;
_root.inkrecovery = 0;
} else {
stage1i = 1;
_root.tail1._alpha = 50;
_root.tail2._alpha = 50;
_root.inkrecovery = _root.squidsizeoverall * 0.05;
}
if ((overall >= 2) && (overall < 3)) {
stage2i = overall - 2;
} else if (overall > 3) {
stage2i = 1;
} else {
stage2i = 0;
}
if ((overall >= 3) && (overall < 4)) {
stage3i = overall - 3;
} else if (overall > 4) {
stage3i = 1;
} else {
stage3i = 0;
}
if ((overall >= 4) && (overall < 5)) {
stage4i = overall - 4;
} else if (overall > 5) {
stage4i = 1;
} else {
stage4i = 0;
}
if ((overall >= 5) && (overall < 6)) {
stage5i = overall - 5;
} else if (overall > 6) {
stage5i = 1;
}
stage1bar._height = 33 * stage1i;
stage2bar._height = 48.3 * stage2i;
stage3bar._height = 52 * stage3i;
stage4bar._height = 59.3 * stage4i;
stage5bar._height = 61.8 * stage5i;
if (((stage1i == 1) && (!_root.stage1flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage1flag = true;
}
if (((stage2i == 1) && (!_root.stage2flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage2flag = true;
}
if (((stage3i == 1) && (!_root.stage3flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage3flag = true;
}
if (((stage4i == 1) && (!_root.stage4flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage4flag = true;
}
if (((stage5i == 1) && (!_root.stage5flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage5flag = true;
}
}
function RadarHUD() {
radarmode = int(_root.radarmode / 40);
if (_root.radarmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
if (_root.visionmode > 0) {
this._y = 84.5;
} else {
this._y = 54.5;
}
} else if (_root.visionmode > 0) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function VisionmodeHUD() {
visionmode = int(_root.visionmode / 40);
if (_root.visionmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function HypermodeHUD() {
hypermode = int(_root.hypermode / 40);
this._y = 24.5;
if (_root.hypermode > 40) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
this.onEnterFrame = function () {
VisionmodeHUD();
};
Symbol 920 MovieClip Frame 1
function HUDCalculations() {
if (_root.dead) {
health = 0;
deadblood.play();
} else {
health = int(_root.health);
}
lives = _root.lives;
inklevel._width = _parent.inklevel * 2;
if (_parent.inklevel < 100) {
_parent.inklevel = _parent.inklevel + _parent.inkrecovery;
}
overall = _root.squidsizeoverall;
score = _root.score;
if (_parent.inklevel < _parent.inkloss) {
inkicon._alpha = 30;
inkborder._alpha = 30;
temp = false;
} else {
inkicon._alpha = 100;
inkborder._alpha = 100;
if (temp == false) {
inkborder.play();
inkicon.play();
temp = true;
}
}
if (_root.blood) {
blood.gotoAndPlay("ouch");
}
temptimer = maptimer;
maptimer = _root.HUDmaptimer;
if (maptimer < 30) {
_root.maparrow._alpha = 50;
} else {
_root.maparrow._alpha = 0;
}
if ((maptimer < 11) && (temptimer != maptimer)) {
var _local3 = new Sound();
_local3.attachSound("Ping Pong Paddle 03");
_local3.start();
}
if (maptimer != "") {
timeranimation._alpha = 20;
} else {
timeranimation._alpha = 0;
}
}
function Evolution() {
overall = _parent.overall;
if ((overall >= 1) && (overall < 2)) {
stage1i = overall - 1;
_root.tail1._alpha = 0;
_root.tail2._alpha = 0;
_root.inkrecovery = 0;
} else {
stage1i = 1;
_root.tail1._alpha = 50;
_root.tail2._alpha = 50;
_root.inkrecovery = _root.squidsizeoverall * 0.05;
}
if ((overall >= 2) && (overall < 3)) {
stage2i = overall - 2;
} else if (overall > 3) {
stage2i = 1;
} else {
stage2i = 0;
}
if ((overall >= 3) && (overall < 4)) {
stage3i = overall - 3;
} else if (overall > 4) {
stage3i = 1;
} else {
stage3i = 0;
}
if ((overall >= 4) && (overall < 5)) {
stage4i = overall - 4;
} else if (overall > 5) {
stage4i = 1;
} else {
stage4i = 0;
}
if ((overall >= 5) && (overall < 6)) {
stage5i = overall - 5;
} else if (overall > 6) {
stage5i = 1;
}
stage1bar._height = 33 * stage1i;
stage2bar._height = 48.3 * stage2i;
stage3bar._height = 52 * stage3i;
stage4bar._height = 59.3 * stage4i;
stage5bar._height = 61.8 * stage5i;
if (((stage1i == 1) && (!_root.stage1flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage1flag = true;
}
if (((stage2i == 1) && (!_root.stage2flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage2flag = true;
}
if (((stage3i == 1) && (!_root.stage3flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage3flag = true;
}
if (((stage4i == 1) && (!_root.stage4flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage4flag = true;
}
if (((stage5i == 1) && (!_root.stage5flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage5flag = true;
}
}
function RadarHUD() {
radarmode = int(_root.radarmode / 40);
if (_root.radarmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
if (_root.visionmode > 0) {
this._y = 84.5;
} else {
this._y = 54.5;
}
} else if (_root.visionmode > 0) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function VisionmodeHUD() {
visionmode = int(_root.visionmode / 40);
if (_root.visionmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function HypermodeHUD() {
hypermode = int(_root.hypermode / 40);
this._y = 24.5;
if (_root.hypermode > 40) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
this.onEnterFrame = function () {
RadarHUD();
};
Symbol 921 MovieClip Frame 36
stop();
Symbol 923 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 2
explosion._height = _root.squidsizeoverall * 10;
explosion._width = _root.squidsizeoverall * 10;
Symbol 930 MovieClip Frame 1
stop();
Symbol 934 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
function HUDCalculations() {
if (_root.dead) {
health = 0;
deadblood.play();
} else {
health = int(_root.health);
}
lives = _root.lives;
inklevel._width = _parent.inklevel * 2;
if (_parent.inklevel < 100) {
_parent.inklevel = _parent.inklevel + _parent.inkrecovery;
}
overall = _root.squidsizeoverall;
score = _root.score;
if (_parent.inklevel < _parent.inkloss) {
inkicon._alpha = 30;
inkborder._alpha = 30;
temp = false;
} else {
inkicon._alpha = 100;
inkborder._alpha = 100;
if (temp == false) {
inkborder.play();
inkicon.play();
temp = true;
}
}
if (_root.blood) {
blood.gotoAndPlay("ouch");
}
temptimer = maptimer;
maptimer = _root.HUDmaptimer;
if (maptimer < 30) {
_root.maparrow._alpha = 50;
} else {
_root.maparrow._alpha = 0;
}
if ((maptimer < 11) && (temptimer != maptimer)) {
var _local3 = new Sound();
_local3.attachSound("Ping Pong Paddle 03");
_local3.start();
}
if (maptimer != "") {
timeranimation._alpha = 20;
} else {
timeranimation._alpha = 0;
}
}
function Evolution() {
overall = _parent.overall;
if ((overall >= 1) && (overall < 2)) {
stage1i = overall - 1;
_root.tail1._alpha = 0;
_root.tail2._alpha = 0;
_root.inkrecovery = 0;
} else {
stage1i = 1;
_root.tail1._alpha = 50;
_root.tail2._alpha = 50;
_root.inkrecovery = _root.squidsizeoverall * 0.05;
}
if ((overall >= 2) && (overall < 3)) {
stage2i = overall - 2;
} else if (overall > 3) {
stage2i = 1;
} else {
stage2i = 0;
}
if ((overall >= 3) && (overall < 4)) {
stage3i = overall - 3;
} else if (overall > 4) {
stage3i = 1;
} else {
stage3i = 0;
}
if ((overall >= 4) && (overall < 5)) {
stage4i = overall - 4;
} else if (overall > 5) {
stage4i = 1;
} else {
stage4i = 0;
}
if ((overall >= 5) && (overall < 6)) {
stage5i = overall - 5;
} else if (overall > 6) {
stage5i = 1;
}
stage1bar._height = 33 * stage1i;
stage2bar._height = 48.3 * stage2i;
stage3bar._height = 52 * stage3i;
stage4bar._height = 59.3 * stage4i;
stage5bar._height = 61.8 * stage5i;
if (((stage1i == 1) && (!_root.stage1flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage1flag = true;
}
if (((stage2i == 1) && (!_root.stage2flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage2flag = true;
}
if (((stage3i == 1) && (!_root.stage3flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage3flag = true;
}
if (((stage4i == 1) && (!_root.stage4flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage4flag = true;
}
if (((stage5i == 1) && (!_root.stage5flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage5flag = true;
}
}
function RadarHUD() {
radarmode = int(_root.radarmode / 40);
if (_root.radarmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
if (_root.visionmode > 0) {
this._y = 84.5;
} else {
this._y = 54.5;
}
} else if (_root.visionmode > 0) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function VisionmodeHUD() {
visionmode = int(_root.visionmode / 40);
if (_root.visionmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function HypermodeHUD() {
hypermode = int(_root.hypermode / 40);
this._y = 24.5;
if (_root.hypermode > 40) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
this.onEnterFrame = function () {
Evolution();
};
Symbol 963 MovieClip Frame 1
this.onEnterFrame = function () {
if ((!_root.mousebuttondown) && (_root.health > 0)) {
play();
} else {
gotoAndStop (1);
}
};
Symbol 963 MovieClip Frame 41
gotoAndPlay (2);
Symbol 966 MovieClip Frame 1
this.onEnterFrame = function () {
mapname = _root.mapname;
};
Symbol 967 MovieClip Frame 152
stop();
Symbol 970 Button
on (rollOver) {
play();
}
Symbol 972 Button
on (press) {
_root.mapp.fish1.spawncreature("angelfish", h, 100, 550);
h++;
play();
}
Symbol 973 Button
on (press) {
_root.mapp.fish1.spawncreature("anglerfish", h, 100, 550);
h++;
play();
}
Symbol 974 Button
on (press) {
_root.mapp.fish1.spawncreature("carp", h, 100, 550);
h++;
play();
}
Symbol 975 Button
on (press) {
_root.mapp.fish1.spawncreature("clownfish", h, 100, 550);
h++;
play();
}
Symbol 976 Button
on (press) {
_root.mapp.fish1.spawncreature("guppy", h, 100, 550);
h++;
play();
}
Symbol 977 Button
on (press) {
_root.mapp.fish1.spawncreature("manta", h, 100, 550);
h++;
play();
}
Symbol 978 Button
on (press) {
_root.mapp.fish1.spawncreature("marlin", h, 100, 550);
h++;
play();
}
Symbol 979 Button
on (press) {
i = 0;
while (i < 50) {
_root.mapp.fish1.spawncreature("plankton", h, 100, 550);
h++;
i++;
}
play();
}
Symbol 980 Button
on (press) {
_root.mapp.fish1.spawncreature("pufferfish", h, 100, 550);
h++;
play();
}
Symbol 981 Button
on (press) {
_root.mapp.fish1.spawncreature("seahorse", h, 100, 550);
h++;
play();
}
Symbol 982 Button
on (press) {
_root.mapp.fish1.spawncreature("shark", h, 100, 550);
h++;
play();
}
Symbol 983 Button
on (press) {
_root.mapp.fish1.spawncreature("snapper", h, 100, 550);
h++;
play();
}
Symbol 984 Button
on (press) {
_root.mapp.fish1.spawncreature("turtle", h, 100, 550);
h++;
play();
}
Symbol 985 Button
on (press) {
_root.mapp.fish1.spawncreature("whale", h, 100, 550);
h++;
play();
}
Symbol 986 Button
on (press) {
_root.mapp.fish1.spawncreature("bedtrapper", h, -62, 1300);
h++;
play();
}
Symbol 1002 Button
on (press) {
_root.mapp.fish1.spawncreature("orca", h);
h++;
play();
}
Symbol 1004 MovieClip Frame 1
if (h == undefined) {
h = 0;
}
stop();
Symbol 1004 MovieClip Frame 3
function spawncreature(fishname, designation, xpos, ypos, xdir, ydir, rot, fishspeed, fishsize, fishfood, score, radarsize, prey, attackdamage, xoffset, yoffset) {
if (!designation) {
designation = random(10000) + 1;
}
if (!xpos) {
xpos = random(_root.rightX - _root.leftX) + ((_root.leftX - this._x) - _root.mapp._x);
}
if (!ypos) {
ypos = random(_root.bottomY - _root.topY) + ((_root.topY - this._y) - _root.mapp._y);
}
xMark._x = 3000;
switch (fishname) {
case "angelfish" :
container = angelfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 150;
}
if (!radarsize) {
radarsize = 0.2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "anglerfish" :
container = anglerfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = 3;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 0.5;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "bedtrapper" :
container = bedtrapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 0.5;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "carp" :
container = carp.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 250;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "clownfish" :
container = clownfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "guppy" :
container = fish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 1;
}
if (!fishsize) {
fishsize = 0.6;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 50;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "manta" :
container = manta.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 180;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = _root.squidsizeoverall + 2;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 500;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 1;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "marlin" :
container = marlin.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -3;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 6;
}
if (!fishsize) {
fishsize = 3;
}
if (!fishfood) {
fishfood = 0.05;
}
if (!score) {
score = 700;
}
if (!radarsize) {
radarsize = 1;
}
if (!prey) {
prey = "sometimes";
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "orca" :
container = orca.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 6.01;
}
if (!fishfood) {
fishfood = 0.08;
}
if (!score) {
score = 1500;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 200;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "plankton" :
container = plankton1.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0.5;
}
if (!fishsize) {
fishsize = 0.1;
}
if (!fishfood) {
fishfood = 0.001;
}
if (!score) {
score = 5;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "planktonbomb" :
container = planktonbomb.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = 0;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 0;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0;
}
if (!score) {
score = 0;
}
if (!radarsize) {
radarsize = 0;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 0;
}
if (!yoffset) {
yoffset = 0;
}
break;
case "pufferfish" :
container = pufferfish.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = 2;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 2500;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 2;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "seahorse" :
container = seahorse.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 3;
}
if (!fishsize) {
fishsize = 0.8;
}
if (!fishfood) {
fishfood = 0.01;
}
if (!score) {
score = 400;
}
if (!radarsize) {
radarsize = 4;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "shark" :
container = shark.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 5;
}
if (!fishsize) {
fishsize = 5;
}
if (!fishfood) {
fishfood = 0.04;
}
if (!score) {
score = 900;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 4;
}
if (!xoffset) {
xoffset = 100;
}
if (!yoffset) {
yoffset = 100;
}
break;
case "snapper" :
container = snapper.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -2;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 4;
}
if (!fishsize) {
fishsize = 1;
}
if (!fishfood) {
fishfood = 0.02;
}
if (!score) {
score = 300;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "turtle" :
container = turtle.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 2;
}
if (!fishsize) {
fishsize = 2;
}
if (!fishfood) {
fishfood = 0.03;
}
if (!score) {
score = 200;
}
if (!radarsize) {
radarsize = 2;
}
if (!prey) {
prey = false;
}
if (!attackdamage) {
attackdamage = 0;
}
if (!xoffset) {
xoffset = 50;
}
if (!yoffset) {
yoffset = 50;
}
break;
case "whale" :
container = whale.duplicateMovieClip("fish" + designation, this.getNextHighestDepth());
if (!xdir) {
xdir = -1.5;
}
if (!ydir) {
ydir = 0;
}
if (!rot) {
rot = 0;
}
if (!fishspeed) {
fishspeed = _root.squidsizeoverall + 7;
}
if (!fishsize) {
fishsize = 10;
}
if (!fishfood) {
fishfood = 1;
}
if (!score) {
score = 5000;
}
if (!radarsize) {
radarsize = 0.85;
}
if (!prey) {
prey = true;
}
if (!attackdamage) {
attackdamage = 10;
}
if (!xoffset) {
xoffset = 350;
}
if (yoffset) {
break;
}
yoffset = 250;
}
container._x = xpos;
container._y = ypos;
container.originalswimdirectionX = xdir;
container.originalswimdirectionY = ydir;
container.originalswimrotation = rot;
container.fishspeed = fishspeed;
container.fishsize = fishsize;
container.fishfood = fishfood;
container.score = score;
container.radarsize = 1;
container.prey = prey;
container.attackdamage = attackdamage;
container.xoffset = xoffset + random(20);
container.yoffset = yoffset + random(20);
container._width = container._width * fishsize;
container._height = container._height * fishsize;
return(true);
}
function map1world() {
_root.mapname = "Level 1: Genesis";
_quality = "LOW";
_root.maptimer = 120;
_root.InitialiseGameMusic(3);
var _local2 = new Sound();
_local2.attachSound("Dun6A");
_local2.start();
i = 0;
while (i < 20) {
spawncreature("plankton", h, 480, 900);
h++;
i++;
}
}
function map2world() {
_root.mapname = "Level 2: Cherry Cavern";
_root.maptimer = 180;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -293, 165);
h++;
spawncreature("planktonbomb", h, -420, 183);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -750, 670);
h++;
i++;
}
}
function map3world() {
_root.mapname = "Level 3: Plankton City";
_root.maptimer = 240;
_root.InitialiseGameMusic(3);
spawncreature("planktonbomb", h, -164, 388);
h++;
spawncreature("planktonbomb", h, -625, 1315);
h++;
spawncreature("planktonbomb", h, -509, 1345);
h++;
spawncreature("planktonbomb", h, -367, 1359);
h++;
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1250, 510);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -1172, 1312);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h, -172, 1108);
h++;
i++;
}
spawncreature("anglerfish", h, -172, 1108);
h++;
}
function map4world() {
_root.mapname = "Level 4: Speed or Score";
_root.maptimer = 80;
_root.InitialiseGameMusic(2);
}
function map5world() {
_root.mapname = "Level 5: Danger Cove";
_root.maptimer = 180;
_root.InitialiseGameMusic(2);
spawncreature("anglerfish", h, 534, 1150);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 534, 1150);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 1278 + random(100), 341 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, 590 + random(100), 280 + random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("guppy", h, random(100), 355 + random(100), 1.5, 0, 180, 2.5, 1, 0.02, 100);
h++;
i++;
}
spawncreature("manta", h, 200, 320);
h++;
}
function map6world() {
_root.mapname = "Level 6: Trappers Lung";
_root.maptimer = 220;
_root.InitialiseGameMusic(2);
spawncreature("bedtrapper", h, 570, 311);
h++;
spawncreature("planktonbomb", h, 449, -95);
h++;
spawncreature("planktonbomb", h, 525, -111);
h++;
spawncreature("planktonbomb", h, 613, -129);
h++;
spawncreature("planktonbomb", h, 703, -93);
h++;
spawncreature("planktonbomb", h, 797, -115);
h++;
spawncreature("planktonbomb", h, 917, -121);
h++;
spawncreature("planktonbomb", h, 1021, -127);
h++;
spawncreature("planktonbomb", h, 1075, -33);
h++;
i = 0;
while (i < 10) {
spawncreature("guppy", h, -34 + random(200), -94 + random(100), -1.5, 0, 0, 2.5, 1, 0.02, 100);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("guppy", h);
h++;
i++;
}
}
function map7world() {
_root.mapname = "Level 7: Tropic Labyrinth";
_root.InitialiseGameMusic(4);
_root.maptimer = 280;
i = 0;
while (i < 10) {
spawncreature("guppy", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h);
h++;
i++;
}
i = 0;
while (i < 50) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map8world() {
_root.mapname = "Level 8: Deep Trench Lines";
_root.maptimer = 160;
_root.InitialiseGameMusic(4);
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("clownfish", h, -414 + random(100), 377 + random(100));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("angelfish", h, -910 + random(100), random(100), 1, 0, 180);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1942, 841);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -1342, -131);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -94, 201);
h++;
i++;
}
}
function map9world() {
_root.maptimer = 80;
_root.mapname = "Level 9: Wraiths Hovel";
_root.InitialiseGameMusic(4);
spawncreature("bedtrapper", h, -242, 939);
h++;
spawncreature("bedtrapper", h, -442, 939);
h++;
spawncreature("bedtrapper", h, -642, 915);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, -226, 745);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, -426, 745);
h++;
i++;
}
}
function map10world() {
_root.mapname = "Level 10: The Fishing Grounds";
_root.maptimer = 300;
_root.InitialiseGameMusic(5);
spawncreature("bedtrapper", h, -490, 1120);
h++;
spawncreature("marlin", h, 0, -242);
h++;
spawncreature("shark", h, -878, 300);
h++;
spawncreature("pufferfish", h, -686, 154);
h++;
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
i = 0;
while (i < 4) {
spawncreature("turtle", h);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("seahorse", h);
h++;
i++;
}
}
function map11world() {
_root.mapname = "Level 11: Antartic Gateway";
_root.maptimer = 160;
_root.InitialiseGameMusic(5);
i = 0;
while (i < 10) {
spawncreature("snapper", h);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h);
h++;
i++;
}
}
function map12world() {
_root.maptimer = 120;
_root.InitialiseGameMusic(5);
_root.mapname = "Level 12: Sub-Zero Hero";
i = 0;
while (i < 10) {
spawncreature("snapper", h, 770 + random(800), 680 + random(200));
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1315, 227);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("plankton", h, 121, 196);
h++;
i++;
}
i = 0;
while (i < 20) {
spawncreature("plankton", h);
h++;
i++;
}
}
function map13world() {
_root.mapname = "Level 13: Frozen Danger";
_root.maptimer = 120;
_root.InitialiseGameMusic(2);
spawncreature("orca", h, -1450, 314, 1.5, 0, 180, _root.squidsizeoverall + 5, 5, 0.08, 1500, 1);
h++;
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map14world() {
_root.mapname = "Level 14: Breach or Beach";
_root.maptimer = 90;
_root.InitialiseGameMusic(4);
}
function map15world() {
_root.maptimer = 190;
_root.mapname = "Level 15: Double Trouble";
_root.InitialiseGameMusic(3);
spawncreature("orca", h, 398, -318, 1.5, 0, 180, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
spawncreature("orca", h, 1078, -630, -1.5, 0, 0, _root.squidsizeoverall + 3, 5, 0.08, 1500, 1, true, 10, 500, 500);
h++;
i = 0;
while (i < 10) {
spawncreature("plankton", h, 1650, 160);
h++;
i++;
}
i = 0;
while (i < 10) {
spawncreature("carp", h, 1562 + random(100), 534 + random(100));
h++;
i++;
}
var _local2 = new Sound();
u = random(3) + 1;
_local2.attachSound("WhaleAmbient" + u);
_local2.start();
}
function map16world() {
_root.InitialiseGameMusic(5);
_root.mapname = "Level 16: The Ice Sentinel";
_root.maptimer = 150;
spawncreature("whale", h, -1928, 1131, 1.5, 0, 180);
h++;
var _local2 = new Sound();
_local2.attachSound("WhaleAmbient4");
_local2.start();
}
function map17world() {
_root.mapname = "Final Stage: Fight and Flight";
_root.maptimer = 600;
_root.InitialiseGameMusic(6);
var _local2 = new Sound();
_local2.attachSound("BoatHorn");
_local2.start();
}
stop();
Symbol 1012 Button
on (release) {
_root.inklevel = 100;
_root.hypermode = 0;
_root.radarmode = 0;
_root.visionmode = 0;
_root.squid._rotation = 0;
_root.squid2._rotation = 0;
_root.tail1._rotation = 0;
_root.tail2._rotation = 0;
_root.dead = false;
_root.health = 100;
stopAllSounds();
_root.gotoAndPlay("gonow");
}
Symbol 1016 MovieClip Frame 1
if (_root.lives == 1) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1017 Button
on (release) {
_root.inklevel = 100;
_root.hypermode = 0;
_root.radarmode = 0;
_root.visionmode = 0;
_root.squid._rotation = 0;
_root.squid2._rotation = 0;
_root.tail1._rotation = 0;
_root.tail2._rotation = 0;
_root.dead = false;
_root.health = 100;
_root.preybonus = 0;
_root.maptime = 0;
_root.inkbonus = 0;
_root.powerupbonus = 0;
_root.mapp._x = _root.initialmapX1;
_root.mapp._y = _root.initialmapY1;
_root.waterdepth._x = _root.initialmapX2;
_root.waterdepth._y = _root.initialmapY2;
_root.localcounter = 1;
_root.secondarycounter = 1;
_root.score = _root.mapstartscore;
_root.health = _root.mapstarthealth;
_root.squidsizeoverall = _root.mapstartsquidsizeoverall;
_root.stage1flag = _root.mapstartstage1flag;
_root.stage2flag = _root.mapstartstage2flag;
_root.stage3flag = _root.mapstartstage3flag;
_root.stage4flag = _root.mapstartstage4flag;
_root.stage5flag = _root.mapstartstage5flag;
_root.mousebuttondown = false;
_root.abovewater = false;
stopAllSounds();
if (_root.lives > 0) {
_root.gotoAndPlay("gonow");
} else {
_root.gotoAndPlay("EndGameAnimation");
}
}
Symbol 1018 MovieClip Frame 1
stop();
Symbol 1018 MovieClip Frame 2
explosion._height = explosion._height * (_root.squidsizeoverall / 4);
explosion._width = explosion._width * (_root.squidsizeoverall / 4);
stopAllSounds();
Mouse.removeListener(someListener);
_root.mousebuttondown = false;
Symbol 1018 MovieClip Frame 24
_parent.onEnterFrame = null;
_root.onEnterFrame = null;
_root.lives--;
Symbol 1018 MovieClip Frame 25
stop();
Symbol 1019 MovieClip Frame 1
function HUDCalculations() {
if (_root.dead) {
health = 0;
deadblood.play();
} else {
health = int(_root.health);
}
lives = _root.lives;
inklevel._width = _parent.inklevel * 2;
if (_parent.inklevel < 100) {
_parent.inklevel = _parent.inklevel + _parent.inkrecovery;
}
overall = _root.squidsizeoverall;
score = _root.score;
if (_parent.inklevel < _parent.inkloss) {
inkicon._alpha = 30;
inkborder._alpha = 30;
temp = false;
} else {
inkicon._alpha = 100;
inkborder._alpha = 100;
if (temp == false) {
inkborder.play();
inkicon.play();
temp = true;
}
}
if (_root.blood) {
blood.gotoAndPlay("ouch");
}
temptimer = maptimer;
maptimer = _root.HUDmaptimer;
if (maptimer < 30) {
_root.maparrow._alpha = 50;
} else {
_root.maparrow._alpha = 0;
}
if ((maptimer < 11) && (temptimer != maptimer)) {
var _local3 = new Sound();
_local3.attachSound("Ping Pong Paddle 03");
_local3.start();
}
if (maptimer != "") {
timeranimation._alpha = 20;
} else {
timeranimation._alpha = 0;
}
}
function Evolution() {
overall = _parent.overall;
if ((overall >= 1) && (overall < 2)) {
stage1i = overall - 1;
_root.tail1._alpha = 0;
_root.tail2._alpha = 0;
_root.inkrecovery = 0;
} else {
stage1i = 1;
_root.tail1._alpha = 50;
_root.tail2._alpha = 50;
_root.inkrecovery = _root.squidsizeoverall * 0.05;
}
if ((overall >= 2) && (overall < 3)) {
stage2i = overall - 2;
} else if (overall > 3) {
stage2i = 1;
} else {
stage2i = 0;
}
if ((overall >= 3) && (overall < 4)) {
stage3i = overall - 3;
} else if (overall > 4) {
stage3i = 1;
} else {
stage3i = 0;
}
if ((overall >= 4) && (overall < 5)) {
stage4i = overall - 4;
} else if (overall > 5) {
stage4i = 1;
} else {
stage4i = 0;
}
if ((overall >= 5) && (overall < 6)) {
stage5i = overall - 5;
} else if (overall > 6) {
stage5i = 1;
}
stage1bar._height = 33 * stage1i;
stage2bar._height = 48.3 * stage2i;
stage3bar._height = 52 * stage3i;
stage4bar._height = 59.3 * stage4i;
stage5bar._height = 61.8 * stage5i;
if (((stage1i == 1) && (!_root.stage1flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage1flag = true;
}
if (((stage2i == 1) && (!_root.stage2flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage2flag = true;
}
if (((stage3i == 1) && (!_root.stage3flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage3flag = true;
}
if (((stage4i == 1) && (!_root.stage4flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage4flag = true;
}
if (((stage5i == 1) && (!_root.stage5flag)) && (_root.mousebuttondown)) {
_root.squid.evolve.gotoAndPlay(3);
_root.stage5flag = true;
}
}
function RadarHUD() {
radarmode = int(_root.radarmode / 40);
if (_root.radarmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
if (_root.visionmode > 0) {
this._y = 84.5;
} else {
this._y = 54.5;
}
} else if (_root.visionmode > 0) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function VisionmodeHUD() {
visionmode = int(_root.visionmode / 40);
if (_root.visionmode > 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_root.hypermode > 40) {
this._y = 54.5;
} else {
this._y = 24.5;
}
}
function HypermodeHUD() {
hypermode = int(_root.hypermode / 40);
this._y = 24.5;
if (_root.hypermode > 40) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
this.onEnterFrame = function () {
HUDCalculations();
};
Symbol 1023 MovieClip Frame 5
if (_root.abovewater) {
gotoAndPlay (6);
} else {
gotoAndPlay (4);
}
Symbol 1023 MovieClip Frame 8
if (_root.abovewater) {
gotoAndPlay (7);
} else {
gotoAndPlay (3);
}
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 159
stopAllSounds();
_root.gotoAndPlay("EndGameAnimation");
Symbol 1026 MovieClip Frame 350
gotoAndPlay (250);
Symbol 1026 MovieClip Frame 351
this.onEnterFrame = function () {
_parent.manta._alpha = _parent.manta._alpha - 1;
_parent.turtle._alpha = _parent.turtle._alpha - 1;
_parent.seahorse._alpha = _parent.seahorse._alpha - 1;
_parent.shark._alpha = _parent.shark._alpha - 1;
};
Symbol 1026 MovieClip Frame 451
this.onEnterFrame = null;
_parent.play();
Symbol 1029 MovieClip Frame 1
if (_root.endGameShip) {
play();
} else {
stop();
}
Symbol 1029 MovieClip Frame 331
stop();
Symbol 1032 MovieClip Frame 1
score = _root.score;
Symbol 1034 MovieClip Frame 60
stop();
Symbol 1043 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 1043 MovieClip Frame 2
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 2
stop();
Symbol 1050 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 1050 MovieClip Frame 2
stop();
Symbol 1053 MovieClip Frame 1
stop();
Instance of Symbol 1050 MovieClip in Symbol 1053 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 1050 MovieClip in Symbol 1053 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 1050 MovieClip in Symbol 1057 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 1050 MovieClip in Symbol 1057 MovieClip Frame 1
on (release) {
getURL ((("https://www.fizzy.com/buy/start/" + _root.Stattooz.pGameName) + "?a_aid=") + _root.Affiliateid);
}
Symbol 1059 MovieClip Frame 1
stop();
Instance of Symbol 1050 MovieClip in Symbol 1059 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Symbol 1060 MovieClip Frame 1
_root.Branditz.activateElement("gameover", this);
if (_root.score >= _root.Stattooz.pThreshold) {
_root.Stattooz.reportEvent("endpass");
} else {
_root.Stattooz.reportEvent("endfail");
}
switch (Number(_root.Stattooz.pGameType)) {
case 1 :
this.gotoAndStop("promo");
break;
case 2 :
this.gotoAndStop("ftp");
break;
case 4 :
this.gotoAndStop("demo");
}
stop();
Instance of Symbol 1043 MovieClip in Symbol 1060 MovieClip Frame 1
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
on (release) {
_root.doAffiliates();
}
Instance of Symbol 1044 MovieClip in Symbol 1060 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Symbol 1060 MovieClip Frame 10
stop();
Symbol 1060 MovieClip Frame 20
stop();
Symbol 1061 MovieClip Frame 1
score = _root.score;
Symbol 1063 MovieClip Frame 60
stop();
Symbol 1064 MovieClip Frame 31
_parent.nextFrame();
stop();