Frame 1
stop();
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
Set("/:loadpercent", "0%");
Set("/:loadBytes", ("0 of " + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb");
}
onClipEvent (enterFrame) {
setProperty("_root.loaderbar", _xscale , Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
Set("/:loadPercent", Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%");
Set("/:loadBytes", (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
Set("/:loadPercent", "100%");
Set("/:loadBytes", (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.");
_root.gotoandstop(15);
}
}
Frame 8
gotoAndPlay (1);
Instance of Symbol 11 MovieClip in Frame 8
onClipEvent (load) {
loadpercent = "0%";
loadBytes = ("0 of " + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb";
}
onClipEvent (enterFrame) {
loadPercent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
loadBytes = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
gotoAndStop (15);
}
}
Frame 15
stop();
_root.continues = 3;
_root.cantmove = false;
Frame 43
if (_root.mokofight) {
gotoAndStop (97);
}
Frame 50
if (_root.mokodead) {
gotoAndStop (98);
}
Frame 52
if (_root.kalafight) {
gotoAndStop (99);
}
Frame 55
if (_root.kaladead) {
gotoAndStop (100);
}
Frame 70
if (_root.YUMPHODdead) {
stop();
}
Frame 90
stop();
Frame 95
stop();
Frame 96
stop();
items = new Array();
MovieClip.prototype.liftItem = function (item) {
_root.items.push(item);
this.drawItems();
};
MovieClip.prototype.dropItem = function (item) {
i = 0;
l = _root.items.length;
i = 0;
while (i < l) {
if (_root.items[i] == item) {
_root.items[i] = _root.items[l - 1];
_root.items[l - 1] = item;
_root.items.pop();
i = l;
}
i++;
}
this.drawItems();
};
spacing = 25;
MovieClip.prototype.drawItems = function () {
i = 0;
while (i < (_root.items.length + 1)) {
_root.item_bar["icon" + i].removeMovieClip();
i++;
}
i = 0;
while (i < _root.items.length) {
_root.item_bar.attachMovie("icons", "icon" + i, i);
_root.item_bar["icon" + i]._x = (i * (10 + _root.spacing)) + _root.spacing;
_root.item_bar["icon" + i].gotoAndStop(_root.items[i]);
i++;
}
};
MovieClip.prototype.hasItem = function (item) {
l = _root.items.length;
i = 0;
while (i < l) {
if (_root.items[i] == item) {
return(true);
}
i++;
}
return(false);
};
Instance of Symbol 57 MovieClip "sun" in Frame 96
onClipEvent (enterFrame) {
if ((playit && (_root.moondown)) && (_root.sounds)) {
tr063 = new Sound();
tr063.attachSound("tr063");
tr063.start();
playit = false;
}
if (_root.moondown) {
_root.sundown = false;
if (35 >= _y) {
up = false;
}
if ((20 < _y) && (up)) {
_y = (_y - 1.5);
} else {
_y = (_y + 1.5);
}
if (0 >= _x) {
_root.darken = true;
}
if (-100 >= _x) {
_root.sundown = true;
_root.moondown = false;
_y = starty;
_x = startx;
up = true;
playit = true;
tr063.stop();
}
_x = (_x - 3);
}
}
onClipEvent (load) {
_root.moondown = true;
_root.sounds = true;
startx = _x;
starty = _y;
up = true;
playit = true;
}
Instance of Symbol 59 MovieClip "moon" in Frame 96
onClipEvent (enterFrame) {
if ((playit && (_root.sundown)) && (_root.sounds)) {
night = new Sound();
night.attachsound("night");
night.start();
playit = false;
}
if (_root.sundown) {
gotoAndPlay (97);
_root.moondown = false;
if (20 >= _y) {
up = false;
}
if ((20 < _y) && (up)) {
_y = (_y - 1);
} else {
_y = (_y + 1);
}
if (-100 >= _x) {
_root.moondown = true;
_root.sundown = false;
_y = starty;
_x = startx;
up = true;
playit = true;
night.stop();
_root.darken = false;
}
_x = (_x - 2);
}
}
onClipEvent (load) {
playit = true;
startx = _x;
starty = _y;
up = true;
}
Instance of Symbol 68 MovieClip "thewallbg" in Frame 96
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 121 MovieClip "bkg" in Frame 96
onClipEvent (load) {
_root.startx = _x;
}
Instance of Symbol 149 MovieClip "player" in Frame 96
onClipEvent (enterFrame) {
if (!_root.cantmove) {
if (Key.isDown(Key.up)) {
if (jump) {
yspeed = yspeed - jumpHeight;
jump = false;
}
}
yspeed = yspeed + gravity;
y = _root.player._y + yspeed;
if (_root.bkg.hittest(_root.player._x + 5, y + 21, true)) {
if (yspeed < 0) {
} else {
jump = true;
}
yspeed = 0;
} else {
_root.player._y = y;
}
if (key.isdown(key.right)) {
old_x_bkg = _root.bkg._x;
setProperty("_root.player.munk", _xscale , 100);
_root.player.munk.play();
if (_root.bkg.hitTest(this._x + 17, this._y + 21, true)) {
_root.bkg._x = old_x_bkg;
} else {
_root.bkg._x = _root.bkg._x - _root.moveamt;
_root.tree._x = _root.tree._x - _root.moveamt;
_root.walkable._x = _root.walkable._x - _root.moveamt;
}
}
if (key.isdown(key.left)) {
old_x_bkg = _root.bkg._x;
old_tree = _root.tree._x;
_root.player.munk.play();
setProperty("_root.player.munk", _xscale , -100);
if (_root.bkg.hitTest(this._x - 17, this._y + 21, true)) {
_root.bkg._x = old_x_bkg;
_root.tree._x = old_tree;
} else {
_root.bkg._x = _root.bkg._x + _root.moveamt;
_root.tree._x = _root.tree._x + _root.moveamt;
_root.walkable._x = _root.walkable._x + _root.moveamt;
}
}
if (600 < _y) {
_root.healthamt = 0;
}
}
}
onClipEvent (load) {
yspeed = 0;
jump = true;
jumpHeight = 30;
gravity = 3;
_root.moveamt = 10;
_root.cococount = 0;
_root.continueinaction = false;
}
onClipEvent (enterFrame) {
if ((_root.cococount == 3) && (!switched)) {
_root.bkg.gotoandstop(2);
_root.walkable.gotoandstop(2);
Set("/:coconeed", "/6");
levelswitch = true;
switched = true;
}
if (levelswitch) {
_root.bkg._x = _root.startx;
_root.walkable._x = _root.walkablestartx;
levelswitch = false;
}
}
Instance of Symbol 160 MovieClip "continuebox" in Frame 96
onClipEvent (load) {
_root.continuebox._visible = false;
}
Instance of Symbol 173 MovieClip "walkable" in Frame 96
onClipEvent (load) {
_root.walkablestartx = _x;
}
Instance of Symbol 195 MovieClip "textbox" in Frame 96
onClipEvent (load) {
setProperty("_root.textbox", _visible , false);
}
Instance of Symbol 196 MovieClip "daynightnightday" in Frame 96
onClipEvent (enterFrame) {
if ((_root.darken and (_alpha < 30)) and (!_root.nodaynight)) {
_alpha = (_alpha + 1);
} else if (0 < _alpha) {
_alpha = (_alpha - 1);
}
}
Instance of Symbol 209 MovieClip "health" in Frame 96
onClipEvent (enterFrame) {
if (dead) {
if (!_root.cantmove) {
_root.player.munk.gotoandplay(10);
_root.healthamt = 1;
}
dead = false;
}
if (10 < _root.healthamt) {
_root.healthamt = 10;
}
if (_root.healthamt < 0) {
_root.healthamt = 0;
}
if (_root.healthamt >= 10) {
_root.health.gotoandstop(1);
}
if (_root.healthamt == 9) {
_root.health.gotoandstop(12);
}
if (_root.healthamt == 8) {
_root.health.gotoandstop(21);
}
if (_root.healthamt == 7) {
_root.health.gotoandstop(31);
}
if (_root.healthamt == 6) {
_root.health.gotoandstop(41);
}
if (_root.healthamt == 5) {
_root.health.gotoandstop(51);
}
if (_root.healthamt == 4) {
_root.health.gotoandstop(61);
}
if (_root.healthamt == 3) {
_root.health.gotoandstop(71);
}
if (_root.healthamt == 2) {
_root.health.gotoandstop(81);
}
if (_root.healthamt == 1) {
_root.health.gotoandstop(91);
}
if (_root.healthamt == 0) {
_root.health.gotoandstop(101);
dead = true;
}
}
onClipEvent (load) {
_root.healthamt = 10;
}
Instance of Symbol 227 MovieClip "menu" in Frame 96
onClipEvent (enterFrame) {
if (key.isdown(key.enter)) {
setProperty("_root.menu", _visible , true);
}
}
onClipEvent (load) {
setProperty("_root.menu", _visible , false);
}
Frame 97
if (!_root.mokofight) {
gotoAndStop (96);
}
stop();
Instance of Symbol 232 MovieClip in Frame 97
onClipEvent (enterFrame) {
if (_root.mokodead && (notgiven)) {
_root.cococount = _root.cococount + 1;
notgiven = false;
}
_x = (_root.moko._x - 25);
timeleft = timeleft - 1;
}
onClipEvent (enterFrame) {
if (0 >= _xscale) {
_xscale = 0;
_root.mokodead = true;
_visible = false;
}
if (((_root.smashtime && (60 >= (_root.moko._x - _root.player._x))) && ((_root.moko._x - _root.player._x) >= 0)) || ((((_root.moko._x - _root.player._x) >= -60) && (0 >= (_root.moko._x - _root.player._x))) && (_root.smashtime))) {
if (_root.mokodead) {
_root.moko.blood.gotoandplay(2);
}
}
if (!_root.mokodead) {
if (_root.jumpinact == false) {
if (((((0 >= timeleft) && (_root.smashplayertime)) && (60 >= (_root.moko._x - _root.player._x))) && ((_root.moko._x - _root.player._x) >= 0)) || (((((_root.moko._x - _root.player._x) >= -60) && (0 >= (_root.moko._x - _root.player._x))) && (_root.smashplayertime)) && (0 >= timeleft))) {
_root.healthamt = _root.healthamt - 2;
timeleft = 12;
}
if (((_root.smashtime && (60 >= (_root.moko._x - _root.player._x))) && ((_root.moko._x - _root.player._x) >= 0)) || ((((_root.moko._x - _root.player._x) >= -60) && (0 >= (_root.moko._x - _root.player._x))) && (_root.smashtime))) {
_xscale = (_xscale - 10);
}
if (((40 >= (_root.moko._x - _root.player._x)) && ((_root.moko._x - _root.player._x) >= 0)) || (((_root.moko._x - _root.player._x) >= -40) && (0 >= (_root.moko._x - _root.player._x)))) {
_root.moko.attack = true;
} else {
_root.moko.attack = false;
}
}
}
}
onClipEvent (load) {
notgiven = true;
}
Instance of Symbol 149 MovieClip "player" in Frame 97
onClipEvent (enterFrame) {
if (_root.hitting == false) {
timeleft = timeleft - 1;
}
if (!_root.cantmove) {
if (Key.isDown(Key.space) and (0 >= timeleft)) {
_root.player.munk.gotoandplay(16);
_root.hitting = true;
timeleft = 10;
} else {
_root.hitting = false;
}
if ((Key.isDown(Key.up) && (_root.hitting == false)) && (5 >= timeleft)) {
if (jump) {
yspeed = yspeed - jumpHeight;
jump = false;
_root.jumpinact = true;
}
}
yspeed = yspeed + gravity;
y = _root.player._y + yspeed;
if (_root.bkg.hittest(_root.player._x + 5, y + 21, true)) {
if (yspeed < 0) {
} else {
jump = true;
_root.jumpinact = false;
}
yspeed = 0;
} else {
_root.player._y = y;
}
if ((key.isdown(key.right) && (_root.hitting == false)) && (5 >= timeleft)) {
old_x_player = _root.player._x;
setProperty("_root.player.munk", _xscale , 100);
_root.player.munk.play();
if (_root.bkg.hitTest(this._x + 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x + _root.moveamt;
}
}
if (key.isdown(key.left) && (_root.hitting == false)) {
old_x_player = _root.player._x;
_root.player.munk.play();
setProperty("_root.player.munk", _xscale , -100);
if (_root.bkg.hitTest(this._x - 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x - _root.moveamt;
}
}
if (600 < _y) {
_root.healthamt = 0;
}
}
}
onClipEvent (load) {
yspeed = 0;
jump = true;
jumpHeight = 30;
gravity = 3;
_root.moveamt = 10;
_root.cococount = 0;
timeleft = 0;
}
onClipEvent (enterFrame) {
if ((_root.cococount == 3) && (!switched)) {
_root.bkg.gotoandstop(2);
_root.walkable.gotoandstop(2);
Set("/:coconeed", "/6");
levelswitch = true;
switched = true;
}
if (levelswitch) {
_root.bkg._x = _root.startx;
_root.walkable._x = _root.walkablestartx;
levelswitch = false;
}
}
Instance of Symbol 245 MovieClip "moko" in Frame 97
onClipEvent (enterFrame) {
if (_root.mokodead) {
_xscale = -100;
_rotation = 90;
_root.moko.pini.stop();
if (!saidit) {
setProperty("_root.textbox", _visible , true);
_root.textbox.text = "you have defeated moko. you now have the oak branch and his coconut, you may now continue on.";
saidit = true;
}
}
if (!_root.mokodead) {
if (_root.moko._x < _root.player._x) {
setProperty("_root.moko", _xscale , 100);
_root.moko.play();
_root.moko._x = _root.moko._x + 5;
} else if (_root.player._x < _root.moko._x) {
setProperty("_root.moko", _xscale , -100);
_root.moko.play();
_root.moko._x = _root.moko._x - 5;
}
if (_root.moko.attack) {
_root.moko.gotoandplay(16);
}
}
}
onClipEvent (load) {
_root.mokodead = false;
}
Instance of Symbol 209 MovieClip "health" in Frame 97
onClipEvent (enterFrame) {
if (dead) {
_root.player.munk.gotoandplay(10);
_root.healthamt = 1;
dead = false;
cantmove = true;
}
if (10 < _root.healthamt) {
_root.healthamt = 10;
}
if (_root.healthamt < 0) {
_root.healthamt = 0;
}
if (_root.healthamt >= 10) {
_root.health.gotoandstop(1);
}
if (_root.healthamt == 9) {
_root.health.gotoandstop(12);
}
if (_root.healthamt == 8) {
_root.health.gotoandstop(21);
}
if (_root.healthamt == 7) {
_root.health.gotoandstop(31);
}
if (_root.healthamt == 6) {
_root.health.gotoandstop(41);
}
if (_root.healthamt == 5) {
_root.health.gotoandstop(51);
}
if (_root.healthamt == 4) {
_root.health.gotoandstop(61);
}
if (_root.healthamt == 3) {
_root.health.gotoandstop(71);
}
if (_root.healthamt == 2) {
_root.health.gotoandstop(81);
}
if (_root.healthamt == 1) {
_root.health.gotoandstop(91);
}
if (_root.healthamt == 0) {
_root.health.gotoandstop(101);
dead = true;
}
}
onClipEvent (load) {
_root.healthamt = 10;
}
Frame 98
if (!_root.mokodead) {
gotoAndStop (96);
}
stop();
Instance of Symbol 255 MovieClip "bkg" in Frame 98
onClipEvent (load) {
Set("/:coconeed", "/9");
_root.startx = _x;
}
Instance of Symbol 257 MovieClip in Frame 98
onClipEvent (enterFrame) {
if ((_root.cococount >= 9) && (!done)) {
_root.bkg._x = _root.startx;
_root.player._y = 200;
_root.walkable._x = _root.walkstartx;
_root.walkable.gotoandstop(2);
_root.bkg.gotoandstop(2);
_root.daynightnightday._visible = false;
_root.thewallbg._visible = true;
_root.fade.gotoandstop(2);
done = true;
}
}
onClipEvent (load) {
_root.cococount = 6;
}
Instance of Symbol 149 MovieClip "player" in Frame 98
onClipEvent (enterFrame) {
if (_root.hitting == false) {
timeleft = timeleft - 1;
}
if (!_root.cantmove) {
if (Key.isDown(Key.space) and (0 >= timeleft)) {
_root.player.munk.gotoandplay(16);
_root.hitting = true;
timeleft = 10;
} else {
_root.hitting = false;
}
if (Key.isDown(Key.up)) {
if (jump) {
yspeed = yspeed - jumpHeight;
jump = false;
}
}
yspeed = yspeed + gravity;
y = _root.player._y + yspeed;
if (_root.bkg.hittest(_root.player._x + 5, y + 21, true)) {
if (yspeed < 0) {
} else {
jump = true;
}
yspeed = 0;
} else {
_root.player._y = y;
}
if (key.isdown(key.right)) {
old_x_bkg = _root.bkg._x;
setProperty("_root.player.munk", _xscale , 100);
_root.player.munk.play();
if (_root.bkg.hitTest(this._x + 17, this._y + 21, true)) {
_root.bkg._x = old_x_bkg;
} else {
_root.bkg._x = _root.bkg._x - _root.moveamt;
_root.tree._x = _root.tree._x - _root.moveamt;
_root.walkable._x = _root.walkable._x - _root.moveamt;
}
}
if (key.isdown(key.left)) {
old_x_bkg = _root.bkg._x;
old_tree = _root.tree._x;
_root.player.munk.play();
setProperty("_root.player.munk", _xscale , -100);
if (_root.bkg.hitTest(this._x - 17, this._y + 21, true)) {
_root.bkg._x = old_x_bkg;
_root.tree._x = old_tree;
} else {
_root.bkg._x = _root.bkg._x + _root.moveamt;
_root.tree._x = _root.tree._x + _root.moveamt;
_root.walkable._x = _root.walkable._x + _root.moveamt;
}
}
if (600 < _y) {
_root.healthamt = 0;
}
}
}
onClipEvent (load) {
yspeed = 0;
jump = true;
jumpHeight = 30;
gravity = 3;
_root.moveamt = 10;
_root.continueinaction = false;
}
onClipEvent (enterFrame) {
if (levelswitch) {
_root.bkg._x = _root.startx;
_root.walkable._x = _root.walkablestartx;
levelswitch = false;
}
}
Instance of Symbol 261 MovieClip "walkable" in Frame 98
onClipEvent (load) {
_root.walkstartx = _x;
}
Instance of Symbol 209 MovieClip "health" in Frame 98
onClipEvent (enterFrame) {
if (dead) {
if (!_root.cantmove) {
_root.player.munk.gotoandplay(10);
_root.healthamt = 1;
}
dead = false;
}
if (10 < _root.healthamt) {
_root.healthamt = 10;
}
if (_root.healthamt < 0) {
_root.healthamt = 0;
}
if (_root.healthamt >= 10) {
_root.health.gotoandstop(1);
}
if (_root.healthamt == 9) {
_root.health.gotoandstop(12);
}
if (_root.healthamt == 8) {
_root.health.gotoandstop(21);
}
if (_root.healthamt == 7) {
_root.health.gotoandstop(31);
}
if (_root.healthamt == 6) {
_root.health.gotoandstop(41);
}
if (_root.healthamt == 5) {
_root.health.gotoandstop(51);
}
if (_root.healthamt == 4) {
_root.health.gotoandstop(61);
}
if (_root.healthamt == 3) {
_root.health.gotoandstop(71);
}
if (_root.healthamt == 2) {
_root.health.gotoandstop(81);
}
if (_root.healthamt == 1) {
_root.health.gotoandstop(91);
}
if (_root.healthamt == 0) {
_root.health.gotoandstop(101);
dead = true;
}
}
onClipEvent (load) {
_root.healthamt = 10;
}
Frame 99
stop();
if (!_root.kalafight) {
gotoAndStop (96);
}
Instance of Symbol 232 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (_root.kala.hittest(_root.player) && (_root.smashtime)) {
_xscale = (_xscale - 5);
}
if (_root.kaladead && (notgiven)) {
_root.cococount = _root.cococount + 3;
notgiven = false;
}
_x = (_root.kala._x - 25);
timeleft = timeleft - 1;
}
onClipEvent (enterFrame) {
if (0 >= _xscale) {
_xscale = 0;
_root.kaladead = true;
_visible = false;
}
}
onClipEvent (load) {
notgiven = true;
}
Instance of Symbol 149 MovieClip "player" in Frame 99
onClipEvent (enterFrame) {
if (_root.hitting == false) {
timeleft = timeleft - 1;
}
if (!_root.cantmove) {
if (Key.isDown(Key.space) and (0 >= timeleft)) {
_root.player.munk.gotoandplay(16);
_root.hitting = true;
timeleft = 10;
} else {
_root.hitting = false;
}
if ((Key.isDown(Key.up) && (_root.hitting == false)) && (5 >= timeleft)) {
if (jump) {
yspeed = yspeed - jumpHeight;
jump = false;
_root.jumpinact = true;
}
}
yspeed = yspeed + gravity;
y = _root.player._y + yspeed;
if (_root.bkg.hittest(_root.player._x + 5, y + 21, true)) {
if (yspeed < 0) {
} else {
jump = true;
_root.jumpinact = false;
}
yspeed = 0;
} else {
_root.player._y = y;
}
if ((key.isdown(key.right) && (_root.hitting == false)) && (5 >= timeleft)) {
old_x_player = _root.player._x;
setProperty("_root.player.munk", _xscale , 100);
_root.player.munk.play();
if (_root.bkg.hitTest(this._x + 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x + _root.moveamt;
}
}
if (key.isdown(key.left) && (_root.hitting == false)) {
old_x_player = _root.player._x;
_root.player.munk.play();
setProperty("_root.player.munk", _xscale , -100);
if (_root.bkg.hitTest(this._x - 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x - _root.moveamt;
}
}
if (600 < _y) {
_root.healthamt = 0;
}
}
}
onClipEvent (load) {
yspeed = 0;
jump = true;
jumpHeight = 30;
gravity = 3;
_root.moveamt = 10;
_root.cococount = 0;
timeleft = 0;
}
onClipEvent (enterFrame) {
if ((_root.cococount == 3) && (!switched)) {
_root.bkg.gotoandstop(2);
_root.walkable.gotoandstop(2);
Set("/:coconeed", "/6");
levelswitch = true;
switched = true;
}
}
Instance of Symbol 270 MovieClip "kala" in Frame 99
onClipEvent (enterFrame) {
if (this.hittest(_root.player) && (_root.smashtime)) {
setProperty("_root.kala", _yscale , _yscale - 1);
}
if ((this.hitTest(_root.player) && (_root.hurted == false)) && (_root.kaladead == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
}
onClipEvent (enterFrame) {
if (_root.kaladead) {
_xscale = -50;
stop();
_rotation = 90;
if (!saidit) {
setProperty("_root.textbox", _visible , true);
_root.textbox.text = "you have defeated kala. you now have three more coconuts, you now have all twelve golden coconuts you are redy to continue to the sacred stones and rid us of the powerful lightning enchanted monkey yump!";
saidit = true;
}
}
if (!_root.kaladead) {
if (_root.kala._x < _root.player._x) {
setProperty("_root.kala", _xscale , 50);
_root.kala.play();
_root.kala._x = _root.kala._x + 5;
} else if (_root.player._x < _root.kala._x) {
setProperty("_root.kala", _xscale , -50);
_root.kala.play();
_root.kala._x = _root.kala._x - 5;
}
}
}
onClipEvent (load) {
_root.kaladead = false;
saidit = false;
setProperty("_root.kala", _yscale , 50);
}
Frame 100
if (!_root.kaladead) {
_root.cantmove = false;
gotoAndStop (96);
}
sine_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
Set("/gun:shootchance", 12);
shotspeed = 10;
startDrag ("/ship", true);
stop();
Instance of Symbol 149 MovieClip "player" in Frame 100
onClipEvent (enterFrame) {
if (_root.hitting == false) {
timeleft = timeleft - 1;
}
if (!_root.cantmove) {
if (Key.isDown(Key.space) and (0 >= timeleft)) {
_root.player.munk.gotoandplay(16);
_root.hitting = true;
timeleft = 10;
} else {
_root.hitting = false;
}
if ((Key.isDown(Key.up) && (_root.hitting == false)) && (5 >= timeleft)) {
if (jump) {
yspeed = yspeed - jumpHeight;
jump = false;
_root.jumpinact = true;
}
}
yspeed = yspeed + gravity;
y = _root.player._y + yspeed;
if (_root.bkg.hittest(_root.player._x + 5, y + 21, true)) {
if (yspeed < 0) {
} else {
jump = true;
_root.jumpinact = false;
}
yspeed = 0;
} else {
_root.player._y = y;
}
if ((key.isdown(key.right) && (_root.hitting == false)) && (5 >= timeleft)) {
old_x_player = _root.player._x;
setProperty("_root.player.munk", _xscale , 100);
_root.player.munk.play();
if (_root.bkg.hitTest(this._x + 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x + _root.moveamt;
}
}
if (key.isdown(key.left) && (_root.hitting == false)) {
old_x_player = _root.player._x;
_root.player.munk.play();
setProperty("_root.player.munk", _xscale , -100);
if (_root.bkg.hitTest(this._x - 17, this._y + 21, true)) {
_root.player._x = old_x_player;
} else {
_root.player._x = _root.player._x - _root.moveamt;
}
}
if (600 < _y) {
_root.healthamt = 0;
}
}
}
onClipEvent (load) {
yspeed = 0;
jump = true;
jumpHeight = 30;
gravity = 3;
_root.moveamt = 10;
_root.cococount = 0;
timeleft = 0;
}
onClipEvent (enterFrame) {
if ((_root.cococount == 3) && (!switched)) {
_root.bkg.gotoandstop(2);
_root.walkable.gotoandstop(2);
Set("/:coconeed", "/6");
levelswitch = true;
switched = true;
}
}
Instance of Symbol 293 MovieClip "star" in Frame 100
onClipEvent (enterFrame) {
if (this.hittest(_root.player) && (!_root.hurted)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
}
Instance of Symbol 302 MovieClip "YUMPHOD" in Frame 100
onClipEvent (enterFrame) {
if (_root.YUMPHODdead) {
_root.gotoandstop(70);
}
}
Instance of Symbol 232 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (_root.YUMPHOD.hittest(_root.player) && (_root.smashtime)) {
_xscale = (_xscale - 2);
}
if (_root.YUMPHODdead && (notgiven)) {
notgiven = false;
}
_x = (_root.YUMPHOD._x - 25);
timeleft = timeleft - 1;
}
onClipEvent (enterFrame) {
if (0 >= _xscale) {
_xscale = 0;
_root.YUMPHODdead = true;
_visible = false;
}
}
onClipEvent (load) {
notgiven = true;
}
Instance of Symbol 160 MovieClip "continuebox" in Frame 100
onClipEvent (load) {
_root.continuebox._visible = false;
}
Instance of Symbol 209 MovieClip "health" in Frame 100
onClipEvent (enterFrame) {
if (dead) {
if (!_root.cantmove) {
_root.player.munk.gotoandplay(10);
_root.healthamt = 1;
}
dead = false;
}
if (10 < _root.healthamt) {
_root.healthamt = 10;
}
if (_root.healthamt < 0) {
_root.healthamt = 0;
}
if (_root.healthamt >= 10) {
_root.health.gotoandstop(1);
}
if (_root.healthamt == 9) {
_root.health.gotoandstop(12);
}
if (_root.healthamt == 8) {
_root.health.gotoandstop(21);
}
if (_root.healthamt == 7) {
_root.health.gotoandstop(31);
}
if (_root.healthamt == 6) {
_root.health.gotoandstop(41);
}
if (_root.healthamt == 5) {
_root.health.gotoandstop(51);
}
if (_root.healthamt == 4) {
_root.health.gotoandstop(61);
}
if (_root.healthamt == 3) {
_root.health.gotoandstop(71);
}
if (_root.healthamt == 2) {
_root.health.gotoandstop(81);
}
if (_root.healthamt == 1) {
_root.health.gotoandstop(91);
}
if (_root.healthamt == 0) {
_root.health.gotoandstop(101);
dead = true;
}
}
onClipEvent (load) {
_root.healthamt = 10;
}
Symbol 7 Button
on (release) {
_root.moveamt = _root.moveamt + 5;
this.dropItem("shroom");
}
Symbol 30 Button
on (release) {
_root.nodaynight = false;
gotoAndPlay (96);
}
Symbol 34 Button
on (release) {
gotoAndStop (90);
}
Symbol 36 Button
on (release) {
_root.nodaynight = true;
gotoAndPlay (96);
}
Symbol 39 Button
on (release) {
gotoAndStop (95);
}
Symbol 40 Button
on (release) {
gotoAndPlay (96);
}
Symbol 46 Button
on (release) {
gotoAndPlay (1);
}
Symbol 51 Button
on (release) {
gotoAndStop (15);
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Instance of Symbol 61 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 4);
if (_x < -400) {
_y = random(110);
_x = 800;
}
}
Instance of Symbol 63 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((side = 1)) {
_x = (_x + 2);
if (500 < _x) {
_y = random(120);
_x = -400;
}
} else {
_x = (_x + 2);
if (_x < -500) {
side = random(2);
_y = random(120);
_x = 499;
}
}
}
onClipEvent (load) {
}
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + 3);
if (600 < _x) {
_y = random(110);
_x = -300;
}
}
Symbol 70 MovieClip Frame 10
_root.hurted = false;
Symbol 83 MovieClip Frame 12
gotoAndPlay (1);
Symbol 83 MovieClip Frame 15
_y = 1000;
Symbol 121 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 75 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.liftItem("shroom");
this._y = 1000;
}
}
Instance of Symbol 83 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliob < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioa) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioa = _x - 100;
zooliob = _x;
}
Instance of Symbol 83 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliod < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioc) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioc = _x - 130;
zooliod = _x + 10;
}
Instance of Symbol 85 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 4;
_root.hurted = true;
}
}
Instance of Symbol 83 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliof < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioe) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioe = _x - 80;
zooliof = _x;
}
Instance of Symbol 83 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliob < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioa) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioa = _x - 100;
zooliob = _x;
}
Instance of Symbol 83 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hitTest(_root.player) && (_root.hurted == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliod < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioc) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioc = _x - 130;
zooliod = _x + 10;
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 73 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.healthamt = _root.healthamt + 1;
_y = 1000;
}
}
Instance of Symbol 107 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
setProperty("_root.textbox", _visible , true);
_root.cococount = _root.cococount + 1;
}
}
Instance of Symbol 107 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
Instance of Symbol 107 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
Symbol 121 MovieClip Frame 2
stop();
Instance of Symbol 107 MovieClip in Symbol 121 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
Instance of Symbol 107 MovieClip in Symbol 121 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
onClipEvent (load) {
this._y = 70;
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.cococount >= 5)) {
setProperty("_root.textbox", _visible , true);
setProperty("_root.textbox.moko", _visible , true);
_root.mokofight = true;
_root.textbox.text = "I am moko and i am guarding this coconut.defeat me and you can have it... first i will give you a weapon and then we shall fight.";
}
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
_root.smashtime = true;
Symbol 147 MovieClip Frame 6
_root.smashtime = false;
Symbol 147 MovieClip Frame 7
_root.hitting = false;
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 6
gotoAndPlay (1);
Symbol 148 MovieClip Frame 15
stop();
if (!_root.continueinaction) {
_root.continuebox._visible = true;
_root.cantmove = true;
_root.healthamt = 8;
_root.health._visible = false;
_root.continueinaction = true;
}
Symbol 148 MovieClip Frame 22
gotoAndPlay (1);
Symbol 148 MovieClip Frame 30
stop();
_root.gotoAndStop("intro", 1);
Symbol 155 Button
on (release) {
if (0 < _root.continues) {
setProperty("_root.continuebox", _visible , false);
_root.jumpinaction = true;
_root.healthamt = 8;
_root.continues = _root.continues - 1;
_root.hurted = true;
_root.player.munk.gotoandstop(1);
_root.cantmove = false;
_root.health._visible = true;
_root.continueinaction = false;
}
}
Symbol 158 Button
on (release) {
setProperty("_root.continuebox", _visible , false);
_root.cantmove = false;
_root.health._visible = true;
_root.continues = 3;
_root.gotoandstop(15);
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 180 Button
on (release) {
text.scroll++;
}
Symbol 184 Button
on (release) {
setProperty("_root.textbox", _visible , false);
}
Symbol 186 Button
on (release) {
text.scroll--;
}
Symbol 190 Button
on (release) {
_root.gotoandplay(43);
}
Symbol 193 Button
on (release) {
if (_root.kaladead) {
_root.gotoandplay(55);
} else {
_root.gotoandplay(50);
}
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Instance of Symbol 194 MovieClip "moko" in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mokodead) {
_visible = true;
gotoAndStop (2);
}
if (_root.kaladead) {
_visible = true;
gotoAndStop (2);
}
}
onClipEvent (load) {
_visible = false;
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 209 MovieClip Frame 3
stop();
Symbol 209 MovieClip Frame 4
stop();
Symbol 209 MovieClip Frame 5
stop();
Symbol 209 MovieClip Frame 6
stop();
Symbol 209 MovieClip Frame 7
stop();
Symbol 209 MovieClip Frame 8
stop();
Symbol 209 MovieClip Frame 9
stop();
Symbol 209 MovieClip Frame 10
stop();
Symbol 209 MovieClip Frame 11
stop();
gotoAndStop (1);
Symbol 212 Button
on (release) {
setProperty("_root.menu", _visible , false);
}
Symbol 216 Button
on (release) {
_root.sounds = true;
_root.soundsa = true;
}
Symbol 219 Button
on (release) {
_root.sounds = true;
}
Symbol 220 Button
on (release) {
_root.sounds = false;
}
Symbol 221 Button
on (release) {
_root.sounds = false;
_root.soundsa = false;
stopAllSounds();
}
Symbol 226 Button
on (press) {
startDrag ("_root.menu");
}
on (release) {
stopDrag();
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
_root.smashplayertime = true;
Symbol 244 MovieClip Frame 4
_root.smashplayertime = false;
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 6
gotoAndPlay (1);
Symbol 245 MovieClip Frame 15
stop();
_root.gotoAndStop(15);
Symbol 245 MovieClip Frame 22
gotoAndPlay (1);
Symbol 245 MovieClip Frame 30
stop();
_root.gotoAndStop("intro", 1);
Symbol 255 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hittest(_root.player) && (_root.smashtime)) {
gotoAndPlay (13);
}
if ((this.hitTest(_root.player) && (_root.hurted == false)) && (_root.smashtime == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliob < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioa) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioa = _x - 100;
zooliob = _x;
}
Instance of Symbol 83 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hittest(_root.player) && (_root.smashtime)) {
gotoAndPlay (13);
}
if ((this.hitTest(_root.player) && (_root.hurted == false)) && (_root.smashtime == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliod < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioc) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioc = _x - 130;
zooliod = _x + 10;
}
Instance of Symbol 83 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hittest(_root.player) && (_root.smashtime)) {
gotoAndPlay (13);
}
if ((this.hitTest(_root.player) && (_root.hurted == false)) && (_root.smashtime == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliof < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioe) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioe = _x - 80;
zooliof = _x;
}
Instance of Symbol 83 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
snakespeed = 2;
if (this.hittest(_root.player) && (_root.smashtime)) {
gotoAndPlay (13);
}
if ((this.hitTest(_root.player) && (_root.hurted == false)) && (_root.smashtime == false)) {
_root.healthamt = _root.healthamt - 1;
_root.hurted = true;
}
if (!dest400) {
dest300 = true;
dest400 = false;
}
if (dest400) {
_x = (_x + snakespeed);
if (zooliob < _x) {
dest400 = false;
dest300 = true;
}
}
if (dest300) {
_x = (_x - snakespeed);
if (_x < zoolioa) {
dest300 = false;
dest400 = true;
}
}
}
onClipEvent (load) {
zoolioa = _x - 100;
zooliob = _x;
}
Instance of Symbol 107 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
_root.continues = _root.continues + 1;
}
}
Instance of Symbol 107 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
Instance of Symbol 107 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this._y = 1000;
_root.cococount = _root.cococount + 1;
}
}
Instance of Symbol 254 MovieClip in Symbol 255 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.kalafight = true;
_root.gotoandplay(52);
}
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 3
gotoAndPlay (1);
Symbol 278 MovieClip Frame 1
gunx = _x;
guny = _y;
sx = getProperty("../player", _x);
sy = getProperty("../player", _y);
mouse_x = getProperty("../player", _x) - gunx;
mouse_y = getProperty("../player", _y) - guny;
if (Number(mouse_x) < 0) {
abs_mouse_x = Number(mouse_x) + Number(mouse_x * -2);
xsign = -1;
} else {
abs_mouse_x = mouse_x;
xsign = 1;
}
if (Number(mouse_y) < 0) {
abs_mouse_y = Number(mouse_y) + Number(mouse_y * -2);
ysign = -1;
} else {
abs_mouse_y = mouse_y;
ysign = 1;
}
input = Number(abs_mouse_x * abs_mouse_x) + Number(abs_mouse_y * abs_mouse_y);
call("sqrt");
hyp = output;
sin_theta = abs_mouse_y / hyp;
counter = 0;
found = 0;
while (!found) {
if (Number(sin_theta) >= Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5))) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(guny) < Number(sy)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
shootnow = Number(random(200)) + 1;
if (Number(shootchance) >= Number(shootnow)) {
shotname = Number(shotname) + 1;
if (Number(shotname) >= 1000) {
shotname = 1;
}
duplicateMovieClip ("../star", "shot" add shotname, shotname);
if (Number(abs_mouse_x) >= Number(abs_mouse_y)) {
Set(("../shot" add shotname) add ":xmov", ..:shotspeed * xsign);
Set(("../shot" add shotname) add ":ymov", (..:shotspeed * (abs_mouse_y / abs_mouse_x)) * ysign);
} else {
Set(("../shot" add shotname) add ":ymov", ..:shotspeed * ysign);
Set(("../shot" add shotname) add ":xmov", (..:shotspeed * (abs_mouse_x / abs_mouse_y)) * xsign);
}
setProperty("../shot" add shotname, _rotation , angle);
setProperty("../shot" add shotname, _x , gunx);
setProperty("../shot" add shotname, _y , guny);
}
Symbol 278 MovieClip Frame 2
gotoAndPlay (1);
Symbol 278 MovieClip Frame 9
n = 1;
counter = 0;
while (Number(counter) < 11) {
n = n - (((n * n) - input) / (2 * n));
counter = Number(counter) + 1;
}
output = n;
Symbol 293 MovieClip Frame 1
my_x = _x;
my_y = _y;
if ((((Number(350) < Number(my_y)) or (Number(my_y) < Number(0))) or (Number(650) < Number(my_x))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
}
Symbol 293 MovieClip Frame 2
gotoAndPlay (1);