Frame 1
stop();
Frame 16
play();
Frame 20
play();
Frame 38
hq = 1;
stop();
Frame 46
function rates() {
if (score < 30000) {
gamerate = 31 - int(score / 1000);
} else {
gamerate = 1;
}
waveSpeed = 9 - (gamerate / 5);
waveY = 401 - gamerate;
if (gamerate > 10) {
windRange = int(1000 / gamerate);
} else {
windRange = 100;
}
}
monkeyPos = new Array(0, 0, 0, 0);
ledgeX = new Array(0, 0, 215, 84, 0, 324);
ledgeY = new Array(0, 40, 120, 179, 156, 272);
gravity = new Array(0, 1, 0.5, 0.1);
windEffect = new Array(0, 1, 2, 0.5);
wavessfx = new Sound("waves");
wavessfx.attachSound("wavesfx");
play();
Frame 47
waveX = 275;
score = 0;
lives = 5;
monkeylives.gotoAndStop(1);
monkey1.gotoAndPlay(1);
monkey2.gotoAndPlay(1);
monkey3.gotoAndPlay(1);
waveVolume = 40;
wavessfx.start(0, 10000);
wavessfx.setVolume(waveVolume);
rates();
play();
Frame 49
if (lives > 0) {
play();
} else {
waveLeft = 1000;
waveVolReduce = waveVolume / (440 - waveY);
gotoAndPlay ("gameover");
}
Frame 50
waveX = waveX + waveSpeed;
if (waveX > 775) {
waveX = waveX - 500;
}
setProperty("waves", _x , waveX);
setProperty("waves", _y , waveY);
waveOffset = (waveY - 370) * 2;
waveLeft = (waveX - 640) + waveOffset;
waveCentreLeft = (waveX - 360) - waveOffset;
waveCentreRight = (waveX - 140) + waveOffset;
waveRight = (waveX + 140) - waveOffset;
rates();
prevFrame();
Frame 53
play();
Frame 54
waveX = waveX + waveSpeed;
waveY++;
if (waveVolume > 0) {
waveVolume = waveVolume - waveVolReduce;
}
if (waveY < 440) {
waves._y = waveY;
waves._x = waveX;
wavessfx.setVolume(waveVolume);
prevFrame();
} else {
nextFrame();
}
Frame 55
_quality = "HIGH";
wavessfx.stop();
stop();
Frame 60
stop();
Symbol 14 MovieClip Frame 20
stop();
_parent.play();
Symbol 15 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
perc = Math.round(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
gotoAndStop(perc);
};
Symbol 15 MovieClip Frame 100
stop();
delete this.onEnterFrame;
Symbol 15 MovieClip Frame 106
_parent.nextFrame();
Symbol 28 MovieClip Frame 1
play();
Symbol 28 MovieClip Frame 86
stop();
_parent.play();
Symbol 34 Button
on (release) {
getURL ("http://www.funflashgames.com", "_blank");
}
Symbol 37 Button
on (release) {
getURL ("http://www.funflashgames.com/pages/FreeContent.htm", "_blank");
}
Symbol 59 Button
on (release) {
gotoAndStop (46);
}
Symbol 77 MovieClip Frame 1
play();
Symbol 77 MovieClip Frame 20
gotoAndPlay ("breath");
Symbol 77 MovieClip Frame 25
play();
Symbol 77 MovieClip Frame 42
_parent._parent.nextFrame();
Symbol 77 MovieClip Frame 45
stop();
Symbol 77 MovieClip Frame 50
play();
Symbol 77 MovieClip Frame 64
stop();
Symbol 77 MovieClip Frame 70
play();
Symbol 77 MovieClip Frame 74
gotoAndPlay ("swirl");
Symbol 78 MovieClip Frame 1
play();
Symbol 78 MovieClip Frame 20
gotoAndPlay ("breath");
Symbol 78 MovieClip Frame 25
play();
Symbol 78 MovieClip Frame 42
_parent._parent.nextFrame();
Symbol 78 MovieClip Frame 45
stop();
Symbol 78 MovieClip Frame 50
play();
Symbol 78 MovieClip Frame 64
stop();
Symbol 78 MovieClip Frame 70
play();
Symbol 78 MovieClip Frame 74
gotoAndPlay ("swirl");
Symbol 79 MovieClip Frame 1
play();
Symbol 79 MovieClip Frame 20
gotoAndPlay ("breath");
Symbol 79 MovieClip Frame 25
play();
Symbol 79 MovieClip Frame 42
_parent._parent.nextFrame();
Symbol 79 MovieClip Frame 45
stop();
Symbol 79 MovieClip Frame 50
play();
Symbol 79 MovieClip Frame 64
stop();
Symbol 79 MovieClip Frame 70
play();
Symbol 79 MovieClip Frame 74
gotoAndPlay ("swirl");
Symbol 80 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
play();
Symbol 81 MovieClip Frame 10
_parent.nextFrame();
stop();
Symbol 81 MovieClip Frame 15
play();
Symbol 81 MovieClip Frame 28
_parent.nextFrame();
stop();
Symbol 81 MovieClip Frame 31
play();
Symbol 81 MovieClip Frame 39
_parent.nextFrame();
stop();
Symbol 81 MovieClip Frame 45
play();
Symbol 81 MovieClip Frame 53
_parent.nextFrame();
stop();
Symbol 81 MovieClip Frame 60
play();
Symbol 81 MovieClip Frame 68
_parent.nextFrame();
stop();
Symbol 82 Button
on (release) {
jump = 1;
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
play();
Symbol 94 MovieClip Frame 15
stop();
Symbol 94 MovieClip Frame 20
play();
Symbol 94 MovieClip Frame 36
stop();
Symbol 94 MovieClip Frame 40
play();
Symbol 94 MovieClip Frame 56
stop();
Symbol 95 MovieClip Frame 1
monkeyNum = Number(substring(_name, 7, 1));
play();
Symbol 95 MovieClip Frame 4
if (_parent.lives > 0) {
play();
} else {
stop();
}
Symbol 95 MovieClip Frame 5
do {
position = 1 + random(5);
check = 0;
i = 1;
while (i <= 3) {
if ((i != monkeyNum) and (_parent.monkeyPos[i] == position)) {
check = 1;
}
i++;
}
} while (check == 1);
_parent.monkeyPos[monkeyNum] = position;
if (position == 1) {
monkeyX = 250 + random(200);
} else if (position == 4) {
monkeyX = 400 + random(100);
} else {
monkeyX = _parent.ledgeX[position];
}
monkeyY = _parent.ledgeY[position];
_x = monkeyX;
_y = monkeyY;
monkeyType = 1 + random(3);
monkeyScore = int((monkeyType * 500) / position);
monkeyWait = int(800 / position);
mEnter.mType.gotoAndStop(monkeyType);
mEnter.gotoAndPlay("ledge" + position);
stop();
Symbol 95 MovieClip Frame 6
m.gotoAndStop(monkeyType);
jump = 0;
play();
Symbol 95 MovieClip Frame 7
if (monkeyScore > 0) {
monkeyScore--;
}
if ((monkeyWait > 0) and (_parent.lives > 0)) {
monkeyWait--;
} else {
jump = 1;
}
play();
Symbol 95 MovieClip Frame 8
if (jump == 0) {
prevFrame();
} else {
gotoAndStop ("dive");
}
Symbol 95 MovieClip Frame 14
m.anim.gotoAndPlay("dive");
count = 1;
check = 0;
dead = 0;
stop();
Symbol 95 MovieClip Frame 15
play();
Symbol 95 MovieClip Frame 16
gravity = _parent.gravity[monkeyType] * count;
windFactor = (_parent.windEffect[monkeyType] * _parent.wind) * -1;
windFactor = windFactor / ((monkeyY + 100) / 100);
monkeyY = _y + gravity;
monkeyX = _x + windFactor;
_x = monkeyX;
if (((check == 0) and (monkeyY > (385 - gravity))) and (monkeyY < (385 + gravity))) {
check = 1;
if (((monkeyX < _parent.waveLeft) or (monkeyX > _parent.waveRight)) or ((monkeyX > _parent.waveCentreLeft) and (monkeyX < _parent.waveCentreRight))) {
dead = 1;
} else {
splash.gotoAndPlay("splash" + monkeyType);
_parent.score = _parent.score + monkeyScore;
}
}
if (dead == 1) {
_y = 385;
m.anim.gotoAndPlay("die");
_parent.lives--;
_parent.monkeylives.nextFrame();
gotoAndPlay ("die");
} else {
_y = monkeyY;
if (monkeyY > 430) {
gotoAndPlay ("setup");
} else {
count++;
prevFrame();
}
}
Symbol 95 MovieClip Frame 19
if (_parent.lives > 0) {
play();
} else {
stop();
}
Symbol 95 MovieClip Frame 20
dX1 = _parent.waveX - monkeyX;
dX2 = (_parent.waveX - 500) - monkeyX;
if (((dX1 > -15) and (dX1 < 15)) or ((dX2 > -15) and (dX2 < 15))) {
m.anim.gotoAndPlay("swirl");
gotoAndPlay ("swirl");
} else {
prevFrame();
}
Symbol 95 MovieClip Frame 24
play();
Symbol 95 MovieClip Frame 25
monkeyX = _x + _parent.waveSpeed;
monkeyY = _y + 2;
if (monkeyY < 425) {
_x = monkeyX;
_y = monkeyY;
prevFrame();
} else {
gotoAndPlay ("setup");
}
Symbol 103 MovieClip Frame 1
wind = 0;
sockRot = 0;
play();
Symbol 103 MovieClip Frame 2
prevSockRot = sockRot;
_parent.wind = (random(_parent.windRange) / 10) * (1 - (random(2) * 2));
sockRot = _parent.wind * 10;
rotFactor = (sockRot - prevSockRot) / 10;
count = 1;
play();
Symbol 103 MovieClip Frame 3
play();
Symbol 103 MovieClip Frame 4
if (count < 10) {
sockRotCurrent = getProperty("sock", _rotation) + rotFactor;
setProperty("sock", _rotation , sockRotCurrent);
count++;
prevFrame();
} else {
wait = 50 + (_parent.gamerate * 4);
count = 0;
nextFrame();
}
Symbol 103 MovieClip Frame 5
play();
Symbol 103 MovieClip Frame 6
if (count < wait) {
count++;
prevFrame();
} else {
gotoAndPlay ("setup");
}
Symbol 107 MovieClip Frame 1
play();
Symbol 107 MovieClip Frame 51
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 110 Button
on (keyPress "q") {
if (hq == 0) {
hq = 1;
_quality = "HIGH";
} else {
hq = 0;
_quality = "LOW";
}
}
on (keyPress "Q") {
if (hq == 0) {
hq = 1;
_quality = "HIGH";
} else {
hq = 0;
_quality = "LOW";
}
}
Symbol 112 Button
on (release) {
if (hq == 0) {
_quality = "LOW";
}
gotoAndPlay ("setup");
}