Frame 1
loadMovieNum ("loop1.swf", 1);
stop();
Frame 2
function initGame() {
firstRock = 1;
lastRock = 0;
spills = 0;
totalRocks = 50;
timeSinceLastRock = 0;
riverSpeed = 0;
attachMovie("kayaking fox", "fox", 999999);
fox._x = 275;
fox._y = 350;
fox._xscale = 40;
fox._yscale = 40;
}
function moveFox() {
if (4 < fox._currentFrame) {
dx = 0;
} else if (Key.isDown(Key.RIGHT)) {
dx = riverSpeed;
fox.gotoAndStop("left");
} else if (Key.isDown(Key.LEFT)) {
dx = -riverSpeed;
fox.gotoAndStop("right");
} else {
dx = 0;
fox.gotoAndStop("still");
}
fox._x = fox._x + dx;
if (fox._x < 150) {
fox._x = 150;
}
if (400 < fox._x) {
fox._x = 400;
}
if (riverSpeed < 20) {
riverSpeed = riverSpeed + 0.5;
}
}
function newRock() {
if (5 < timeSinceLastRock) {
if (lastRock < totalRocks) {
if (Math.random() < 0.1) {
lastRock++;
attachMovie("rocks", "rock" + lastRock, lastRock);
_root["rock" + lastRock]._x = (Math.random() * 250) + 150;
_root["rock" + lastRock]._y = 0;
f = int(Math.Random() * _root["rock" + lastRock]._totalFrames) + 1;
_root["rock" + lastRock].gotoAndStop(f);
timeSinceLastRock = 0;
_root["rock" + i].hit = false;
}
}
}
timeSinceLastRock++;
}
function moveRocks() {
i = firstRock;
while (lastRock >= i) {
x = _root["rock" + i]._x;
y = _root["rock" + i]._y + riverSpeed;
if (400 < y) {
removeRock(i);
} else if (((_root["rock" + i].hit == false) and (Math.abs(y - fox._y) < 60)) and (Math.abs(x - fox._x) < 25)) {
spills = spills + 1;
_root["rock" + i].hit = true;
fox.gotoAndPlay("spill");
riverSpeed = 0;
if (5 < spills) {
removeAll();
gotoAndPlay (3);
}
}
_root["rock" + i]._y = y;
i++;
}
}
function removeRock(n) {
_root["rock" + n].removeMovieClip();
firstRock = n + 1;
if (n == totalRocks) {
removeAll();
gotoAndPlay (5);
}
}
function removeAll() {
i = firstRock;
while (lastRock >= i) {
_root["rock" + i].removeMovieClip();
i++;
}
fox.removeMovieClip();
}
stop();
Instance of Symbol 59 MovieClip in Frame 2
onClipEvent (load) {
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveFox();
_root.newRock();
_root.moveRocks();
}
Frame 3
stop();
Frame 4
stop();
Frame 5
loadMovieNum ("loop1.swf", 1);
stop();
Frame 6
function initGame() {
firstRock = 1;
lastRock = 0;
spills = 0;
totalRocks = 70;
timeSinceLastRock = 0;
riverSpeed = 0;
attachMovie("kayaking fox", "fox", 999999);
fox._x = 275;
fox._y = 350;
fox._xscale = 40;
fox._yscale = 40;
}
function moveFox() {
if (4 < fox._currentFrame) {
dx = 0;
} else if (Key.isDown(Key.RIGHT)) {
dx = riverSpeed;
fox.gotoAndStop("left");
} else if (Key.isDown(Key.LEFT)) {
dx = -riverSpeed;
fox.gotoAndStop("right");
} else {
dx = 0;
fox.gotoAndStop("still");
}
fox._x = fox._x + dx;
if (fox._x < 150) {
fox._x = 150;
}
if (400 < fox._x) {
fox._x = 400;
}
if (riverSpeed < 10) {
riverSpeed = riverSpeed + 0.9;
}
}
function newRock() {
if (5 < timeSinceLastRock) {
if (lastRock < totalRocks) {
if (Math.random() < 0.1) {
lastRock++;
attachMovie("rocks", "rock" + lastRock, lastRock);
_root["rock" + lastRock]._x = (Math.random() * 250) + 150;
_root["rock" + lastRock]._y = 0;
f = int(Math.Random() * _root["rock" + lastRock]._totalFrames) + 1;
_root["rock" + lastRock].gotoAndStop(f);
timeSinceLastRock = 0;
_root["rock" + i].hit = false;
}
}
}
timeSinceLastRock++;
}
function moveRocks() {
i = firstRock;
while (lastRock >= i) {
x = _root["rock" + i]._x;
y = _root["rock" + i]._y + riverSpeed;
if (400 < y) {
removeRock(i);
} else if (((_root["rock" + i].hit == false) and (Math.abs(y - fox._y) < 100)) and (Math.abs(x - fox._x) < 50)) {
spills = spills + 1;
_root["rock" + i].hit = true;
fox.gotoAndPlay("spill");
riverSpeed = 0;
if (4 < spills) {
removeAll();
gotoAndPlay (5);
}
}
_root["rock" + i]._y = y;
i++;
}
}
function removeRock(n) {
_root["rock" + n].removeMovieClip();
firstRock = n + 1;
if (n == totalRocks) {
removeAll();
gotoAndPlay (9);
}
}
function removeAll() {
i = firstRock;
while (lastRock >= i) {
_root["rock" + i].removeMovieClip();
i++;
}
fox.removeMovieClip();
}
stop();
Instance of Symbol 59 MovieClip in Frame 6
onClipEvent (load) {
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveFox();
_root.newRock();
_root.moveRocks();
}
Frame 7
stop();
Frame 8
stop();
Frame 9
loadMovieNum ("loop1.swf", 1);
stop();
Frame 10
function initGame() {
firstRock = 1;
lastRock = 0;
spills = 0;
totalRocks = 90;
timeSinceLastRock = 0;
riverSpeed = 0;
attachMovie("kayaking fox", "fox", 999999);
fox._x = 275;
fox._y = 350;
fox._xscale = 40;
fox._yscale = 40;
}
function moveFox() {
if (4 < fox._currentFrame) {
dx = 0;
} else if (Key.isDown(Key.RIGHT)) {
dx = riverSpeed;
fox.gotoAndStop("left");
} else if (Key.isDown(Key.LEFT)) {
dx = -riverSpeed;
fox.gotoAndStop("right");
} else {
dx = 0;
fox.gotoAndStop("still");
}
fox._x = fox._x + dx;
if (fox._x < 150) {
fox._x = 150;
}
if (400 < fox._x) {
fox._x = 400;
}
if (riverSpeed < 10) {
riverSpeed = riverSpeed + 0.7;
}
}
function newRock() {
if (5 < timeSinceLastRock) {
if (lastRock < totalRocks) {
if (Math.random() < 0.1) {
lastRock++;
attachMovie("rocks", "rock" + lastRock, lastRock);
_root["rock" + lastRock]._x = (Math.random() * 250) + 150;
_root["rock" + lastRock]._y = 0;
f = int(Math.Random() * _root["rock" + lastRock]._totalFrames) + 1;
_root["rock" + lastRock].gotoAndStop(f);
timeSinceLastRock = 0;
_root["rock" + i].hit = false;
}
}
}
timeSinceLastRock++;
}
function moveRocks() {
i = firstRock;
while (lastRock >= i) {
x = _root["rock" + i]._x;
y = _root["rock" + i]._y + riverSpeed;
if (400 < y) {
removeRock(i);
} else if (((_root["rock" + i].hit == false) and (Math.abs(y - fox._y) < 110)) and (Math.abs(x - fox._x) < 60)) {
spills = spills + 1;
_root["rock" + i].hit = true;
fox.gotoAndPlay("spill");
riverSpeed = 0;
if (3 < spills) {
removeAll();
gotoAndPlay (11);
}
}
_root["rock" + i]._y = y;
i++;
}
}
function removeRock(n) {
_root["rock" + n].removeMovieClip();
firstRock = n + 1;
if (n == totalRocks) {
removeAll();
gotoAndPlay (13);
}
}
function removeAll() {
i = firstRock;
while (lastRock >= i) {
_root["rock" + i].removeMovieClip();
i++;
}
fox.removeMovieClip();
}
stop();
Instance of Symbol 59 MovieClip in Frame 10
onClipEvent (load) {
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveFox();
_root.newRock();
_root.moveRocks();
}
Frame 11
stop();
Frame 12
stop();
Frame 13
loadMovieNum ("loop1.swf", 1);
stop();
Frame 14
function initGame() {
firstRock = 1;
lastRock = 0;
spills = 0;
totalRocks = 70;
timeSinceLastRock = 0;
riverSpeed = 0;
attachMovie("kayaking fox", "fox2", 999999);
fox2._x = 275;
fox2._y = 350;
fox2._xscale = 40;
fox2._yscale = 40;
}
function moveFox() {
if (4 < fox2._currentFrame) {
dx = 0;
} else if (Key.isDown(Key.RIGHT)) {
dx = riverSpeed;
fox2.gotoAndStop("left");
} else if (Key.isDown(Key.LEFT)) {
dx = -riverSpeed;
fox2.gotoAndStop("right");
} else {
dx = 0;
fox2.gotoAndStop("still");
}
fox2._x = fox2._x + dx;
if (fox2._x < 150) {
fox2._x = 150;
}
if (400 < fox2._x) {
fox2._x = 400;
}
if (riverSpeed < 10) {
riverSpeed = riverSpeed + 0.7;
}
}
function newRock() {
if (5 < timeSinceLastRock) {
if (lastRock < totalRocks) {
if (Math.random() < 0.1) {
lastRock++;
attachMovie("rocks2", "rock" + lastRock, lastRock);
_root["rock" + lastRock]._x = (Math.random() * 250) + 150;
_root["rock" + lastRock]._y = 0;
f = int(Math.Random() * _root["rock" + lastRock]._totalFrames) + 1;
_root["rock" + lastRock].gotoAndStop(f);
timeSinceLastRock = 0;
_root["rock" + i].hit = false;
}
}
}
timeSinceLastRock++;
}
function moveRocks() {
i = firstRock;
while (lastRock >= i) {
x = _root["rock" + i]._x;
y = _root["rock" + i]._y + riverSpeed;
if (400 < y) {
removeRock(i);
} else if (((_root["rock" + i].hit == false) and (Math.abs(y - fox2._y) < 90)) and (Math.abs(x - fox2._x) < 40)) {
spills = spills + 1;
_root["rock" + i].hit = true;
fox2.gotoAndPlay("spill");
riverSpeed = 0;
if (3 < spills) {
removeAll();
gotoAndPlay (15);
}
}
_root["rock" + i]._y = y;
i++;
}
}
function removeRock(n) {
_root["rock" + n].removeMovieClip();
firstRock = n + 1;
if (n == totalRocks) {
removeAll();
gotoAndPlay (16);
}
}
function removeAll() {
i = firstRock;
while (lastRock >= i) {
_root["rock" + i].removeMovieClip();
i++;
}
fox2.removeMovieClip();
}
stop();
Instance of Symbol 59 MovieClip in Frame 14
onClipEvent (load) {
_root.initGame();
}
onClipEvent (enterFrame) {
_root.moveFox();
_root.newRock();
_root.moveRocks();
}
Frame 15
stop();
Frame 16
stop();
Symbol 14 MovieClip [kayaking fox] Frame 1
stop();
Symbol 47 Button
on (press) {
gotoAndPlay (1);
}
Symbol 66 Button
on (press) {
nextFrame();
}
Symbol 69 Button
on (press) {
gotoAndPlay (5);
}
Symbol 75 Button
on (press) {
gotoAndPlay (9);
}
Symbol 82 Button
on (press) {
gotoAndPlay (13);
}