Frame 1
function doSomething() {
getURL ("http://www.eggysgames", "_blank");
}
function doSomething2() {
getURL ("http://octomon.wordpress.com/", "blank");
}
function doSomething3() {
getURL ("http://www.notdoppler.com", "_blank");
}
Mouse.hide();
_root.BHOLD = 10;
_root.SHOLD = 10;
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Eggys Games", doSomething);
Functioned2 = new ContextMenuItem("Octomon", doSomething2);
Functioned3 = new ContextMenuItem("Not Doppler", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.builtInItems.quality = true;
_root.menu = MENU;
Instance of Symbol 23 MovieClip "cursor" in Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (_root.bubblespawn.hitTest(this)) {
gotoAndStop (2);
} else if (_root.spikespawn.hitTest(this)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
if (i > 19) {
i = 0;
}
keepup = _root.getNextHighestDepth();
swapDepths(keepup);
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (mouseDown) {
Mouse.hide();
if (((_y > 320) and (_root.amountofbubbles > 0)) and (_currentframe == 2)) {
_root.amountofbubbles = _root.amountofbubbles - 1;
_root.mousebubbledown = true;
duplicateMovieClip (_root.bubble, "newbubble" + i, _root.getNextHighestDepth());
i = i + 1;
}
if ((_y < 80) and (_root.amountofspikes > 0)) {
_root.amountofspikes = _root.amountofspikes - 1;
_root.mousebombdown = true;
duplicateMovieClip (_root.bomb, "newspike" + i, _root.getNextHighestDepth());
i = i + 1;
}
}
onClipEvent (mouseUp) {
_root.mousebubbledown = false;
_root.mousebombdown = false;
_rotation = 0;
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 86 MovieClip in Frame 3
on (press) {
getURL ("http://www.eggysgames.com", "blank");
}
Frame 4
stop();
Instance of Symbol 98 MovieClip in Frame 4
on (press) {
getURL ("http://octomon.wordpress.com/", "blank");
}
Frame 5
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("c54a181f", this, 10301, true);
Frame 6
stop();
Frame 7
stop();
_root.timeleft = 0;
Frame 8
stop();
_root.bubblelimit = 5;
_root.spikelimit = 5;
_root.cash = 15;
_root.timeleft = 0;
_root.upgrade.amountofbubbles = 5;
_root.upgrade.amountofspikes = 5;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
_root.upgrade.basicfishname = "Piggles";
_root.john = "Piggles";
_root.upgrade.buyfish2.basicfishname2 = "Liza";
_root.bob = "Liza";
_root.upgrade.buyfish3.basicfishname3 = "Terry";
_root.fred = "Terry";
_root.upgrade.buyfish4.basicfishname4 = "Johnny";
_root.ted = "Johnny";
_root.boughtfish2 = false;
_root.boughtfish3 = false;
_root.boughtfish4 = false;
_root.whatequip = 0;
_root.whatequip2 = 0;
_root.whatequip3 = 0;
_root.whatequip4 = 0;
_root.basicfishpistol = false;
_root.basicfish2pistol = false;
_root.basicfish3pistol = false;
_root.basicfish4pistol = false;
_root.basicfishmines = false;
_root.basicfish2mines = false;
_root.basicfish3mines = false;
_root.basicfish4mines = false;
_root.basicfishshotgun = false;
_root.basicfish2shotgun = false;
_root.basicfish3shotgun = false;
_root.basicfish4shotgun = false;
_root.basicfishswinging = false;
_root.basicfish2swinging = false;
_root.basicfish3swinging = false;
_root.basicfish4swinging = false;
_root.basicfishgrenade = false;
_root.basicfish2grenade = false;
_root.basicfish3grenade = false;
_root.basicfish4grenade = false;
_root.basicfishlaser = false;
_root.basicfish2laser = false;
_root.basicfish3laser = false;
_root.basicfish4laser = false;
_root.basicfishrocket = false;
_root.basicfish2rocket = false;
_root.basicfish3rocket = false;
_root.basicfish4rocket = false;
_root.basicfishion = false;
_root.basicfish2ion = false;
_root.basicfish3ion = false;
_root.basicfish4ion = false;
Frame 9
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 9
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 9
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 346 MovieClip "enemies" in Frame 9
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 9
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 9
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 9
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 9
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 9
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if ((((_root._ymouse < 330) and (_root._ymouse > 80)) and (_currentframe == 150)) and (_root.cursor._currentframe == 1)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 9
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 9
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 9
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 9
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 9
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if ((bang._currentframe == 2) and (_name != "grenade")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 9
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 9
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 9
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 9
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 9
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 9
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 9
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 9
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 9
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 9
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 9
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 10
stop();
_root.cash = _root.cash + 5;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 11
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 11
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 11
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 539 MovieClip "enemies" in Frame 11
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 11
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 11
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 11
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 11
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 11
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 11
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 11
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 11
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 11
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 11
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 11
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 11
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 11
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 11
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 11
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 11
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 11
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 11
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 11
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 11
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 11
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 12
stop();
_root.cash = _root.cash + 10;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 13
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 13
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 13
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 553 MovieClip "enemies" in Frame 13
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 13
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 13
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 13
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 13
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 13
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 13
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 13
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 13
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 13
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 13
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 13
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 13
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 13
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 13
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 13
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 13
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 13
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 13
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 13
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 13
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 13
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 14
stop();
_root.cash = _root.cash + 15;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 15
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 15
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 15
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 563 MovieClip "enemies" in Frame 15
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 15
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 15
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 15
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 15
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 15
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 15
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 15
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 15
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 15
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 15
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 15
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 15
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 15
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 15
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 15
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 15
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 15
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 15
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 15
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 15
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 15
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 16
stop();
_root.cash = _root.cash + 20;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 17
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 17
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 17
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 573 MovieClip "enemies" in Frame 17
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 17
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 17
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 17
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 17
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 17
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 17
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 17
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 17
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 17
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 17
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 17
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 17
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 17
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 17
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 17
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 17
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 17
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 17
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 17
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 17
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 17
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 18
stop();
_root.cash = _root.cash + 25;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 19
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 19
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 19
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 583 MovieClip "enemies" in Frame 19
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 19
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 19
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 19
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 19
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 19
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 19
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 19
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 19
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 19
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 19
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 19
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 19
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 19
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 19
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 19
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 19
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 19
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 19
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 19
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 19
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 19
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 20
stop();
_root.cash = _root.cash + 30;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 21
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 21
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 21
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 593 MovieClip "enemies" in Frame 21
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 21
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 21
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 21
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 21
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 21
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 21
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 21
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 21
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 21
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 21
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 21
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 21
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 21
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 21
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 21
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 21
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 21
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 21
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 21
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 21
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 21
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 22
stop();
_root.cash = _root.cash + 35;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 23
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 23
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 23
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 603 MovieClip "enemies" in Frame 23
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 23
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 23
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 23
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 23
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 23
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 23
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 23
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 23
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 23
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 23
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 23
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 23
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 23
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 23
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 23
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 23
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 23
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 23
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 23
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 23
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 23
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 24
stop();
_root.cash = _root.cash + 40;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 25
Mouse.hide();
stop();
_root.timeleft = 30;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 25
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 25
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 612 MovieClip "enemies" in Frame 25
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 25
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 25
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 25
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 25
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 25
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 25
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 25
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 25
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 25
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 25
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 25
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 25
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 25
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 25
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 25
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 25
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 25
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 25
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 25
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 25
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 25
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 26
stop();
_root.cash = _root.cash + 45;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 27
Mouse.hide();
stop();
_root.timeleft = 40;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 27
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 27
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 621 MovieClip "enemies" in Frame 27
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 27
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 27
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 27
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 27
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 27
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 27
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 27
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 27
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 27
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 27
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 27
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 27
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 27
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 27
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 27
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 27
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 27
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 27
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 27
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 27
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 27
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 28
stop();
_root.cash = _root.cash + 50;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 29
Mouse.hide();
stop();
_root.timeleft = 40;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 29
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 29
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 630 MovieClip "enemies" in Frame 29
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 29
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 29
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 29
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 29
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 29
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 29
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 29
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 29
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 29
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 29
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 29
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 29
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 29
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 29
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 29
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 29
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 29
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 29
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 29
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 29
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 29
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 30
stop();
_root.cash = _root.cash + 55;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 31
Mouse.hide();
stop();
_root.timeleft = 40;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 31
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 31
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 639 MovieClip "enemies" in Frame 31
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 31
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 31
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 31
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 31
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 31
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 31
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 31
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 31
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 31
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 31
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 31
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 31
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 31
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 31
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 31
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 31
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 31
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 31
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 31
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 31
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 31
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 32
stop();
_root.cash = _root.cash + 60;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 33
Mouse.hide();
stop();
_root.timeleft = 40;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 33
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 33
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 648 MovieClip "enemies" in Frame 33
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 33
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 33
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 33
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 33
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 33
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 33
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 33
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 33
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 33
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 33
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 33
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 33
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 33
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 33
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 33
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 33
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 33
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 33
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 33
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 33
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 33
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 34
stop();
_root.cash = _root.cash + 65;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 35
Mouse.hide();
stop();
_root.timeleft = 40;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 35
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 35
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 657 MovieClip "enemies" in Frame 35
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 35
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 35
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 35
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 35
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 35
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 35
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 35
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 35
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 35
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 35
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 35
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 35
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 35
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 35
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 35
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 35
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 35
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 35
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 35
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 35
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 35
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 36
stop();
_root.cash = _root.cash + 70;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 37
Mouse.hide();
stop();
_root.timeleft = 50;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 37
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 37
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 666 MovieClip "enemies" in Frame 37
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 37
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 37
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 37
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 37
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 37
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 37
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 37
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 37
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 37
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 37
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 37
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 37
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 37
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 37
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 37
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 37
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 37
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 37
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 37
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 37
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 38
stop();
_root.cash = _root.cash + 75;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 39
Mouse.hide();
stop();
_root.timeleft = 50;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 39
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 39
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 675 MovieClip "enemies" in Frame 39
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 39
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 39
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 39
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 39
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 39
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 39
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 39
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 39
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 39
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 39
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 39
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 39
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 39
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 39
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 39
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 39
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 39
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 39
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 39
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 39
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 39
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 40
stop();
_root.cash = _root.cash + 80;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 41
Mouse.hide();
stop();
_root.timeleft = 50;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 41
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 41
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 684 MovieClip "enemies" in Frame 41
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 41
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 41
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 41
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 41
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 41
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 41
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 41
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 41
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 41
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 41
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 41
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 41
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 41
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 41
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 41
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 41
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 41
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 41
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 41
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 41
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 41
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 42
stop();
_root.cash = _root.cash + 85;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 43
Mouse.hide();
stop();
_root.timeleft = 50;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 43
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 43
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 693 MovieClip "enemies" in Frame 43
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 43
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 43
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 43
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 43
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 43
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 43
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 43
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 43
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 43
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 43
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 43
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 43
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 43
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 43
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 43
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 43
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 43
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 43
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 43
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 43
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 43
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 44
stop();
_root.cash = _root.cash + 90;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 45
Mouse.hide();
stop();
_root.timeleft = 50;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 45
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 45
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 702 MovieClip "enemies" in Frame 45
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 45
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 45
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 45
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 45
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 45
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 45
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 359 MovieClip "pistol" in Frame 45
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "pistol") {
if (dir == true) {
_x = (_x + 5);
}
if (dir == false) {
_x = (_x - 5);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 45
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 45
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 45
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 45
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 45
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 45
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 45
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 45
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 45
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 45
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 45
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 45
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 45
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 45
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 46
stop();
_root.cash = _root.cash + 95;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 47
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 47
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 47
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 711 MovieClip "enemies" in Frame 47
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 47
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 47
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 47
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 47
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 47
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 47
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 47
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 47
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 47
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 47
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 47
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 47
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 47
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 47
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 47
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 47
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 47
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 47
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 47
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 47
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 48
stop();
_root.cash = _root.cash + 100;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 49
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 49
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 49
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 720 MovieClip "enemies" in Frame 49
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 49
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 49
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 49
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 49
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 49
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 49
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 49
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 49
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 49
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 49
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 49
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 49
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 49
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 49
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 49
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 49
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 49
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 49
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 49
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 49
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 50
stop();
_root.cash = _root.cash + 105;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 51
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 51
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 51
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 729 MovieClip "enemies" in Frame 51
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 51
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 51
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 51
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 51
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 51
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 51
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 51
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 51
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 51
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 51
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 51
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 51
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 51
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 51
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 51
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 51
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 51
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 51
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 51
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 51
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 52
stop();
_root.cash = _root.cash + 110;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 53
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 53
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 53
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 738 MovieClip "enemies" in Frame 53
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 53
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 53
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 53
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 53
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 53
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 53
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 53
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 53
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 53
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 53
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 53
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 53
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 53
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 53
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 53
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 53
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 53
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 53
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 53
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 53
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 54
stop();
_root.cash = _root.cash + 115;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 55
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 55
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 55
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 747 MovieClip "enemies" in Frame 55
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 55
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 55
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 55
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 55
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 55
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 55
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 55
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 55
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 55
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 55
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 55
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 55
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 55
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 55
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 55
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 55
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 55
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 55
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 55
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 55
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 56
stop();
_root.cash = _root.cash + 120;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 57
Mouse.hide();
stop();
_root.timeleft = 60;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 57
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 57
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 756 MovieClip "enemies" in Frame 57
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 57
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 57
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 57
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 57
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 57
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 57
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 57
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 57
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 57
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 57
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 57
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 57
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 57
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 57
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 57
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 57
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 57
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 57
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 57
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 57
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 58
stop();
_root.cash = _root.cash + 125;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 59
Mouse.hide();
stop();
_root.timeleft = 70;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 59
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 59
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 765 MovieClip "enemies" in Frame 59
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 59
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 59
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 59
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 59
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 59
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 59
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 59
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 59
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 59
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 59
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 59
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 59
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 59
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 59
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 59
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 59
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 59
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 59
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 59
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 59
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 60
stop();
_root.cash = _root.cash + 125;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 61
Mouse.hide();
stop();
_root.timeleft = 70;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 61
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 61
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 774 MovieClip "enemies" in Frame 61
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 61
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 61
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 61
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 61
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 61
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 61
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 61
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 61
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 61
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 61
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 61
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 61
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 61
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 61
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 61
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 61
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 61
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 61
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 61
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 61
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 62
stop();
_root.cash = _root.cash + 125;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 63
Mouse.hide();
stop();
_root.timeleft = 70;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 63
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 63
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 783 MovieClip "enemies" in Frame 63
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 63
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 63
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 63
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 63
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 63
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 63
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 63
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 63
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 63
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 63
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 63
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 63
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 63
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 63
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 63
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 63
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 63
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 63
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 63
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 63
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 64
stop();
_root.cash = _root.cash + 125;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 65
Mouse.hide();
stop();
_root.timeleft = 80;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 65
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 65
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 792 MovieClip "enemies" in Frame 65
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 65
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 65
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 65
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 65
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 65
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 65
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 65
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 65
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 65
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 65
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 65
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 65
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 65
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 65
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 65
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 65
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 65
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 65
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 65
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 65
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 66
stop();
_root.cash = _root.cash + 125;
_root.timeleft = 0;
_root.fade.gotoAndPlay(1);
_root.i = 0;
_root.upgrade.amountofbubbles = _root.bubblelimit;
_root.upgrade.amountofspikes = _root.spikelimit;
Frame 67
Mouse.hide();
stop();
_root.timeleft = 90;
_root.amountofbubbles = _root.bubblelimit;
_root.amountofspikes = _root.spikelimit;
_root.BFname.thename = _root.john;
_root.BFname2.thename2 = _root.bob;
_root.BFname3.thename3 = _root.fred;
_root.BFname4.thename4 = _root.ted;
_root.fade.gotoAndPlay(1);
_root.gameover = 0;
_root.i = 0;
Instance of Symbol 343 MovieClip "bubble" in Frame 67
onClipEvent (load) {
onlyonce = false;
if (_name != "bubble") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y < -50) {
_root.amountofbubbles = _root.amountofbubbles + 1;
removeMovieClip(this);
}
if (_name != "bubble") {
if ((_root.mousebubbledown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebubbledown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y - (_width / 15));
}
}
}
Instance of Symbol 344 MovieClip "bomb" in Frame 67
onClipEvent (load) {
onlyonce = false;
if (_name != "bomb") {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_y > 450) {
_root.amountofspikes = _root.amountofspikes + 1;
removeMovieClip(this);
}
if (_name != "bomb") {
if ((_root.mousebombdown == true) and (onlyonce == false)) {
mousedown = true;
onlyonce = true;
}
if (_root.mousebombdown == false) {
mousedown = false;
}
if (_width > 80) {
_width = 80;
}
if (_height > 80) {
_height = 80;
}
if (mousedown == true) {
_width = (_width + 1);
_height = (_height + 1);
} else if (mousedown == false) {
_y = (_y + (_width / 15));
}
}
}
Instance of Symbol 801 MovieClip "enemies" in Frame 67
onClipEvent (enterFrame) {
if (_root.gameover == 0) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 348 MovieClip "BFname" in Frame 67
onClipEvent (enterFrame) {
_x = _root.basicfish._x;
_y = (_root.basicfish._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 350 MovieClip "BFname2" in Frame 67
onClipEvent (enterFrame) {
_x = _root.basicfish2._x;
_y = (_root.basicfish2._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 352 MovieClip "BFname3" in Frame 67
onClipEvent (enterFrame) {
_x = _root.basicfish3._x;
_y = (_root.basicfish3._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 354 MovieClip "BFname4" in Frame 67
onClipEvent (enterFrame) {
_x = _root.basicfish4._x;
_y = (_root.basicfish4._y - 30);
if (_root.timeleft == 0) {
_visible = false;
}
}
Instance of Symbol 355 MovieClip "ripple" in Frame 67
onClipEvent (load) {
gotoAndStop (150);
}
onClipEvent (mouseDown) {
if (((_root._ymouse < 330) and (_root._ymouse > 70)) and (_currentframe == 150)) {
_x = _root._xmouse;
_y = _root._ymouse;
gotoAndPlay (2);
}
}
Instance of Symbol 357 MovieClip "weapons" in Frame 67
onClipEvent (load) {
i = 0;
timer = random(100);
timer2 = random(100);
timer3 = random(100);
timer4 = random(100);
}
onClipEvent (enterFrame) {
if (i > 20) {
i = 0;
}
timer--;
timer2--;
timer3--;
timer4--;
if (((_root.whatequip == 1) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish._x;
_root["newpistol" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 1) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish2._x;
_root["newpistol" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 1) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish3._x;
_root["newpistol" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 1) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.pistol, "newpistol" + i, _root.getNextHighestDepth());
_root["newpistol" + i]._x = _root.basicfish4._x;
_root["newpistol" + i]._y = _root.basicfish4._y;
timer4 = 100;
}
if (((_root.whatequip == 2) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish._x;
_root["newmine" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 2) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish2._x;
_root["newmine" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 2) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish3._x;
_root["newmine" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 2) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.mine, "newmine" + i, _root.getNextHighestDepth());
_root["newmine" + i]._x = _root.basicfish4._x;
_root["newmine" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
if (((_root.whatequip == 3) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish._x;
_root["newshotgun" + i]._y = _root.basicfish._y;
timer = 100;
i = i + 1;
}
if (((_root.whatequip2 == 3) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish2._x;
_root["newshotgun" + i]._y = _root.basicfish2._y;
timer2 = 100;
i = i + 1;
}
if (((_root.whatequip3 == 3) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish3._x;
_root["newshotgun" + i]._y = _root.basicfish3._y;
timer3 = 100;
i = i + 1;
}
if (((_root.whatequip4 == 3) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.shotgun, "newshotgun" + i, _root.getNextHighestDepth());
_root["newshotgun" + i]._x = _root.basicfish4._x;
_root["newshotgun" + i]._y = _root.basicfish4._y;
timer4 = 100;
i = i + 1;
}
if (((_root.whatequip == 5) and (timer < 0)) and (_root.fish1dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish._x;
_root["newgrenade" + i]._y = _root.basicfish._y;
timer = 300;
i = i + 1;
}
if (((_root.whatequip2 == 5) and (timer2 < 0)) and (_root.fish2dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish2._x;
_root["newgrenade" + i]._y = _root.basicfish2._y;
timer2 = 300;
i = i + 1;
}
if (((_root.whatequip3 == 5) and (timer3 < 0)) and (_root.fish3dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish3._x;
_root["newgrenade" + i]._y = _root.basicfish3._y;
timer3 = 300;
i = i + 1;
}
if (((_root.whatequip4 == 5) and (timer4 < 0)) and (_root.fish4dead == false)) {
duplicateMovieClip (_root.grenade, "newgrenade" + i, _root.getNextHighestDepth());
_root["newgrenade" + i]._x = _root.basicfish4._x;
_root["newgrenade" + i]._y = _root.basicfish4._y;
timer4 = 300;
i = i + 1;
}
if (((_root.whatequip == 7) and (timer < 0)) and (_root.fish1dead == false)) {
if (_root.dir1 == true) {
_root.Bdir = true;
}
if (_root.dir1 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish._x;
_root["newrocket" + i]._y = _root.basicfish._y;
timer = 200;
i = i + 1;
}
if (((_root.whatequip2 == 7) and (timer2 < 0)) and (_root.fish2dead == false)) {
if (_root.dir2 == true) {
_root.Bdir = true;
}
if (_root.dir2 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish2._x;
_root["newrocket" + i]._y = _root.basicfish2._y;
timer2 = 200;
i = i + 1;
}
if (((_root.whatequip3 == 7) and (timer3 < 0)) and (_root.fish3dead == false)) {
if (_root.dir3 == true) {
_root.Bdir = true;
}
if (_root.dir3 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish3._x;
_root["newrocket" + i]._y = _root.basicfish3._y;
timer3 = 200;
i = i + 1;
}
if (((_root.whatequip4 == 7) and (timer4 < 0)) and (_root.fish4dead == false)) {
if (_root.dir4 == true) {
_root.Bdir = true;
}
if (_root.dir4 == false) {
_root.Bdir = false;
}
duplicateMovieClip (_root.rocket, "newrocket" + i, _root.getNextHighestDepth());
_root["newrocket" + i]._x = _root.basicfish4._x;
_root["newrocket" + i]._y = _root.basicfish4._y;
timer4 = 200;
i = i + 1;
}
}
Instance of Symbol 361 MovieClip "mine" in Frame 67
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "mine") {
_y = (_y + speed);
if (_y > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 364 MovieClip "shotgun" in Frame 67
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_name != "shotgun") {
if (dir == true) {
_x = (_x + 4);
}
if (dir == false) {
_x = (_x - 4);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 374 MovieClip "grenade" in Frame 67
onClipEvent (enterFrame) {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (_currentframe != 50) {
_y = (_y - 1);
_rotation = (_rotation + 1);
}
if (bang._currentframe == 16) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 67
onClipEvent (load) {
if (_root.Bdir == true) {
dir = true;
}
if (_root.Bdir == false) {
dir = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
if (dir == true) {
_x = (_x + 6);
}
if (dir == false) {
_x = (_x - 6);
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
}
}
Instance of Symbol 457 MovieClip "basicfish" in Frame 67
onClipEvent (load) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish1dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir1 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir1 = false;
}
}
onClipEvent (enterFrame) {
if ((_root.whatequip == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname._visible = false;
_root.fish1dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir1 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir1 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (_root.ripple._currentframe < 50) {
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir1 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir1 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
Instance of Symbol 457 MovieClip "basicfish2" in Frame 67
onClipEvent (load) {
if (_root.boughtfish2 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish2dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir2 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir2 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish2 == true) {
if ((_root.whatequip2 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip2 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip2 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip2 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip2 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip2 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip2 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip2 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname2._visible = false;
_root.fish2dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir2 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir2 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir2 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir2 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish3" in Frame 67
onClipEvent (load) {
if (_root.boughtfish3 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish3dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir3 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir3 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish3 == true) {
if ((_root.whatequip3 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip3 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip3 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip3 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip3 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip3 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip3 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip3 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname3._visible = false;
_root.fish3dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir3 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir3 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir3 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir3 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 457 MovieClip "basicfish4" in Frame 67
onClipEvent (load) {
if (_root.boughtfish4 == true) {
speed = Math.random() + 0.4;
_root.gameover = _root.gameover + 1;
_root.fish4dead = false;
_x = (random(200) + 50);
_y = (random(200) + 80);
switcher = 0;
timer = 0;
scale = _xscale;
_root.dir4 = true;
Xswitcher = random(2) + 1;
Yswitcher = random(2) + 1;
if (Xswitcher == 2) {
_xscale = (-scale);
_root.dir4 = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.boughtfish4 == true) {
if ((_root.whatequip4 == 1) and (_currentframe != 10)) {
this.gotoAndStop(2);
}
if ((_root.whatequip4 == 2) and (_currentframe != 10)) {
this.gotoAndStop(3);
}
if ((_root.whatequip4 == 3) and (_currentframe != 10)) {
this.gotoAndStop(4);
}
if ((_root.whatequip4 == 4) and (_currentframe != 10)) {
this.gotoAndStop(5);
}
if ((_root.whatequip4 == 5) and (_currentframe != 10)) {
this.gotoAndStop(6);
}
if ((_root.whatequip4 == 6) and (_currentframe != 10)) {
this.gotoAndStop(7);
}
if ((_root.whatequip4 == 7) and (_currentframe != 10)) {
this.gotoAndStop(8);
}
if ((_root.whatequip4 == 8) and (_currentframe != 10)) {
this.gotoAndStop(9);
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
hp._xscale = hp._xscale - 0.02;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
_root.BFname4._visible = false;
_root.fish4dead = true;
gotoAndStop (10);
}
timer++;
if (timer == 200) {
timer = 0;
}
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if (_x < 30) {
Xswitcher = 1;
_root.dir4 = true;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_root.dir4 = false;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
nudgeonce--;
if (nudgeonce <= 0) {
if (right.hitTest(_root.ripple) and (Xswitcher == 1)) {
Xswitcher = 2;
_xscale = (-scale);
_root.dir4 = false;
nudgeonce = 100;
}
if (right.hitTest(_root.ripple) and (Xswitcher == 2)) {
Xswitcher = 1;
_xscale = scale;
_root.dir4 = true;
nudgeonce = 100;
}
}
if (up.hitTest(_root.ripple)) {
Yswitcher = 1;
nudgeonce = 100;
}
if (down.hitTest(_root.ripple)) {
Yswitcher = 2;
nudgeonce = 100;
}
if (_y > 360) {
_y = 360;
}
if (_y < 60) {
_y = 60;
}
}
}
Instance of Symbol 462 MovieClip "enemyfish" in Frame 67
onClipEvent (load) {
time = 100;
if (_name != "enemyfish") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
Xswitcher = 1;
_xscale = scale;
}
if (sideswap == 2) {
_x = 600;
Xswitcher = 2;
_xscale = (-scale);
}
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
hp._xscale = hp._xscale - 30;
removeMovieClip(_root["newpistol" + i]);
}
if (this.hitTest(_root["newmine" + i])) {
hp._xscale = hp._xscale - 40;
removeMovieClip(_root["newmine" + i]);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - 50;
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - 10;
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - 90;
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - 1;
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - 20;
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - 200;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
if (_root.basicfish.hit.hitTest(this) and (timer == 0)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish2.hit.hitTest(this) and (timer == 0)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish3.hit.hitTest(this) and (timer == 0)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
timer = 100;
}
if (_root.basicfish4.hit.hitTest(this) and (timer == 0)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
timer = 100;
}
}
}
Instance of Symbol 491 MovieClip "enemycrab" in Frame 67
onClipEvent (load) {
time = 100;
resistance = 3;
if (_name != "enemycrab") {
_y = 375;
_x = 585;
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemycrab") {
if (pincer._currentframe < 80) {
_x = (_x - 1);
}
if (_x < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 22) {
if (hit.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (hit.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (hit.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (hit.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (hit.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 30) {
hp._xscale = 30;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 495 MovieClip "enemybomb" in Frame 67
onClipEvent (load) {
time = 100;
BOOM = random(200) + 30;
resistance = 0;
if (_name != "enemybomb") {
_y = (random(330) + 70);
sideswap = random(2) + 1;
if (sideswap == 1) {
_x = -50;
}
if (sideswap == 2) {
_x = 600;
}
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybomb") {
if (bang._currentframe == 16) {
removeMovieClip(this);
}
if (_currentframe == 1) {
if (sideswap == 1) {
_x = (_x + 2.5);
}
if (sideswap == 2) {
_x = (_x - 2.5);
}
}
BOOM--;
if (BOOM <= 0) {
if ((bang._currentframe == 2) and (_name != "enemybomb")) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
gotoAndStop (2);
}
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 20) {
hp._xscale = 20;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
Instance of Symbol 514 MovieClip "enemyocto" in Frame 67
onClipEvent (load) {
time = 100;
resistance = 6;
if (_name != "enemyocto") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 0.5;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyocto") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 516 MovieClip "enemyhorse" in Frame 67
onClipEvent (load) {
time = 100;
resistance = 2;
if (_name != "enemyhorse") {
_y = (random(320) + 80);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Ytimer = 100;
posswitch = true;
}
}
onClipEvent (enterFrame) {
Ytimer--;
if (Ytimer < 0) {
if (posswitch == true) {
posswitch = false;
Ytimer = 100;
} else if (posswitch == false) {
posswitch = true;
Ytimer = 100;
}
}
if (posswitch == true) {
_y = (_y - 0.5);
} else if (posswitch == false) {
_y = (_y + 0.5);
}
if (_name != "enemyhorse") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Instance of Symbol 522 MovieClip "enemyshark" in Frame 67
onClipEvent (load) {
time = 100;
resistance = 8;
if (_name != "enemyshark") {
_y = (random(200) + 50);
_x = (-random(100));
timer = 0;
attacking = false;
speed = 1;
switcher = 0;
scale = _xscale;
Xswitcher = 1;
Yswitcher = random(2) + 1;
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshark") {
i = 0;
while (i < 22) {
if (this.hitTest(_root["newpistol" + i])) {
removeMovieClip(_root["newpistol" + i]);
hp._xscale = hp._xscale - (30 / resistance);
}
if (this.hitTest(_root["newmine" + i])) {
removeMovieClip(_root["newmine" + i]);
hp._xscale = hp._xscale - (40 / resistance);
}
if (this.hitTest(_root["newshotgun" + i])) {
removeMovieClip(_root["newshotgun" + i]);
hp._xscale = hp._xscale - (50 / resistance);
}
if (this.hitTest(_root["newgrenade" + i].bang)) {
removeMovieClip(_root["newgrenade" + i].bang);
hp._xscale = hp._xscale - (10 / resistance);
}
if (this.hitTest(_root["newrocket" + i])) {
removeMovieClip(_root["newrocket" + i]);
hp._xscale = hp._xscale - (90 / resistance);
}
i++;
}
i = 0;
while (i < 21) {
if (hit.hitTest(_root["newbubble" + i])) {
someSound = new Sound();
someSound.attachSound("pop", this);
someSound.start(0, 1);
_root.amountofbubbles = _root.amountofbubbles + 1;
hp._xscale = hp._xscale + (_root["newbubble" + i]._width / 3);
removeMovieClip(_root["newbubble" + i]);
}
if (hit.hitTest(_root["newspike" + i])) {
someSound = new Sound();
someSound.attachSound("hit", this);
someSound.start(0, 1);
_root.amountofspikes = _root.amountofspikes + 1;
hp._xscale = hp._xscale - (_root["newspike" + i]._width / 3);
removeMovieClip(_root["newspike" + i]);
}
i++;
}
if (_root.basicfish.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish2.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish3.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish4.swinging.hitTest(this)) {
hp._xscale = hp._xscale - (1 / resistance);
}
if (_root.basicfish.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish2.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish3.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish4.laser.hitTest(this)) {
hp._xscale = hp._xscale - (20 / resistance);
}
if (_root.basicfish.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish2.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish3.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.basicfish4.ion.hitTest(this)) {
hp._xscale = hp._xscale - (50 / resistance);
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
time--;
if (hp._xscale > 70) {
hp._xscale = 70;
}
if (hp._xscale < 2) {
gotoAndStop (2);
}
if (attacking == false) {
if (Xswitcher == 1) {
_x = (_x + speed);
}
if (Xswitcher == 2) {
_x = (_x - speed);
}
if (Yswitcher == 1) {
_y = (_y + speed);
}
if (Yswitcher == 2) {
_y = (_y - speed);
}
if ((_x < 30) and (time < 0)) {
Xswitcher = 1;
_xscale = scale;
Yswitcher = random(2) + 1;
}
if (_x > 500) {
Xswitcher = 2;
_xscale = (-scale);
Yswitcher = random(2) + 1;
}
if (_y < 100) {
Yswitcher = 1;
}
if (_y > 350) {
Yswitcher = 2;
}
timer--;
if (timer < 0) {
timer = 0;
}
}
}
}
Frame 68
stop();
_root.timeleft = 0;
Symbol 14 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 3
stop();
Symbol 31 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 37 Button
on (release) {
getURL ("http://www.eggysgames.com/", "blank");
}
Symbol 44 Button
on (release) {
getURL ("http://octomon.wordpress.com/", "blank");
}
Symbol 47 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.gotoAndStop(2);
}
Symbol 47 MovieClip Frame 2
gotoAndPlay (1);
Symbol 52 MovieClip Frame 6
stop();
Symbol 53 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 68 MovieClip Frame 372
stop();
_root.nextFrame();
Symbol 77 MovieClip Frame 58
stop();
Symbol 86 MovieClip Frame 212
stopAllSounds();
_root.nextFrame();
Symbol 98 MovieClip Frame 143
stop();
_root.nextFrame();
Symbol 107 Button
on (press) {
_root.gotoAndStop(8);
}
Symbol 112 Button
on (press) {
_root.nextFrame();
}
Symbol 169 Button
on (press) {
_root.gotoAndStop(8);
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 220 Button
on (press) {
_root.gotoAndStop(8);
}
Symbol 224 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 229 Button
on (press) {
if (_root.upgrade._currentframe == 1) {
_root.john = _root.upgrade.basicfishname;
_root.bob = _root.upgrade.buyfish2.basicfishname2;
_root.fred = _root.upgrade.buyfish3.basicfishname3;
_root.ted = _root.upgrade.buyfish4.basicfishname4;
}
_root.nextFrame();
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
if (_root.upgrade.buyfish2.basicfishname2 == "undefined") {
_root.bob = "Liza";
}
_root.upgrade.buyfish2.basicfishname2 = _root.bob;
Symbol 243 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
stop();
if (_root.upgrade.buyfish3.basicfishname3 == "undefined") {
_root.fred = "Giggles";
}
_root.upgrade.buyfish3.basicfishname3 = _root.fred;
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
if (_root.upgrade.buyfish2.basicfishname2 == "undefined") {
_root.ted = "Johnny";
}
_root.upgrade.buyfish4.basicfishname4 = _root.ted;
Symbol 269 MovieClip Frame 1
stop();
Instance of Symbol 265 MovieClip "pistol" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishpistol == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 20) and (_currentframe == 1)) {
_root.cash = _root.cash - 20;
_root.basicfishpistol = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 1;
}
}
Symbol 269 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
stop();
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 269 MovieClip "pistol" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishpistol == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 20) and (_currentframe == 1)) {
someSound = new Sound();
someSound.attachSound("mon", this);
someSound.start(0, 1);
_root.cash = _root.cash - 20;
_root.basicfishpistol = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 1;
}
}
Instance of Symbol 277 MovieClip "mines" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishmines == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 25) and (_currentframe == 1)) {
_root.cash = _root.cash - 25;
_root.basicfishmines = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 2;
}
}
Instance of Symbol 281 MovieClip "shotgun" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishshotgun == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 50) and (_currentframe == 1)) {
_root.cash = _root.cash - 50;
_root.basicfishshotgun = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 3;
}
}
Instance of Symbol 285 MovieClip "swinging" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishswinging == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 100) and (_currentframe == 1)) {
_root.cash = _root.cash - 100;
_root.basicfishswinging = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 4;
}
}
Instance of Symbol 290 MovieClip "grenade" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishgrenade == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 200) and (_currentframe == 1)) {
_root.cash = _root.cash - 200;
_root.basicfishgrenade = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 5;
}
}
Instance of Symbol 295 MovieClip "laser" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishlaser == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 450) and (_currentframe == 1)) {
_root.cash = _root.cash - 450;
_root.basicfishlaser = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 6;
}
}
Instance of Symbol 300 MovieClip "rocket" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishrocket == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 700) and (_currentframe == 1)) {
_root.cash = _root.cash - 700;
_root.basicfishrocket = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 7;
}
}
Instance of Symbol 305 MovieClip "ion" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
if (_root.basicfishion == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 1000) and (_currentframe == 1)) {
_root.cash = _root.cash - 1000;
_root.basicfishion = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip = 8;
}
}
Symbol 306 MovieClip Frame 2
stop();
Instance of Symbol 269 MovieClip "pistol" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2pistol == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash > 20) and (_currentframe == 1)) {
_root.cash = _root.cash - 20;
_root.basicfish2pistol = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 1;
}
}
Instance of Symbol 277 MovieClip "mines" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2mines == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 25) and (_currentframe == 1)) {
_root.cash = _root.cash - 25;
_root.basicfish2mines = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 2;
}
}
Instance of Symbol 281 MovieClip "shotgun" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2shotgun == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 50) and (_currentframe == 1)) {
_root.cash = _root.cash - 50;
_root.basicfish2shotgun = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 3;
}
}
Instance of Symbol 285 MovieClip "swinging" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2swinging == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 100) and (_currentframe == 1)) {
_root.cash = _root.cash - 100;
_root.basicfish2swinging = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 4;
}
}
Instance of Symbol 290 MovieClip "grenade" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2grenade == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 200) and (_currentframe == 1)) {
_root.cash = _root.cash - 200;
_root.basicfish2grenade = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 5;
}
}
Instance of Symbol 295 MovieClip "laser" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2laser == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 450) and (_currentframe == 1)) {
_root.cash = _root.cash - 450;
_root.basicfish2laser = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 6;
}
}
Instance of Symbol 300 MovieClip "rocket" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2rocket == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 700) and (_currentframe == 1)) {
_root.cash = _root.cash - 700;
_root.basicfish2rocket = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 7;
}
}
Instance of Symbol 305 MovieClip "ion" in Symbol 306 MovieClip Frame 2
onClipEvent (load) {
if (_root.basicfish2ion == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 1000) and (_currentframe == 1)) {
_root.cash = _root.cash - 1000;
_root.basicfish2ion = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip2 = 8;
}
}
Symbol 306 MovieClip Frame 3
stop();
Instance of Symbol 269 MovieClip "pistol" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3pistol == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash > 20) and (_currentframe == 1)) {
_root.cash = _root.cash - 20;
_root.basicfish3pistol = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 1;
}
}
Instance of Symbol 277 MovieClip "mines" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3mines == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 25) and (_currentframe == 1)) {
_root.cash = _root.cash - 25;
_root.basicfish3mines = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 2;
}
}
Instance of Symbol 281 MovieClip "shotgun" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3shotgun == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 50) and (_currentframe == 1)) {
_root.cash = _root.cash - 50;
_root.basicfish3shotgun = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 3;
}
}
Instance of Symbol 285 MovieClip "swinging" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3swinging == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 100) and (_currentframe == 1)) {
_root.cash = _root.cash - 100;
_root.basicfish3swinging = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 4;
}
}
Instance of Symbol 290 MovieClip "grenade" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3grenade == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 200) and (_currentframe == 1)) {
_root.cash = _root.cash - 200;
_root.basicfish3grenade = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 5;
}
}
Instance of Symbol 295 MovieClip "laser" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3laser == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 450) and (_currentframe == 1)) {
_root.cash = _root.cash - 450;
_root.basicfish3laser = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 6;
}
}
Instance of Symbol 300 MovieClip "rocket" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3rocket == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 700) and (_currentframe == 1)) {
_root.cash = _root.cash - 700;
_root.basicfish3rocket = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 7;
}
}
Instance of Symbol 305 MovieClip "ion" in Symbol 306 MovieClip Frame 3
onClipEvent (load) {
if (_root.basicfish3ion == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 1000) and (_currentframe == 1)) {
_root.cash = _root.cash - 1000;
_root.basicfish3ion = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip3 = 8;
}
}
Symbol 306 MovieClip Frame 4
stop();
Instance of Symbol 269 MovieClip "pistol" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4pistol == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash > 20) and (_currentframe == 1)) {
_root.cash = _root.cash - 20;
_root.basicfish4pistol = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 1;
}
}
Instance of Symbol 277 MovieClip "mines" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4mines == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 25) and (_currentframe == 1)) {
_root.cash = _root.cash - 25;
_root.basicfish4mines = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 2;
}
}
Instance of Symbol 281 MovieClip "shotgun" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4shotgun == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 50) and (_currentframe == 1)) {
_root.cash = _root.cash - 50;
_root.basicfish4shotgun = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 3;
}
}
Instance of Symbol 285 MovieClip "swinging" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4swinging == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 100) and (_currentframe == 1)) {
_root.cash = _root.cash - 100;
_root.basicfish4swinging = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 4;
}
}
Instance of Symbol 290 MovieClip "grenade" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4grenade == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 200) and (_currentframe == 1)) {
_root.cash = _root.cash - 200;
_root.basicfish4grenade = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 5;
}
}
Instance of Symbol 295 MovieClip "laser" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4laser == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 450) and (_currentframe == 1)) {
_root.cash = _root.cash - 450;
_root.basicfish4laser = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 6;
}
}
Instance of Symbol 300 MovieClip "rocket" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4rocket == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 700) and (_currentframe == 1)) {
_root.cash = _root.cash - 700;
_root.basicfish4rocket = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 7;
}
}
Instance of Symbol 305 MovieClip "ion" in Symbol 306 MovieClip Frame 4
onClipEvent (load) {
if (_root.basicfish4ion == true) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.cash >= 1000) and (_currentframe == 1)) {
_root.cash = _root.cash - 1000;
_root.basicfish4ion = true;
this.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.whatequip4 = 8;
}
}
Symbol 313 Button
on (press) {
if ((_root.upgrade.currentfish._currentframe == 1) and (_root.boughtfish2 == true)) {
_root.upgrade.currentfish.nextFrame();
_root.upgrade.buy.nextFrame();
_root.upgrade.equip.nextFrame();
} else if ((_root.upgrade.currentfish._currentframe == 2) and (_root.boughtfish3 == true)) {
_root.upgrade.currentfish.nextFrame();
_root.upgrade.buy.nextFrame();
_root.upgrade.equip.nextFrame();
} else if ((_root.upgrade.currentfish._currentframe == 3) and (_root.boughtfish4 == true)) {
_root.upgrade.currentfish.nextFrame();
_root.upgrade.buy.nextFrame();
_root.upgrade.equip.nextFrame();
}
}
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
stop();
Symbol 320 MovieClip Frame 3
stop();
Symbol 320 MovieClip Frame 4
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
stop();
Symbol 323 MovieClip Frame 3
stop();
Symbol 323 MovieClip Frame 4
stop();
Symbol 323 MovieClip Frame 5
stop();
Symbol 323 MovieClip Frame 6
stop();
Symbol 323 MovieClip Frame 7
stop();
Symbol 323 MovieClip Frame 8
stop();
Symbol 323 MovieClip Frame 9
stop();
Symbol 324 MovieClip Frame 1
stop();
Instance of Symbol 323 MovieClip "equipped" in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.whatequip == 0) {
this.gotoAndStop(1);
}
if (_root.whatequip == 1) {
this.gotoAndStop(2);
}
if (_root.whatequip == 2) {
this.gotoAndStop(3);
}
if (_root.whatequip == 3) {
this.gotoAndStop(4);
}
if (_root.whatequip == 4) {
this.gotoAndStop(5);
}
if (_root.whatequip == 5) {
this.gotoAndStop(6);
}
if (_root.whatequip == 6) {
this.gotoAndStop(7);
}
if (_root.whatequip == 7) {
this.gotoAndStop(8);
}
if (_root.whatequip == 8) {
this.gotoAndStop(9);
}
}
Symbol 324 MovieClip Frame 2
stop();
Instance of Symbol 323 MovieClip "equipped" in Symbol 324 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.whatequip2 == 0) {
this.gotoAndStop(1);
}
if (_root.whatequip2 == 1) {
this.gotoAndStop(2);
}
if (_root.whatequip2 == 2) {
this.gotoAndStop(3);
}
if (_root.whatequip2 == 3) {
this.gotoAndStop(4);
}
if (_root.whatequip2 == 4) {
this.gotoAndStop(5);
}
if (_root.whatequip2 == 5) {
this.gotoAndStop(6);
}
if (_root.whatequip2 == 6) {
this.gotoAndStop(7);
}
if (_root.whatequip2 == 7) {
this.gotoAndStop(8);
}
if (_root.whatequip2 == 8) {
this.gotoAndStop(9);
}
}
Symbol 324 MovieClip Frame 3
stop();
Instance of Symbol 323 MovieClip "equipped" in Symbol 324 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.whatequip3 == 0) {
this.gotoAndStop(1);
}
if (_root.whatequip3 == 1) {
this.gotoAndStop(2);
}
if (_root.whatequip3 == 2) {
this.gotoAndStop(3);
}
if (_root.whatequip3 == 3) {
this.gotoAndStop(4);
}
if (_root.whatequip3 == 4) {
this.gotoAndStop(5);
}
if (_root.whatequip3 == 5) {
this.gotoAndStop(6);
}
if (_root.whatequip3 == 6) {
this.gotoAndStop(7);
}
if (_root.whatequip3 == 7) {
this.gotoAndStop(8);
}
if (_root.whatequip3 == 8) {
this.gotoAndStop(9);
}
}
Symbol 324 MovieClip Frame 4
stop();
Instance of Symbol 323 MovieClip "equipped" in Symbol 324 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.whatequip4 == 0) {
this.gotoAndStop(1);
}
if (_root.whatequip4 == 1) {
this.gotoAndStop(2);
}
if (_root.whatequip4 == 2) {
this.gotoAndStop(3);
}
if (_root.whatequip4 == 3) {
this.gotoAndStop(4);
}
if (_root.whatequip4 == 4) {
this.gotoAndStop(5);
}
if (_root.whatequip4 == 5) {
this.gotoAndStop(6);
}
if (_root.whatequip4 == 6) {
this.gotoAndStop(7);
}
if (_root.whatequip4 == 7) {
this.gotoAndStop(8);
}
if (_root.whatequip4 == 8) {
this.gotoAndStop(9);
}
}
Symbol 337 MovieClip Frame 1
stop();
_root.upgrade.basicfishname = _root.john;
Instance of Symbol 236 MovieClip "buyfish2" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
if (_root.boughtfish2 == true) {
gotoAndStop (2);
}
}
Instance of Symbol 243 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
if (((_root.cash > 100) and (_currentframe == 1)) and (_root.boughtfish2 == true)) {
_root.upgrade.buyfish3.basicfishname3 = "Terry";
_root.fred = "Terry";
_root.cash = _root.cash - 100;
_root.boughtfish3 = true;
_root.upgrade.buyfish3.gotoAndStop(2);
_visible = false;
}
}
onClipEvent (load) {
if (_root.boughtfish3 == true) {
_visible = false;
}
}
Instance of Symbol 243 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
if (((_root.cash > 100) and (_currentframe == 1)) and (_root.boughtfish3 == true)) {
_root.upgrade.buyfish4.basicfishname4 = "Johnny";
_root.ted = "Johnny";
_root.cash = _root.cash - 100;
_root.boughtfish4 = true;
_root.upgrade.buyfish4.gotoAndStop(2);
_visible = false;
}
}
onClipEvent (load) {
if (_root.boughtfish4 == true) {
_visible = false;
}
}
Instance of Symbol 245 MovieClip "buyfish3" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
if (_root.boughtfish3 == true) {
gotoAndStop (2);
}
}
Instance of Symbol 247 MovieClip "buyfish4" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
if (_root.boughtfish4 == true) {
gotoAndStop (2);
}
}
Instance of Symbol 243 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
if ((_root.cash > 100) and (_currentframe == 1)) {
_root.upgrade.buyfish2.basicfishname2 = "Liza";
_root.bob = "Liza";
_root.cash = _root.cash - 100;
_root.boughtfish2 = true;
_root.upgrade.buyfish2.gotoAndStop(2);
_visible = false;
}
}
onClipEvent (load) {
if (_root.boughtfish2 == true) {
_visible = false;
}
}
Instance of Symbol 256 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
_root.john = _root.upgrade.basicfishname;
_root.bob = _root.upgrade.buyfish2.basicfishname2;
_root.fred = _root.upgrade.buyfish3.basicfishname3;
_root.ted = _root.upgrade.buyfish4.basicfishname4;
_root.upgrade.gotoAndStop(2);
}
Instance of Symbol 257 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
_root.upgrade.gotoAndStop(1);
}
Instance of Symbol 258 MovieClip in Symbol 337 MovieClip Frame 1
on (press) {
_root.john = _root.upgrade.basicfishname;
_root.bob = _root.upgrade.buyfish2.basicfishname2;
_root.fred = _root.upgrade.buyfish3.basicfishname3;
_root.ted = _root.upgrade.buyfish4.basicfishname4;
_root.upgrade.gotoAndStop(3);
}
Symbol 337 MovieClip Frame 2
stop();
_root.upgrade.currentfish.basicfishname = _root.john;
_root.upgrade.currentfish.basicfishname2 = _root.bob;
_root.upgrade.currentfish.basicfishname3 = _root.fred;
_root.upgrade.currentfish.basicfishname4 = _root.ted;
Instance of Symbol 315 MovieClip in Symbol 337 MovieClip Frame 2
on (press) {
if ((_root.upgrade.currentfish._currentframe == 2) and (_root.boughtfish2 == true)) {
_root.upgrade.currentfish.prevFrame();
_root.upgrade.buy.prevFrame();
_root.upgrade.equip.prevFrame();
} else if ((_root.upgrade.currentfish._currentframe == 3) and (_root.boughtfish3 == true)) {
_root.upgrade.currentfish.prevFrame();
_root.upgrade.buy.prevFrame();
_root.upgrade.equip.prevFrame();
} else if ((_root.upgrade.currentfish._currentframe == 4) and (_root.boughtfish4 == true)) {
_root.upgrade.currentfish.prevFrame();
_root.upgrade.buy.prevFrame();
_root.upgrade.equip.prevFrame();
}
}
Instance of Symbol 256 MovieClip in Symbol 337 MovieClip Frame 2
on (press) {
_root.upgrade.gotoAndStop(2);
}
Instance of Symbol 257 MovieClip in Symbol 337 MovieClip Frame 2
on (press) {
_root.upgrade.gotoAndStop(1);
}
Instance of Symbol 258 MovieClip in Symbol 337 MovieClip Frame 2
on (press) {
_root.upgrade.gotoAndStop(3);
}
Symbol 337 MovieClip Frame 3
stop();
_root.upgrade.currentfish.basicfishname = _root.john;
_root.upgrade.currentfish.basicfishname2 = _root.bob;
_root.upgrade.currentfish.basicfishname3 = _root.fred;
_root.upgrade.currentfish.basicfishname4 = _root.ted;
_root.upgrade.bb.bup = _root.BHOLD;
_root.upgrade.ss.sup = _root.SHOLD;
Instance of Symbol 331 MovieClip "bb" in Symbol 337 MovieClip Frame 3
on (press) {
if ((_root.cash >= _root.upgrade.bb.bup) and (_root.upgrade.bb.bup < 90)) {
_root.cash = _root.cash - _root.upgrade.bb.bup;
_root.upgrade.bb.bup = _root.upgrade.bb.bup + 10;
_root.BHOLD = _root.BHOLD + 10;
_root.upgrade.amountofbubbles = _root.upgrade.amountofbubbles + 1;
_root.bubblelimit = _root.bubblelimit + 1;
}
}
Instance of Symbol 334 MovieClip "ss" in Symbol 337 MovieClip Frame 3
on (press) {
if ((_root.cash >= _root.upgrade.ss.sup) and (_root.upgrade.ss.sup < 90)) {
_root.cash = _root.cash - _root.upgrade.ss.sup;
_root.upgrade.ss.sup = _root.upgrade.ss.sup + 10;
_root.SHOLD = _root.SHOLD + 10;
_root.upgrade.amountofspikes = _root.upgrade.amountofspikes + 1;
_root.spikelimit = _root.spikelimit + 1;
}
}
Instance of Symbol 257 MovieClip in Symbol 337 MovieClip Frame 3
on (press) {
_root.upgrade.gotoAndStop(1);
}
Instance of Symbol 258 MovieClip in Symbol 337 MovieClip Frame 3
on (press) {
_root.upgrade.gotoAndStop(3);
}
Symbol 338 MovieClip Frame 60
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 20) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 150
stop();
Symbol 373 MovieClip Frame 16
stop();
Symbol 374 MovieClip Frame 100
stop();
Symbol 456 MovieClip Frame 50
stop();
_root.gameover = _root.gameover - 1;
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
stop();
Symbol 457 MovieClip Frame 3
stop();
Symbol 457 MovieClip Frame 4
stop();
Symbol 457 MovieClip Frame 5
stop();
Symbol 457 MovieClip Frame 6
stop();
Symbol 457 MovieClip Frame 7
stop();
Symbol 457 MovieClip Frame 8
stop();
Symbol 457 MovieClip Frame 9
stop();
Symbol 457 MovieClip Frame 10
stop();
Symbol 461 MovieClip Frame 50
stop();
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
_root.cash = _root.cash + 3;
Symbol 490 MovieClip Frame 1
stop();
Instance of Symbol 466 MovieClip in Symbol 490 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(_x, _y, true)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
}
if (_root.basicfish2.hit.hitTest(_x, _y, true)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
}
if (_root.basicfish3.hit.hitTest(_x, _y, true)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
}
if (_root.basicfish4.hit.hitTest(_x, _y, true)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
}
}
Instance of Symbol 482 MovieClip in Symbol 490 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(_x, _y, true)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 10;
}
if (_root.basicfish2.hit.hitTest(_x, _y, true)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 10;
}
if (_root.basicfish3.hit.hitTest(_x, _y, true)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 10;
}
if (_root.basicfish4.hit.hitTest(_x, _y, true)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 10;
}
}
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 2
stop();
_root.cash = _root.cash + 5;
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();
_root.cash = _root.cash + 10;
Instance of Symbol 373 MovieClip "bang" in Symbol 495 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - 2.5;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - 2.5;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - 2.5;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - 2.5;
}
}
Symbol 514 MovieClip Frame 1
stop();
Instance of Symbol 513 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
damage = 1;
}
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - damage;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - damage;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - damage;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - damage;
}
}
Instance of Symbol 513 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
damage = 1;
}
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - damage;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - damage;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - damage;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - damage;
}
}
Instance of Symbol 513 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
damage = 1;
}
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - damage;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - damage;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - damage;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - damage;
}
}
Symbol 514 MovieClip Frame 2
stop();
_root.cash = _root.cash + 25;
Symbol 516 MovieClip Frame 1
stop();
Instance of Symbol 513 MovieClip in Symbol 516 MovieClip Frame 1
onClipEvent (load) {
damage = 1;
}
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - damage;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - damage;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - damage;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - damage;
}
}
Symbol 516 MovieClip Frame 2
stop();
_root.cash = _root.cash + 10;
Instance of Symbol 518 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
damage = 10;
}
onClipEvent (enterFrame) {
if (_root.basicfish.hit.hitTest(this)) {
_root.basicfish.hp._xscale = _root.basicfish.hp._xscale - damage;
}
if (_root.basicfish2.hit.hitTest(this)) {
_root.basicfish2.hp._xscale = _root.basicfish2.hp._xscale - damage;
}
if (_root.basicfish3.hit.hitTest(this)) {
_root.basicfish3.hp._xscale = _root.basicfish3.hp._xscale - damage;
}
if (_root.basicfish4.hit.hitTest(this)) {
_root.basicfish4.hp._xscale = _root.basicfish4.hp._xscale - damage;
}
}
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
_root.cash = _root.cash + 30;
Symbol 525 MovieClip Frame 298
stop();
Symbol 539 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 28) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
}
_root.i = _root.i + 1;
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
}
_root.i = _root.i + 1;
Symbol 551 MovieClip Frame 298
stop();
Symbol 553 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 19) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
}
_root.i = _root.i + 1;
if (_root.timeleft == 9) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
}
_root.i = _root.i + 1;
Symbol 561 MovieClip Frame 298
stop();
Symbol 563 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 20) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 15) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 8) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 571 MovieClip Frame 298
stop();
Symbol 573 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 20) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 16) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 10) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
Symbol 581 MovieClip Frame 298
stop();
Symbol 583 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 16) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 10) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
Symbol 591 MovieClip Frame 298
stop();
Symbol 593 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 6) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 601 MovieClip Frame 298
stop();
Symbol 603 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 28) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 15) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 6) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 610 MovieClip Frame 298
stop();
Symbol 612 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 15) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 3) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 619 MovieClip Frame 220
stop();
Symbol 621 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 38) {
duplicateMovieClip (_root.enemycrab, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 32) {
duplicateMovieClip (_root.enemyfish, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 13) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 9) {
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 4) {
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 628 MovieClip Frame 220
stop();
Symbol 630 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 38) {
duplicateMovieClip (_root.enemyfish, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 34) {
duplicateMovieClip (_root.enemyhorse, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 28) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 10) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 7) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
Symbol 637 MovieClip Frame 220
stop();
Symbol 639 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 37) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 34) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 22) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 21) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 20) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 13) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 9) {
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
Symbol 646 MovieClip Frame 220
stop();
Symbol 648 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 32) {
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 30) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
if (_root.timeleft == 22) {
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 16) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 6) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
_root.i = _root.i + 1;
Symbol 655 MovieClip Frame 220
stop();
Symbol 657 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 39) {
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 20) {
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 10) {
duplicateMovieClip (_root.enemyhorse, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 664 MovieClip Frame 220
stop();
Symbol 666 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 48) {
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 673 MovieClip Frame 220
stop();
Symbol 675 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 48) {
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 42) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 37) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 682 MovieClip Frame 220
stop();
Symbol 684 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 48) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 40) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 36) {
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 691 MovieClip Frame 220
stop();
Symbol 693 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 47) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 29) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 12) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 700 MovieClip Frame 220
stop();
Symbol 702 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 46) {
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 39) {
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 36) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 30) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 709 MovieClip Frame 220
stop();
Symbol 711 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 57) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 48) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 40) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 30) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 24) {
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 718 MovieClip Frame 220
stop();
Symbol 720 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 55) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 49) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 37) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 33) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 28) {
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 727 MovieClip Frame 220
stop();
Symbol 729 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 56) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 49) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 40) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 736 MovieClip Frame 220
stop();
Symbol 738 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 56) {
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 47) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 42) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 34) {
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 745 MovieClip Frame 220
stop();
Symbol 747 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 57) {
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 48) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 40) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 28) {
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 10) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 5) {
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 754 MovieClip Frame 220
stop();
Symbol 756 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 58) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 43) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 763 MovieClip Frame 220
stop();
Symbol 765 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 68) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 58) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 43) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 772 MovieClip Frame 220
stop();
Symbol 774 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 67) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 59) {
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 49) {
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 44) {
duplicateMovieClip (_root.enemyhorse, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 42) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 39) {
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 27) {
duplicateMovieClip (_root.enemyfish, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 15) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyocto" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 9) {
duplicateMovieClip (_root.enemyshark, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 781 MovieClip Frame 220
stop();
Symbol 783 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 65) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 58) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 43) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyocto, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 22) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 790 MovieClip Frame 220
stop();
Symbol 792 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 80) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 75) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 68) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 58) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 43) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 5) {
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 799 MovieClip Frame 220
stop();
Symbol 801 MovieClip Frame 60
_root.timeleft = _root.timeleft - 1;
if (_root.timeleft == 0) {
_root.nextFrame();
}
if (_root.timeleft == 80) {
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 70) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 66) {
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 58) {
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 52) {
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 43) {
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemyfish" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 35) {
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemycrab, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 25) {
duplicateMovieClip (_root.enemycrab, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyfish, "newenemyshark" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 18) {
duplicateMovieClip (_root.enemycrab, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyhorse, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyocto, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemycrab" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 14) {
duplicateMovieClip (_root.enemyhorse, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemybomb, "newenemybomb" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.timeleft == 5) {
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.enemyshark, "newenemyhorse" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
Symbol 808 MovieClip Frame 220
stop();
Symbol 812 Button
on (press) {
stopAllSounds();
_root.gotoAndStop(5);
}