Combined Code
movieClip 2 tunnel {
}
movieClip 4 smoke {
}
movieClip 6 ship {
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 19 {
}
movieClip 20 Loader Component (Black) {
frame 1 {
Stage.showMenu = false;
_parent.stop();
this._width = 360;
this._height = 37;
var labelTxtV;
var percentTxtV;
var textLabel;
onEnterFrame = function () {
labelText9_mc.labelText9_txt.text = textLabel;
labelText9_mc._visible = labelTxtV;
percentText9_mc._visible = percentTxtV;
percentLoaded = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100);
this.gotoAndStop(percentLoaded);
percentText9_mc.percentText9_txt.text = percentLoaded + '%';
updateAfterEvent();
};
}
frame 100 {
Stage.showMenu = false;
_parent.stop();
this._width = 360;
this._height = 37;
var labelTxtV1;
var percentTxtV;
var textLabel1;
onEnterFrame = function () {
labelText99_mc.labelText99_txt.text = textLabel1;
labelText99_mc._visible = labelTxtV1;
percentText9_mc._visible = percentTxtV;
if (playOrStop === 'play()') {
_parent.play();
} else {
if (playOrStop === 'stop()') {
_parent.stop();
}
}
updateAfterEvent();
};
}
}
frame 1 {
function Lbar() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(LoaderInt);
}
_root.percent = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100) + '%';
}
stop();
LoaderInt = setInterval(Lbar, 10);
}
movieClip 23 {
}
movieClip 28 {
frame 50 {
stop();
}
}
frame 2 {
stop();
stopAllSounds();
}
button 31 {
on (release) {
gotoAndPlay(3);
}
}
button 34 {
on (release) {
gotoAndPlay(5);
}
}
button 35 {
on (release) {
gotoAndPlay(7);
}
}
button 36 {
on (release) {
gotoAndPlay(9);
}
}
button 39 {
on (release) {
gotoAndPlay(11);
}
}
button 41 {
on (release) {
gotoAndPlay(14);
}
}
button 42 {
on (release) {
gotoAndPlay(17);
}
}
button 43 {
on (release) {
gotoAndPlay(20);
}
}
button 46 {
on (release) {
gotoAndPlay(100);
}
}
button 48 {
on (release) {
gotoAndPlay(23);
}
}
button 49 {
on (release) {
gotoAndPlay(26);
}
}
button 52 {
on (release) {
getURL('http://www.fun-games.co.uk', '');
}
}
button 54 {
on (release) {
gotoAndPlay(30);
}
}
button 55 {
on (release) {
gotoAndPlay('game1start5');
}
}
button 57 {
on (release) {
gotoAndPlay('menu');
}
}
button 58 {
on (release) {
gotoAndStop(61);
}
}
button 59 {
on (release) {
gotoAndStop('mstart');
}
}
button 60 {
on (release) {
gotoAndPlay('hstart');
}
}
button 61 {
on (release) {
getURL('http://http://www.newgrounds.com/portal/view/442033', '');
}
}
movieClip 93 {
}
instance of movieClip 93 {
onClipEvent (enterFrame) {
if (_root.secbest > 9) {
this._parent.zero._y = -100;
}
}
}
instance of movieClip 20 Loader Component (Black) {
onClipEvent (construct) {
textLabel = 'Loading Please Wait...';
labelTxtV = false;
playOrStop = 'play()';
textLabel1 = 'Content Loaded...';
labelTxtV1 = false;
percentTxtV = false;
}
}
frame 4 {
startDrag(this.follower, true);
Mouse.hide();
stop();
}
movieClip 97 {
frame 50 {
if (_root.seconds > 59) {
_root.seconds = 0;
_root.minutes = Number(_root.minutes) + 1;
}
_root.seconds = Number(_root.seconds) + 1;
if (_root.seconds < 10) {
_root.seconds2 = '0' + _root.seconds;
} else {
_root.seconds2 = _root.seconds;
}
}
}
instance timer of movieClip 97 {
onClipEvent (enterFrame) {
this._parent.robot2._x = this._parent.robot._x;
this._parent.robot2._y = this._parent.robot._y;
}
}
movieClip 106 {
}
movieClip 109 {
}
movieClip 114 {
frame 40 {
stop();
}
}
movieClip 117 {
frame 40 {
stop();
}
}
button 121 {
on (keyPress '<Space>') {
_root.seconds = 0;
_root.seconds2 = '00';
_root.minutes = 0;
Mouse.show();
_root.gotoAndPlay(1);
}
}
movieClip 123 {
frame 1 {
game = SharedObject.getLocal('mydata');
if (game.data.name == undefined) {
_root.minbest = 0;
_root.secbest = 0;
} else {
_root.minbest = game.data.name;
_root.secbest = game.data.surname;
}
stop();
}
frame 41 {
if (_root.seconds < 10) {
time = '0';
} else {
time = '';
}
this.totaltime = 'Your time was ' + _root.minutes + ':' + time + _root.seconds;
if (_root.minbest * 60 + _root.secbest < _root.minutes * 60 + _root.seconds) {
game = SharedObject.getLocal('mydata');
game.data.name = _root.minutes;
game.data.surname = _root.seconds;
game.flush();
}
stop();
}
}
movieClip 125 {
frame 1 {
rspeed = 0;
lspeed = 0;
dspeed = 0;
uspeed = 0;
}
frame 2 {
if (this._parent.follower._x > _x) {
_x = _x + rspeed;
rspeed += 1;
} else {
if (rspeed >= 0) {
_x = _x + rspeed;
rspeed -= 1;
}
}
if (this._parent.follower._x < _x) {
_x = _x - lspeed;
lspeed += 1;
} else {
if (lspeed >= 0) {
_x = _x - lspeed;
lspeed -= 1;
}
}
if (this._parent.follower._y < _y) {
_y = _y - uspeed;
uspeed += 1;
} else {
if (uspeed >= 0) {
_y = _y - uspeed;
uspeed -= 1;
}
}
if (this._parent.follower._y > _y) {
_y = _y + dspeed;
dspeed += 1;
} else {
if (dspeed >= 0) {
_y = _y + dspeed;
dspeed -= 1;
}
}
if (this._x < 10) {
lspeed = 0;
}
if (this._x > 540) {
rspeed = 0;
}
if (this._y < 10) {
uspeed = 0;
}
if (this._y > 390) {
dspeed = 0;
}
if (this.hitTest(this._parent.rwall)) {
this._x = 0;
}
if (this.hitTest(this._parent.lwall)) {
this._x = 500;
}
if (this.hitTest(this._parent.bwall)) {
this._y = 0;
}
if (this.hitTest(this._parent.twall)) {
this._y = 340;
}
this._rotation += rspeed;
this._rotation -= lspeed;
}
frame 3 {
gotoAndPlay(2);
}
}
instance robot2 of movieClip 125 {
onClipEvent (enterFrame) {
if (this._parent.robot.lspeed - this._parent.robot.rspeed > 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed;
}
if (this._parent.robot.lspeed - this._parent.robot.rspeed < 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed - (this._parent.robot.lspeed - this._parent.robot.rspeed * 2);
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed > 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed;
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed < 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed - (this._parent.robot.uspeed - this._parent.robot.dspeed * 2);
}
var array_filter = new Array();
var filter = new flash.filters.BlurFilter(xspee, yspee, 3);
array_filter.push(filter);
this.filters = array_filter;
}
}
instance robot of movieClip 125 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
instance of movieClip 93 {
onClipEvent (enterFrame) {
if (_root.secbest > 9) {
this._parent.zero._y = -100;
}
}
}
instance of movieClip 20 Loader Component (Black) {
onClipEvent (construct) {
textLabel = 'Loading Please Wait...';
labelTxtV = false;
playOrStop = 'play()';
textLabel1 = 'Content Loaded...';
labelTxtV1 = false;
percentTxtV = false;
}
}
frame 6 {
startDrag(this.follower, true);
Mouse.hide();
stop();
}
instance timer of movieClip 97 {
onClipEvent (enterFrame) {
this._parent.robot2._x = this._parent.robot._x;
this._parent.robot2._y = this._parent.robot._y;
}
}
instance robot2 of movieClip 125 {
onClipEvent (enterFrame) {
if (this._parent.robot.lspeed - this._parent.robot.rspeed > 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed;
}
if (this._parent.robot.lspeed - this._parent.robot.rspeed < 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed - (this._parent.robot.lspeed - this._parent.robot.rspeed * 2);
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed > 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed;
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed < 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed - (this._parent.robot.uspeed - this._parent.robot.dspeed * 2);
}
var array_filter = new Array();
var filter = new flash.filters.BlurFilter(xspee, yspee, 3);
array_filter.push(filter);
this.filters = array_filter;
}
}
instance robot of movieClip 125 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.comet2._x = 1000000000000.0;
this._parent.comet2.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
movieClip 143 {
frame 1 {
rspeed = 0;
lspeed = 0;
dspeed = 0;
uspeed = 0;
}
frame 2 {
if (this._parent.follower._x > _x) {
_x = _x + rspeed;
rspeed += 1;
} else {
if (rspeed >= 0) {
_x = _x + rspeed;
rspeed -= 1;
}
}
if (this._parent.follower._x < _x) {
_x = _x - lspeed;
lspeed += 1;
} else {
if (lspeed >= 0) {
_x = _x - lspeed;
lspeed -= 1;
}
}
if (this._parent.follower._y < _y) {
_y = _y - uspeed;
uspeed += 1;
} else {
if (uspeed >= 0) {
_y = _y - uspeed;
uspeed -= 1;
}
}
if (this._parent.follower._y > _y) {
_y = _y + dspeed;
dspeed += 1;
} else {
if (dspeed >= 0) {
_y = _y + dspeed;
dspeed -= 1;
}
}
if (this._x < 10) {
lspeed = 0;
}
if (this._x > 540) {
rspeed = 0;
}
if (this._y < 10) {
uspeed = 0;
}
if (this._y > 390) {
dspeed = 0;
}
if (this.hitTest(this._parent.rwall)) {
this._x = 0;
}
if (this.hitTest(this._parent.lwall)) {
this._x = 500;
}
if (this.hitTest(this._parent.bwall)) {
this._y = 0;
}
if (this.hitTest(this._parent.twall)) {
this._y = 340;
}
this._rotation += rspeed;
this._rotation -= lspeed;
}
frame 3 {
gotoAndPlay(2);
}
}
instance comet2 of movieClip 143 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.robot._x = 1000000000000.0;
this._parent.robot.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
instance of movieClip 93 {
onClipEvent (enterFrame) {
if (_root.secbest > 9) {
this._parent.zero._y = -100;
}
}
}
instance of movieClip 20 Loader Component (Black) {
onClipEvent (construct) {
textLabel = 'Loading Please Wait...';
labelTxtV = false;
playOrStop = 'play()';
textLabel1 = 'Content Loaded...';
labelTxtV1 = false;
percentTxtV = false;
}
}
frame 8 {
startDrag(this.follower, true);
Mouse.hide();
stop();
}
instance timer of movieClip 97 {
onClipEvent (enterFrame) {
this._parent.robot2._x = this._parent.robot._x;
this._parent.robot2._y = this._parent.robot._y;
}
}
instance robot2 of movieClip 125 {
onClipEvent (enterFrame) {
if (this._parent.robot.lspeed - this._parent.robot.rspeed > 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed;
}
if (this._parent.robot.lspeed - this._parent.robot.rspeed < 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed - (this._parent.robot.lspeed - this._parent.robot.rspeed * 2);
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed > 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed;
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed < 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed - (this._parent.robot.uspeed - this._parent.robot.dspeed * 2);
}
var array_filter = new Array();
var filter = new flash.filters.BlurFilter(xspee, yspee, 3);
array_filter.push(filter);
this.filters = array_filter;
}
}
instance robot of movieClip 125 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.comet2._x = 1000000000000.0;
this._parent.comet2.stop();
this._parent.comet3._x = 1000000000000.0;
this._parent.comet3.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
instance comet2 of movieClip 143 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this._parent.robot._x = 1000000000000.0;
this._parent.robot.stop();
this._parent.comet3._x = 1000000000000.0;
this._parent.comet3.stop();
this.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
movieClip 161 {
frame 1 {
rspeed = 0;
lspeed = 0;
dspeed = 0;
uspeed = 0;
}
frame 2 {
if (this._parent.follower._x > _x) {
_x = _x + rspeed;
rspeed += 1;
} else {
if (rspeed >= 0) {
_x = _x + rspeed;
rspeed -= 1;
}
}
if (this._parent.follower._x < _x) {
_x = _x - lspeed;
lspeed += 1;
} else {
if (lspeed >= 0) {
_x = _x - lspeed;
lspeed -= 1;
}
}
if (this._parent.follower._y < _y) {
_y = _y - uspeed;
uspeed += 1;
} else {
if (uspeed >= 0) {
_y = _y - uspeed;
uspeed -= 1;
}
}
if (this._parent.follower._y > _y) {
_y = _y + dspeed;
dspeed += 1;
} else {
if (dspeed >= 0) {
_y = _y + dspeed;
dspeed -= 1;
}
}
if (this._x < 10) {
lspeed = 0;
}
if (this._x > 540) {
rspeed = 0;
}
if (this._y < 10) {
uspeed = 0;
}
if (this._y > 390) {
dspeed = 0;
}
if (this.hitTest(this._parent.rwall)) {
this._x = 0;
}
if (this.hitTest(this._parent.lwall)) {
this._x = 500;
}
if (this.hitTest(this._parent.bwall)) {
this._y = 0;
}
if (this.hitTest(this._parent.twall)) {
this._y = 340;
}
this._rotation += rspeed;
this._rotation -= lspeed;
}
frame 3 {
gotoAndPlay(2);
}
}
instance comet3 of movieClip 161 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.robot._x = 1000000000000.0;
this._parent.robot.stop();
this._parent.comet2._x = 1000000000000.0;
this._parent.comet2.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
instance of movieClip 93 {
onClipEvent (enterFrame) {
if (_root.secbest > 9) {
this._parent.zero._y = -100;
}
}
}
instance of movieClip 20 Loader Component (Black) {
onClipEvent (construct) {
textLabel = 'Loading Please Wait...';
labelTxtV = false;
playOrStop = 'play()';
textLabel1 = 'Content Loaded...';
labelTxtV1 = false;
percentTxtV = false;
}
}
frame 10 {
startDrag(this.follower, true);
Mouse.hide();
stop();
}
instance timer of movieClip 97 {
onClipEvent (enterFrame) {
this._parent.robot2._x = this._parent.robot._x;
this._parent.robot2._y = this._parent.robot._y;
}
}
instance robot2 of movieClip 125 {
onClipEvent (enterFrame) {
if (this._parent.robot.lspeed - this._parent.robot.rspeed > 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed;
}
if (this._parent.robot.lspeed - this._parent.robot.rspeed < 0) {
xspee = this._parent.robot.lspeed - this._parent.robot.rspeed - (this._parent.robot.lspeed - this._parent.robot.rspeed * 2);
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed > 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed;
}
if (this._parent.robot.uspeed - this._parent.robot.dspeed < 0) {
yspee = this._parent.robot.uspeed - this._parent.robot.dspeed - (this._parent.robot.uspeed - this._parent.robot.dspeed * 2);
}
var array_filter = new Array();
var filter = new flash.filters.BlurFilter(xspee, yspee, 3);
array_filter.push(filter);
this.filters = array_filter;
}
}
instance robot of movieClip 125 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.follower)) {
this._parent.follower.play();
this._x = 1000000000000.0;
this.stop();
this._parent.timer.stop();
this._parent.music.setPan(this._parent.follower._x);
this._parent.music.play();
}
}
}
movieClip 182 {
frame 1 {
game = SharedObject.getLocal('mydata');
if (game.data.name == undefined) {
_root.minbest = 0;
_root.secbest = 0;
} else {
_root.minbest = game.data.name;
_root.secbest = game.data.surname;
}
stop();
}
frame 41 {
if (_root.seconds < 10) {
time = '0';
} else {
time = '';
}
this.totaltime = 'Your time was ' + _root.minutes + ':' + time + _root.seconds;
if (_root.minbest * 60 + _root.secbest < _root.minutes * 60 + _root.seconds) {
game = SharedObject.getLocal('mydata');
game.data.name = _root.minutes;
game.data.surname = _root.seconds;
game.flush();
}
stop();
}
}
frame 11 {
stop();
}
movieClip 187 {
}
instance of movieClip 187 {
}
button 189 {
on (keyPress '<Space>') {
gotoAndStop('swimfirst');
}
}
button 192 {
on (release) {
gotoAndPlay(1);
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
}
}
frame 12 {
this.timer.play();
_root.times.seconds2 = 0;
}
frame 12 {
var smoke_filter = new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false);
gravity = 0.1;
thrust = 0.25;
yspeed = 0;
xspeed = 5;
distance = 0;
smoke_interval = 1000000000;
frames_passed = 10;
tunnel_height = 150;
engines = false;
_root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 150, '_y': 200});
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed -= thrust;
smoke_interval -= 0.25;
}
yspeed += gravity;
this._y += yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = angle * 180 / Math.PI;
++frames_passed;
distance += xspeed;
if (distance > 5) {
step = distance - 5;
wall = tunnel_movie.attachMovie('tunnel', 'tunnel' + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {'_x': 525 - step, '_y': tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x -= xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height += Math.floor(Math.random() * 40) - 19;
distance = step;
}
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie('smoke', 'smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': this._x - 2, '_y': this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x -= xspeed;
this._width += 0.2;
this._height += 0.2;
this._alpha -= 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (tunnel_movie.hitTest(this._x + 28 * Math.cos(angle), this._y + 28 * Math.sin(angle), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle + 1.570796326794897), this._y + 8 * Math.sin(angle + 1.570796326794897), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle - 1.570796326794897), this._y + 8 * Math.sin(angle - 1.570796326794897), true)) {
_root.gotoAndStop('fini');
this.camera._y = 185;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
}
};
_root.onMouseDown = function () {
engines = true;
smoke_interval = 10;
};
_root.onMouseUp = function () {
engines = false;
smoke_interval = 100000;
};
stop();
}
movieClip 195 {
}
instance of movieClip 195 {
onClipEvent (load) {
n = 0;
offset = getTimer();
}
onClipEvent (enterFrame) {
n += 1;
time = getTimer();
_root.fpstext = 1 / ((time - offset) / 1000);
_root.textfield1 = time / 1000;
_root.textfield2 = n;
offset = time;
}
onClipEvent (enterFrame) {
if (_root.fpstext < 39.9) {
_quality = 'LOW';
} else {
_quality = 'MEDIUM';
}
}
onClipEvent (enterFrame) {
this._parent.camra._y = this._parent.ship._y;
}
onClipEvent (enterFrame) {
this._parent.times._y = this._parent.camra._y;
}
}
movieClip 200 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 202 {
frame 2 {
_root.times.seconds2 = Number(_root.times.seconds2) + 1;
}
}
movieClip 205 {
}
instance times of movieClip 205 {
}
frame 13 {
_quality = 'HIGH';
this.timer.stop();
_root.distance = 'Your Distance: ' + _root.times.seconds2;
if (_root.times.seconds2 > 999) {
maingame.data.unlocked2 = '1';
}
}
frame 13 {
_root._level999.gameEnd();
}
movieClip 210 {
}
movieClip 211 {
}
button 212 {
on (release) {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst');
}
on (keyPress '<Space>') {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst');
}
}
frame 14 {
stop();
}
button 217 {
on (keyPress '<Space>') {
gotoAndStop('swimfirst4');
}
}
frame 15 {
this.timer.play();
_root.times.seconds2 = 0;
}
frame 15 {
var smoke_filter = new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false);
gravity = 0.1;
thrust = 0.25;
yspeed = 0;
xspeed = 5;
distance = 0;
smoke_interval = 1000000000;
frames_passed = 10;
tunnel_height = 150;
engines = false;
_root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 150, '_y': 200});
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed -= thrust;
smoke_interval -= 0.25;
}
yspeed += gravity;
this._y += yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = angle * 180 / Math.PI;
++frames_passed;
distance += 5;
if (distance > 5) {
step = distance - 5;
wall = tunnel_movie.attachMovie('tunnel', 'tunnel' + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {'_x': 525 - step, '_y': tunnel_height * 1.5});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x -= xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height += Math.floor(Math.random() * 40) - 19;
distance = step;
}
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie('smoke', 'smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': this._x - 2, '_y': this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x -= xspeed;
this._width += 0.2;
this._height += 0.2;
this._alpha -= 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (tunnel_movie.hitTest(this._x + 28 * Math.cos(angle), this._y + 28 * Math.sin(angle), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle + 1.570796326794897), this._y + 8 * Math.sin(angle + 1.570796326794897), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle - 1.570796326794897), this._y + 8 * Math.sin(angle - 1.570796326794897), true)) {
_root.gotoAndStop('fini4');
this.camera._y = 185;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
}
};
_root.onMouseDown = function () {
engines = true;
smoke_interval = 10;
};
_root.onMouseUp = function () {
engines = false;
smoke_interval = 100000;
};
stop();
}
instance of movieClip 195 {
onClipEvent (load) {
n = 0;
offset = getTimer();
}
onClipEvent (enterFrame) {
n += 1;
time = getTimer();
_root.fpstext = 1 / ((time - offset) / 1000);
_root.textfield1 = time / 1000;
_root.textfield2 = n;
offset = time;
}
onClipEvent (enterFrame) {
if (_root.fpstext < 39.9) {
_quality = 'LOW';
} else {
_quality = 'MEDIUM';
}
}
onClipEvent (enterFrame) {
this._parent.camra._y = this._parent.ship._y;
}
onClipEvent (enterFrame) {
this._parent.times._y = this._parent.camra._y;
}
}
instance times of movieClip 205 {
}
frame 16 {
_quality = 'HIGH';
this.timer.stop();
_root.distance = 'Your Distance: ' + _root.times.seconds2;
if (_root.times.seconds2 > 999) {
maingame.data.unlocked2 = '1';
}
}
frame 16 {
_root._level999.gameEnd();
}
button 223 {
on (release) {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst4');
}
on (keyPress '<Space>') {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst4');
}
}
frame 17 {
stop();
}
button 228 {
on (keyPress '<Space>') {
gotoAndStop('swimfirst3');
}
}
frame 18 {
this.timer.play();
_root.times.seconds2 = 0;
}
frame 18 {
var smoke_filter = new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false);
gravity = 1;
thrust = 2;
yspeed = 0;
xspeed2 = 5;
distance = 0;
smoke_interval = 1000000000;
frames_passed = 10;
tunnel_height = 150;
engines = false;
_root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 150, '_y': 200});
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed -= thrust;
smoke_interval -= 0.25;
}
yspeed += gravity;
this._y += yspeed;
angle = Math.atan2(yspeed, xspeed2);
this._rotation = angle * 180 / Math.PI;
++frames_passed;
distance += xspeed2;
if (distance > 5) {
step = distance - 5;
wall = tunnel_movie.attachMovie('tunnel', 'tunnel' + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {'_x': 525 - step, '_y': tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x -= xspeed2;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height += Math.floor(Math.random() * 40) - 19;
distance = step;
}
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie('smoke', 'smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': this._x - 2, '_y': this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x -= xspeed2;
this._width += 0.2;
this._height += 0.2;
this._alpha -= 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (tunnel_movie.hitTest(this._x + 28 * Math.cos(angle), this._y + 28 * Math.sin(angle), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle + 1.570796326794897), this._y + 8 * Math.sin(angle + 1.570796326794897), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle - 1.570796326794897), this._y + 8 * Math.sin(angle - 1.570796326794897), true)) {
_root.gotoAndStop('fini3');
this.camera._y = 185;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
}
};
_root.onMouseDown = function () {
engines = true;
smoke_interval = 10;
};
_root.onMouseUp = function () {
engines = false;
smoke_interval = 100000;
};
stop();
}
instance of movieClip 195 {
onClipEvent (load) {
n = 0;
offset = getTimer();
}
onClipEvent (enterFrame) {
n += 1;
time = getTimer();
_root.fpstext = 1 / ((time - offset) / 1000);
_root.textfield1 = time / 1000;
_root.textfield2 = n;
offset = time;
}
onClipEvent (enterFrame) {
if (_root.fpstext < 39.9) {
_quality = 'LOW';
} else {
_quality = 'MEDIUM';
}
}
onClipEvent (enterFrame) {
this._parent.camra._y = this._parent.ship._y;
}
onClipEvent (enterFrame) {
this._parent.times._y = this._parent.camra._y;
}
}
instance times of movieClip 205 {
}
frame 19 {
_quality = 'HIGH';
this.timer.stop();
_root.distance = 'Your Distance: ' + _root.times.seconds2;
if (_root.times.seconds2 > 999) {
maingame.data.unlocked2 = '1';
}
}
frame 19 {
_root._level999.gameEnd();
}
button 234 {
on (release) {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst3');
}
on (keyPress '<Space>') {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst3');
}
}
frame 20 {
stop();
}
button 240 {
on (keyPress '<Space>') {
gotoAndStop('swimfirst2');
}
}
frame 21 {
this.timer.play();
_root.times.seconds2 = 0;
}
frame 21 {
var smoke_filter = new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false);
gravity = 0.1;
thrust = 0.25;
yspeed = 0;
xspeed = 5;
distance = 0;
smoke_interval = 1000000000;
frames_passed = 10;
tunnel_height = 150;
engines = false;
_root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 150, '_y': 200});
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed -= thrust;
smoke_interval -= 0.25;
}
yspeed += gravity;
this._y += yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = angle * 180 / Math.PI;
++frames_passed;
distance += xspeed;
if (distance > 5) {
step = distance - 5;
wall = tunnel_movie.attachMovie('tunnel', 'tunnel' + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {'_x': 525 - step, '_y': tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x -= xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height += Math.floor(Math.random() * 40) - 19;
distance = step;
}
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie('smoke', 'smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': this._x - 2, '_y': this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x -= xspeed;
this._width += 0.2;
this._height += 0.2;
this._alpha -= 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (tunnel_movie.hitTest(this._x + 28 * Math.cos(angle), this._y + 28 * Math.sin(angle), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle + 1.570796326794897), this._y + 8 * Math.sin(angle + 1.570796326794897), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle - 1.570796326794897), this._y + 8 * Math.sin(angle - 1.570796326794897), true)) {
_root.gotoAndStop('fini2');
this.camera._y = 185;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
}
};
_root.onMouseDown = function () {
engines = true;
smoke_interval = 10;
};
_root.onMouseUp = function () {
engines = false;
smoke_interval = 100000;
};
stop();
}
instance of movieClip 195 {
onClipEvent (load) {
n = 0;
offset = getTimer();
}
onClipEvent (enterFrame) {
n += 1;
time = getTimer();
_root.fpstext = 1 / ((time - offset) / 1000);
_root.textfield1 = time / 1000;
_root.textfield2 = n;
offset = time;
}
onClipEvent (enterFrame) {
if (_root.fpstext < 39.9) {
_quality = 'LOW';
} else {
_quality = 'MEDIUM';
}
}
onClipEvent (enterFrame) {
this._parent.camra._y = this._parent.ship._y;
}
onClipEvent (enterFrame) {
this._parent.times._y = this._parent.camra._y;
}
}
instance times of movieClip 205 {
}
frame 22 {
_quality = 'HIGH';
this.timer.stop();
_root.distance = 'Your Distance: ' + _root.times.seconds2;
if (_root.times.seconds2 > 999) {
maingame.data.unlocked2 = '1';
}
}
frame 22 {
_root._level999.gameEnd();
}
button 247 {
on (release) {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst2');
}
on (keyPress '<Space>') {
yspeed = 0;
this._y = 200;
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
_root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth());
gotoAndStop('swimfirst2');
}
}
frame 23 {
stop();
}
frame 23 {
stopAllSounds();
}
button 253 {
on (keyPress '<Space>') {
gotoAndStop('banstart');
}
}
frame 24 {
stop();
}
movieClip 256 {
}
movieClip 267 {
}
movieClip 270 {
frame 1 {
stop();
}
frame 25 {
gotoAndPlay(1);
}
frame 50 {
gotoAndPlay(26);
}
frame 52 {
stop();
}
}
instance walker of movieClip 270 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 10;
jumping = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
walker.yspeed = 0;
walker._x = -378;
walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 272 {
}
movieClip 277 {
}
movieClip 278 {
frame 89 {
_x = Math.random() * 450 + 50;
}
}
instance b1 of movieClip 278 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b4 of movieClip 278 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b9 of movieClip 278 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b14 of movieClip 278 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b7 of movieClip 278 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
movieClip 279 {
frame 59 {
_x = Math.random() * 450 + 50;
}
}
instance b3 of movieClip 279 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b16 of movieClip 279 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b13 of movieClip 279 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b8 of movieClip 279 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
movieClip 280 {
frame 90 {
_x = Math.random() * 450 + 50;
}
}
instance b5 of movieClip 280 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b12 of movieClip 280 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b6 of movieClip 280 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b15 of movieClip 280 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
movieClip 281 {
frame 108 {
_x = Math.random() * 450 + 50;
}
}
instance b2 of movieClip 281 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b11 of movieClip 281 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
instance b17 of movieClip 281 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.gotoAndPlay(1);
_root.score = Number(_root.score) + 1;
}
}
}
movieClip 289 {
}
movieClip 295 {
frame 50 {
_root.timer2 = Number(_root.timer2) - 1;
if (_root.timer2 == 0) {
_root.gotoAndStop('banaend');
}
}
}
instance of movieClip 295 {
onClipEvent (enterFrame) {
_root.score2 = _root.score * 4;
}
}
frame 25 {
if (_root.score2 < 100) {
rank = 'F';
}
if (_root.score2 >= 100) {
rank = 'E';
}
if (_root.score2 >= 200) {
rank = 'D';
}
if (_root.score2 >= 400) {
rank = 'C';
}
if (_root.score2 >= 700) {
rank = 'B';
}
if (_root.score2 >= 1000) {
rank = 'A';
}
_root.endof = 'Bunches: ' + _root.score + '<br>Bananas: ' + _root.score2 + '<br>Rank: ' + rank;
}
button 302 {
on (release) {
_root.score = 0;
_root.score2 = 0;
_root.timer2 = 30;
gotoAndPlay('banstart');
}
}
button 305 {
on (release) {
_root.score = 0;
_root.score2 = 0;
_root.timer2 = 30;
gotoAndPlay(1);
}
}
frame 26 {
_root.jumping = 0;
stop();
}
frame 26 {
stopAllSounds();
}
movieClip 317 {
}
button 318 {
on (release) {
nextFrame();
}
}
button 323 {
on (keyPress '<Space>') {
gotoAndStop('fs1');
}
}
movieClip 326 {
frame 50 {
_root.timer3 = Number(_root.timer3) + 1;
}
}
movieClip 328 {
frame 1 {
_x = _x - 12;
}
frame 2 {
_x = _x - 12;
}
frame 3 {
_x = _x - 12;
}
frame 4 {
_x = _x - 12;
}
frame 5 {
_x = _x - 12;
}
frame 6 {
_x = _x - 12;
}
frame 7 {
_x = _x - 12;
}
frame 8 {
_x = _x - 12;
}
frame 9 {
_x = _x - 12;
}
frame 10 {
_x = _x - 12;
}
frame 11 {
_x = _x - 12;
}
frame 12 {
_x = _x - 12;
}
frame 13 {
_x = _x - 12;
}
frame 14 {
_x = _x - 12;
}
frame 15 {
_x = _x - 12;
}
frame 16 {
_x = _x - 12;
}
frame 17 {
_x = _x - 12;
}
frame 18 {
_x = _x - 12;
}
frame 19 {
_x = _x - 12;
}
frame 20 {
_x = _x - 12;
}
frame 21 {
_x = _x - 12;
}
frame 22 {
_x = _x - 12;
}
frame 23 {
_x = _x - 12;
}
frame 24 {
_x = _x - 12;
}
frame 25 {
_x = _x - 12;
}
frame 26 {
_x = _x - 12;
}
frame 27 {
_x = _x - 12;
}
frame 28 {
_x = _x - 12;
}
frame 29 {
_x = _x - 12;
}
frame 30 {
_x = _x - 12;
}
frame 31 {
_x = _x - 12;
}
frame 32 {
_x = _x - 12;
}
frame 33 {
_x = _x - 12;
}
frame 34 {
_x = _x - 12;
}
frame 35 {
_x = _x - 12;
}
frame 36 {
_x = _x - 12;
}
frame 37 {
_x = _x - 12;
}
frame 38 {
_x = _x - 12;
}
frame 39 {
_x = _x - 12;
}
frame 40 {
_x = _x - 12;
}
frame 41 {
_x = _x - 12;
}
frame 42 {
_x = _x - 12;
}
frame 43 {
_x = _x - 12;
}
frame 44 {
_x = _x - 12;
}
frame 45 {
_x = _x - 12;
}
frame 46 {
_x = _x - 12;
}
frame 47 {
_x = _x - 12;
}
frame 48 {
_x = _x - 12;
}
frame 49 {
_x = _x - 12;
}
frame 50 {
_x = 560;
numbero = Math.ceil(Math.random() * 4);
if (numbero == 1) {
this._y = 160;
}
if (numbero == 2) {
this._y = 210;
}
if (numbero == 3) {
this._y = 260;
}
if (numbero == 4) {
this._y = 300;
}
}
}
movieClip 329 {
frame 1 {
_x = _x - 12;
}
frame 2 {
_x = _x - 12;
}
frame 3 {
_x = _x - 12;
}
frame 4 {
_x = _x - 12;
}
frame 5 {
_x = _x - 12;
}
frame 6 {
_x = _x - 12;
}
frame 7 {
_x = _x - 12;
}
frame 8 {
_x = _x - 12;
}
frame 9 {
_x = _x - 12;
}
frame 10 {
_x = _x - 12;
}
frame 11 {
_x = _x - 12;
}
frame 12 {
_x = _x - 12;
}
frame 13 {
_x = _x - 12;
}
frame 14 {
_x = _x - 12;
}
frame 15 {
_x = _x - 12;
}
frame 16 {
_x = _x - 12;
}
frame 17 {
_x = _x - 12;
}
frame 18 {
_x = _x - 12;
}
frame 19 {
_x = _x - 12;
}
frame 20 {
_x = _x - 12;
}
frame 21 {
_x = _x - 12;
}
frame 22 {
_x = _x - 12;
}
frame 23 {
_x = _x - 12;
}
frame 24 {
_x = _x - 12;
}
frame 25 {
_x = _x - 12;
}
frame 26 {
_x = _x - 12;
}
frame 27 {
_x = _x - 12;
}
frame 28 {
_x = _x - 12;
}
frame 29 {
_x = _x - 12;
}
frame 30 {
_x = _x - 12;
}
frame 31 {
_x = _x - 12;
}
frame 32 {
_x = _x - 12;
}
frame 33 {
_x = _x - 12;
}
frame 34 {
_x = _x - 12;
}
frame 35 {
_x = _x - 12;
}
frame 36 {
_x = _x - 12;
}
frame 37 {
_x = _x - 12;
}
frame 38 {
_x = _x - 12;
}
frame 39 {
_x = _x - 12;
}
frame 40 {
_x = _x - 12;
}
frame 41 {
_x = _x - 12;
}
frame 42 {
_x = _x - 12;
}
frame 43 {
_x = _x - 12;
}
frame 44 {
_x = _x - 12;
}
frame 45 {
_x = _x - 12;
}
frame 46 {
_x = _x - 12;
}
frame 47 {
_x = _x - 12;
}
frame 48 {
_x = _x - 12;
}
frame 49 {
_x = _x - 12;
}
frame 50 {
_x = 560;
}
}
instance topr of movieClip 329 {
onClipEvent (enterFrame) {
this._y = this._parent.bottomr._y - 80;
}
}
movieClip 333 {
frame 100 {
gotoAndPlay(1);
}
}
movieClip 336 {
frame 1 {
_root.jumping = 0;
stop();
}
frame 30 {
gotoAndStop(1);
}
frame 60 {
gotoAndStop(1);
}
frame 90 {
gotoAndStop(1);
}
}
instance surfer of movieClip 336 {
onClipEvent (keyPress '<Down>') {
if (_root.jumping == 0) {
this.gotoAndPlay(2);
_root.jumping = 1;
}
}
onClipEvent (keyPress '<Space>') {
if (_root.jumping == 0) {
this.gotoAndPlay(31);
_root.jumping = 1;
}
}
onClipEvent (keyPress '<Up>') {
if (_root.jumping == 0) {
this.gotoAndPlay(61);
_root.jumping = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.bottomr)) {
_root.gotoAndStop('gameoversurf1');
}
if (this.hitTest(this._parent.topr)) {
_root.gotoAndStop('gameoversurf1');
}
}
}
frame 29 {
if (_root.timer3 < 5) {
_root.rank = 'F';
}
if (_root.timer3 >= 5) {
_root.rank = 'E';
}
if (_root.timer3 >= 10) {
_root.rank = 'D';
}
if (_root.timer3 >= 20) {
_root.rank = 'C';
}
if (_root.timer3 >= 30) {
_root.rank = 'B';
}
if (_root.timer3 >= 50) {
_root.rank = 'A';
}
}
button 344 {
on (release) {
_root.timer3 = 0;
gotoAndStop('sbegining');
}
}
button 346 {
on (release) {
_root.timer3 = 0;
gotoAndStop(1);
}
}
frame 30 {
stop();
}
frame 30 {
handyp = 0;
handyt = 0;
}
frame 30 {
stopAllSounds();
}
movieClip 368 {
frame 48 {
stop();
}
}
movieClip 370 {
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.phandi = Number(_root.phandi) + 1;
}
onClipEvent (enterFrame) {
if (_root.phandi < 9) {
_visible = true;
} else {
_visible = false;
}
if (_root.phandi > 9) {
_root.phandi = 9;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.phandi = Number(_root.phandi) - 1;
}
onClipEvent (enterFrame) {
if (_root.phandi > 2) {
_visible = true;
} else {
_visible = false;
}
if (_root.phandi < 2) {
_root.phandi = 2;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.thandi = Number(_root.thandi) + 1;
}
onClipEvent (enterFrame) {
if (_root.thandi < 9) {
_visible = true;
} else {
_visible = false;
}
if (_root.thandi > 9) {
_root.thandi = 9;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.thandi = Number(_root.thandi) - 1;
}
onClipEvent (enterFrame) {
if (_root.thandi > 2) {
_visible = true;
} else {
_visible = false;
}
if (_root.thandi < 2) {
_root.thandi = 2;
}
}
}
button 372 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(30);
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(30);
}
}
movieClip 374 {
}
instance of movieClip 374 {
onClipEvent (enterFrame) {
if (_root.thandi < 1) {
_root.thandi = '2';
}
if (_root.thandi > 5) {
_root.thandi = '2';
}
if (_root.phandi < 1) {
_root.thandi = '2';
}
if (_root.phandi > 5) {
_root.thandi = '2';
}
}
}
button 377 {
on (release) {
gotoAndPlay(1);
}
}
frame 31 {
_quality = 'BEST';
stop();
}
frame 31 {
fscommand('fullscreen', true);
fscommand('allowscale', true);
}
frame 31 {
handyp = _root.phandi;
handyt = _root.thandi;
this.reset.useHandCursor = false;
}
movieClip 387 {
}
movieClip 389 {
frame 1 {
xspeed = 0;
yspeed = 0;
}
frame 2 {
if (!this.hitTest(this._parent.divingboard)) {
yspeed += 1;
} else {
yspeed -= 30;
}
this._y += yspeed;
if (this.hitTest(this._parent.divingboard)) {
_root.boing.gotoAndPlay(2);
if (Key.isDown(38)) {
}
}
if (Key.isDown(65)) {
xspeed -= 1;
}
if (Key.isDown(68)) {
xspeed += 1;
}
if (xspeed > 0) {
xspeed -= 0.5;
}
if (xspeed < 0) {
xspeed += 0.5;
}
this._x += xspeed;
if (this.hitTest(this._parent.divingboard)) {
this._parent.divingboard.play();
}
if (this.hitTest(this._parent.tomato)) {
if (xspeed > 0) {
xspeed -= xspeed * 1.5;
}
if (xspeed < 0) {
xspeed += xspeed * _root.handyp;
}
}
}
frame 3 {
gotoAndPlay(2);
}
}
instance ball of movieClip 389 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.falloff = Number(_root.falloff) + 1;
this._x = 1000000000;
}
}
}
movieClip 391 {
}
movieClip 393 {
}
instance of movieClip 393 {
onClipEvent (enterFrame) {
scoretotal = _root.score + _root.scoret;
if (scoretotal > 19) {
_root.play();
}
}
}
button 397 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(30);
}
}
movieClip 399 {
frame 1 {
txspeed = 0;
tyspeed = 0;
}
frame 2 {
if (!this.hitTest(this._parent.divingboard)) {
tyspeed += 1;
} else {
tyspeed -= 30;
}
this._y += tyspeed;
if (this.hitTest(this._parent.divingboard)) {
_root.boing.gotoAndPlay(2);
}
if (Key.isDown(37)) {
txspeed -= 1;
}
if (Key.isDown(39)) {
txspeed += 1;
}
if (txspeed > 0) {
txspeed -= 0.5;
}
if (txspeed < 0) {
txspeed += 0.5;
}
this._x += txspeed;
if (this.hitTest(this._parent.divingboard)) {
this._parent.divingboard.play();
}
if (this.hitTest(this._parent.ball)) {
if (txspeed > 0) {
txspeed += txspeed * 2;
}
if (txspeed < 0) {
txspeed -= txspeed * _root.handyt;
}
}
}
frame 3 {
gotoAndPlay(2);
}
}
instance tomato of movieClip 399 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.falloff = Number(_root.falloff) + 1;
this._x = 1000000000;
}
}
}
movieClip 403 {
}
movieClip 409 {
}
instance floors of movieClip 409 {
onClipEvent (enterFrame) {
if (_root.falloff == '2') {
_root.play();
}
}
}
instance of movieClip 200 {
onClipEvent (enterFrame) {
}
}
frame 32 {
stop();
if (score > scoret) {
_root.verdict = 'Potato wins';
}
if (score < scoret) {
_root.verdict = 'Tomato wins';
}
if (score == scoret) {
_root.verdict = 'Draw!';
}
}
button 416 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(30);
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(30);
}
}
frame 33 {
}
frame 34 {
stop();
}
frame 34 {
handyp = 0;
handyt = 0;
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.phandi = Number(_root.phandi) + 1;
}
onClipEvent (enterFrame) {
if (_root.phandi < 9) {
_visible = true;
} else {
_visible = false;
}
if (_root.phandi > 9) {
_root.phandi = 9;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.phandi = Number(_root.phandi) - 1;
}
onClipEvent (enterFrame) {
if (_root.phandi > 2) {
_visible = true;
} else {
_visible = false;
}
if (_root.phandi < 2) {
_root.phandi = 2;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.thandi = Number(_root.thandi) + 1;
}
onClipEvent (enterFrame) {
if (_root.thandi < 9) {
_visible = true;
} else {
_visible = false;
}
if (_root.thandi > 9) {
_root.thandi = 9;
}
}
}
instance of movieClip 370 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.thandi = Number(_root.thandi) - 1;
}
onClipEvent (enterFrame) {
if (_root.thandi > 2) {
_visible = true;
} else {
_visible = false;
}
if (_root.thandi < 2) {
_root.thandi = 2;
}
}
}
button 419 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('cbmc');
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('cbmc');
}
}
instance of movieClip 374 {
}
frame 35 {
_quality = 'BEST';
stop();
}
frame 35 {
fscommand('fullscreen', true);
fscommand('allowscale', true);
}
frame 35 {
handyp = _root.phandi;
handyt = _root.thandi;
this.reset.useHandCursor = false;
}
instance ball of movieClip 389 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin21)) {
this._parent.coin21._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin22)) {
this._parent.coin22._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin23)) {
this._parent.coin23._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin24)) {
this._parent.coin24._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin25)) {
this._parent.coin25._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin26)) {
this._parent.coin26._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin27)) {
this._parent.coin27._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin28)) {
this._parent.coin28._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin29)) {
this._parent.coin29._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin30)) {
this._parent.coin30._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin31)) {
this._parent.coin31._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin32)) {
this._parent.coin32._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin33)) {
this._parent.coin33._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin34)) {
this._parent.coin34._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin35)) {
this._parent.coin35._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin36)) {
this._parent.coin36._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin37)) {
this._parent.coin37._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin38)) {
this._parent.coin38._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin39)) {
this._parent.coin39._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin40)) {
this._parent.coin40._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.falloff = Number(_root.falloff) + 1;
this._x = 1000000000;
}
}
}
instance of movieClip 393 {
onClipEvent (enterFrame) {
scoretotal = _root.score + _root.scoret;
if (scoretotal > 34) {
_root.play();
}
}
}
instance tomato of movieClip 399 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin21)) {
this._parent.coin21._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin22)) {
this._parent.coin22._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin23)) {
this._parent.coin23._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin24)) {
this._parent.coin24._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin25)) {
this._parent.coin25._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin26)) {
this._parent.coin26._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin27)) {
this._parent.coin27._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin28)) {
this._parent.coin28._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin29)) {
this._parent.coin29._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin30)) {
this._parent.coin30._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin31)) {
this._parent.coin31._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin32)) {
this._parent.coin32._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin33)) {
this._parent.coin33._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin34)) {
this._parent.coin34._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin35)) {
this._parent.coin35._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin36)) {
this._parent.coin36._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin37)) {
this._parent.coin37._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin38)) {
this._parent.coin38._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin39)) {
this._parent.coin39._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin40)) {
this._parent.coin40._x = 10000000;
_root.scoret = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.falloff = Number(_root.falloff) + 1;
this._x = 1000000000;
}
}
}
instance floors of movieClip 409 {
onClipEvent (enterFrame) {
if (_root.falloff == '2') {
_root.play();
}
}
}
instance of movieClip 200 {
onClipEvent (enterFrame) {
}
}
frame 36 {
stop();
if (score > scoret) {
_root.verdict = 'Potato wins';
}
if (score < scoret) {
_root.verdict = 'Tomato wins';
}
if (score == scoret) {
_root.verdict = 'Draw!';
}
}
frame 36 {
stopAllSounds();
}
button 428 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(34);
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay(34);
}
}
frame 37 {
}
frame 38 {
stop();
}
frame 38 {
handyp = 0;
handyt = 0;
}
frame 38 {
stopAllSounds();
}
button 433 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('startframe');
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('startframe');
}
}
instance of movieClip 374 {
onClipEvent (enterFrame) {
if (_root.thandi < 1) {
_root.thandi = '2';
}
if (_root.thandi > 5) {
_root.thandi = '2';
}
if (_root.phandi < 1) {
_root.thandi = '2';
}
if (_root.phandi > 5) {
_root.thandi = '2';
}
}
}
frame 39 {
_quality = 'BEST';
stop();
}
frame 39 {
fscommand('fullscreen', true);
fscommand('allowscale', true);
}
frame 39 {
handyp = _root.phandi;
handyt = _root.thandi;
this.reset.useHandCursor = false;
}
instance ball of movieClip 389 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x = 10000000;
_root.score = Number(_root.score) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.gotoAndStop('twin');
this._x = 1000000000;
}
}
}
instance of movieClip 393 {
onClipEvent (enterFrame) {
scoretotal = _root.score + _root.scoret;
if (scoretotal > 19) {
_root.play();
}
}
}
instance tomato of movieClip 399 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.coin1)) {
this._parent.coin1._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin2)) {
this._parent.coin2._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin3)) {
this._parent.coin3._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin4)) {
this._parent.coin4._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin5)) {
this._parent.coin5._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin6)) {
this._parent.coin6._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin7)) {
this._parent.coin7._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin8)) {
this._parent.coin8._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin9)) {
this._parent.coin9._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin10)) {
this._parent.coin10._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin11)) {
this._parent.coin11._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin12)) {
this._parent.coin12._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin13)) {
this._parent.coin13._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin14)) {
this._parent.coin14._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin15)) {
this._parent.coin15._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin16)) {
this._parent.coin16._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin17)) {
this._parent.coin17._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin18)) {
this._parent.coin18._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin19)) {
this._parent.coin19._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.coin20)) {
this._parent.coin20._x += 10000000;
_root.scoret = Number(_root.scoret) + 1;
}
if (this.hitTest(this._parent.floors)) {
_root.gotoAndStop('pwin');
this._x = 1000000000;
}
}
}
instance of movieClip 200 {
onClipEvent (enterFrame) {
}
}
frame 40 {
stop();
if (score > scoret) {
_root.verdict = 'Potato wins';
}
if (score < scoret) {
_root.verdict = 'Tomato wins';
}
if (score == scoret) {
_root.verdict = 'Draw!';
}
}
button 439 {
on (release) {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('game1start5');
}
on (keyPress '<Space>') {
_root.score = '0';
_root.scoret = '0';
_root.falloff = '0';
gotoAndPlay('game1start5');
}
}
frame 41 {
stop();
if (score > scoret) {
_root.verdict = 'Potato wins';
}
if (score < scoret) {
_root.verdict = 'Tomato wins';
}
if (score == scoret) {
_root.verdict = 'Draw!';
}
}
frame 42 {
stop();
}
button 442 {
on (release) {
gotoAndPlay(1);
}
}
button 447 {
on (release) {
this.SO.play();
}
}
button 458 {
on (release) {
gotoAndPlay(46);
}
}
button 461 {
on (release) {
this.raceselect.play();
}
}
movieClip 465 {
}
instance of movieClip 465 {
onClipEvent (release) {
}
onClipEvent (enterFrame) {
if (_root.pass1 == 'PIE') {
this._x += 100;
}
}
}
movieClip 468 {
}
button 474 {
on (release) {
_root.gotoAndPlay('readyset');
}
}
movieClip 475 {
frame 10 {
stop();
}
}
movieClip 476 {
frame 1 {
stop();
}
frame 21 {
stop();
}
}
instance of movieClip 465 {
onClipEvent (release) {
}
onClipEvent (enterFrame) {
if (_root.pass2 == 'SUN') {
this._x += 100;
maingame = SharedObject.getLocal('mydata2');
maingame.data.unlocked1 = 1;
maingame.flush();
}
}
}
button 482 {
on (release) {
gotoAndStop(1);
gotoAndStop(1);
_root.gotoAndPlay('readyset50');
}
}
button 485 {
on (release) {
gotoAndStop(1);
gotoAndStop(1);
_root.gotoAndPlay('readyset502');
}
}
button 488 {
on (release) {
gotoAndStop(1);
gotoAndStop(1);
_root.gotoAndPlay('readyset503');
}
}
movieClip 489 {
}
movieClip 490 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 11 {
gotoAndPlay(10);
}
}
frame 43 {
stop();
car1.code = 'player';
totalLaps = 5;
acceleration = 0.5;
speedDecay = 0.96;
rotationStep = 6;
maxSpeed = 5;
backSpeed = 5;
currentCheckpoint1 = 1;
currentLap1 = 0;
checkpoints = 2;
currentLapTXT = '1/5';
}
frame 43 {
function step(who) {
if (_root['car' + who].code == 'player') {
if (this['speed' + who] > 0.3) {
this['speed' + who] *= _root.speedDecay;
} else {
this['speed' + who] = 0;
}
if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) {
this['speed' + who] += _root.acceleration;
}
if (Key.isDown(40)) {
this['speed' + who] -= _root.backSpeed;
}
if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
this['rotation' + who] = _root['car' + who]._rotation;
this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who];
this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1;
_root['car' + who]._x += this['speedx' + who];
_root['car' + who]._y += this['speedy' + who];
_root['car' + who].pointLeft = {'x': -20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointLeft);
_root['car' + who].pointRight = {'x': 20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointRight);
_root['car' + who].pointFront = {'x': 0, 'y': -25};
_root['car' + who].localToGlobal(_root['car' + who].pointFront);
_root['car' + who].pointBack = {'x': 0, 'y': 25};
_root['car' + who].localToGlobal(_root['car' + who].pointBack);
this['lpx' + who] = _root['car' + who].pointLeft.x;
this['lpy' + who] = _root['car' + who].pointLeft.y;
this['rpx' + who] = _root['car' + who].pointRight.x;
this['rpy' + who] = _root['car' + who].pointRight.y;
this['fpx' + who] = _root['car' + who].pointFront.x;
this['fpy' + who] = _root['car' + who].pointFront.y;
this['bpx' + who] = _root['car' + who].pointBack.x;
this['bpy' + who] = _root['car' + who].pointBack.y;
if (_root.terrain.hitTest(this['lpx' + who], this['lpy' + who], true)) {
_root['car' + who]._rotation += 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain.hitTest(this['rpx' + who], this['rpy' + who], true)) {
_root['car' + who]._rotation -= 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain.hitTest(this['fpx' + who], this['fpy' + who], true)) {
this['speed' + who] = -1;
}
if (_root.terrain.hitTest(this['bpx' + who], this['bpy' + who], true)) {
this['speed' + who] = 1;
}
_root['shadow' + who]._x = _root['car' + who]._x - 4;
_root['shadow' + who]._y = _root['car' + who]._y + 2;
_root['shadow' + who]._rotation = _root['car' + who]._rotation;
if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) {
if (_root['currentCheckpoint' + who] == 1) {
if (_root['currentLap' + who] != 0) {
_root.setBestLap();
}
if (_root['currentLap' + who] == _root.totalLaps) {
_root.gotoAndStop('finish');
} else {
++_root['currentLap' + who];
}
_root.currentLapTXT = _root['currentLap' + who] + '/10';
}
++_root['currentCheckpoint' + who];
if (_root['currentCheckpoint' + who] > _root.checkpoints) {
_root['currentCheckpoint' + who] = 1;
}
}
}
if (_root['car' + who].code == 'computer') {
}
}
function setTimes() {
timeElapsed = getTimer() - _root.initialTime;
milliseconds = timeElapsed;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
function setBestLap() {
bestTime = getTimer() - _root.lapTime;
milliseconds = bestTime;
if (oldMilliseconds > milliseconds || oldMilliseconds == null) {
oldMilliseconds = milliseconds;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
_root.lapTime = getTimer();
}
}
movieClip 496 {
}
instance terrain of movieClip 496 {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 498 {
}
movieClip 500 {
}
movieClip 502 {
}
movieClip 505 {
}
movieClip 507 {
}
movieClip 509 {
}
instance of movieClip 509 {
onClipEvent (enterFrame) {
blurx = xspeed;
blury = yspeed;
var ship_filter = new flash.filters.BlurFilter(blurx, blury, high);
this._parent.car1.filters = new Array(ship_filter);
}
}
movieClip 515 {
frame 50 {
_root.soundmc.engineStart.start(0, 1);
_root.soundmc.engineLoop.start(0, 9999);
_root.soundmc.engineLoop.setVolume(40);
_root.play();
}
frame 72 {
stop();
}
}
movieClip 522 {
}
instance of movieClip 522 {
onClipEvent (enterFrame) {
this._x = this._parent.cam._x - 315;
this._y = this._parent.cam._y - 245;
}
}
movieClip 527 {
}
frame 44 {
stop();
initialTime = getTimer();
lapTime = initialTime;
}
frame 44 {
onEnterFrame = function () {
if (secondsTXT + minutesTXT * 60 < 60) {
_root.left = 59 - secondsTXT + ' seconds';
}
};
}
movieClip 529 {
}
instance stepper of movieClip 529 {
onClipEvent (load) {
speed1 = 0;
}
onClipEvent (enterFrame) {
_root.setTimes();
_root.step(1);
}
}
frame 45 {
stop();
_root.timetoto = _root.totalTimeTXT;
}
button 533 {
on (release) {
_root.gotoAndPlay('readySet');
}
}
button 537 {
on (release) {
_root.gotoAndPlay('readyset');
}
}
button 539 {
on (release) {
_root.gotoAndStop('menu');
}
}
movieClip 541 {
frame 1 {
if (_root.secondsTXT + _root.minutesTXT * 60 > 59) {
this.quali.text = 'Sorry! You did not qualify';
}
if (_root.secondsTXT + _root.minutesTXT * 60 < 59) {
this.quali.text = 'The password for 30mph is: PIE';
}
}
}
movieClip 542 {
frame 11 {
stop();
}
}
frame 46 {
stop();
car1.code = 'player';
totalLaps = 5;
acceleration = 0.5;
speedDecay = 0.96;
rotationStep = 6;
maxSpeed = 5;
backSpeed = 5;
currentCheckpoint1 = 1;
currentLap1 = 0;
checkpoints = 2;
currentLapTXT = '1/5';
}
frame 46 {
function step(who) {
if (_root['car' + who].code == 'player') {
if (this['speed' + who] > 0.3) {
this['speed' + who] *= _root.speedDecay;
} else {
this['speed' + who] = 0;
}
if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) {
this['speed' + who] += _root.acceleration;
}
if (Key.isDown(40)) {
this['speed' + who] -= _root.backSpeed;
}
if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
this['rotation' + who] = _root['car' + who]._rotation;
this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who];
this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1;
_root['car' + who]._x += this['speedx' + who];
_root['car' + who]._y += this['speedy' + who];
_root['car' + who].pointLeft = {'x': -20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointLeft);
_root['car' + who].pointRight = {'x': 20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointRight);
_root['car' + who].pointFront = {'x': 0, 'y': -25};
_root['car' + who].localToGlobal(_root['car' + who].pointFront);
_root['car' + who].pointBack = {'x': 0, 'y': 25};
_root['car' + who].localToGlobal(_root['car' + who].pointBack);
this['lpx' + who] = _root['car' + who].pointLeft.x;
this['lpy' + who] = _root['car' + who].pointLeft.y;
this['rpx' + who] = _root['car' + who].pointRight.x;
this['rpy' + who] = _root['car' + who].pointRight.y;
this['fpx' + who] = _root['car' + who].pointFront.x;
this['fpy' + who] = _root['car' + who].pointFront.y;
this['bpx' + who] = _root['car' + who].pointBack.x;
this['bpy' + who] = _root['car' + who].pointBack.y;
if (_root.terrain2.hitTest(this['lpx' + who], this['lpy' + who], true)) {
_root['car' + who]._rotation += 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain2.hitTest(this['rpx' + who], this['rpy' + who], true)) {
_root['car' + who]._rotation -= 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain2.hitTest(this['fpx' + who], this['fpy' + who], true)) {
this['speed' + who] = -1;
}
if (_root.terrain2.hitTest(this['bpx' + who], this['bpy' + who], true)) {
this['speed' + who] = 1;
}
_root['shadow' + who]._x = _root['car' + who]._x - 4;
_root['shadow' + who]._y = _root['car' + who]._y + 2;
_root['shadow' + who]._rotation = _root['car' + who]._rotation;
if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) {
if (_root['currentCheckpoint' + who] == 1) {
if (_root['currentLap' + who] != 0) {
_root.setBestLap();
}
if (_root['currentLap' + who] == _root.totalLaps) {
_root.gotoAndStop('finishdu');
} else {
++_root['currentLap' + who];
}
_root.currentLapTXT = _root['currentLap' + who] + '/10';
}
++_root['currentCheckpoint' + who];
if (_root['currentCheckpoint' + who] > _root.checkpoints) {
_root['currentCheckpoint' + who] = 1;
}
}
}
if (_root['car' + who].code == 'computer') {
}
}
function setTimes() {
timeElapsed = getTimer() - _root.initialTime;
milliseconds = timeElapsed;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
function setBestLap() {
bestTime = getTimer() - _root.lapTime;
milliseconds = bestTime;
if (oldMilliseconds > milliseconds || oldMilliseconds == null) {
oldMilliseconds = milliseconds;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
_root.lapTime = getTimer();
}
}
movieClip 544 {
}
movieClip 546 {
}
movieClip 548 {
frame 525 {
gotoAndPlay(95);
}
}
movieClip 550 {
frame 434 {
gotoAndPlay(53);
}
frame 447 {
gotoAndPlay(65);
}
}
movieClip 552 {
frame 531 {
gotoAndPlay(54);
}
frame 550 {
gotoAndPlay(63);
}
}
frame 47 {
stop();
initialTime = getTimer();
lapTime = initialTime;
}
instance stepper of movieClip 529 {
onClipEvent (load) {
speed1 = 0;
}
onClipEvent (enterFrame) {
_root.setTimes();
_root.step(1);
}
}
frame 48 {
stop();
_root.timetoto = _root.totalTimeTXT;
}
movieClip 559 {
frame 1 {
if (_root.secondsTXT + _root.minutesTXT * 60 < 67) {
this.quali.text = '1st';
this.nxtrce._x = 0;
} else {
if (_root.secondsTXT + _root.minutesTXT * 60 < 75) {
this.quali.text = '2nd';
} else {
if (_root.secondsTXT + _root.minutesTXT * 60 < 84) {
this.quali.text = '3rd';
} else {
if (_root.secondsTXT + _root.minutesTXT * 60 > 84) {
this.quali.text = '4th';
}
}
}
}
}
}
movieClip 560 {
frame 30 {
stop();
}
}
movieClip 565 {
frame 1 {
stop();
}
frame 100 {
stop();
}
frame 101 {
gotoAndStop(100);
}
}
instance password of movieClip 565 {
onClipEvent (enterFrame) {
if (this._parent.carssymbol29.finish2.quali.text == '1st') {
this.play();
}
}
}
frame 49 {
stop();
car1.code = 'player';
totalLaps = 5;
acceleration = 0.8;
speedDecay = 0.96;
rotationStep = 10;
maxSpeed = 10;
backSpeed = 5;
currentCheckpoint1 = 1;
currentLap1 = 0;
checkpoints = 2;
currentLapTXT = '1/5';
}
frame 49 {
function step(who) {
if (_root['car' + who].code == 'player') {
if (this['speed' + who] > 0.3) {
this['speed' + who] *= _root.speedDecay;
} else {
this['speed' + who] = 0;
}
if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) {
this['speed' + who] += _root.acceleration;
}
if (Key.isDown(40)) {
this['speed' + who] -= _root.backSpeed;
}
if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
this['rotation' + who] = _root['car' + who]._rotation;
this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who];
this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1;
_root['car' + who]._x += this['speedx' + who];
_root['car' + who]._y += this['speedy' + who];
_root['car' + who].pointLeft = {'x': -20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointLeft);
_root['car' + who].pointRight = {'x': 20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointRight);
_root['car' + who].pointFront = {'x': 0, 'y': -25};
_root['car' + who].localToGlobal(_root['car' + who].pointFront);
_root['car' + who].pointBack = {'x': 0, 'y': 25};
_root['car' + who].localToGlobal(_root['car' + who].pointBack);
this['lpx' + who] = _root['car' + who].pointLeft.x;
this['lpy' + who] = _root['car' + who].pointLeft.y;
this['rpx' + who] = _root['car' + who].pointRight.x;
this['rpy' + who] = _root['car' + who].pointRight.y;
this['fpx' + who] = _root['car' + who].pointFront.x;
this['fpy' + who] = _root['car' + who].pointFront.y;
this['bpx' + who] = _root['car' + who].pointBack.x;
this['bpy' + who] = _root['car' + who].pointBack.y;
if (_root.terrain.hitTest(this['lpx' + who], this['lpy' + who], true)) {
_root['car' + who]._rotation += 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain.hitTest(this['rpx' + who], this['rpy' + who], true)) {
_root['car' + who]._rotation -= 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain.hitTest(this['fpx' + who], this['fpy' + who], true)) {
this['speed' + who] = -1;
}
if (_root.terrain.hitTest(this['bpx' + who], this['bpy' + who], true)) {
this['speed' + who] = 1;
}
_root['shadow' + who]._x = _root['car' + who]._x - 4;
_root['shadow' + who]._y = _root['car' + who]._y + 2;
_root['shadow' + who]._rotation = _root['car' + who]._rotation;
if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) {
if (_root['currentCheckpoint' + who] == 1) {
if (_root['currentLap' + who] != 0) {
_root.setBestLap();
}
if (_root['currentLap' + who] == _root.totalLaps) {
_root.gotoAndStop('finish50');
} else {
++_root['currentLap' + who];
}
_root.currentLapTXT = _root['currentLap' + who] + '/10';
}
++_root['currentCheckpoint' + who];
if (_root['currentCheckpoint' + who] > _root.checkpoints) {
_root['currentCheckpoint' + who] = 1;
}
}
}
if (_root['car' + who].code == 'computer') {
}
}
function setTimes() {
timeElapsed = getTimer() - _root.initialTime;
milliseconds = timeElapsed;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
function setBestLap() {
bestTime = getTimer() - _root.lapTime;
milliseconds = bestTime;
if (oldMilliseconds > milliseconds || oldMilliseconds == null) {
oldMilliseconds = milliseconds;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
_root.lapTime = getTimer();
}
}
instance terrain of movieClip 496 {
onClipEvent (load) {
this._visible = false;
}
}
instance of movieClip 522 {
onClipEvent (enterFrame) {
this._x = this._parent.cam._x - 315;
this._y = this._parent.cam._y - 245;
}
}
frame 50 {
stop();
initialTime = getTimer();
lapTime = initialTime;
}
instance stepper of movieClip 529 {
onClipEvent (load) {
speed1 = 0;
}
onClipEvent (enterFrame) {
_root.setTimes();
_root.step(1);
}
}
frame 51 {
stop();
_root.timetoto = _root.totalTimeTXT;
}
movieClip 572 {
frame 1 {
if (_root.secondsTXT > 40) {
this.quali.text = 'Sorry! You did not qualify (time limit = 40 seconds)';
}
if (_root.secondsTXT < 40) {
this.quali.text = 'You win!';
}
}
}
movieClip 573 {
frame 30 {
stop();
}
}
frame 53 {
stop();
car1.code = 'player';
totalLaps = 5;
acceleration = 0.8;
speedDecay = 0.96;
rotationStep = 10;
maxSpeed = 10;
backSpeed = 5;
currentCheckpoint1 = 1;
currentLap1 = 0;
checkpoints = 2;
currentLapTXT = '1/5';
}
frame 53 {
function step(who) {
if (_root['car' + who].code == 'player') {
if (this['speed' + who] > 0.3) {
this['speed' + who] *= _root.speedDecay;
} else {
this['speed' + who] = 0;
}
if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) {
this['speed' + who] += _root.acceleration;
}
if (Key.isDown(40)) {
this['speed' + who] -= _root.backSpeed;
}
if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
this['rotation' + who] = _root['car' + who]._rotation;
this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who];
this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1;
_root['car' + who]._x += this['speedx' + who];
_root['car' + who]._y += this['speedy' + who];
_root['car' + who].pointLeft = {'x': -20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointLeft);
_root['car' + who].pointRight = {'x': 20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointRight);
_root['car' + who].pointFront = {'x': 0, 'y': -25};
_root['car' + who].localToGlobal(_root['car' + who].pointFront);
_root['car' + who].pointBack = {'x': 0, 'y': 25};
_root['car' + who].localToGlobal(_root['car' + who].pointBack);
this['lpx' + who] = _root['car' + who].pointLeft.x;
this['lpy' + who] = _root['car' + who].pointLeft.y;
this['rpx' + who] = _root['car' + who].pointRight.x;
this['rpy' + who] = _root['car' + who].pointRight.y;
this['fpx' + who] = _root['car' + who].pointFront.x;
this['fpy' + who] = _root['car' + who].pointFront.y;
this['bpx' + who] = _root['car' + who].pointBack.x;
this['bpy' + who] = _root['car' + who].pointBack.y;
if (_root.terrain2.hitTest(this['lpx' + who], this['lpy' + who], true)) {
_root['car' + who]._rotation += 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain2.hitTest(this['rpx' + who], this['rpy' + who], true)) {
_root['car' + who]._rotation -= 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain2.hitTest(this['fpx' + who], this['fpy' + who], true)) {
this['speed' + who] = -1;
}
if (_root.terrain2.hitTest(this['bpx' + who], this['bpy' + who], true)) {
this['speed' + who] = 1;
}
_root['shadow' + who]._x = _root['car' + who]._x - 4;
_root['shadow' + who]._y = _root['car' + who]._y + 2;
_root['shadow' + who]._rotation = _root['car' + who]._rotation;
if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) {
if (_root['currentCheckpoint' + who] == 1) {
if (_root['currentLap' + who] != 0) {
_root.setBestLap();
}
if (_root['currentLap' + who] == _root.totalLaps) {
_root.gotoAndStop('finish502');
} else {
++_root['currentLap' + who];
}
_root.currentLapTXT = _root['currentLap' + who] + '/10';
}
++_root['currentCheckpoint' + who];
if (_root['currentCheckpoint' + who] > _root.checkpoints) {
_root['currentCheckpoint' + who] = 1;
}
}
}
if (_root['car' + who].code == 'computer') {
}
}
function setTimes() {
timeElapsed = getTimer() - _root.initialTime;
milliseconds = timeElapsed;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
function setBestLap() {
bestTime = getTimer() - _root.lapTime;
milliseconds = bestTime;
if (oldMilliseconds > milliseconds || oldMilliseconds == null) {
oldMilliseconds = milliseconds;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
_root.lapTime = getTimer();
}
}
frame 54 {
stop();
initialTime = getTimer();
lapTime = initialTime;
}
instance stepper of movieClip 529 {
onClipEvent (load) {
speed1 = 0;
}
onClipEvent (enterFrame) {
_root.setTimes();
_root.step(1);
}
}
frame 55 {
stop();
_root.timetoto = _root.totalTimeTXT;
}
frame 58 {
stop();
car1.code = 'player';
totalLaps = 5;
acceleration = 0.8;
speedDecay = 0.96;
rotationStep = 10;
maxSpeed = 10;
backSpeed = 5;
currentCheckpoint1 = 1;
currentLap1 = 0;
checkpoints = 2;
currentLapTXT = '1/5';
}
frame 58 {
function step(who) {
if (_root['car' + who].code == 'player') {
if (this['speed' + who] > 0.3) {
this['speed' + who] *= _root.speedDecay;
} else {
this['speed' + who] = 0;
}
if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) {
this['speed' + who] += _root.acceleration;
}
if (Key.isDown(40)) {
this['speed' + who] -= _root.backSpeed;
}
if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) {
_root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed);
}
this['rotation' + who] = _root['car' + who]._rotation;
this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who];
this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1;
_root['car' + who]._x += this['speedx' + who];
_root['car' + who]._y += this['speedy' + who];
_root['car' + who].pointLeft = {'x': -20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointLeft);
_root['car' + who].pointRight = {'x': 20, 'y': 0};
_root['car' + who].localToGlobal(_root['car' + who].pointRight);
_root['car' + who].pointFront = {'x': 0, 'y': -25};
_root['car' + who].localToGlobal(_root['car' + who].pointFront);
_root['car' + who].pointBack = {'x': 0, 'y': 25};
_root['car' + who].localToGlobal(_root['car' + who].pointBack);
this['lpx' + who] = _root['car' + who].pointLeft.x;
this['lpy' + who] = _root['car' + who].pointLeft.y;
this['rpx' + who] = _root['car' + who].pointRight.x;
this['rpy' + who] = _root['car' + who].pointRight.y;
this['fpx' + who] = _root['car' + who].pointFront.x;
this['fpy' + who] = _root['car' + who].pointFront.y;
this['bpx' + who] = _root['car' + who].pointBack.x;
this['bpy' + who] = _root['car' + who].pointBack.y;
if (_root.terrain3.hitTest(this['lpx' + who], this['lpy' + who], true)) {
_root['car' + who]._rotation += 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain3.hitTest(this['rpx' + who], this['rpy' + who], true)) {
_root['car' + who]._rotation -= 5;
this['speed' + who] *= 0.85;
}
if (_root.terrain3.hitTest(this['fpx' + who], this['fpy' + who], true)) {
this['speed' + who] = -1;
}
if (_root.terrain3.hitTest(this['bpx' + who], this['bpy' + who], true)) {
this['speed' + who] = 1;
}
_root['shadow' + who]._x = _root['car' + who]._x - 4;
_root['shadow' + who]._y = _root['car' + who]._y + 2;
_root['shadow' + who]._rotation = _root['car' + who]._rotation;
if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) {
if (_root['currentCheckpoint' + who] == 1) {
if (_root['currentLap' + who] != 0) {
_root.setBestLap();
}
if (_root['currentLap' + who] == _root.totalLaps) {
_root.gotoAndStop('finish503');
} else {
++_root['currentLap' + who];
}
_root.currentLapTXT = _root['currentLap' + who] + '/10';
}
++_root['currentCheckpoint' + who];
if (_root['currentCheckpoint' + who] > _root.checkpoints) {
_root['currentCheckpoint' + who] = 1;
}
}
}
if (_root['car' + who].code == 'computer') {
}
}
function setTimes() {
timeElapsed = getTimer() - _root.initialTime;
milliseconds = timeElapsed;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
function setBestLap() {
bestTime = getTimer() - _root.lapTime;
milliseconds = bestTime;
if (oldMilliseconds > milliseconds || oldMilliseconds == null) {
oldMilliseconds = milliseconds;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesTXT = minutes;
secondsTXT = seconds - minutes * 60;
tensTXT = Math.round((milliseconds - seconds * 1000) / 10);
if (minutesTXT < 10) {
minutesTXT = '0' + minutesTXT;
}
if (secondsTXT < 10) {
secondsTXT = '0' + secondsTXT;
}
if (tensTXT < 10) {
tensTXT = '0' + tensTXT;
}
_root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT;
}
_root.lapTime = getTimer();
}
}
movieClip 577 {
}
movieClip 579 {
}
movieClip 580 {
frame 208 {
gotoAndPlay(65);
}
}
movieClip 581 {
frame 231 {
}
frame 244 {
gotoAndPlay(67);
}
}
movieClip 582 {
frame 219 {
gotoAndPlay(63);
}
}
frame 59 {
stop();
initialTime = getTimer();
lapTime = initialTime;
}
instance stepper of movieClip 529 {
onClipEvent (load) {
speed1 = 0;
}
onClipEvent (enterFrame) {
_root.setTimes();
_root.step(1);
}
}
frame 60 {
stop();
_root.timetoto = _root.totalTimeTXT;
}
button 589 {
on (release) {
_root.gotoAndPlay('readyset502');
}
}
movieClip 590 {
frame 1 {
if (_root.secondsTXT < 35) {
this.quali.text = '1st';
this.nxtrce._x = 0;
} else {
if (_root.secondsTXT < 40) {
this.quali.text = '2nd';
} else {
if (_root.secondsTXT < 45) {
this.quali.text = '3rd';
} else {
if (_root.secondsTXT > 45) {
this.quali.text = '4th';
}
}
}
}
}
}
movieClip 591 {
frame 30 {
stop();
}
}
frame 61 {
this.robot._alpha = 100;
this.goalo._x = 505;
}
frame 61 {
gotoAndStop('tins');
stop();
}
movieClip 594 {
}
movieClip 597 {
frame 1 {
this._parent.circle.stop();
}
frame 2 {
duplicateMovieClip(this._parent.circle, circlecopy, 1);
}
frame 100 {
gotoAndPlay(2);
}
}
instance camera of movieClip 597 {
onClipEvent (enterFrame) {
rx = _root.robot._x;
ry = _root.robot._y;
cx = _root.camera._x;
cy = _root.camera._y;
angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433;
_rotation = angle;
}
}
movieClip 599 {
frame 1 {
stop();
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 20;
this._parent.robot.yspeed = 0;
}
}
}
movieClip 601 {
}
movieClip 605 {
}
instance goalo of movieClip 605 {
onClipEvent (enterFrame) {
if (this._parent.robot.hitTest(this)) {
_root.gotoAndStop('youwin');
}
}
}
movieClip 607 {
}
instance enemy of movieClip 607 {
onClipEvent (enterFrame) {
if (this._parent.robot.hitTest(this._parent.area)) {
if (_root.robot._x > _x) {
this._x += 3;
this._rotation += 5;
}
if (_root.robot._x < _x) {
this._x -= 3;
this._rotation -= 5;
}
if (_root.robot._y > _y) {
this._y += 3;
}
if (_root.robot._y < _y) {
this._y -= 3;
}
}
if (this.hitTest(this._parent.robot)) {
this.play();
this._x = 505;
this._y = 355;
this._parent.robot._x = 130;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
this._parent.robot.xspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
movieClip 610 {
}
instance of movieClip 610 {
onClipEvent (enterFrame) {
blurx = this._parent.robot.uspeed - this._parent.robot.dspeed;
blury = this._parent.robot.lspeed - this._parent.robot.rspeed;
flash.filters.BlurFilter = new flash.filters.BlurFilter(blurx, blury, high);
shipfilter = flash.filters.BlurFilter;
this._parent.robot.filters = new Array(shipfilter);
}
}
movieClip 612 {
frame 1 {
xspeed = 0;
yspeed = 0;
}
frame 2 {
if (Key.isDown(37)) {
xspeed -= 1;
}
if (Key.isDown(39)) {
xspeed += 1;
}
if (Key.isDown(38)) {
yspeed -= 1;
}
if (Key.isDown(40)) {
yspeed += 1;
}
this._x += xspeed;
this._y += yspeed;
if (xspeed > 0) {
xspeed -= 0.5;
}
if (xspeed < 0) {
xspeed += 0.5;
}
if (yspeed > 0) {
yspeed -= 0.5;
}
if (yspeed < 0) {
yspeed += 0.5;
}
_rotation = _rotation + xspeed;
}
frame 3 {
gotoAndPlay(2);
}
}
instance goalo2 of movieClip 605 {
onClipEvent (enterFrame) {
if (this._parent.robot.hitTest(this)) {
_root.gotoAndStop('youwin');
}
}
}
frame 70 {
startDrag(this.restart, true);
}
frame 70 {
this.goalo._x = 1000;
}
frame 71 {
stop();
}
movieClip 616 {
}
instance of movieClip 616 {
onClipEvent (keyPress '<Space>') {
_root.gotoAndStop('level2');
}
}
frame 75 {
this.robot._alpha = 100;
this.goalo._x = 505;
}
frame 75 {
stop();
}
instance camera of movieClip 597 {
onClipEvent (enterFrame) {
rx = _root.robot._x;
ry = _root.robot._y;
cx = _root.camera._x;
cy = _root.camera._y;
angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433;
_rotation = angle;
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance lwall of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance goalo of movieClip 605 {
onClipEvent (enterFrame) {
if (this._parent.robot.hitTest(this)) {
_root.gotoAndStop('youwin2');
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
_root.gotoAndStop(20);
}
}
}
instance rwall of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
movieClip 630 {
}
instance of movieClip 630 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
instance of movieClip 630 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
this._parent.robot.yspeed = 0;
}
}
}
frame 80 {
gotoAndStop(75);
}
frame 85 {
stop();
}
movieClip 633 {
}
movieClip 634 {
}
button 639 {
on (keyPress '<Space>') {
gotoAndStop('start');
}
}
instance of movieClip 616 {
onClipEvent (keyPress '<Space>') {
_root.gotoAndStop('level3');
}
}
instance camera of movieClip 597 {
onClipEvent (enterFrame) {
rx = _root.robot._x;
ry = _root.robot._y;
cx = _root.camera._x;
cy = _root.camera._y;
angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433;
_rotation = angle;
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance lwall of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance goalo of movieClip 605 {
onClipEvent (enterFrame) {
if (this._parent.robot.hitTest(this)) {
_root.gotoAndStop('youwin3');
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
_root.gotoAndStop(20);
}
}
}
instance rwall of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
_root.gotoAndStop(20);
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
_root.gotoAndStop(20);
}
}
}
instance of movieClip 599 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 27;
this._parent.robot._y = 27;
}
}
}
movieClip 643 {
}
instance of movieClip 643 {
onClipEvent (enterFrame) {
i;
if (this.hitTest(this._parent.robot)) {
this._parent.robot._x = 20;
this._parent.robot._y = 20;
this._parent.robot.yspeed = 0;
this._parent.robot.xspeed = 0;
}
}
}
instance of movieClip 616 {
onClipEvent (keyPress '<Space>') {
_root.gotoAndStop('Scene 1', 1);
}
}
frame 89 {
stop();
}
movieClip 651 {
frame 1 {
stop();
}
}
button 652 {
on (release) {
gotoAndStop('1p');
}
}
button 654 {
on (release) {
_root.text2p = 'Coming soon';
}
}
button 656 {
on (release) {
gotoAndStop('instructions');
}
}
movieClip 659 {
}
frame 90 {
stop();
}
button 661 {
on (release) {
gotoAndStop('hstart');
}
}
frame 91 {
numb = 1;
}
movieClip 672 {
}
movieClip 674 {
instance of movieClip 672 {
onClipEvent (enterFrame) {
this._width = _root.score / (_root.prevscore / 57);
}
}
}
movieClip 675 {
instance of movieClip 672 {
onClipEvent (enterFrame) {
this._width = _root.urscore / 1.754385964912281;
}
}
}
instance of movieClip 675 {
}
movieClip 677 {
frame 15 {
_root.urscore = Number(_root.urscore) - 5;
}
}
button 680 {
on (press) {
_root.score = Number(_root.score) - 1;
this.hammer1.play();
if (_root.score <= 0) {
this.enemy0.play();
_root.lev = Number(_root.lev) + 1;
_root.urscore = 100;
_root.score = _root.lev * 10;
_root.prevscore = _root.lev * 10;
}
}
}
movieClip 684 {
}
instance of movieClip 684 {
onClipEvent (enterFrame) {
_root.level = 'Level ' + _root.lev;
_root.enelives = 'Lives: ' + (11 - _root.lev);
if (_root.urscore <= 0) {
_root.gotoAndStop('gameover1p');
}
}
}
movieClip 687 {
}
movieClip 694 {
frame 1 {
stop();
}
}
frame 92 {
_root.levelfin = _root.lev;
}
instance of movieClip 684 {
onClipEvent (enterFrame) {
_root.level = 'Level ' + _root.lev;
}
}
button 713 {
on (release) {
_root.lev = 1;
_root.score = 10;
_root.urscore = 100;
gotoAndStop('hstart');
}
}
button 714 {
on (release) {
gotoAndPlay(1);
_root.lev = 1;
_root.score = 10;
_root.urscore = 100;
}
}
frame 93 {
stop();
}
button 718 {
on (rollOver) {
nextFrame();
}
}
frame 94 {
onEnterFrame = function () {
_root.focusEnabled = false;
if (_root.focusEnabled) {
gotoAndStop(93);
}
};
}
movieClip 721 {
}
instance of movieClip 721 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
button 723 {
on (rollOver) {
nextFrame();
}
}
movieClip 727 {
}
movieClip 728 {
instance of movieClip 727 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
instance of movieClip 727 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
instance of movieClip 727 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
}
instance of movieClip 728 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
movieClip 733 {
}
movieClip 734 {
}
instance of movieClip 734 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
movieClip 751 {
}
movieClip 752 {
}
instance of movieClip 752 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
movieClip 754 {
}
instance of movieClip 754 {
onClipEvent (rollOver) {
_root.gotoAndStop('mstart');
}
}
movieClip 757 {
}
button 760 {
on (rollOver) {
gotoAndStop(1);
}
}
frame 100 {
stop();
}
movieClip 763 {
}
button 768 {
on (release) {
gotoAndStop(101);
}
}
button 770 {
on (release) {
gotoAndStop(7);
}
}
button 774 {
on (release) {
_root.gotoAndStop('DK', 4);
}
}
button 776 {
on (release) {
_root.gotoAndStop('DK', 6);
}
}
button 778 {
on (release) {
_root.nextScene();
}
}
movieClip 779 {
frame 1 {
stop();
}
}
instance of movieClip 779 {
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
this.nextFrame();
}
}
}
movieClip 781 {
}
movieClip 782 {
frame 60 {
}
frame 90 {
stop();
}
}
instance of movieClip 782 {
onClipEvent (enterFrame) {
this._x = this._parent.camra._x;
}
}
frame 101 {
onEnterFrame = function () {
_root.timc = Math.floor(getTimer() / 1000);
};
}
frame 101 {
go = true;
}
movieClip 785 {
}
movieClip 788 {
}
instance of movieClip 788 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
if (this._parent.walker._x > this._x + 17) {
this._parent.walker._x -= 2;
}
if (this._parent.walker._x < this._x + 17) {
this._parent.walker._x += 2;
}
this._parent.walker.xspeed = 0;
this._parent.walker._alpha -= 1;
if (this._parent.walker._alpha < 2) {
_root.nextFrame();
}
}
}
}
movieClip 794 {
frame 1 {
gotoAndPlay(50);
}
}
movieClip 798 {
frame 1 {
gotoAndPlay(40);
}
}
movieClip 802 {
frame 1 {
gotoAndPlay(35);
}
}
movieClip 807 {
}
movieClip 820 {
}
movieClip 830 {
}
movieClip 832 {
}
movieClip 847 {
}
movieClip 849 {
}
movieClip 851 {
}
movieClip 853 {
}
instance walker of movieClip 270 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
}
onClipEvent (enterFrame) {
if (_root.go) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
walker.yspeed = 0;
walker._x = -378;
walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 856 {
}
instance of movieClip 856 {
onClipEvent (release) {
this._parent.walker._x = 2200;
this._parent.walker._y = 200;
}
onClipEvent (rollOver) {
this.useHandCursor = false;
}
}
movieClip 859 {
frame 1 {
stop();
}
}
movieClip 862 {
}
movieClip 863 {
}
instance reset of movieClip 863 {
onClipEvent (rollOver) {
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOut) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (release) {
_root.gotoAndStop(1);
}
}
movieClip 865 {
}
instance menu of movieClip 865 {
onClipEvent (enterFrame) {
this._x = this._parent.reset._x;
}
}
movieClip 869 {
}
movieClip 870 {
frame 40 {
stop();
}
}
instance of movieClip 870 {
onClipEvent (enterFrame) {
this._x = this._parent.walker._x - 275;
}
}
instance camra of movieClip 200 {
onClipEvent (enterFrame) {
this._x = this._parent.walker._x;
this._parent.reset._x = this._x + 220;
this._parent.reset._rotation = this._x - 90;
}
}
frame 102 {
_root.timetot = _root.timc + ' seconds';
_root.livetot = _root.lives;
stop();
}
movieClip 873 {
}
button 878 {
on (release) {
nextFrame();
}
}
frame 103 {
onEnterFrame = function () {
_root.timd = Math.floor(getTimer() / 1000);
};
}
frame 103 {
go = true;
}
instance of movieClip 788 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
if (this._parent.walker._x > this._x + 17) {
this._parent.walker._x -= 2;
}
if (this._parent.walker._x < this._x + 17) {
this._parent.walker._x += 2;
}
this._parent.walker.xspeed = 0;
this._parent.walker._alpha -= 1;
if (this._parent.walker._alpha < 2) {
_root.nextFrame();
}
}
}
}
movieClip 888 {
frame 30 {
stop();
}
}
movieClip 893 {
}
movieClip 895 {
}
instance lavabbb of movieClip 895 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 897 {
}
instance lavac of movieClip 897 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 899 {
}
instance lavae of movieClip 899 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 901 {
}
instance lavaa of movieClip 901 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 903 {
}
instance of movieClip 903 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 904 {
}
instance of movieClip 904 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 905 {
}
instance of movieClip 905 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -378;
this._parent.walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
instance walker of movieClip 270 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
jumpheight = -5;
}
onClipEvent (enterFrame) {
if (_root.go) {
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
}
if (Key.isDown(32) and !jumping) {
yspeed = jumpheight;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndStop(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this.lava)) {
go = true;
walker.yspeed = 0;
walker._x = -378;
walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 919 {
}
movieClip 925 {
}
movieClip 928 {
}
movieClip 930 {
}
movieClip 931 {
}
movieClip 933 {
}
instance water of movieClip 933 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.xspeed = 1.5;
this._parent.walker.gravity = 0.1;
this._parent.walker.jumpheight = -3.5;
}
if (!this.hitTest(this._parent.walker) and !this._parent.water2.hitTest(this._parent.walker)) {
this._parent.walker.xspeed = 3;
this._parent.walker.gravity = 0.2;
this._parent.walker.jumpheight = -5;
}
}
}
movieClip 935 {
}
instance water2 of movieClip 935 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.xspeed = 1.5;
this._parent.walker.gravity = 0.1;
this._parent.walker.jumpheight = -4;
}
if (!this.hitTest(this._parent.walker) and !this._parent.water.hitTest(this._parent.walker)) {
this._parent.walker.xspeed = 3;
this._parent.walker.gravity = 0.2;
this._parent.walker.jumpheight = -5;
}
}
}
movieClip 937 {
}
instance of movieClip 937 {
onClipEvent (release) {
this._parent.walker._x = 2200;
this._parent.walker._y += 200;
}
onClipEvent (rollOver) {
this.useHandCursor = false;
}
}
instance reset of movieClip 863 {
onClipEvent (rollOver) {
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOut) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (release) {
_root.gotoAndStop(1);
}
}
instance menu of movieClip 865 {
onClipEvent (enterFrame) {
this._x = this._parent.reset._x;
}
}
instance camra of movieClip 200 {
onClipEvent (enterFrame) {
this._x = this._parent.walker._x;
this._parent.reset._x = this._x + 220;
this._parent.reset._rotation = this._x - 90;
}
}
frame 104 {
_root.timetot = _root.timd + ' seconds';
_root.livetot = _root.lives;
stop();
}
instance of movieClip 788 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.camra._x -= 2;
if (this._parent.walker._x > this._x + 17) {
this._parent.walker._x -= 2;
}
if (this._parent.walker._x < this._x + 17) {
this._parent.walker._x += 2;
}
this._parent.walker.xspeed = 0;
this._parent.walker._alpha -= 1;
if (this._parent.walker._alpha < 2) {
_root.play();
}
}
}
}
movieClip 945 {
}
instance fall of movieClip 945 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -403;
this._parent.walker._y = 44;
this._parent.black.play();
this._parent.camra._x = -400.1;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance walker of movieClip 270 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
jumpheight = -5;
}
onClipEvent (enterFrame) {
if (_root.go) {
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
}
if (Key.isDown(32) and !jumping) {
yspeed = jumpheight;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndStop(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this.lava)) {
go = true;
walker.yspeed = 0;
walker._x = -378;
walker._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 947 {
}
instance camra of movieClip 200 {
onClipEvent (enterFrame) {
this._x += 2;
this._parent.reset._x = this._x + 220;
this._parent.reset._rotation = this._x - 90;
if (this._parent.walker._x < this._x - 300) {
this._parent.walker.yspeed = 0;
this._parent.walker._x = -403;
this._parent.walker._y = 44;
this._parent.black.play();
this._parent.camra._x = -400.1;
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 952 {
}
movieClip 958 {
}
movieClip 978 {
}
movieClip 984 {
}
movieClip 986 {
}
movieClip 988 {
}
movieClip 990 {
}
frame 567 {
stop();
}
instance of movieClip 788 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
if (this._parent.walker._x > this._x + 17) {
this._parent.walker._x -= 2;
}
if (this._parent.walker._x < this._x + 17) {
this._parent.walker._x += 2;
}
this._parent.walker.xspeed = 0;
this._parent.walker._alpha -= 1;
if (this._parent.walker._alpha < 2) {
_root.nextFrame();
}
}
}
}
movieClip 996 {
}
movieClip 1000 {
frame 1 {
stop();
}
frame 25 {
gotoAndPlay(1);
}
frame 50 {
gotoAndPlay(26);
}
frame 52 {
stop();
}
}
instance walker of movieClip 1000 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = 80.5;
this._y = 194.4;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 1003 {
}
instance of movieClip 1003 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 80.5;
this._parent.walker._y = 194.4;
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 1007 {
frame 30 {
stop();
}
}
instance camra of movieClip 200 {
onClipEvent (enterFrame) {
this._x = this._parent.walker._x;
this._parent.reset._x = this._x + 220;
this._parent.reset._rotation = this._x - 90;
}
}
movieClip 1009 {
frame 55 {
stop();
}
}
movieClip 1013 {
}
movieClip 1018 {
}
movieClip 1020 {
}
movieClip 1022 {
}
instance surfboard of movieClip 1022 {
onClipEvent (enterFrame) {
}
}
instance walker of movieClip 1000 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = 80.5;
this._y = 194.4;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.surfboard)) {
this._parent.surfboard._x = this._x - 35;
this._parent.surfboard._y = this._y + 10;
this._x += 10;
} else {
if (this._parent.surfboard._x > 170) {
this._parent.surfboard._x += 2;
}
}
if (!this.hitTest(this._parent.surfboard) and this._x > 200 and this._x < 3039 and this._y > 278) {
this.yspeed = 0;
this._x = 96;
this._y = 192;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
this._parent.black.play();
}
if (this.hitTest(this._parent.wallstart)) {
this._x -= 10;
}
}
}
movieClip 1024 {
}
movieClip 1026 {
}
instance mine of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine3 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine2 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine4 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine6 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine7 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine5 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
instance mine8 of movieClip 1026 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this._parent.black.play();
this._parent.walker.yspeed = 0;
this._parent.walker._x = 192;
this._parent.walker._y = 94.40000000000001;
this._parent.surfboard._x = 167.1;
this._parent.surfboard._y = 283.8;
_root.lives = Number(_root.lives) + 1;
}
}
}
movieClip 1030 {
}
movieClip 1031 {
}
instance walker of movieClip 1000 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = 80.5;
this._y = 194.4;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.wallstart)) {
this._x -= 10;
}
}
}
movieClip 1033 {
}
movieClip 1036 {
}
movieClip 1037 {
frame 77 {
stop();
}
}
instance of movieClip 1037 {
onClipEvent (enterFrame) {
this._x = this._parent.walker._x + 20;
this._y = this._parent.walker._y - 5;
}
}
movieClip 1040 {
}
frame 570 {
onEnterFrame = function () {
_root.timc = Math.floor(getTimer() / 1000);
};
}
frame 570 {
stopAllSounds();
}
instance walker of movieClip 1000 {
onClipEvent (load) {
gravity = 0.2;
yspeed = 0;
xspeed = 3;
jumping = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.water)) {
xspeed = 1.5;
gravity = 0.1;
}
if (!this.hitTest(this.water)) {
xspeed = 3;
gravity = 0.2;
}
if (Key.isDown(37)) {
if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) {
_x = _x - xspeed;
this.gotoAndPlay(26);
}
} else {
if (!Key.isDown(37) and !Key.isDown(39)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(39)) {
if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) {
_x = _x + xspeed;
this.gotoAndPlay(1);
}
} else {
if (!Key.isDown(39) and !Key.isDown(37)) {
this.gotoAndStop(51);
}
}
if (Key.isDown(32) and !jumping) {
yspeed = -5;
jumping = 1;
}
yspeed += gravity;
while (_root.terrain.hitTest(_x, _y + _height / 2, true)) {
_y = _y - 1;
yspeed = 0;
jumping = 0;
}
if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) {
_y = _y + yspeed;
} else {
yspeed = 0;
jumping = 0;
}
if (Key.isDown(32)) {
this.gotoAndPlay(52);
}
if (this.hitTest(this._parent.enemy.headbar)) {
this._parent.enemy._visible = false;
yspeed = -5;
this._parent.enemy._y += 100;
}
if (this.hitTest(this._parent.enemy.bodyblok)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.krool)) {
go = true;
this.yspeed = 0;
this._x = 80.5;
this._y = 302;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(_root.lava)) {
go = true;
this.yspeed = 0;
this._x = -378;
this._y = 49;
this._parent.black.play();
_root.lives = Number(_root.lives) + 1;
}
if (this.hitTest(this._parent.wallstart)) {
this._x -= 10;
}
}
}
movieClip 1044 {
}
movieClip 1046 {
frame 1 {
stop();
}
frame 4 {
_root.swing = 1;
if (this._parent.dk._y < 230) {
this._parent.dk._y += 10;
}
this.gotoAndPlay(3);
}
}
instance of movieClip 1046 {
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.walker)) {
this.play();
}
}
}
movieClip 1049 {
}
movieClip 1050 {
}
instance dk of movieClip 958 {
onClipEvent (enterFrame) {
this._x = this._parent.dot.blackdot._x + 160;
if (this._y > 220) {
this._y = 232;
this._parent.krool.stop();
this._parent.dot.stop();
this._parent.end.play();
}
if (_root.swing == 1) {
if (this._currentframe < 20) {
this.gotoAndStop(10);
}
if (this._currentframe > 20) {
this.gotoAndStop(30);
}
}
}
}
button 1072 {
on (release) {
_root.gotoAndPlay('Scene 1', 1);
}
}
movieClip 1077 {
frame 1 {
stop();
}
frame 110 {
_root.end.lives2 = _root.lives;
}
frame 120 {
_root.end.timetotal = _root.timc;
}
frame 140 {
gotoAndPlay(137);
}
}