Frame 1
function itemHandler2(obj, item) {
getURL ("http://www.glaielgames.com", "_blank");
}
function itemHandler3(obj, item) {
getURL ("http://www.bomtoons.com", "_blank");
}
function itemHandler4(obj, item) {
getURL ("http://www.armorgames.com", "_blank");
}
function itemHandler5(obj, item) {
_quality = "high";
}
function itemHandler6(obj, item) {
_quality = "medium";
}
function itemHandler7(obj, item) {
_quality = "low";
}
function itemHandler12(obj, item) {
sound12345.setVolume(0);
hud.pausescreen.vol._x = hud.pausescreen.slider._x;
}
function itemHandler13(obj, item) {
sound12345.setVolume(100);
hud.pausescreen.vol._x = hud.pausescreen.slider._x + 100;
}
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
bbb_cmi = new ContextMenuItem("Visit Glaiel Games", itemHandler2);
ccc_cmi = new ContextMenuItem("Visit Bomtoons", itemHandler3);
ddd_cmi = new ContextMenuItem("Visit Armor Games", itemHandler4);
eee_cmi = new ContextMenuItem("High Quality", itemHandler5);
fff_cmi = new ContextMenuItem("Mid Quality", itemHandler6);
ggg_cmi = new ContextMenuItem("Low Quality", itemHandler7);
lll_cmi = new ContextMenuItem("Sound Off", itemHandler12);
mmm_cmi = new ContextMenuItem("Sound On", itemHandler13);
ccc_cmi.separatorBefore = true;
eee_cmi.separatorBefore = true;
lll_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi, fff_cmi, ggg_cmi, lll_cmi, mmm_cmi);
_root.menu = root_cm;
_quality = "medium";
sound12345 = new Sound(this);
Frame 10
stop();
Instance of Symbol 47 MovieClip in Frame 10
onClipEvent (enterFrame) {
_rotation = (((Math.atan2(_x - _root._xmouse, _y - _root._ymouse) / (Math.PI/180)) * -1) - 90);
}
Frame 20
delete onMouseDown;
Frame 231
function CharCode(val) {
if ((val >= 49) && (val <= 90)) {
return(String.fromCharCode(val));
}
switch (val) {
case 96 :
return("numpad0");
case 97 :
return("numpad1");
case 98 :
return("numpad2");
case 99 :
return("numpad3");
case 100 :
return("numpad4");
case 101 :
return("numpad5");
case 102 :
return("numpad6");
case 103 :
return("numpad7");
case 104 :
return("numpad8");
case 105 :
return("numpad9");
case 106 :
return("numpad*");
case 107 :
return("numpad+");
case 108 :
return("numpadEnter");
case 109 :
return("numpad-");
case 110 :
return("numpad.");
case 111 :
return("numpad/");
case 112 :
return("F1");
case 113 :
return("F2");
case 114 :
return("F3");
case 115 :
return("F4");
case 116 :
return("F5");
case 117 :
return("F6");
case 118 :
return("F7");
case 119 :
return("F8");
case 120 :
return("F9");
case 121 :
return("F10");
case 122 :
return("F11");
case 123 :
return("F12");
case 124 :
return("F13");
case 125 :
return("F14");
case 126 :
return("F15");
case 8 :
return("Backspace");
case 9 :
return("Tab");
case 12 :
return("Clear");
case 13 :
return("Enter");
case 16 :
return("Shift");
case 17 :
return("Ctrl");
case 18 :
return("Alt");
case 20 :
return("CapsLock");
case 27 :
return("Esc");
case 32 :
return("Space");
case 33 :
return("PgUp");
case 34 :
return("PgDwn");
case 35 :
return("End");
case 36 :
return("Home");
case 37 :
return("Left");
case 38 :
return("Up");
case 39 :
return("Right");
case 40 :
return("Down");
case 45 :
return("Insert");
case 46 :
return("Delete");
case 47 :
return("Help");
case 144 :
return("NumLock");
case 186 :
return(";:");
case 187 :
return("=+");
case 189 :
return("-_");
case 191 :
return("/?");
case 192 :
return("~");
case 219 :
return("[{");
case 221 :
return("]}");
case 220 :
return("\\|");
case 222 :
return("'\"");
}
}
stop();
if (keys == undefined) {
keys = new Array();
keys = [37, 39, 38, 40, 40, 83, 68, 65, 32, 13];
}
var keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
if (introclip.arr._currentframe != 1) {
keys[introclip.arr._currentframe - 2] = Key.getCode();
introclip.arr.play();
}
};
onEnterFrame = function () {
tlkey = CharCode(keys[0]);
trkey = CharCode(keys[1]);
tukey = CharCode(keys[2]);
tdkey = CharCode(keys[3]);
tdukey = CharCode(keys[4]);
tjkey = CharCode(keys[5]);
tfkey = CharCode(keys[6]);
thkey = CharCode(keys[7]);
tbkey = CharCode(keys[8]);
tpkey = CharCode(keys[9]);
};
Frame 232
function enmak() {
for (i in points) {
if (points[i].id == 1) {
duplicateMovieClip (_root.enm, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == 2) {
duplicateMovieClip (_root.enm2, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == 3) {
duplicateMovieClip (_root.enm3, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == 4) {
duplicateMovieClip (_root.enm4, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == 5) {
duplicateMovieClip (_root.enm5, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == 6) {
duplicateMovieClip (_root.enm6, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == "b") {
duplicateMovieClip (_root.hotair, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
_root["e" + _root.nmbr].timer1 = points[i].t;
nmbr++;
}
if (points[i].id == "s") {
duplicateMovieClip (_root.sanddol, "s" + nmbr, nmbr);
_root["s" + _root.nmbr]._x = points[i]._x;
_root["s" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == "h") {
duplicateMovieClip (_root.henry, "e" + nmbr, nmbr);
_root["e" + _root.nmbr]._x = points[i]._x;
_root["e" + _root.nmbr]._y = points[i]._y;
nmbr++;
}
if (points[i].id == "brat") {
duplicateMovieClip (_root.brat, "throne", nmbr);
_root.throne._x = points[i]._x;
_root.throne._y = points[i]._y;
nmbr++;
}
if (points[i].id == "bot") {
duplicateMovieClip (_root.bot, "robot", nmbr);
_root.robot._x = points[i]._x;
_root.robot.y = points[i]._y;
nmbr++;
}
}
}
function newlevel() {
var _local1 = 0;
while (_local1 < enms.length) {
removeMovieClip(enms.getItem(_local1));
enms.getItem(_local1).removeMovieClip();
_local1++;
}
enms.clear();
level = level + 1;
points.gotoAndStop(level);
char._x = points.spawn._x;
char._y = points.spawn._y + (char.h / 2);
cam.setUp(new Vector(char._x, char._y), cams[level - 1][0] + 275, cams[level - 1][2] + 200, cams[level - 1][1] - 275, cams[level - 1][3] + 200);
if (level == 26) {
musicswap(music2);
}
if (level == 45) {
hud.cutscene1._visible = true;
hud.cutscene1.play();
}
}
function duptimer(tgt) {
duplicateMovieClip (timer_c, "t" + nmbr, nmbr);
_root["t" + nmbr].tgt = tgt;
nmbr++;
}
function bubmak(tgt) {
if ((random(10) == 0) && (tgt.stat != "drown")) {
duplicateMovieClip (bub, "bu" + nmbr, nmbr);
_root["bu" + nmbr]._x = (tgt._x + (Math.random() * 50)) - 25;
_root["bu" + nmbr]._y = tgt._y - tgt.h;
nmbr++;
}
}
function powerup(tgt, id) {
if (diff != 3) {
if (id != "he") {
if (id == 1) {
var _local2 = 30;
}
if (id == 2) {
var _local2 = 25;
}
if (id == 3) {
var _local2 = 15;
}
if (id == 4) {
var _local2 = 10;
}
if (id == 5) {
var _local2 = 5;
}
if (diff == 1) {
var _local2 = Math.round(_local2 / 2);
}
if ((random(_local2) <= 1) || (id == "b")) {
duplicateMovieClip (pwrp, "p" + nmbr, nmbr);
_root["p" + nmbr]._x = tgt._x;
_root["p" + nmbr]._y = tgt._y - tgt.h;
var _local4 = 1;
var _local2 = random(30);
if (id == "b") {
_local2 = random(5);
((_local2 == 4) ? (_local2 = 16) : 0);
}
((_local2 == 0) ? (_local4 = 7) : 0);
((_local2 == 1) ? (_local4 = 6) : 0);
((_local2 == 2) ? (_local4 = 5) : 0);
((_local2 == 3) ? (_local4 = 2) : 0);
((_local2 == 4) ? (_local4 = 10) : 0);
(((_local2 >= 5) && (_local2 <= 9)) ? (_local4 = 9) : 0);
(((_local2 >= 10) && (_local2 <= 14)) ? (_local4 = 8) : 0);
(((_local2 >= 15) && (_local2 <= 19)) ? (_local4 = 3) : 0);
(((_local2 >= 20) && (_local2 <= 25)) ? (_local4 = 4) : 0);
(((_local2 >= 26) && (_local2 <= 30)) ? (_local4 = 1) : 0);
_root["p" + nmbr].typ = _local4;
_root.nmbr++;
}
} else {
duplicateMovieClip (pwrp, "p" + nmbr, nmbr);
_root["p" + nmbr]._x = tgt._x - 50;
_root["p" + nmbr]._y = tgt._y - tgt.h;
_root["p" + nmbr].typ = 7;
_root.nmbr++;
duplicateMovieClip (pwrp, "p" + nmbr, nmbr);
_root["p" + nmbr]._x = tgt._x - 10;
_root["p" + nmbr]._y = tgt._y - tgt.h;
_root["p" + nmbr].typ = 6;
_root.nmbr++;
var _local6 = new Array();
_local6 = [3, 5, 2];
duplicateMovieClip (pwrp, "p" + nmbr, nmbr);
_root["p" + nmbr]._x = tgt._x + 20;
_root["p" + nmbr]._y = tgt._y - tgt.h;
_root["p" + nmbr].typ = _local6[random(3)];
_root.nmbr++;
duplicateMovieClip (pwrp, "p" + nmbr, nmbr);
_root["p" + nmbr]._x = tgt._x + 60;
_root["p" + nmbr]._y = tgt._y - tgt.h;
_root["p" + nmbr].typ = random(3) + 8;
_root.nmbr++;
}
}
}
function hitspl(tgt1, tgt2) {
duplicateMovieClip (hitsplode, "s" + nmbr, nmbr + 60001);
_root["s" + nmbr]._x = (tgt1._x + tgt2._x) / 2;
_root["s" + nmbr]._y = ((tgt1._y - (tgt1.h / 2)) + (tgt2._y - (tgt2.h / 2))) / 2;
_root.nmbr++;
}
function hitspl2(tgt1, tgt2) {
duplicateMovieClip (hitsplode, "s" + nmbr, nmbr + 60001);
_root["s" + nmbr]._x = (tgt1._x + tgt2._x) / 2;
_root["s" + nmbr]._y = tgt1._y;
_root.nmbr++;
}
function musicswap(tgt) {
currentmusic.stop();
if (tgt != "none") {
currentmusic = tgt;
tgt.start(0, 65535);
}
}
function pausegame() {
hud.pausescreen._visible = true;
ispaused = true;
framedelay = 3;
detectstate1(_root);
}
function detectstate1(tgt) {
for (var _local2 in tgt) {
if (typeof(tgt[_local2]) == "movieclip") {
tgt[_local2].omgocfram = tgt[_local2]._currentframe;
detectstate1(tgt[_local2]);
}
}
}
function detectstate2(tgt) {
for (var _local2 in tgt) {
if (typeof(tgt[_local2]) == "movieclip") {
if (tgt[_local2].omgocfram == tgt[_local2]._currentframe) {
tgt[_local2].stoppedOMG123 = true;
}
detectstate2(tgt[_local2]);
}
}
}
function detectstate3(tgt) {
for (var _local2 in tgt) {
if (typeof(tgt[_local2]) == "movieclip") {
if (tgt[_local2].stoppedOMG123 != undefined) {
if (tgt[_local2].omgocfram == tgt[_local2]._currentframe) {
tgt[_local2].stoppedOMG123 = true;
} else {
tgt[_local2].stoppedOMG123 = false;
}
}
tgt[_local2].gotoAndStop(tgt[_local2].omgocfram);
detectstate3(tgt[_local2]);
}
}
}
function unpause(tgt) {
for (var _local2 in tgt) {
if (typeof(tgt[_local2]) == "movieclip") {
if (!tgt[_local2].stoppedOMG123) {
tgt[_local2].play();
}
unpause(tgt[_local2]);
}
}
}
function clearvar(tgt) {
for (var _local2 in tgt) {
if (typeof(tgt[_local2]) == "movieclip") {
delete tgt[_local2].omgocfram;
delete tgt[_local2].stoppedOMG123;
clearvar(tgt[_local2]);
}
}
}
function clearall() {
for (i in _root) {
removeMovieClip(_root[i]);
}
}
function hop(tgt) {
_root._x = 0;
_root._y = 0;
_root.musicswap("none");
delete _root.onEnterFrame;
if (tgt == "lose") {
_root.gotoAndPlay(tgt);
} else {
_root.gotoAndStop(tgt);
}
_root.clearall();
}
cloud._visible = false;
land._visible = false;
glow = false;
bonus = 0;
ispaused = false;
framedelay = 0;
stop();
delete onEnterFrame;
delete keyListener;
var enms = new Container();
var cam = new Cam();
cam.setUp(new Vector(275, 200), 275, -200, 1675, 200);
cams = new Array(new Array());
cams[0] = [0, 1450, -400, 0];
cams[1] = [0, 1750, -400, 0];
cams[2] = [0, 850, -400, 0];
cams[3] = [0, 1200, -400, 0];
cams[4] = [0, 1400, -400, 0];
cams[5] = [0, 550, -400, 0];
cams[6] = [0, 1200, -400, 0];
cams[7] = [0, 1900, -600, 0];
cams[8] = [0, 850, -400, 0];
cams[9] = [0, 1100, -400, 0];
cams[10] = [0, 550, -400, 0];
cams[11] = [0, 1200, -400, 0];
cams[12] = [0, 1200, -400, 0];
cams[13] = [0, 900, -400, 0];
cams[14] = [0, 1200, -400, 0];
cams[15] = [0, 800, -400, 0];
cams[16] = [0, 550, -400, 0];
cams[17] = [0, 550, -400, 0];
cams[18] = [0, 1200, -400, 0];
cams[19] = [0, 1000, -400, 0];
cams[20] = [0, 750, -400, 0];
cams[21] = [0, 1400, -400, 0];
cams[22] = [0, 1000, -400, 0];
cams[23] = [0, 825, -400, 0];
cams[24] = [0, 825, -400, 0];
cams[25] = [0, 1050, -900, 0];
cams[26] = [0, 1050, -900, 0];
cams[27] = [0, 1050, -900, 0];
cams[28] = [0, 1050, -900, 0];
cams[29] = [0, 1400, -900, 0];
cams[30] = [0, 1050, -900, 0];
cams[31] = [0, 1050, -900, 0];
cams[32] = [0, 1050, -900, 0];
cams[33] = [0, 1400, -900, 0];
cams[34] = [0, 1050, -900, 0];
cams[35] = [0, 1050, -900, 0];
cams[36] = [0, 1400, -900, 0];
cams[37] = [0, 1400, -900, 0];
cams[38] = [0, 825, -900, 0];
cams[39] = [0, 1050, -900, 0];
cams[40] = [0, 1050, -900, 0];
cams[41] = [0, 1400, -900, 0];
cams[42] = [0, 825, -900, 0];
cams[43] = [0, 1400, -900, 0];
cams[44] = [0, 825, -400, 0];
score = 0;
foreground.swapDepths(999998);
water_c.swapDepths(999997);
hud.swapDepths(999999);
char.swapDepths(60000);
bubble_c.swapDepths(60001);
points._visible = false;
water._visible = false;
hud.pausescreen._visible = false;
level = 0;
points.gotoAndStop(level);
nmbr = 0;
music = new Sound(sc9);
music2 = new Sound(sc9);
henryboss = new Sound(sc9);
botboss = new Sound(sc9);
music.setVolume(70);
bossI = new Sound(sc9);
bossI.attachSound("bossintro");
botboss.attachSound("boss2");
music.attachSound("music");
music2.attachSound("castle");
henryboss.attachSound("boss1");
currentmusic = music;
music.start();
musicswap(music);
newlevel();
paus = keys[9];
pausekey = false;
pausable = true;
onEnterFrame = function () {
back.gotoAndStop(level);
mid.gotoAndStop(level);
foreground.gotoAndStop(level);
water_c.gotoAndStop(level);
land.gotoAndStop(level);
cloud.gotoAndStop(level);
water.gotoAndStop(level);
points.gotoAndStop(level);
if (pppxx == undefined) {
enmak();
pppxx = 0;
}
((framedelay > 0) ? (framedelay--) : 0);
if (framedelay == 2) {
detectstate2(_root);
}
if (framedelay == 1) {
detectstate3(_root);
}
if (((((framedelay == 0) && (!pausekey)) && (Key.isDown(paus))) && (!ispaused)) && (pausable)) {
pausegame();
pausekey = true;
}
if ((((framedelay == 0) && (!pausekey)) && (Key.isDown(paus))) && (ispaused)) {
unpause(_root);
clearvar(_root);
ispaused = false;
pausekey = true;
hud.pausescreen._visible = false;
}
if (!Key.isDown(paus)) {
pausekey = false;
}
};
Instance of Symbol 620 MovieClip "sanddol" in Frame 232
onClipEvent (load) {
if (_name != "sanddol") {
lvl = _root.level;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "sanddol") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if ((hitTest(_root.char.box) && (_root.char.flashing <= 0)) && (this._currentframe == 1)) {
this.gotoAndStop(2);
_root.char.water = 100;
(_root.char.power ? ((_root.char.poweramt = 100)) : 0);
(_root.char.rapid ? ((_root.char.rapidamt = 100)) : 0);
_root.bonus = _root.bonus + 1;
if ((_root.bonus % _root.diff) == 0) {
_root.char.lives++;
}
_root.score = _root.score + 5000;
}
}
}
}
Instance of Symbol 731 MovieClip "enm" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
stat = "shoot";
_root.nmbr = _root.nmbr + 1;
} else {
stat = "melee";
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
_root.powerup(this, 1);
}
if (typ == "bull") {
stat = "die";
_root.powerup(this, 1);
}
if (typ == "gern") {
stat = "die";
_root.powerup(this, 1);
}
this.gotoAndStop(stat);
dead = true;
_root.score = _root.score + 500;
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(5 * currentdir, 0);
tgt._x = _x + (40 * currentdir);
tgt._y = _y - 35;
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(6 * currentdir, -10);
tgt._x = _x + (30 * currentdir);
tgt._y = _y - 35;
}
}
function jump() {
if (!_root.ispaused) {
if (((((stat != "shoot") && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
}
if (_name != "enm") {
grav = 1;
speed = new Vector(3, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = _width / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 13;
jumped = false;
seconds = 10;
air = 30 * seconds;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 1.5;
jumpheight = 19;
} else {
jumpheight = 13;
speed.x = 3;
}
if (saw) {
if ((((((random(40) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_y - _root.char._y) < 75)) {
this.shoot();
}
if (((((((random(80) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if (((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 300) || (Math.abs(_y - _root.char._y) > 350)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 9)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 40, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe == 7)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 988 MovieClip "char" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > (_x - 10))) {
return(true);
}
if ((currentdir == -1) && (tgt._x < (_x + 10))) {
return(true);
}
return(false);
}
function die(typ) {
if (!_root.ispaused) {
if ((flashing <= 0) && (!dead)) {
if ((typ == "melee") || (typ == "bull")) {
stat = "die";
dead = true;
bubble = 0;
}
}
}
}
function drown() {
if (!_root.ispaused) {
if ((!dead) && (bubble <= 0)) {
stat = "drown";
dead = true;
}
}
}
function reset() {
if (!_root.ispaused) {
flashing = 60;
dead = false;
if (!power) {
weapon = 2;
}
power = false;
rapid = false;
poweramt = 0;
rapidamt = 0;
lives--;
((lives < 0) ? (_root.hop("lose")) : 0);
}
}
function reset2() {
if (!_root.ispaused) {
flashing = 60;
bubble = 150;
dead = false;
if (!power) {
weapon = 2;
}
power = false;
rapid = false;
poweramt = 0;
rapidamt = 0;
lives--;
((lives < 0) ? (_root.hop("lose")) : 0);
}
}
function dupbul() {
if (!_root.ispaused) {
if (weapon == 2) {
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
if (weapon == 1) {
duplicateMovieClip (_root.bull2, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
water = water - (2 / (1 + (_root.diff == 1)));
}
if (weapon == 6) {
duplicateMovieClip (_root.bull3, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
water = water - (5 / (1 + (_root.diff == 1)));
}
if (weapon == 4) {
duplicateMovieClip (_root.gerna2, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
water = water - (3.2 / (1 + (_root.diff == 1)));
}
if (weapon == 5) {
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
placeD(_root["b" + _root.nmbr], 10);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
placeD(_root["b" + _root.nmbr], -10);
_root.nmbr = _root.nmbr + 1;
water = water - (1.66 / (1 + (_root.diff == 1)));
}
if (weapon == 3) {
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
placeT(_root["b" + _root.nmbr], 15);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
placeT(_root["b" + _root.nmbr], -15);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.bull, "b" + _root.nmbr, _root.nmbr);
placeT(_root["b" + _root.nmbr], 0);
_root.nmbr = _root.nmbr + 1;
water = water - (2.5 / (1 + (_root.diff == 1)));
}
if (water <= 0) {
water = 100;
weapon = 2;
}
if (_root.diff != 1) {
rapidamt = rapidamt - 1;
poweramt = poweramt - 2.5;
} else {
rapidamt = rapidamt - 0.5;
poweramt = poweramt - 1.25;
}
((rapidamt <= 0) ? ((rapid = false)) : 0);
((poweramt <= 0) ? ((power = false)) : 0);
}
}
function balo() {
if (!_root.ispaused) {
duplicateMovieClip (_root.gerna, "g" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
balonmbr = balonmbr - 1;
}
}
function place(tgt) {
if (!_root.ispaused) {
if (currentaim != "balloon") {
if (currentaim == "up") {
tgt.speed = new Vector(0, -1);
}
if (currentaim == "dup") {
tgt.speed = new Vector(1, -1);
}
if (currentaim == "forw") {
tgt.speed = new Vector(1, 0);
}
if (currentaim == "ddow") {
tgt.speed = new Vector(1, 1);
}
if (currentaim == "dow") {
tgt.speed = new Vector(0, 1);
}
tgt.speed.x = tgt.speed.x * currentdir;
tgt.speed.norm();
tgt._x = _x + (tgt.speed.x * (((gunh + ((currentaim == "ddow") * 30)) + ((currentaim == "dup") * 20)) + ((currentaim == "forw") * 10)));
tgt._y = (((((_y + (tgt.speed.y * (gunh + ((currentaim == "ddow") * 30)))) - (h / 2)) - (((currentaim == "forw") || (currentaim == "up")) * 20)) - ((currentaim == "ddow") * 40)) - ((currentaim == "dup") * 20)) + (((stat == "crouch") || (stat == "crawl")) * 13);
tgt.speed.scale(20);
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
} else {
tgt._x = _x + (35 * currentdir);
tgt._y = _y - 55;
tgt.speed = new Vector(6 * currentdir, -10);
}
}
}
function placeD(tgt, yd) {
if (!_root.ispaused) {
if (currentaim == "up") {
tgt.speed = new Vector(0, -1);
}
if (currentaim == "dup") {
tgt.speed = new Vector(1, -1);
}
if (currentaim == "forw") {
tgt.speed = new Vector(1, 0);
}
if (currentaim == "ddow") {
tgt.speed = new Vector(1, 1);
}
if (currentaim == "dow") {
tgt.speed = new Vector(0, 1);
}
tgt.speed.x = tgt.speed.x * currentdir;
tgt.speed.norm();
tgt._x = _x + (tgt.speed.x * (((gunh + ((currentaim == "ddow") * 30)) + ((currentaim == "dup") * 20)) + ((currentaim == "forw") * 10)));
tgt._y = (((((_y + (tgt.speed.y * (gunh + ((currentaim == "ddow") * 30)))) - (h / 2)) - (((currentaim == "forw") || (currentaim == "up")) * 20)) - ((currentaim == "ddow") * 40)) - ((currentaim == "dup") * 20)) + (((stat == "crouch") || (stat == "crawl")) * 13);
var _local3 = tgt.speed.perpendicular();
tgt._x = tgt._x + (_local3.x * yd);
tgt._y = tgt._y + (_local3.y * yd);
tgt.speed.scale(20);
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function placeT(tgt, deg) {
if (currentaim == "up") {
tgt.speed = new Vector(0, -1);
}
if (currentaim == "dup") {
tgt.speed = new Vector(1, -1);
}
if (currentaim == "forw") {
tgt.speed = new Vector(1, 0);
}
if (currentaim == "ddow") {
tgt.speed = new Vector(1, 1);
}
if (currentaim == "dow") {
tgt.speed = new Vector(0, 1);
}
tgt.speed.x = tgt.speed.x * currentdir;
tgt.speed.norm();
tgt._x = _x + (tgt.speed.x * (((gunh + ((currentaim == "ddow") * 30)) + ((currentaim == "dup") * 20)) + ((currentaim == "forw") * 10)));
tgt._y = (((((_y + (tgt.speed.y * (gunh + ((currentaim == "ddow") * 30)))) - (h / 2)) - (((currentaim == "forw") || (currentaim == "up")) * 20)) - ((currentaim == "ddow") * 40)) - ((currentaim == "dup") * 20)) + (((stat == "crouch") || (stat == "crawl")) * 13);
tgt.speed.rotate(deg);
tgt.speed.scale(20);
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
movable = true;
yspeed = 0;
xspeed = 5;
wspd = 5;
cspd = 2.5;
grav = 1;
w = _width / 4;
h = _height;
grounded = false;
jumpheight = 13;
ddd = 3;
jmpOMG = false;
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
timeron = true;
totaltime = 0;
weapon = 2;
rapid = false;
power = false;
water = 100;
poweramt = 0;
rapidamt = 0;
balonmbr = 10;
clouded = 0;
xs = _xscale;
currentaim = "brest";
currentdir = 1;
stat = "rest";
left = _root.keys[0];
right = _root.keys[1];
hold = _root.keys[7];
jump = _root.keys[5];
down = _root.keys[3];
up = _root.keys[2];
shoot = _root.keys[6];
gernade = _root.keys[8];
duck = _root.keys[4];
gern = false;
shk = false;
btime = new Array();
btime = [5, 1, 5, 7, 3, 7];
timer = 0;
freeze = false;
nmbr = 0;
gunh = 60;
fcp = new Vector(_root.foreground._x, _root.foreground._y);
bcp = new Vector(_root.back._x, _root.back._y);
jumped = false;
seconds = 10;
dead = false;
air = 30 * seconds;
flashing = 0;
bubble = 0;
((_root.diff == 1) ? ((lives = 100)) : 0);
((_root.diff == 2) ? ((lives = 50)) : 0);
((_root.diff == 3) ? ((lives = 25)) : 0);
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (movable) {
if (weapon == 2) {
water = 100;
}
timer = timer - 1;
if (!dead) {
if ((Key.isDown(hold) && (currentaim == "brest")) && (!((stat == "rest") || (stat == "crouch")))) {
currentaim = "forw";
}
if ((((Key.isDown(duck) && (grounded || ((!grounded) && ((stat == "crouch") || (stat == "crawl"))))) && (currentaim != "melee")) && (currentaim != "balloon")) && (!jumped)) {
stat = "crouch";
currentaim = "forw";
xspeed = cspd;
} else {
stat = "rest";
xspeed = wspd;
}
if (_root.water.hitTest(_x, _y, true)) {
xspeed = xspeed * 0.5;
jumpheight = 19;
} else {
jumpheight = 13;
}
if (Key.isDown(left)) {
_x = (_x - xspeed);
if (stat == "crouch") {
stat = "crawl";
} else {
stat = "run";
}
if ((!Key.isDown(hold)) && (currentaim != "melee")) {
currentdir = -1;
}
}
if (Key.isDown(right)) {
_x = (_x + xspeed);
if (stat == "crouch") {
stat = "crawl";
} else {
stat = "run";
}
if ((!Key.isDown(hold)) && (currentaim != "melee")) {
currentdir = 1;
}
}
if (!(Key.isDown(left) || (Key.isDown(right)))) {
if ((stat == "crouch") || (stat == "crawl")) {
stat = "crouch";
} else {
stat = "rest";
}
if (((((!Key.isDown(hold)) || (currentaim == "balloon")) || (currentaim == "melee")) && (!freeze)) && (!((Key.isDown(shoot) && (!shk)) && (timer <= 0)))) {
currentaim = "brest";
}
}
if (((((Key.isDown(left) || (Key.isDown(right))) || (Key.isDown(up))) || (Key.isDown(down))) && (((!Key.isDown(hold)) || (currentaim == "balloon")) || (currentaim == "melee"))) && (!freeze)) {
var l = Key.isDown(left);
var r = Key.isDown(right);
var u = Key.isDown(up);
var d = Key.isDown(down);
if ((stat != "crouch") && (stat != "crawl")) {
if (u) {
currentaim = "up";
}
if (d) {
currentaim = "dow";
}
}
if (l || (r)) {
currentaim = "forw";
}
if ((stat != "crouch") && (stat != "crawl")) {
if (u && (r || (l))) {
currentaim = "dup";
}
if (d && (r || (l))) {
currentaim = "ddow";
}
}
}
var omg = false;
if (Key.isDown(down) && (Key.isDown(jump))) {
if (clouded == 1) {
clouded = 2;
omg = true;
}
}
if ((Key.isDown(jump) && (!jmpOMG)) && (!omg)) {
if (grounded) {
xspeed = wspd;
jmpOMG = true;
yspeed = -jumpheight;
jumped = true;
grounded = false;
}
}
if (!Key.isDown(jump)) {
jmpOMG = false;
}
}
if (_root.water.hitTest(_x, _y, true)) {
yspeed = yspeed + (grav / 2);
var yd = (yspeed / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
water = water + 1;
((water > 100) ? ((water = 100)) : 0);
} else {
yspeed = yspeed + grav;
((yspeed > 13) ? ((yspeed = 13)) : 0);
((yspeed < -13) ? ((yspeed = -7)) : 0);
_y = (_y + yspeed);
}
grounded = false;
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
((yspeed < 0) ? ((yspeed = 0)) : 0);
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
yspeed = 0;
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (yspeed > 0)) {
if (clouded != 2) {
grounded = true;
clouded = 1;
yspeed = 0;
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
} else {
clouded = 2;
}
} else {
clouded = 0;
}
if (((yspeed <= 0) && (jumped)) && (!dead)) {
var pppp = this.ani.c_bod.ani._currentframe;
this.gotoAndStop("jump");
this.ani.gotoAndStop(1);
if (((currentaim != "brest") && (freeze)) && ((this._currentframe != 5) || ((this._currentframe == 5) && (this.ani._currentframe == 2)))) {
this.ani.c_bod.gotoAndStop(currentaim);
this.ani.c_bod.ani.gotoAndPlay(pppp + 1);
if ((pppp + 1) < this.ani.c_bod.ani._totalframes) {
} else {
(this.ani.c_bod.ani.gotoAndStop(1));// not popped
}
}
}
if (((yspeed > 0) && (jumped)) && (!dead)) {
var pppp = this.ani.c_bod.ani._currentframe;
this.gotoAndStop("jump");
this.ani.gotoAndStop(2);
if (((currentaim != "brest") && (freeze)) && ((this._currentframe != 5) || ((this._currentframe == 5) && (this.ani._currentframe == 1)))) {
this.ani.c_bod.gotoAndStop(currentaim);
this.ani.c_bod.ani.gotoAndPlay(pppp + 1);
if ((pppp + 1) < this.ani.c_bod.ani._totalframes) {
} else {
(this.ani.c_bod.ani.gotoAndStop(1));// not popped
}
}
}
var pppp = this.ani.c_bod.ani._currentframe;
if ((!(((yspeed <= 0) && (jumped)) || ((yspeed > 0) && (jumped)))) || (dead)) {
this.gotoAndStop(stat);
}
this.ani.c_bod.gotoAndStop(currentaim);
if (pppp != 1) {
this.ani.c_bod.ani.gotoAndPlay(pppp);
}
if (((this.ani.c_bod.ani._currentframe == 1) && (currentaim != "brest")) && (freeze)) {
freeze = false;
timer = btime[weapon - 1];
(rapid ? ((timer = 2)) : 0);
}
if (((((Key.isDown(shoot) && ((!shk) || (rapid))) && (timer <= 0)) && (currentaim != "balloon")) && (!dead)) && (currentaim != "melee")) {
if (currentaim == "brest") {
currentaim = "forw";
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((((box2.hitTest(enm) && (!enm.boss)) || (box2.hitTest(enm.box) && (enm.boss))) && ((stat == "rest") || (stat == "run"))) && (!enm.dead)) {
currentaim = "melee";
enm.die("melee");
}
i++;
}
this.ani.c_bod.gotoAndStop(currentaim);
if (this.ani.c_bod.ani._currentframe == 1) {
this.ani.c_bod.ani.gotoAndStop(2);
freeze = true;
if (rapid) {
rtimer = 5;
}
shk = true;
if (currentaim != "melee") {
dupbul();
}
}
}
if ((rtimer != undefined) && (rtimer > 0)) {
rtimer--;
if (rtimer == 0) {
dupbul();
}
}
if (((((Key.isDown(gernade) && (!gern)) && ((stat == "rest") || (stat == "run"))) && (!freeze)) && (!dead)) && (balonmbr > 0)) {
currentaim = "balloon";
this.ani.c_bod.gotoAndStop(currentaim);
if (this.ani.c_bod.ani._currentframe == 1) {
this.ani.c_bod.ani.gotoAndStop(2);
freeze = true;
gern = true;
}
}
if (!dead) {
if (!Key.isDown(gernade)) {
gern = false;
}
if (!Key.isDown(shoot)) {
shk = false;
}
if ((currentaim == "balloon") && (this.ani.c_bod.ani._currentframe == 7)) {
balo();
}
}
if (grounded) {
jumped = false;
}
_xscale = (xs * currentdir);
_root.cam.pos.x = _root.cam.pos.x + ((_x - _root.cam.pos.x) / 10);
_root.cam.pos.y = _root.cam.pos.y + ((_y - _root.cam.pos.y) / 10);
((_x >= _root.cams[_root.level - 1][1]) ? (_root.hud.play()) : 0);
if (_root.water.hitTest(_x, _y - 60, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
bubble = 0;
}
if (flashing > 0) {
_visible = (!_visible);
flashing--;
} else {
_visible = true;
}
if (bubble > 0) {
bubble = bubble - 1;
air = 30 * seconds;
this._root.bubble_c.gotoAndStop(2);
} else {
_root.bubble_c.ani.play();
}
}
_root.cam.update();
_root.back._x = ((_root.cam.pos.x - 275) / 2) + bcp.x;
_root.back._y = ((_root.cam.pos.y - 200) / 2) + bcp.y;
_root.foreground._x = ((_root.cam.pos.x - 275) * -2) + fcp.x;
_root.foreground._y = ((_root.cam.pos.y - 200) * -2) + fcp.y;
_root.hud._x = 275 - _root._x;
_root.hud._y = 200 - _root._y;
if (timeron) {
totaltime = totaltime + 1;
}
}
}
Instance of Symbol 1005 MovieClip "bull" in Frame 232
onClipEvent (load) {
if (_name != "bull") {
lvl = _root.level;
s = new Sound(this);
s.attachSound("shoot1");
s.start();
if (_root.char.power) {
pow = true;
_xscale = (_xscale * 1.5);
_yscale = (_yscale * 1.5);
} else {
pow = false;
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "bull") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
_alpha = (_alpha - 20);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
_x = (_x + speed.x);
_y = (_y + speed.y);
if ((((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y < (_root.cam.pos.y - 300))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((hitTest(enm.box) && (this._currentframe == 1)) && (!enm.dead)) {
speed.x = 0;
speed.y = 0;
this.gotoAndStop(2);
enm.die("bull");
if (pow) {
enm.die("bull");
}
}
i++;
}
}
}
}
Instance of Symbol 26 MovieClip [balloon] "gerna" in Frame 232
onClipEvent (load) {
if (_name != "gerna") {
lvl = _root.level;
_root.char.place(this);
grav = 1;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "gerna") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.y = speed.y + (-(grav + 1));
speed.y = speed.y * 0.97;
speed.x = speed.x * 0.97;
}
_x = (_x + speed.x);
_y = (_y + speed.y);
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -13)) : 0);
_rotation = (_rotation + speed.x);
if (((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((hitTest(enm.box) && ((this._currentframe == 1) || (((this._currentframe == 2) && (this.ani._currentframe <= 1)) && (!enm.boss)))) && (!enm.dead)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
if (this._currentframe == 1) {
this.play();
}
enm.die("gern");
if (pow) {
enm.die("gern");
}
}
i++;
}
}
}
}
Instance of Symbol 1005 MovieClip "ebull" in Frame 232
onClipEvent (load) {
if (_name != "ebull") {
lvl = _root.level;
s = new Sound(this);
s.attachSound("shoot1");
s.start();
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "ebull") {
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
play();
}
if (lvl != _root.level) {
removeMovieClip(this);
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
_alpha = (_alpha - 20);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
_x = (_x + speed.x);
_y = (_y + speed.y);
if ((((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y < (_root.cam.pos.y - 300))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
if (hitTest(_root.char.box) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
this.play();
_root.char.die("bull");
}
}
}
}
Instance of Symbol 26 MovieClip [balloon] "egern" in Frame 232
onClipEvent (load) {
if (_name != "egern") {
grav = 1;
lvl = _root.level;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "egern") {
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
play();
}
if (lvl != _root.level) {
removeMovieClip(this);
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.y = speed.y + (-(grav + 1));
speed.y = speed.y * 0.97;
speed.x = speed.x * 0.97;
}
_x = (_x + speed.x);
_y = (_y + speed.y);
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -13)) : 0);
_rotation = (_rotation + speed.x);
if (((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
if (hitTest(_root.char.box) && ((this._currentframe == 1) || ((this._currentframe == 2) && (this.ani._currentframe <= 1)))) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
if (this._currentframe == 1) {
this.play();
}
_root.char.die("bull");
}
}
}
}
Instance of Symbol 1016 MovieClip "timer_c" in Frame 232
onClipEvent (load) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
_x = (tgt._x + 20);
_y = (tgt._y - 100);
if ((tgt.air > 150) || (tgt.dead())) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1105 MovieClip "enm2" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
_root.powerup(this, 1);
}
if (typ == "bull") {
stat = "die";
_root.powerup(this, 1);
}
if (typ == "gern") {
stat = "die";
_root.powerup(this, 1);
}
this.gotoAndStop(stat);
dead = true;
_root.score = _root.score + 500;
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
stat = "shoot";
_root.nmbr = _root.nmbr + 1;
} else {
stat = "melee";
}
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(5 * currentdir, 0);
tgt._x = _x + (40 * currentdir);
tgt._y = _y - 35;
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(6 * currentdir, -10);
tgt._x = _x + (30 * currentdir);
tgt._y = _y - 35;
}
}
function jump() {
if (!_root.ispaused) {
if (((((stat != "shoot") && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
}
if (_name != "enm2") {
grav = 1;
speed = new Vector(3, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = _width / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 13;
jumped = false;
seconds = 10;
air = 30 * seconds;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm2") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 1.5;
jumpheight = 19;
} else {
jumpheight = 13;
speed.x = 3;
}
if (saw) {
if ((((((random(40) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_y - _root.char._y) < 75)) {
this.shoot();
}
if (((((((random(80) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if (((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 300) || (Math.abs(_y - _root.char._y) > 350)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 9)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 40, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe == 7)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 1203 MovieClip "enm3" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 150)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
_root.powerup(this, 2);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 1000;
}
if (typ == "bull") {
life = life - 1;
if (life <= 0) {
stat = "die";
_root.powerup(this, 2);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 1000;
}
}
if (typ == "gern") {
stat = "die";
_root.powerup(this, 2);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 1000;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
stat = "shoot";
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 0);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 10);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], -10);
_root.nmbr = _root.nmbr + 1;
} else {
stat = "melee";
}
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt, deg) {
if (!_root.ispaused) {
tgt.speed = new Vector(10 * currentdir, 0);
tgt.speed.rotate(deg);
tgt._x = _x + (47 * currentdir);
tgt._y = _y - 35;
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(6 * currentdir, -10);
tgt._x = _x + (47 * currentdir);
tgt._y = _y - 35;
}
}
function jump() {
if (!_root.ispaused) {
if (((((stat != "shoot") && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
}
if (_name != "enm3") {
grav = 1;
speed = new Vector(2.5, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = _width / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 12;
jumped = false;
seconds = 10;
air = 30 * seconds;
life = 3;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm3") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 1.25;
jumpheight = 17.5;
} else {
jumpheight = 12;
speed.x = 2.5;
}
if (saw) {
if ((((((random(35) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_y - _root.char._y) < 75)) {
this.shoot();
}
if (((((((random(60) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if (((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 300) || (Math.abs(_y - _root.char._y) > 350)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 9)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 50, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe <= 2)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 1291 MovieClip "enm4" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 200)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 300) && (Math.abs(_y - _root.char._y) < 200)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
this.gotoAndStop(stat);
_root.powerup(this, 3);
dead = true;
_root.score = _root.score + 1000;
}
if (typ == "bull") {
life = life - 1;
if (life <= 0) {
stat = "die";
this.gotoAndStop(stat);
_root.powerup(this, 3);
dead = true;
_root.score = _root.score + 1000;
}
}
if (typ == "gern") {
stat = "die";
this.gotoAndStop(stat);
_root.powerup(this, 3);
dead = true;
_root.score = _root.score + 1000;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
stat = "shoot";
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], -10);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 10);
_root.nmbr = _root.nmbr + 1;
} else {
stat = "melee";
}
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt, deg) {
if (!_root.ispaused) {
tgt.speed = new Vector(10 * currentdir, 0);
tgt._x = _x + (50 * currentdir);
tgt._y = (_y - 50) + deg;
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(9 * currentdir, -10);
tgt._x = _x + (50 * currentdir);
tgt._y = _y - 50;
}
}
function jump() {
if (!_root.ispaused) {
if (((((stat != "shoot") && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
}
if (_name != "enm4") {
grav = 1;
speed = new Vector(4, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = _width / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 13;
jumped = false;
seconds = 10;
air = 30 * seconds;
life = 2;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm4") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 2;
jumpheight = 19;
} else {
jumpheight = 13;
speed.x = 4;
}
if (saw) {
if ((((((random(30) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_y - _root.char._y) < 75)) {
this.shoot();
}
if (((((((random(50) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if (((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 300) || (Math.abs(_y - _root.char._y) > 350)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 11)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 67, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe == 3)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 721 MovieClip "bubble_c" in Frame 232
onClipEvent (enterFrame) {
_x = _root.char._x;
_y = _root.char._y;
}
Instance of Symbol 976 MovieClip "bub" in Frame 232
onClipEvent (load) {
if (_name != "bub") {
_xscale = (random(75) + 25);
_yscale = _xscale;
yspeed = -3;
tim = (Math.random() * 3.1415) * 2;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "bub") {
if (_root.water.hitTest(_x, _y, true)) {
_y = (_y + yspeed);
_x = (_x + (1 * Math.sin(tim)));
tim = tim + 0.1;
} else {
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 1383 MovieClip "enm5" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 400) && (Math.abs(_y - _root.char._y) < 300)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 400) && (Math.abs(_y - _root.char._y) < 300)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
this.gotoAndStop(stat);
_root.powerup(this, 4);
dead = true;
_root.score = _root.score + 3000;
}
if (typ == "bull") {
life = life - 1;
if (life <= 0) {
stat = "die";
this.gotoAndStop(stat);
_root.powerup(this, 4);
dead = true;
_root.score = _root.score + 3000;
}
}
if (typ == "gern") {
stat = "die";
this.gotoAndStop(stat);
_root.powerup(this, 4);
dead = true;
_root.score = _root.score + 3000;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
if ((Math.abs(_x - _root.char._x) < 60) && (_y > _root.char._y)) {
stat = "shootup";
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 2);
_root.nmbr = _root.nmbr + 1;
} else {
stat = "shoot";
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 0);
_root.nmbr = _root.nmbr + 1;
}
} else {
stat = "melee";
}
}
}
function shoot2() {
if (!_root.ispaused) {
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 1);
_root.nmbr = _root.nmbr + 1;
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt, deg) {
if (!_root.ispaused) {
if (deg == 0) {
tgt.speed = new Vector(12 * currentdir, 0);
tgt._x = _x + (50 * currentdir);
tgt._y = _y - 50;
}
if (deg == 1) {
tgt.speed = new Vector(12 * currentdir, 0);
tgt._x = _x + (28 * currentdir);
tgt._y = _y - 50;
}
if (deg == 2) {
tgt.speed = new Vector(0, -12);
tgt._x = _x + (0 * currentdir);
tgt._y = _y - 84;
}
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(9 * currentdir, -10);
tgt._x = _x + (50 * currentdir);
tgt._y = _y - 50;
}
}
function jump() {
if (!_root.ispaused) {
if ((((((stat != "shoot") && (stat != "shootup")) && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
}
if (_name != "enm5") {
grav = 1;
speed = new Vector(5, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = (_width - 20) / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 13;
jumped = false;
seconds = 10;
air = 30 * seconds;
life = 4;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm5") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 2.5;
jumpheight = 19;
} else {
jumpheight = 13;
speed.x = 5;
}
if (saw) {
if ((((((random(20) == 0) && (!dead)) && (stat != "shoot")) && (stat != "shootup")) && (stat != "balo")) && (stat != "melee")) {
this.shoot();
}
if ((((((((random(50) == 0) && (!dead)) && (stat != "shoot")) && (stat != "shootup")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if ((((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "shootup")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 450) || (Math.abs(_y - _root.char._y) > 450)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 9)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 55, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe <= 2)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 1385 MovieClip "bull3" in Frame 232
onClipEvent (load) {
if (_name != "bull3") {
lvl = _root.level;
grav = 1;
s = new Sound(this);
s.attachSound("shoot1");
s.start();
if (_root.char.power) {
pow = true;
_xscale = (_xscale * 1.5);
_yscale = (_yscale * 1.5);
} else {
pow = false;
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "bull3") {
if (!_root.ispaused) {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (xdzs == undefined) {
xspeed = xspeed * 0.7;
yspeed = yspeed * 0.7;
xdzs = 0;
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
this.play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_alpha = (_alpha - 20);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
speed.y = speed.y + grav;
_x = (_x + speed.x);
_y = (_y + speed.y);
if (!((speed.x == 0) && (speed.y == 0))) {
_rotation = Vector.angle2(new Vector(1, 0), speed);
}
if (((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((hitTest(enm.box) && (this._currentframe == 1)) && (!enm.dead)) {
speed.x = 0;
speed.y = 0;
grav = 0;
this.gotoAndStop(2);
enm.die("gern");
if (pow) {
enm.die("gern");
}
}
i++;
}
}
}
}
Instance of Symbol 1387 MovieClip "bull2" in Frame 232
onClipEvent (load) {
if (_name != "bull2") {
lvl = _root.level;
life = 5;
s = new Sound(this);
s.attachSound("shoot2");
s.start();
if (_root.char.power) {
pow = true;
_yscale = (_yscale * 2);
life = 10;
} else {
pow = false;
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "bull2") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
this.play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
_alpha = (_alpha - 20);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
_x = (_x + speed.x);
_y = (_y + speed.y);
if ((((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y < (_root.cam.pos.y - 300))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((hitTest(enm.box) && (this._currentframe == 1)) && (!enm.dead)) {
life = life - 1;
if (life <= 0) {
speed.x = 0;
speed.y = 0;
this.gotoAndStop(2);
}
enm.die("bull");
if (pow) {
enm.die("bull");
}
}
i++;
}
}
}
}
Instance of Symbol 26 MovieClip [balloon] "gerna2" in Frame 232
onClipEvent (load) {
if (_name != "gerna2") {
lvl = _root.level;
_root.char.place(this);
grav = 1;
if (_root.char.power) {
pow = true;
_xscale = (_xscale * 1.5);
_yscale = (_yscale * 1.5);
} else {
pow = false;
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "gerna2") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (xdzs == undefined) {
xspeed = xspeed * 0.8;
yspeed = yspeed * 0.8;
xdzs = 0;
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
this.play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.y = speed.y + (-(grav + 1));
speed.y = speed.y * 0.97;
speed.x = speed.x * 0.97;
}
_x = (_x + speed.x);
_y = (_y + speed.y);
speed.y = speed.y + grav;
_rotation = (_rotation + speed.x);
if (((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
var i = 0;
while (i < _root.enms.length) {
var enm = _root.enms.getItem(i);
if ((hitTest(enm.box) && ((this._currentframe == 1) || (((this._currentframe == 2) && (this.ani._currentframe <= 1)) && (!enm.boss)))) && (!enm.dead)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_rotation = 0;
if (this._currentframe == 1) {
this.play();
}
enm.die("gern");
if (pow) {
enm.die("gern");
}
}
i++;
}
}
}
}
Instance of Symbol 1404 MovieClip "pwrp" in Frame 232
onClipEvent (load) {
if (_name != "pwrp") {
speed = -4;
grav = 1;
lvl = _root.level;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "pwrp") {
speed = speed + grav;
if (!_root.water.hitTest(_x, _y, true)) {
_y = (_y + speed);
} else {
_y = (_y + (speed / 2));
}
if (speed > 0) {
while (_root.land.hitTest(_x, _y, true) || (_root.cloud.hitTest(_x, _y, true))) {
speed = 0;
grav = 0;
_y = (_y - 0.1);
}
}
if (lvl != _root.level) {
removeMovieClip(this);
}
if (((hitTest(_root.char.box) && (_root.char.flashing <= 0)) && (this._currentframe == 19)) && (!_root.char.dead)) {
((typ == 1) ? ((_root.char.weapon = 5)) : 0);
((typ == 2) ? ((_root.char.weapon = 6)) : 0);
((typ == 3) ? ((_root.char.weapon = 3)) : 0);
((typ == 4) ? ((_root.char.weapon = 1)) : 0);
((typ == 5) ? ((_root.char.weapon = 4)) : 0);
((typ == 6) ? ((_root.char.power = true)(_root.char.poweramt = 100)) : 0);
((typ == 7) ? ((_root.char.rapid = true)(_root.char.rapidamt = 100)) : 0);
((typ == 8) ? ((_root.char.balonmbr = _root.char.balonmbr + 5)) : 0);
((typ == 9) ? ((_root.char.balonmbr = _root.char.balonmbr + 10)) : 0);
((typ == 10) ? ((_root.char.balonmbr = _root.char.balonmbr + 20)) : 0);
((typ <= 7) ? ((_root.char.water = 100)) : 0);
s = new Sound(this);
s.attachSound("power");
s.start();
removeMovieClip(this);
}
}
}
}
Instance of Symbol 1457 MovieClip "hotair" in Frame 232
onClipEvent (load) {
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
life = life - 10;
}
if (typ == "bull") {
life = life - 1;
}
if (typ == "gern") {
life = life - 10;
}
if (life <= 0) {
this.gotoAndStop(3);
dead = true;
_root.powerup(this, "b");
_root.score = _root.score + 7000;
}
}
}
function drop() {
if (!_root.ispaused) {
duplicateMovieClip (_root.ebull2, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr], 0);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull2, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr], 20);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull2, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr], -20);
_root.nmbr = _root.nmbr + 1;
}
}
function place2(tgt, deg) {
if (!_root.ispaused) {
tgt.speed = new Vector(4 * currentdir, -4);
tgt.speed.rotate(deg);
tgt._x = _x + (40 * currentdir);
tgt._y = _y + 65;
}
}
if (_name != "hotair") {
life = 30;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
currentdir = 1;
y = _y;
x = _x;
boss = true;
h = 0;
flashd = 0;
timer = 60 + random(60);
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "hotair") {
timer1 = timer1 - 1;
if (this._currentframe != 3) {
_y = (y + (20 * Math.sin(timer1 / 10)));
_x = (x + (230 * Math.sin(timer1 / 60)));
currentdir = (-Math.cos(timer1 / 60)) / Math.abs(Math.cos(timer1 / 60));
timer = timer - 1;
if (timer == 0) {
this.gotoAndStop(2);
}
}
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 1385 MovieClip "ebull2" in Frame 232
onClipEvent (load) {
if (_name != "bull3") {
lvl = _root.level;
grav = 1;
s = new Sound(this);
s.attachSound("shoot1");
s.start();
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "bull3") {
if (lvl != _root.level) {
removeMovieClip(this);
}
if (xdzs == undefined) {
xspeed = xspeed * 0.7;
yspeed = yspeed * 0.7;
xdzs = 0;
}
if (_root.land.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
play();
}
if (_root.water.hitTest(_x, _y, true) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
_alpha = (_alpha - 20);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
speed.y = speed.y + grav;
_x = (_x + speed.x);
_y = (_y + speed.y);
if (!((speed.x == 0) && (speed.y == 0))) {
_rotation = Vector.angle2(new Vector(1, 0), speed);
}
if (((_x < (_root.cam.pos.x - 350)) || (_x > (_root.cam.pos.x + 350))) || (_y > (_root.cam.pos.y + 300))) {
removeMovieClip(this);
}
if (hitTest(_root.char.box) && (this._currentframe == 1)) {
speed.x = 0;
speed.y = 0;
grav = 0;
this.play();
_root.char.die("bull");
}
}
}
}
Instance of Symbol 1675 MovieClip "henry" in Frame 232
onClipEvent (load) {
function shell() {
if (!_root.ispaused) {
duplicateMovieClip (_root.ebull3, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt) {
if (!_root.ispaused) {
((!low) ? ((tgt.speed = new Vector(15 * currentdir, 0))) : ((tgt.speed = new Vector(15 * currentdir, (Math.random() * 4) - 2))));
tgt._x = _x + (72 * currentdir);
tgt._y = _y - 58;
tgt.gotoAndStop(random(4) + 1);
if ((!sandol) && (life < 200)) {
tgt.gotoAndStop(5);
sandol = true;
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
life = life - 3;
}
if (typ == "bull") {
life = life - 1;
}
if (typ == "gern") {
life = life - 3;
}
if ((typ == "bull") || (typ == "gern")) {
if (stat == "charge") {
if (_x < _root.char._x) {
_x = (_x - 4);
hitz = -4;
} else {
_x = (_x + 4);
hitz = 4;
}
(low ? ((hitz = 0)) : 0);
}
}
if ((((stat == "walk") || (stat == "charge")) || (stat == "rest")) && (random(100) == 0)) {
stat = "death";
this.aura.gotoAndStop(1);
}
if (life <= 0) {
stat = "death";
this.aura.gotoAndStop(1);
}
}
}
function testdead() {
if (!_root.ispaused) {
if (life <= 0) {
dead = true;
_root.score = _root.score + 25000;
_root.powerup(this, "he");
_root.land.swit.gotoAndStop(_root.land.swit._currentframe + 1);
} else {
stat = "flip";
}
}
}
function attack() {
if (!_root.ispaused) {
var _local2 = random(3);
if ((!sandol) && (life < 200)) {
_local2 = 1;
}
if (_local2 == 0) {
stat = "charge";
((!low) ? ((speed.x = 3)) : 0);
}
if (_local2 == 1) {
stat = "throw";
}
if (_local2 == 2) {
stat = "jump";
((!low) ? ((speed.y = -23)) : ((speed.y = -25)));
}
}
}
if (_name != "henry") {
currentdir = -1;
xs = _xscale;
stat = "cuts";
boss = true;
speed = new Vector(4, 0);
_root.char.stat = "rest";
_root.char.gotoAndStop("rest");
_root.char.ani.c_bod.gotoAndStop("brest");
_root.char.movable = false;
_root.char.currentaim = "brest";
h = _height;
w = _width / 2;
dead = false;
ddd = 3;
hitz = 0;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
life = 400;
if (_root.diff == 1) {
life = 300;
}
low = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "henry") {
if (this._currentframe != 12) {
grounded = false;
_y = (_y + speed.y);
speed.y = speed.y + 1;
if ((stat == "walk") || (stat == "rest")) {
if (_x < _root.char._x) {
currentdir = 1;
}
if (_x > _root.char._x) {
currentdir = -1;
}
}
if ((stat == "walk") || (stat == "charge")) {
if (hitz == 0) {
_x = (_x + (speed.x * currentdir));
} else {
_x = (_x + ((hitz / Math.abs(hitz)) * 1));
}
}
if ((random(40) == 0) && (stat == "rest")) {
stat = "walk";
speed.x = 4;
}
var prob = random(40);
if (low) {
prob = random(25);
}
if ((prob == 1) && (stat == "rest")) {
stat = "roar";
if (_x < _root.char._x) {
currentdir = 1;
}
if (_x > _root.char._x) {
currentdir = -1;
}
}
if (stat == "roar") {
if (_x < _root.char._x) {
currentdir = 1;
}
if (_x > _root.char._x) {
currentdir = -1;
}
if (low) {
this.aura.gotoAndStop(2);
}
}
if ((stat == "jump") && (speed.y > 0)) {
stat = "fall";
}
if ((stat == "jump") || (stat == "fall")) {
if (_x < _root.char._x) {
_x = (_x + 4);
}
if (_x > _root.char._x) {
_x = (_x - 4);
}
}
if (hitz > 0) {
hitz = hitz - 1;
}
if (hitz < 0) {
hitz = hitz + 1;
}
if ((random(100) == 0) && ((stat == "walk") || (stat == "charge"))) {
stat = "rest";
}
if ((Math.abs(_x - _root.char._x) < 60) && ((stat == "walk") || (stat == "rest"))) {
stat = "rest";
if (random(10) == 0) {
stat = "pound";
}
}
if (_root.char.box.hitTest(ani.box)) {
_root.char.die("melee");
if ((stat == "charge") || (stat == "pound")) {
_root.hitspl(this, _root.char);
}
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
if (stat == "charge") {
currentdir = 1;
}
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
if (stat == "charge") {
currentdir = -1;
}
}
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (stat == "fall") {
stat = "land";
if (low) {
stat = "land2";
}
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "roar") && (this.ani._currentframe >= 18)) {
if (_x < _root.char._x) {
_root.char._x = _root.char._x + 6;
}
if (_x > _root.char._x) {
_root.char._x = _root.char._x - 6;
}
}
if (life < 150) {
low = true;
}
}
this.gotoAndStop(stat);
if (((stat == "land") || (stat == "land2")) && (!_root.char.jumped)) {
if (this.ani._currentframe == 1) {
if (Math.abs(_x - _root.char._x) < 161.75) {
_root.char.die("melee");
}
}
if ((this.ani._currentframe == 2) && (stat == "land2")) {
if (Math.abs(_x - _root.char._x) < 294.25) {
_root.char.die("melee");
}
}
}
_xscale = (currentdir * xs);
}
}
}
Instance of Symbol 1701 MovieClip "ebull3" in Frame 232
onClipEvent (load) {
if (_name != "ebull3") {
lvl = _root.level;
hit = false;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "ebull3") {
if (lvl != _root.level) {
removeMovieClip(this);
}
((_alpha <= 0) ? (removeMovieClip(this)) : 0);
_x = (_x + speed.x);
_y = (_y + speed.y);
if ((_x < -100) || (_x > 900)) {
removeMovieClip(this);
}
if (box.hitTest(_root.char.box)) {
if (this._currentframe != 5) {
if (this._currentframe != 6) {
_root.char.die("bull");
((!hit) ? (_root.hitspl2(this, _root.char)) : 0);
hit = true;
}
} else {
this.gotoAndStop(6);
speed.x = 0;
speed.y = 0;
_root.char.water = 100;
(_root.char.power ? ((_root.char.poweramt = 100)) : 0);
(_root.char.rapid ? ((_root.char.rapidamt = 100)) : 0);
_root.bonus = _root.bonus + 1;
if ((_root.bonus % _root.diff) == 0) {
_root.char.lives++;
}
_root.score = _root.score + 5000;
}
}
}
}
}
Instance of Symbol 1707 MovieClip "hitsplode" in Frame 232
onClipEvent (load) {
if (_name == "hitsplode") {
stop();
}
}
Instance of Symbol 1789 MovieClip "enm6" in Frame 232
onClipEvent (load) {
function isfacing(tgt) {
if ((currentdir == 1) && (tgt._x > _x)) {
return(true);
}
if ((currentdir == -1) && (tgt._x < _x)) {
return(true);
}
return(false);
}
function drown() {
if (!_root.ispaused) {
dead = true;
speed.y = 0;
stat = "drown";
this.gotoAndStop(stat);
}
}
function vision() {
if (!_root.ispaused) {
var _local2 = (_root.char.stat == "crouch") || (_root.char.stat == "crawl");
if ((Math.abs(_x - _root.char._x) < 350) && (Math.abs(_y - _root.char._y) < 200)) {
if (((!_local2) && ((_root.char.stat != "rest") || (_root.char.jumped))) && (((currentdir == 1) && (_x > _root.char._x)) || ((currentdir == -1) && (_x < _root.char._x)))) {
saw = true;
}
}
if (((Math.abs(_x - _root.char._x) < 350) && (Math.abs(_y - _root.char._y) < 200)) && (((currentdir == 1) && (_x < _root.char._x)) || ((currentdir == -1) && (_x > _root.char._x)))) {
saw = true;
}
if (hitTest(_root.char.box)) {
saw = true;
}
}
}
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
stat = "mdie";
_root.powerup(this, 5);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 4000;
}
if (typ == "bull") {
life = life - 1;
if (life <= 0) {
stat = "die";
_root.powerup(this, 5);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 4000;
}
}
if (typ == "gern") {
stat = "die";
_root.powerup(this, 5);
dead = true;
this.gotoAndStop(stat);
_root.score = _root.score + 4000;
}
}
}
function shoot() {
if (!_root.ispaused) {
if (!hitTest(_root.char.box)) {
stat = "shoot";
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 0);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], 10);
_root.nmbr = _root.nmbr + 1;
duplicateMovieClip (_root.ebull, "b" + _root.nmbr, _root.nmbr);
place(_root["b" + _root.nmbr], -10);
_root.nmbr = _root.nmbr + 1;
} else {
stat = "melee";
}
}
}
function balloon() {
if (!_root.ispaused) {
duplicateMovieClip (_root.egern, "g" + _root.nmbr, _root.nmbr);
place2(_root["g" + _root.nmbr]);
_root.nmbr = _root.nmbr + 1;
}
}
function place(tgt, deg) {
if (!_root.ispaused) {
tgt.speed = new Vector(10 * currentdir, 0);
tgt.speed.rotate(deg);
tgt._x = _x + (47 * currentdir);
tgt._y = _y - 35;
tgt._rotation = Vector.angle2(new Vector(1, 0), tgt.speed);
}
}
function place2(tgt) {
if (!_root.ispaused) {
tgt.speed = new Vector(6 * currentdir, -10);
tgt._x = _x + (47 * currentdir);
tgt._y = _y - 35;
}
}
function jump() {
if (((((stat != "shoot") && (stat != "balo")) && (stat != "melee")) && (grounded)) && (!dead)) {
speed.y = -jumpheight;
stat = "jump";
jumped = true;
grounded = false;
}
}
if (_name != "enm6") {
grav = 1;
speed = new Vector(5, 0);
grounded = false;
stop();
stat = "rest";
h = _height;
w = _width / 2;
ddd = 3;
currentdir = (random(2) - 0.5) * 2;
saw = false;
xs = _xscale;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
jumpheight = 12;
jumped = false;
seconds = 10;
air = 30 * seconds;
life = 5;
boss = false;
}
}
onClipEvent (enterFrame) {
if (!_root.ispaused) {
if (_name != "enm6") {
if (stat == "drown") {
if (_root.water.hitTest(_x, _y - (h / 2), true)) {
speed.y = speed.y * 0.97;
speed.y = speed.y - (grav + 0.1);
}
}
if ((!dead) && (stat == "run")) {
stat = "rest";
}
if (_root.water.hitTest(_x, _y, true)) {
speed.x = 2.5;
jumpheight = 19;
} else {
jumpheight = 13;
speed.x = 5;
}
if (saw) {
if ((((((random(30) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_y - _root.char._y) < 75)) {
this.shoot();
}
if (((((((random(50) == 0) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) && (Math.abs(_x - _root.char._x) < 100)) && (Math.abs(_y - _root.char._y) < 75)) {
stat = "balo";
}
if (((((Math.abs(_x - _root.char._x) > 25) && (!dead)) && (stat != "shoot")) && (stat != "balo")) && (stat != "melee")) {
((stat == "rest") ? ((stat = "run")) : 0);
((_x < _root.char._x) ? ((currentdir = 1)) : 0);
((_x > _root.char._x) ? ((currentdir = -1)) : 0);
_x = (_x + (speed.x * currentdir));
}
} else {
this.vision();
}
if ((Math.abs(_x - _root.char._x) > 450) || (Math.abs(_y - _root.char._y) > 450)) {
saw = false;
}
if (((stat == "jump") && (yspeed > 0)) && (!dead)) {
stat = "fall";
}
if (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x - w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x - w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x + 0.1);
}
}
if (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
if (grounded) {
jump();
}
while (_root.land.hitTest(_x + w, (_y - (h / 2)) + (0.5 * (h / ddd)), true) || (_root.land.hitTest(_x + w, (_y - (h / 2)) - (0.5 * (h / ddd)), true))) {
_x = (_x - 0.1);
}
}
if ((((_y - _root.char._y) > 100) && (random(20) == 0)) && (saw)) {
jump();
}
if ((air <= 150) && (random(75) == 0)) {
jump();
}
if (_root.water.hitTest(_x, _y, true) && (stat != "drown")) {
speed.y = speed.y + (grav / 2);
var yd = (speed.y / 2);
((yd > 7) ? ((yd = 7)) : 0);
((yd < -7) ? ((yd = -7)) : 0);
_y = (_y + yd);
} else {
speed.y = speed.y + grav;
((speed.y > 13) ? ((speed.y = 13)) : 0);
((speed.y < -13) ? ((speed.y = -7)) : 0);
if ((stat == "drown") && (!_root.water.hitTest(_x, _y, true))) {
speed.y = 0.1;
}
_y = (_y + speed.y);
}
if (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
speed.y = 0;
while (_root.land.hitTest(_x + (w / ddd), _y - h, true) || (_root.land.hitTest(_x - (w / ddd), _y - h, true))) {
_y = (_y + 0.1);
}
}
grounded = false;
if (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.land.hitTest(_x + (w / ddd), _y, true) || (_root.land.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) && (speed.y > 0)) {
grounded = true;
speed.y = 0;
if (((stat == "jump") || (stat == "fall")) && (!dead)) {
stat = "rest";
jumped = false;
}
while (_root.cloud.hitTest(_x + (w / ddd), _y, true) || (_root.cloud.hitTest(_x - (w / ddd), _y, true))) {
_y = (_y - 0.1);
}
}
if ((stat == "balo") && (this.ani._currentframe == 9)) {
this.balloon();
}
if (_root.water.hitTest(_x, _y - 55, true) && (!dead)) {
air = air - 1;
if (air == 150) {
_root.duptimer(this);
}
if (air <= 0) {
drown();
}
_root.bubmak(this);
} else {
air = 30 * seconds;
}
if ((((stat == "melee") && (this.ani._currentframe == 3)) && (isfacing(_root.char))) && (hitTest(_root.char.box))) {
_root.char.die("melee");
}
this.gotoAndStop(stat);
_xscale = (xs * currentdir);
}
}
}
Instance of Symbol 1938 MovieClip "brat" in Frame 232
onClipEvent (load) {
function die(typ) {
if (!_root.ispaused) {
if (typ == "melee") {
life = life - 2;
}
if (typ == "bull") {
life = life - 1;
}
if (typ == "gern") {
life = life - 2;
}
if (life < 100) {
low = true;
}
if (low) {
stat = "shit";
} else {
stat = "hit";
}
if (life <= 0) {
dead = true;
stat = "death";
_root.score = _root.score + 25000;
}
}
}
function activate() {
_visible = true;
}
if (_name != "brat") {
boss = true;
dead = false;
_root.enms.add(this);
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
life = 300;
if (_root.diff == 1) {
life = 200;
}
low = false;
_visible = false;
stat = "rest";
}
}
onClipEvent (enterFrame) {
if ((!_root.ispaused) && (_visible)) {
if (_name != "brat") {
this.gotoAndStop(stat);
}
}
}
Instance of Symbol 2007 MovieClip "bot" in Frame 232
onClipEvent (load) {
function die(typ) {
if (!_root.ispaused) {
clink.start();
}
}
function activate() {
_visible = true;
_root.char.movable = true;
}
if (_name != "bot") {
boss = true;
currentdir = -1;
xs = _xscale;
h = _height / 2;
w = _width / 2;
dead = false;
_root.enms.add(this);
_visible = false;
if (_root.glow) {
var p = (new flash.filters.GlowFilter(16777215, 1, 3, 3, 10, 2, false, false));
this.filters = [p];
}
life = 0;
low = false;
prob = 10;
stat = "rest";
bod.shock._visible = false;
clink = new Sound(this);
clink.attachSound("clink");
targpos = new Vector(0, 0);
time = 0;
bod.zap._visible = false;
_root.char.stat = "rest";
_root.char.gotoAndStop("rest");
_root.char.ani.c_bod.gotoAndStop("brest");
_root.char.movable = false;
_root.char.currentaim = "brest";
}
}
onClipEvent (enterFrame) {
if ((!_root.ispaused) && (_visible)) {
if (_name != "bot") {
if ((stat == "rest") || (stat == "spin")) {
targpos.x = _root.char._x;
targpos.y = _root.char._y - h;
_y = (y + (10 * Math.sin(time)));
currentdir = (-(_x - targpos.x)) / Math.abs(_x - targpos.x);
((currentdir == 0) ? ((currentdir = 1)) : 0);
if (random(40) == 0) {
stat = "attack" + random(4);
if (stat == "attack3") {
targpos.y = 250;
} else {
targpos.y = 200;
}
}
} else {
_y = y;
}
if (stat == "attack3") {
if (!low) {
targpos.x = targpos.x + (currentdir * 6);
} else {
targpos.x = targpos.x + (currentdir * 8);
}
if (_root.land.hitTest(_x + w, _y, true)) {
currentdir = -1;
}
if (_root.land.hitTest(_x - w, _y, true)) {
currentdir = 1;
}
}
var blrd = 40;
if (low) {
blrd = 20;
}
if (!dead) {
_x = (_x - ((_x - targpos.x) / blrd));
y = y - ((y - targpos.y) / blrd);
}
if ((stat == "rest") && (random(50) == 0)) {
stat = "spin";
}
if ((stat == "spin") && (random(50) == 0)) {
stat = "rest";
}
if (_root.char.box.hitTest(orbs.ani.box) || (_root.char.box.hitTest(orbs.ani.box2))) {
_root.char.die("melee");
}
if (!dead) {
_xscale = (xs * currentdir);
}
this.orbs.gotoAndStop(stat);
time = time + 0.1;
if (_root.throne.low) {
low = true;
bod.zap._visible = true;
}
if (_root.throne.dead) {
dead = true;
stat = "rest";
}
}
}
}
Frame 233
((nam == undefined) ? ((nam = "name")) : 0);
Frame 322
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 24 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 24 MovieClip Frame 31
removeMovieClip(_parent);
Symbol 26 MovieClip [balloon] Frame 1
stop();
Symbol 26 MovieClip [balloon] Frame 2
stop();
Symbol 47 MovieClip Frame 1
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
dabar._yscale = perc;
if (perc >= 100) {
this._parent.gotoAndPlay("start");
delete this.onEnterFrame;
}
};
Symbol 53 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 55 MovieClip Frame 26
stop();
Symbol 2302 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (i, j) {
x = i;
y = j;
}
function norm() {
var _local2 = vLength();
x = x / _local2;
y = y / _local2;
}
static function add(v, v2) {
return(new Vector(v2.x + v.x, v2.y + v.y));
}
static function subtract(v, v2) {
return(new Vector(v.x - v2.x, v.y - v2.y));
}
static function dot(v, v2) {
return((v2.x * v.x) + (v2.y * v.y));
}
static function angle(v, v2) {
return(Math.acos(dot(v, v2) / (v2.vLength() * v.vLength())) / (Math.PI/180));
}
static function angle2(v, v2) {
var _local1 = angle(v, v2);
if (comp(v.rotateNew(_local1), v2) < 0.0001) {
return(_local1);
}
return(-_local1);
}
static function comp(v, v2) {
return(Math.abs((v.x / v.vLength()) - (v2.x / v2.vLength())) + Math.abs((v.y / v.vLength()) - (v2.y / v2.vLength())));
}
function vLength() {
return(Math.sqrt((x * x) + (y * y)));
}
function perpendicular() {
return(new Vector(-y, x));
}
function scale(val) {
x = x * val;
y = y * val;
}
function rotate(degrees) {
degrees = degrees * (Math.PI/180);
var _local3 = Math.sin(degrees);
var _local2 = Math.cos(degrees);
var _local5 = (x * _local2) - (y * _local3);
var _local4 = (x * _local3) + (y * _local2);
x = _local5;
y = _local4;
}
function rotateNew(degrees) {
degrees = degrees * (Math.PI/180);
var _local3 = Math.sin(degrees);
var _local2 = Math.cos(degrees);
var _local5 = (x * _local2) - (y * _local3);
var _local4 = (x * _local3) + (y * _local2);
return(new Vector(_local5, _local4));
}
function reflect(normal) {
var _local2 = new Vector(normal.x, normal.y);
_local2.norm();
_local2.scale(2 * dot(this, _local2));
return(subtract(this, _local2));
}
function display(point, scale, tgt) {
tgt.lineStyle(3, 16777215, 100);
tgt.moveTo(point.x, point.y);
tgt.lineTo(point.x + (x * scale), point.y + (y * scale));
var _local5 = new Vector(-x, -y);
_local5.norm();
_local5.scale(0.5);
_local5.rotate(-45);
tgt.lineTo((point.x + (x * scale)) + (_local5.x * scale), (point.y + (y * scale)) + (_local5.y * scale));
tgt.moveTo(point.x + (x * scale), point.y + (y * scale));
_local5.rotate(90);
tgt.lineTo((point.x + (x * scale)) + (_local5.x * scale), (point.y + (y * scale)) + (_local5.y * scale));
tgt.lineStyle(2, 0, 100);
tgt.moveTo(point.x, point.y);
tgt.lineTo(point.x + (x * scale), point.y + (y * scale));
var _local6 = new Vector(-x, -y);
_local6.norm();
_local6.scale(0.5);
_local6.rotate(-45);
tgt.lineTo((point.x + (x * scale)) + (_local6.x * scale), (point.y + (y * scale)) + (_local6.y * scale));
tgt.moveTo(point.x + (x * scale), point.y + (y * scale));
_local6.rotate(90);
tgt.lineTo((point.x + (x * scale)) + (_local6.x * scale), (point.y + (y * scale)) + (_local6.y * scale));
}
}
Symbol 2303 MovieClip [__Packages.Cam] Frame 0
class Cam
{
var pos, xMin, yMin, xMax, yMax;
function Cam () {
pos = new Vector(0, 0);
xMin = 0;
yMin = 0;
xMax = 0;
yMax = 0;
}
function setUp(position, minx, miny, maxx, maxy) {
pos.x = position.x;
pos.y = position.y;
xMin = minx;
yMin = miny;
xMax = maxx;
yMax = maxy;
}
function update() {
((pos.x < xMin) ? ((pos.x = xMin)) : 0);
((pos.x > xMax) ? ((pos.x = xMax)) : 0);
((pos.y < yMin) ? ((pos.y = yMin)) : 0);
((pos.y > yMax) ? ((pos.y = yMax)) : 0);
_root._x = 275 - pos.x;
_root._y = 200 - pos.y;
}
}
Symbol 2304 MovieClip [__Packages.Container] Frame 0
class Container
{
var dat, length;
function Container () {
dat = new Array();
length = 0;
}
function add(obj) {
dat.push(obj);
length = length + 1;
}
function remove(obj) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < length) {
if (dat[_local2] == obj) {
_local3 = _local2;
_local2 = length + 1;
}
_local2++;
}
if (_local3 != -1) {
dat.splice(_local3, 1);
length = length - 1;
}
}
function move(obj, newContainer) {
remove(obj);
newContainer.add(obj);
}
function getItem(index) {
return(dat[index]);
}
function clear() {
dat.splice(0, length);
length = 0;
}
}
Symbol 2305 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 66 MovieClip Frame 1
stop();
Instance of Symbol 74 MovieClip in Symbol 76 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 82 Button
on (release) {
getURL ("http://www.glaielgames.com", "_blank");
}
Symbol 87 Button
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 110 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.bomtoons.com", "_blank");
};
Symbol 114 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.glaielgames.com", "_blank");
};
Symbol 123 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
this._parent.gotoAndPlay(106);
delete this.onPress;
};
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
this._parent.gotoAndStop("instructions");
};
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 134 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 135 Button
on (release) {
gotoAndStop ("controls");
}
Symbol 138 Button
on (release) {
trace("need download link");
}
Symbol 139 Button
on (release) {
getURL ("http://www.glaielgames.com/asdownload/aqslugdownload.html", "_blank");
}
Symbol 154 Button
on (press) {
_root.diff = 1;
stopAllSounds();
gotoAndPlay (150);
}
Symbol 155 Button
on (press) {
_root.diff = 2;
stopAllSounds();
gotoAndPlay (150);
}
Symbol 162 Button
on (press) {
_root.diff = 3;
stopAllSounds();
gotoAndPlay (150);
}
Symbol 163 Button
on (release) {
gotoAndPlay ("main");
}
Symbol 170 Button
on (release) {
gotoAndPlay (1704);
soundClip.gotoAndPlay("dun");
}
Symbol 299 Button
on (release) {
arr.gotoAndStop(1);
_root.keys = [37, 39, 38, 40, 65, 83, 68, 16, 32, 13];
}
Symbol 303 Button
on (release) {
arr.gotoAndStop(2);
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Symbol 307 MovieClip Frame 3
stop();
Symbol 307 MovieClip Frame 4
stop();
Symbol 307 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 6
stop();
Symbol 307 MovieClip Frame 7
stop();
Symbol 307 MovieClip Frame 8
stop();
Symbol 307 MovieClip Frame 9
stop();
Symbol 307 MovieClip Frame 10
stop();
Symbol 307 MovieClip Frame 11
stop();
Symbol 310 Button
on (release) {
arr.gotoAndStop(1);
_root.keys = [37, 39, 38, 40, 40, 83, 68, 65, 32, 13];
}
Symbol 311 MovieClip Frame 106
stop();
Instance of Symbol 141 MovieClip in Symbol 311 MovieClip Frame 117
on (press) {
_root.diff = 3;
gotoAndPlay (150);
}
Symbol 311 MovieClip Frame 139
stop();
Symbol 311 MovieClip Frame 1823
_root.gotoAndStop("game");
Symbol 311 MovieClip Frame 1824
stop();
Symbol 311 MovieClip Frame 1837
stop();
Instance of Symbol 472 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 473 MovieClip Frame 23
stop();
Symbol 481 MovieClip Frame 1000
stop();
Symbol 482 MovieClip Frame 1700
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 2
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 2
stop();
Symbol 526 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 1000
stop();
Symbol 596 MovieClip Frame 1700
stop();
Instance of Symbol 600 MovieClip "spawn" in Symbol 601 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 1
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 1
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 1
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 2
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 3
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 3
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 3
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 4
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 5
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 5
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 5
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 5
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 6
onClipEvent (load) {
id = "b";
t = 60;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 7
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 8
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 8
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 9
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 9
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 10
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 11
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 11
onClipEvent (load) {
id = "b";
t = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 11
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 12
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 12
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 12
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 13
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 13
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 13
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 13
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 14
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 15
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 15
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 15
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 15
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 15
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 16
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 16
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 16
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 17
onClipEvent (load) {
id = "b";
t = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 17
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 18
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 18
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 18
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 19
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 20
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 20
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 20
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 21
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 22
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 22
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 22
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 23
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 23
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 23
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 23
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 23
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 24
onClipEvent (load) {
id = "b";
t = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 24
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 24
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 24
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 25
onClipEvent (load) {
id = "h";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 26
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 26
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 26
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 27
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 27
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 28
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 28
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 29
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 30
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 31
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 32
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 32
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 32
onClipEvent (load) {
id = 3;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 32
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = 1;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = 2;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 33
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 34
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 34
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 34
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 35
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 36
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip "spawn" in Symbol 601 MovieClip Frame 36
onClipEvent (load) {
id = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 36
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 36
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 36
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 37
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 37
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip "spawn" in Symbol 601 MovieClip Frame 37
onClipEvent (load) {
id = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 38
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 38
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 38
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 38
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip "spawn" in Symbol 601 MovieClip Frame 39
onClipEvent (load) {
id = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 39
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 39
onClipEvent (load) {
id = "b";
t = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 39
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 40
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 41
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 42
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 42
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 42
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 43
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 43
onClipEvent (load) {
id = 4;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 43
onClipEvent (load) {
id = "b";
t = 0;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 43
onClipEvent (load) {
id = "b";
t = 188;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 6;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = 5;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 44
onClipEvent (load) {
id = "s";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 45
onClipEvent (load) {
id = "bot";
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 45
onClipEvent (load) {
id = "brat";
}
Symbol 618 MovieClip Frame 21
stop();
removeMovieClip(_parent);
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
stop();
Symbol 628 MovieClip Frame 12
_parent.stat = "rest";
Symbol 644 MovieClip Frame 13
_parent.stat = "rest";
Symbol 659 MovieClip Frame 25
stop();
Symbol 680 MovieClip Frame 63
stop();
Symbol 708 MovieClip Frame 21
_parent.stat = "rest";
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 2
stop();
Symbol 730 MovieClip Frame 42
stop();
Symbol 731 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 731 MovieClip Frame 2
stop();
Symbol 731 MovieClip Frame 6
stop();
Symbol 731 MovieClip Frame 10
stop();
Symbol 747 MovieClip Frame 1
gun0._visible = false;
Instance of Symbol 746 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.char.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.char.weapon);
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 2
stop();
Symbol 961 MovieClip Frame 35
_parent.reset();
Symbol 975 MovieClip Frame 7
stop();
removeMovieClip(_parent);
Symbol 976 MovieClip Frame 1
stop();
Symbol 976 MovieClip Frame 2
stop();
Symbol 986 MovieClip Frame 7
stop();
Instance of Symbol 976 MovieClip "bub" in Symbol 987 MovieClip Frame 31
onClipEvent (load) {
if (_name != "bub") {
_xscale = (random(75) + 25);
_yscale = _xscale;
yspeed = -3;
tim = (Math.random() * 3.1415) * 2;
}
}
onClipEvent (enterFrame) {
if (_name != "bub") {
if (_root.water.hitTest(_x, _y, true)) {
_y = (_y + yspeed);
_x = (_x + (1 * Math.sin(tim)));
tim = tim + 0.1;
} else {
gotoAndStop (2);
}
}
}
Symbol 987 MovieClip Frame 69
_parent.reset2();
Symbol 988 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 988 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box2" in Symbol 988 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 988 MovieClip Frame 2
stop();
Symbol 988 MovieClip Frame 3
stop();
Symbol 988 MovieClip Frame 4
stop();
Symbol 988 MovieClip Frame 5
stop();
Symbol 988 MovieClip Frame 6
stop();
Symbol 988 MovieClip Frame 7
stop();
Symbol 988 MovieClip Frame 8
stop();
Symbol 1004 MovieClip Frame 23
removeMovieClip(_parent);
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1005 MovieClip Frame 2
stop();
Symbol 1016 MovieClip Frame 150
removeMovieClip(this);
Symbol 1031 MovieClip Frame 12
_parent.stat = "rest";
Symbol 1045 MovieClip Frame 13
_parent.stat = "rest";
Symbol 1059 MovieClip Frame 25
stop();
Symbol 1070 MovieClip Frame 65
stop();
Symbol 1084 MovieClip Frame 21
_parent.stat = "rest";
Symbol 1104 MovieClip Frame 51
stop();
Symbol 1105 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1105 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1105 MovieClip Frame 2
stop();
Symbol 1105 MovieClip Frame 10
stop();
Symbol 1113 MovieClip Frame 12
_parent.stat = "rest";
Symbol 1127 MovieClip Frame 13
_parent.stat = "rest";
Symbol 1150 MovieClip Frame 37
stop();
Symbol 1161 MovieClip Frame 17
stop();
Symbol 1193 MovieClip Frame 27
_parent.stat = "rest";
Symbol 1202 MovieClip Frame 23
stop();
Symbol 1203 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1203 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1203 MovieClip Frame 2
stop();
Symbol 1203 MovieClip Frame 10
stop();
Symbol 1217 MovieClip Frame 12
_parent.stat = "rest";
Symbol 1233 MovieClip Frame 14
_parent.stat = "rest";
Symbol 1245 MovieClip Frame 23
stop();
Symbol 1255 MovieClip Frame 17
stop();
Symbol 1268 MovieClip Frame 18
_parent.stat = "rest";
Symbol 1290 MovieClip Frame 45
stop();
Symbol 1291 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1291 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1291 MovieClip Frame 2
stop();
Symbol 1291 MovieClip Frame 10
stop();
Symbol 1310 MovieClip Frame 9
_parent.shoot2();
Symbol 1310 MovieClip Frame 18
_parent.stat = "rest";
Symbol 1326 MovieClip Frame 14
_parent.stat = "rest";
Symbol 1335 MovieClip Frame 12
_parent.stat = "rest";
Symbol 1352 MovieClip Frame 29
stop();
Symbol 1366 MovieClip Frame 19
stop();
Symbol 1374 MovieClip Frame 17
_parent.stat = "rest";
Symbol 1382 MovieClip Frame 20
stop();
Symbol 1383 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1383 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1383 MovieClip Frame 2
stop();
Symbol 1383 MovieClip Frame 11
stop();
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1385 MovieClip Frame 2
stop();
Symbol 1387 MovieClip Frame 1
stop();
Symbol 1387 MovieClip Frame 2
stop();
Instance of Symbol 1400 MovieClip in Symbol 1404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.typ);
}
Symbol 1404 MovieClip Frame 19
stop();
Symbol 1435 MovieClip Frame 5
_parent.drop();
Symbol 1456 MovieClip Frame 39
stop();
_root.land.swit.gotoAndStop(_root.land.swit._currentframe + 1);
Symbol 1457 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1457 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1457 MovieClip Frame 2
stop();
Symbol 1497 MovieClip Frame 20
stop();
Symbol 1498 MovieClip Frame 1
stop();
Symbol 1498 MovieClip Frame 2
stop();
Symbol 1541 MovieClip Frame 37
_parent.attack();
Instance of Symbol 11 MovieClip "box" in Symbol 1562 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box" in Symbol 1562 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
}
Symbol 1562 MovieClip Frame 23
this._parent.attacking = false;
Instance of Symbol 11 MovieClip "box" in Symbol 1572 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Symbol 1572 MovieClip Frame 24
_parent.stat = "rest";
Symbol 1580 MovieClip Frame 9
_parent.shell();
Symbol 1580 MovieClip Frame 27
_parent.stat = "rest";
Instance of Symbol 11 MovieClip "box" in Symbol 1583 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1595 MovieClip Frame 20
_parent.stat = "rest";
Symbol 1611 MovieClip Frame 70
stop();
_parent.testdead();
Instance of Symbol 11 MovieClip "box" in Symbol 1622 MovieClip Frame 20
onClipEvent (load) {
_visible = false;
}
Symbol 1622 MovieClip Frame 25
_parent.stat = "roar";
Symbol 1661 MovieClip Frame 1
_root.musicswap(_root.bossI);
Symbol 1661 MovieClip Frame 401
stop();
_root.musicswap(_root.henryboss);
_parent.stat = "rest";
_root.char.movable = true;
Symbol 1674 MovieClip Frame 20
_parent.stat = "rest";
Symbol 1675 MovieClip Frame 1
stop();
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1675 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box" in Symbol 1675 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
Symbol 1675 MovieClip Frame 12
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1701 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1701 MovieClip Frame 5
stop();
Symbol 1707 MovieClip Frame 11
stop();
removeMovieClip(this);
Symbol 1716 MovieClip Frame 12
_parent.stat = "rest";
Symbol 1733 MovieClip Frame 16
_parent.stat = "rest";
Symbol 1749 MovieClip Frame 42
stop();
Symbol 1764 MovieClip Frame 30
stop();
Symbol 1779 MovieClip Frame 17
_parent.stat = "rest";
Symbol 1788 MovieClip Frame 15
stop();
Symbol 1789 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1789 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1789 MovieClip Frame 2
stop();
Symbol 1789 MovieClip Frame 6
stop();
Symbol 1833 MovieClip Frame 45
_parent.stat = "rest";
Symbol 1868 MovieClip Frame 13
stop();
Symbol 1885 MovieClip Frame 37
_parent.stat = "srest";
Symbol 1936 MovieClip Frame 79
stop();
_root.char.movable = false;
_root.hud.cutscene2._visible = true;
_root.hud.cutscene2.play();
_root.pausable = false;
_root.char.timeron = false;
_root.musicswap("none");
Symbol 1938 MovieClip Frame 1
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1938 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1938 MovieClip Frame 5
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 1996 MovieClip Frame 35
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box" in Symbol 1996 MovieClip Frame 54
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box" in Symbol 1996 MovieClip Frame 73
onClipEvent (load) {
_visible = false;
}
Symbol 1996 MovieClip Frame 91
_parent._parent.stat = "rest";
Instance of Symbol 11 MovieClip "box" in Symbol 2003 MovieClip Frame 29
onClipEvent (load) {
_visible = false;
}
Symbol 2003 MovieClip Frame 58
_parent._parent.stat = "rest";
Instance of Symbol 11 MovieClip "box" in Symbol 2004 MovieClip Frame 31
onClipEvent (load) {
_visible = false;
}
Symbol 2004 MovieClip Frame 61
_parent._parent.stat = "rest";
Instance of Symbol 11 MovieClip "box" in Symbol 2005 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 11 MovieClip "box2" in Symbol 2005 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
}
Symbol 2005 MovieClip Frame 38
if (random(_parent._parent.prob) != 0) {
this.gotoAndPlay(18);
}
Symbol 2005 MovieClip Frame 51
_parent._parent.stat = "rest";
Symbol 2006 MovieClip Frame 1
stop();
Symbol 2006 MovieClip Frame 3
stop();
Instance of Symbol 11 MovieClip "box" in Symbol 2007 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 2194 MovieClip Frame 2
_root.musicswap(_root.bossI);
Symbol 2194 MovieClip Frame 524
stop();
_root.throne.activate();
_root.robot.activate();
_root.musicswap(_root.botboss);
Symbol 2201 MovieClip Frame 1217
stop();
Symbol 2240 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.nam;
ab20_09.x = ab20.encodeNum(_root.finalscore);
ab20_09.c = 312;
ab20_09.v = "HVSBMK";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.getURL("http://www.armorbot.com/mytable/?id=312", "_blank");
gotoAndStop (2);
}
Symbol 2248 Button
on (release) {
_root.hop("menu");
}
Symbol 2261 MovieClip Frame 1
_root.completebonus = (300000 * (_root.diff == 2)) + (1000000 * (_root.diff == 3));
_root.livesbonus = _root.char.lives * (((1000 * (_root.diff == 1)) + (5000 * (_root.diff == 2))) + (10000 * (_root.diff == 3)));
_root.timebonus = Math.round(250000 - ((125 * (_root.char.totaltime - 32400)) / 19));
((_root.timebonus < 0) ? ((_root.timebonus = 0)) : 0);
((_root.timebonus > 250000) ? ((_root.timebonus = 250000)) : 0);
_root.sandbonus = (_root.bonus == 27) * 250000;
_root.missingbonus = ("Missing " + (27 - _root.bonus)) + " Sand Dollars";
_root.finalscore = (((_root.score + _root.completebonus) + _root.livesbonus) + _root.timebonus) + _root.sandbonus;
stop();
((_root.nam == undefined) ? ((_root.nam = "name")) : 0);
Symbol 2261 MovieClip Frame 2
stop();
Instance of Symbol 114 MovieClip in Symbol 2262 MovieClip Frame 630
on (release) {
getURL ("http://www.glaielgames.com", "_blank");
}
Instance of Symbol 110 MovieClip in Symbol 2262 MovieClip Frame 630
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 2262 MovieClip Frame 749
stop();
Symbol 2266 Button
on (release) {
_quality = "high";
}
Symbol 2269 Button
on (release) {
_quality = "medium";
}
Symbol 2272 Button
on (release) {
_quality = "low";
}
Symbol 2280 Button
on (release) {
_root._x = 0;
_root._y = 0;
_root.musicswap("none");
delete _root.onEnterFrame;
_root.gotoAndStop("menu");
_root.clearall();
}
Instance of Symbol 2275 MovieClip "vol" in Symbol 2281 MovieClip Frame 1
onClipEvent (load) {
dragging = false;
if (_root.sound12345 == "undefined") {
_root.sound12345 = new Sound(_root);
}
_x = (_root.sound12345.getVolume() + _parent.slider._x);
}
on (press) {
dragging = true;
}
onClipEvent (mouseUp) {
dragging = false;
}
onClipEvent (enterFrame) {
(dragging ? (_x = _parent._xmouse_parent._xmouse) : null);
((_x < _parent.slider._x) ? (_x = _parent.slider._x_parent.slider._x) : null);
((_x > (_parent.slider._x + 100)) ? (_x = (_parent.slider._x + 100)_parent.slider._x + 100) : null);
_root.sound12345.setVolume(_x - _parent.slider._x);
}
Symbol 2283 MovieClip Frame 1
if ((_root.level != 25) && (_root.level != 45)) {
_root.char.movable = true;
}
stop();
Instance of Symbol 2020 MovieClip in Symbol 2283 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.char.rapidamt;
((_xscale > 100) ? (_xscale = 100100) : 0);
((_xscale < 0) ? (_xscale = 00) : 0);
}
Instance of Symbol 2022 MovieClip in Symbol 2283 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.char.poweramt;
((_xscale > 100) ? (_xscale = 100100) : 0);
((_xscale < 0) ? (_xscale = 00) : 0);
}
Instance of Symbol 2024 MovieClip in Symbol 2283 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.char.water;
((_xscale > 100) ? (_xscale = 100100) : 0);
((_xscale < 0) ? (_xscale = 00) : 0);
}
Instance of Symbol 2194 MovieClip "cutscene1" in Symbol 2283 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 2262 MovieClip "cutscene2" in Symbol 2283 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Symbol 2283 MovieClip Frame 2
_root.char.movable = false;
Symbol 2283 MovieClip Frame 15
_root.newlevel();
Symbol 2283 MovieClip Frame 17
_root.enmak();
Symbol 2283 MovieClip Frame 19
if ((_root.level != 25) && (_root.level != 45)) {
_root.char.movable = true;
}
Symbol 2286 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 2296 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.nam;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 312;
ab20_09.v = "HVSBMK";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.getURL("http://www.armorbot.com/mytable/?id=312", "_blank");
gotoAndStop (2);
}
Symbol 2301 MovieClip Frame 1
stop();
Symbol 2301 MovieClip Frame 2
stop();