Instance of Symbol 24 MovieClip "mcLoadingAnim" in Frame 1
onClipEvent (load) {
function exit() {
text1 = "GAME";
text2 = "LOADED!!";
gotoAndPlay ("exit");
_root.gotoAndStop("ready");
loop = false;
}
percent = 0.1;
text1 = "PLEASE WAIT";
text2 = "GAME LOADING...";
text3 = "";
loop = true;
gotoAndPlay ("start");
}
onClipEvent (enterFrame) {
if (loop) {
bytesTotal = _root.getBytesTotal();
bytesLoaded = _root.getBytesLoaded();
percent = Math.round((bytesLoaded / bytesTotal) * 100);
percentDec = Math.round((bytesLoaded / bytesTotal) * 1000) / 10;
mcBar.gotoAndStop(percent);
text3 = ((Math.round(bytesLoaded / 1000) + "K OF ") + Math.round(bytesTotal / 1000)) + "K";
if (percent == 100) {
exit();
}
}
}
Frame 2
stop();
Frame 3
play();
Frame 24
gotoAndPlay ("loop");
Frame 25
play();
Frame 399
gotoAndStop (405);
Frame 405
function player(turn, turned, move, move2, accel, accelplus, accelrev, status1, status2, keyright, keyleft, keyforward, keybackward, bounce, stopbounce) {
this.turn = turn;
this.turned = turned;
this.move = move;
this.move2 = move2;
this.accel = accel;
this.accelplus = accelplus;
this.accelrev = accelrev;
this.status1 = status1;
this.status2 = status2;
this.keyright = keyright;
this.keyleft = keyleft;
this.keyforward = keyforward;
this.keybackward = keybackward;
this.bounce = bounce;
this.stopbounce = stopbounce;
}
function point(x, y) {
this.x = x;
this.y = y;
}
function pointTarget(pos, x, y, screen, picked) {
this.pos = pos;
this.x = x;
this.y = y;
this.screen = screen;
this.picked = picked;
}
function pointCross(x, y, dir) {
this.x = x;
this.y = y;
this.dir = dir;
}
function pointAlienStart(x, y, initDir) {
this.x = x;
this.y = y;
this.initDir = initDir;
}
gotoAndStop ("start");
pickupSound = new Sound(pickupSoundMC);
alienSound = new Sound(alienSoundMC);
explosionSound = new Sound(explosionSoundMC);
musicSound = new Sound(musicMC);
wellDoneSound = new Sound(wellDoneMC);
pickupSound.attachSound("pickupSND");
alienSound.attachSound("sirenStartSND");
explosionSound.attachSound("skidSND");
musicSound.attachSound("musicSND");
wellDoneSound.attachSound("wellDoneSND");
mcHST.loadMovie("MonkeyTaxi_HST.swf");
_root.attachMovie("mcPepsiLogo", "mcPepsiLogo", 99999);
mcPepsiLogo._x = 604;
mcPepsiLogo._y = 494;
Instance of Symbol 105 MovieClip "cross1_3" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2);
}
Instance of Symbol 105 MovieClip "cross1_4" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 2;
}
Instance of Symbol 105 MovieClip "cross1_11" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 4);
}
Instance of Symbol 105 MovieClip "cross1_10" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross1_9" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross1_5" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 3;
}
Instance of Symbol 105 MovieClip "cross1_8" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3);
}
Instance of Symbol 105 MovieClip "cross1_1" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 3;
}
Instance of Symbol 105 MovieClip "cross1_2" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 3);
}
Instance of Symbol 105 MovieClip "cross1_6" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 3, 4);
}
Instance of Symbol 105 MovieClip "cross1_15" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 4);
}
Instance of Symbol 105 MovieClip "cross1_14" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3);
}
Instance of Symbol 105 MovieClip "cross1_13" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross1_12" in Frame 405
onClipEvent (load) {
availableDir = new Array(3, 4);
}
Instance of Symbol 105 MovieClip "cross1_18" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 3);
}
Instance of Symbol 105 MovieClip "cross1_20" in Frame 405
onClipEvent (load) {
availableDir = new Array(3, 4);
}
Instance of Symbol 105 MovieClip "cross1_22" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross1_7" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 4);
}
Instance of Symbol 105 MovieClip "cross1_16" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3);
}
Instance of Symbol 105 MovieClip "cross1_17" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross1_19" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross1_21" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_2" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross2_1" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3);
}
Instance of Symbol 105 MovieClip "cross2_3" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3);
}
Instance of Symbol 105 MovieClip "cross2_4" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross2_5" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 2;
}
Instance of Symbol 105 MovieClip "cross2_6" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_7" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_8" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 3);
}
Instance of Symbol 105 MovieClip "cross2_9" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 4);
}
Instance of Symbol 105 MovieClip "cross2_11" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2);
}
Instance of Symbol 105 MovieClip "cross2_10" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_12" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 4;
}
Instance of Symbol 105 MovieClip "cross2_14" in Frame 405
onClipEvent (load) {
availableDir = new Array(2, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_13" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 4;
}
Instance of Symbol 105 MovieClip "cross2_15" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 3);
}
Instance of Symbol 105 MovieClip "cross2_16" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 2, 4);
}
Instance of Symbol 105 MovieClip "cross2_20" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_19" in Frame 405
onClipEvent (load) {
availableDir = new Array(3, 4);
}
Instance of Symbol 105 MovieClip "cross2_21" in Frame 405
onClipEvent (load) {
availableDir = new Array(1, 3, 4);
}
Instance of Symbol 105 MovieClip "cross2_22" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 1;
}
Instance of Symbol 105 MovieClip "cross2_18" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 4;
}
Instance of Symbol 105 MovieClip "cross2_17" in Frame 405
onClipEvent (load) {
availableDir = new Array();
availableDir[0] = 2;
}
Instance of Symbol 163 MovieClip in Frame 405
onClipEvent (load) {
("c" < (b >= undefined)) || (0(false));
playernumber = 1;
}
onClipEvent (enterFrame) {
function controlme(playernumber, playerdirection) {
function directme(playernumberdir, accel) {
if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberdir) + "._rotation")))));
}
}
function directrevme(playernumberrevdir, accelrev) {
if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberrevdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
}
}
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
bob = 1;
_root.debug = eval (("_root.player" + playernumber) + ".turned");
if ((eval (("_root.player" + playernumber) + ".accel") >= 0) && (eval (("_root.player" + playernumber) + ".status1") == false)) {
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (Key.isDown(eval (("_root.player" + playernumber) + ".keyright"))) {
Set(("_root.player" & playernumber) & ".turned", 0);
if (eval (("_root.player" + playernumber) + ".turn") < 20) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") + 2);
} else if ((_root.screech._currentframe == 1) && (_root.soundOn == 1)) {
var ranSound = random(4);
if (ranSound == 0) {
_root.screech.gotoAndPlay(2);
}
}
setProperty(eval ("_root.playme" + playernumber), _rotation , (eval (("_root.playme" + playernumber) + "._rotation") + 8) % 360);
_root.light1._rotation = _root.playme1._rotation;
_root.shadow._rotation = _root.playme1._rotation;
} else if (Key.isDown(eval (("_root.player" + playernumber) + ".keyleft"))) {
Set(("_root.player" & playernumber) & ".turned", 0);
if (-20 < eval (("_root.player" + playernumber) + ".turn")) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") - 2);
} else if ((_root.screech._currentframe == 1) && (_root.soundOn == 1)) {
var ranSound = random(4);
if (ranSound == 0) {
_root.screech.gotoAndPlay(2);
}
}
setProperty(eval ("_root.playme" + playernumber), _rotation , (eval (("_root.playme" + playernumber) + "._rotation") - 8) % 360);
_root.light1._rotation = _root.playme1._rotation;
_root.shadow._rotation = _root.playme1._rotation;
} else {
Set(("_root.player" & playernumber) & ".turned", 1);
if (eval (("_root.player" + playernumber) + ".turn") < 0) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") + 2);
} else if (0 < eval (("_root.player" + playernumber) + ".turn")) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") - 2);
}
}
}
if (_root.soundOn == 1) {
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
if (eval (("_root.player" + playernumber) + ".accel") < 2) {
if (_root.accelSound._currentframe == 1) {
_root.accelSound.gotoAndStop(2);
}
}
if ((2 < eval (("_root.player" + playernumber) + ".accel")) && (eval (("_root.player" + playernumber) + ".accel") < 4)) {
if (_root.accelSound._currentframe == 2) {
_root.accelSound.gotoAndPlay(3);
}
}
if ((4 < eval (("_root.player" + playernumber) + ".accel")) && (eval (("_root.player" + playernumber) + ".accel") < 6)) {
if (_root.accelSound._currentframe == 4) {
_root.accelSound.gotoAndPlay(5);
}
}
if (6 < eval (("_root.player" + playernumber) + ".accel")) {
if (_root.accelSound._currentframe == 6) {
_root.accelSound.gotoAndPlay(7);
}
}
} else if (eval (("_root.player" + playernumber) + ".accel") == 0) {
if (_root.accelSound._currentframe == 2) {
_root.accelSound.gotoAndStop(3);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 4) {
_root.accelSound.gotoAndStop(5);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 6) {
_root.accelSound.gotoAndStop(7);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 8) {
_root.accelSound.gotoAndStop(9);
_root.accelSound.gotoAndStop(1);
}
}
}
if (Key.isDown(eval (("_root.player" + playernumber) + ".keyforward"))) {
if (_root.mcSign_start.status) {
_root.mcSign_start.stop();
}
var press = 1;
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
if (eval (("_root.player" + playernumber) + ".status1") == false) {
if (0 < eval (("_root.player" + playernumber) + ".accelrev")) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") - 0.25);
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
}
if (eval (("_root.player" + playernumber) + ".accelrev") == 0) {
if (eval (("_root.player" + playernumber) + ".accel") < 6) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") + 1);
}
if (10 >= eval (("_root.player" + playernumber) + ".accel")) {
if (eval (("_root.player" + playernumber) + ".accel") >= 1) {
Set(("_root.player" + playernumber) + ".accelplus", eval (("_root.player" + playernumber) + ".accelplus") + 5);
} else {
Set(("_root.player" + playernumber) + ".accelplus", eval (("_root.player" + playernumber) + ".accelplus") + 3);
}
if (50 < eval (("_root.player" + playernumber) + ".accelplus")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") + 0.25);
Set(("_root.player" + playernumber) + ".accelplus", 0);
}
}
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
forrev = "0";
}
}
} else if (Key.isDown(eval (("_root.player" + playernumber) + ".keybackward"))) {
if (eval (("_root.player" + playernumber) + ".status1") == false) {
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status2") == false) {
Set(("_root.player" + playernumber) + ".accelplus", 0);
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") - 0.25);
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move");
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2");
}
if (eval (("_root.player" + playernumber) + ".accel") == 0) {
if (eval (("_root.player" + playernumber) + ".accelrev") < 4) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") + 0.25);
}
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
forrev = "1";
}
}
}
} else if ((eval (("_root.player" + playernumber) + ".status1") == false) && (eval (("_root.player" + playernumber) + ".status2") == false)) {
if (forrev == 0) {
Set(("_root.player" + playernumber) + ".accelplus", 0);
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") - 0.25);
}
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
} else if (forrev == 1) {
if (0 < eval (("_root.player" + playernumber) + ".accelrev")) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") - 0.25);
}
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
}
} else if ((eval (("_root.player" + playernumber) + ".status1") == true) && (eval (("_root.player" + playernumber) + ".status2") == false)) {
Set(("_root.player" + playernumber) + ".accel", 0);
Set(("_root.player" + playernumber) + ".accelplus", 0);
Set(("_root.player" + playernumber) + ".accelrev", 0);
Set(("_root.player" + playernumber) + ".stopbounce", eval (("_root.player" + playernumber) + ".stopbounce") + 0.25);
if (eval (("_root.player" + playernumber) + ".stopbounce") >= 5) {
Set(("_root.player" + playernumber) + ".status1", false);
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
Set(("_root.player" + playernumber) + ".bounce", 5);
if (0 < eval (("_root.player" + playernumber) + ".bounce")) {
Set(("_root.player" + playernumber) + ".bounce", eval (("_root.player" + playernumber) + ".bounce") - 0.25);
} else {
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
}
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status2") == false) {
directrevme(playerdirection, "bounce");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
} else {
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
} else if ((eval (("_root.player" + playernumber) + ".status2") == true) && (eval (("_root.player" + playernumber) + ".status1") == false)) {
Set(("_root.player" + playernumber) + ".accel", 0);
Set(("_root.player" + playernumber) + ".accelplus", 0);
Set(("_root.player" + playernumber) + ".accelrev", 0);
Set(("_root.player" + playernumber) + ".stopbounce", eval (("_root.player" + playernumber) + ".stopbounce") + 0.25);
if (eval (("_root.player" + playernumber) + ".stopbounce") >= 5) {
Set(("_root.player" + playernumber) + ".status2", false);
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
Set(("_root.player" + playernumber) + ".bounce", 5);
if (0 < eval (("_root.player" + playernumber) + ".bounce")) {
Set(("_root.player" + playernumber) + ".bounce", eval (("_root.player" + playernumber) + ".bounce") - 0.25);
} else {
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
}
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status1") == false) {
directme(playerdirection, "bounce");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
_root.light1._x = eval (("_root.player" + playernumber) + ".move");
_root.light1._y = eval (("_root.player" + playernumber) + ".move2");
_root.shadow._x = eval (("_root.player" + playernumber) + ".move") + 2;
_root.shadow._y = eval (("_root.player" + playernumber) + ".move2") - 2;
} else {
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
} else if ((eval (("_root.player" + playernumber) + ".status2") == true) && (eval (("_root.player" + playernumber) + ".status1") == true)) {
}
}
function directme(playernumberdir, accel) {
if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberdir) + "._rotation")))));
}
}
function directrevme(playernumberrevdir, accelrev) {
if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberrevdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
}
}
if (!_root.gamePaused) {
if (Key.isDown(_root.player1.keyforward) && (Key.isDown(_root.player1.keybackward))) {
} else if (_root.noGo == 1) {
controlme(1, 1);
}
}
}
Instance of Symbol 165 MovieClip "alienEngine" in Frame 405
onClipEvent (load) {
function removeAliens() {
var i = 1;
while (2 >= i) {
_root["alien" + i].removeMovieClip();
i++;
}
}
function reset() {
pause = 2000;
firstTime = true;
numAlien = 2;
count = 0;
removeAliens();
}
function createAlien() {
count++;
duplicateMovieClip ("_root.alien", "alien" + count, count + 1000);
var currAlien = eval ("_root.alien" + count);
currAlien._x = _root.alienStart[count].x;
currAlien._y = _root.alienStart[count].y;
currAlien.initDir = _root.alienStart[count].initDir;
currAlien._rotation = (currAlien.initDir - 2) * 90;
_root.alienSound.start();
}
}
onClipEvent (enterFrame) {
if (_root.gameStarted && (!_root.gamePaused)) {
if (numAlien != 0) {
if (firstTime) {
firstTime = false;
startTime = getTimer();
} else if (pause < (getTimer() - startTime)) {
firstTime = true;
createAlien();
numAlien--;
}
}
}
}
Instance of Symbol 167 MovieClip in Frame 405
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.topLeft, _root.topLeft1, true)) {
_root.gotoAndStop("track2");
}
}
Instance of Symbol 178 MovieClip "timer" in Frame 405
onClipEvent (load) {
function twoDigit(str) {
if (str.length < 2) {
str = "0" + str;
} else if (2 < str.length) {
str = str.substr(0, 2);
}
return(str);
}
function reset() {
timerStarted = false;
finalTime = 0;
disp_min = "00";
disp_sec = "00";
disp_cent = "00";
}
function pause() {
timerStarted = false;
elapsedTime = getTimer() - startTime;
}
function unPause() {
timerStarted = true;
startTime = getTimer() - elapsedTime;
}
function start() {
startTime = getTimer();
timerStarted = true;
}
function stopTime() {
finalTime = disp_time;
if (timeUpFlag) {
finalTimeNum = timeUp;
} else {
finalTimeNum = int(currTime * 100);
}
timerStarted = false;
trace("time: " + finalTimeNum);
trace("time: " + _root.encode(finalTimeNum));
timeUpFlag = false;
}
timeUp = 3600;
timeUpFlag = false;
reset();
}
onClipEvent (enterFrame) {
if (timerStarted) {
currTime = (getTimer() - startTime) / 1000;
currTimeCent = twoDigit(int((currTime * 1000) % 1000).toString());
currTimeSec = twoDigit(int(currTime % 60).toString());
currTimeMin = twoDigit(int(currTime / 60).toString());
disp_min = currTimeMin;
disp_sec = currTimeSec;
disp_cent = currTimeCent;
if (currTime >= timeUp) {
timeUpFlag = true;
stopTime();
}
}
}
Instance of Symbol 210 MovieClip "popup0" in Frame 405
onClipEvent (load) {
if (_name == "popup0") {
duplicateMovieClip (this, "popup", 5000);
this._visible = false;
}
}
Frame 408
nextFrame();
Frame 409
function choose_target() {
currTargetIndice = 1;
target = new Array();
tPos = new Array();
var i = 1;
while (5 >= i) {
do {
if ((i % 2) == 0) {
var temp = (random(10) + 11);
} else {
var temp = (random(10) + 1);
}
if (10 >= temp) {
var screen = 1;
} else {
var screen = 2;
}
var exist = 0;
for (j in tPos) {
if (temp == tPos[j]) {
exist++;
}
}
} while (exist != 0);
tPos[i] = temp;
var x = eval (("targetPos" + tPos[i]) + "._x");
var y = eval (("targetPos" + tPos[i]) + "._y");
target[i] = new pointTarget(tPos[i], x, y, screen, false);
i++;
}
}
function removeAllTargets() {
var i = 1;
while (5 >= i) {
_root["target" + i].removeMovieClip();
i++;
}
}
function displayNextTarget(screen) {
removeAllTargets();
i = currTargetIndice;
duplicateMovieClip ("target", "target" + i, i);
currTarget = eval ("target" + i);
if ((target[i].screen == screen) && (!target[i].picked)) {
currTarget.indice = i;
currTarget._x = target[i].x;
currTarget._y = target[i].y;
}
}
function init_intersection() {
inter = new Array();
inter[1] = new Array();
var i = 1;
while (22 >= i) {
var x = eval ("cross1_" + i)._x;
var y = eval ("cross1_" + i)._y;
var dir = eval ("cross1_" + i).availableDir;
inter[1][i] = new pointCross(x, y, dir);
i++;
}
inter[2] = new Array();
var i = 1;
while (22 >= i) {
var x = eval ("cross2_" + i)._x;
var y = eval ("cross2_" + i)._y;
var dir = eval ("cross2_" + i).availableDir;
inter[2][i] = new pointCross(x, y, dir);
i++;
}
}
function encode(number) {
var inTable = "0123456789";
var outTable = "3210FEDCBA";
var tmp = number.toString();
while (tmp.length < 6) {
tmp = "0" add tmp;
}
var output = "";
var i = 0;
while (i < tmp.length) {
var char = tmp.charAt(i);
output = outTable.charAt(inTable.indexOf(char)) + output;
i++;
}
return(output);
}
function targetPickedUp(indice) {
currTargetIndice++;
target[indice].picked = true;
_root["consoleTarget" + indice].pick();
targetPicked++;
pickupSound.start();
if ((indice % 2) != 0) {
mcSign_southBank.play();
} else {
mcSign_northBank.play();
}
mcPrompt.display("pickUp" + targetPicked);
}
function resetGame() {
gameStarted = false;
player1 = undefined;
player1 = new player(0, 0, _root.playme1._x, _root.playme1._y, 0, 0, 0, false, false, 39, 37, 32, 40, 0, 0);
start1 = new Point(34, 122);
start2 = new Point(30, 165);
alienStart = new Array();
targetPicked = 0;
consoleTarget1.reset();
consoleTarget2.reset();
consoleTarget3.reset();
consoleTarget4.reset();
consoleTarget5.reset();
outcome = "";
scoreSubmitted = false;
init_intersection();
choose_target();
timer.reset();
alienEngine.reset();
mcSign_southBank.stop();
mcSign_northBank.stop();
mcSign_start.stop();
mcSign_finish.stop();
mcSign_cones1.stop();
mcSign_cones2.stop();
mcStartPrompt.start();
mcPrompt.remove();
musicSound.stop();
musicSound.start(0, 1000);
}
function startGame() {
gameStarted = true;
noGo = 1;
playme1.gotoAndStop("on");
light1._visible = true;
timer.start();
ignition.play();
mcSign_southBank.stop();
mcSign_northBank.stop();
mcSign_start.play();
mcSign_finish.stop();
mcSign_cones1.play();
mcSign_cones2.play();
}
resetGame();
gotoAndStop ("track1");
Instance of Symbol 227 MovieClip "track" in Frame 409
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 251 MovieClip "target" in Frame 409
onClipEvent (load) {
firstTime = true;
stop();
}
onClipEvent (enterFrame) {
if (_root.playme1.hitTest(_x, _y, true) && (firstTime)) {
_root.targetPickedUp(indice);
firstTime = false;
this.removeMovieClip();
}
}
Instance of Symbol 258 MovieClip "alien" in Frame 409
onClipEvent (load) {
function intersection(MC) {
if ((Math.abs(MC.x - _x) < 3) && (Math.abs(MC.y - _y) < 3)) {
return(true);
}
return(false);
}
function reset_firstTime(setFalse) {
firstTime = new Array();
var i = 1;
while (25 >= i) {
firstTime[i] = true;
i++;
}
if (setFalse != undefined) {
firstTime[setFalse] = setFalse;
}
}
function oppositeDir(d) {
if (2 >= d) {
var output = (d + 2);
} else {
var output = (d - 2);
}
return(output);
}
if (_name == "alien") {
_visible = false;
}
dir = initDir;
speed = 3;
reset_firstTime();
}
onClipEvent (enterFrame) {
if (statusOn && (!_root.gamePaused)) {
if (dir == 1) {
_y = (_y - speed);
_rotation = -90;
} else if (dir == 2) {
_x = (_x + speed);
_rotation = 0;
} else if (dir == 3) {
_y = (_y + speed);
_rotation = 90;
} else if (dir == 4) {
_x = (_x - speed);
_rotation = 180;
}
i = 1;
while (25 >= i) {
if (firstTime[i] && (intersection(_root.inter[_root.screen][i]))) {
reset_firstTime(i);
_x = _root.inter[_root.screen][i].x;
_y = _root.inter[_root.screen][i].y;
if (_root.inter[_root.screen][i].dir.length == 1) {
newdir = oppositeDir(dir);
} else {
do {
newdir = _root.inter[_root.screen][i].dir[random(_root.inter[_root.screen][i].dir.length)];
} while ((newdir == dir) || (newdir == oppositeDir(dir)));
}
dir = newdir;
}
i++;
}
if ((_root.playme1.hitTest(hitZone) && (firstTime)) && (_root.gameStarted)) {
_root.gameStarted = false;
reset_firstTime(i);
firstTime = false;
_root.playme1.gotoAndPlay("off");
_root.light1._visible = false;
_root.outcome = "loose";
_root.popup.gotoAndPlay(2);
_root.timer.stopTime();
_root.explosionSound.start();
_root.shadow._visible = false;
_root.noGo = 0;
speed = 0;
}
}
}
Frame 415
function doTrack1() {
screen = 1;
playme1._x = start1.x;
playme1._y = start1.y;
light1._x = start1.x;
light1._y = start1.y;
player1.move = start1.x;
player1.move2 = start1.y;
alienEngine.reset();
alienStart[1] = new pointAlienStart(76, 465, 2);
alienStart[2] = new pointAlienStart(419, 192, 1);
displayNextTarget(1);
mcSign_southBank.stop();
mcSign_northBank.stop();
mcSign_finish.stop();
mcSign_cones1.play();
mcSign_cones2.stop();
}
if (gameStarted) {
doTrack1();
}
Frame 420
function doTrack2() {
screen = 2;
playme1._x = start2.x;
playme1._y = start2.y;
light1._x = start2.x;
light1._y = start2.y;
player1.move = start2.x;
player1.move2 = start2.y;
start1 = new Point(697, 166);
alienEngine.reset();
alienStart[1] = new pointAlienStart(75, 466, 2);
alienStart[2] = new pointAlienStart(511, 126, 2);
displayNextTarget(2);
mcSign_southBank.stop();
mcSign_northBank.stop();
mcSign_cones1.stop();
if (targetPicked == 5) {
mcSign_finish.play();
mcSign_cones2.stop();
} else {
mcSign_finish.stop();
mcSign_cones2.play();
}
}
if (gameStarted) {
doTrack2();
}
Instance of Symbol 279 MovieClip "track" in Frame 420
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 167 MovieClip in Frame 420
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.topLeft, _root.topLeft1, true)) {
_root.gotoAndStop("track1");
}
}
Instance of Symbol 167 MovieClip in Frame 420
onClipEvent (load) {
this._visible = false;
firstTime = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.topLeft, _root.topLeft1, true) && (firstTime)) {
firstTime = false;
_root.noGo = 0;
_root.timer.stopTime();
_root.popup.gotoAndPlay(2);
_root.gameStarted = false;
if (_root.targetPicked == 5) {
_root.outcome = "win";
} else {
_root.outcome = "miss";
}
_root.wellDoneSound.start();
}
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 5
play();
Symbol 24 MovieClip Frame 15
stop();
Symbol 24 MovieClip Frame 20
play();
Symbol 24 MovieClip Frame 30
stop();
Symbol 32 MovieClip Frame 10
stop();
Symbol 37 Button
on (release) {
gotoAndStop (25);
}
Symbol 56 Button
on (release) {
nextFrame();
}
Symbol 59 Button
on (release) {
prevFrame();
}
Symbol 62 MovieClip Frame 1
stop();
_root.soundOn = 1;
_root.pickupSound.setVolume(100);
_root.alienSound.setVolume(100);
_root.explosionSound.setVolume(100);
_root.musicSound.setVolume(100);
_root.wellDoneSound.setVolume(100);
Symbol 62 MovieClip Frame 2
_root.soundOn = 0;
_root.pickupSound.setVolume(0);
_root.alienSound.setVolume(0);
_root.explosionSound.setVolume(0);
_root.musicSound.setVolume(0);
_root.wellDoneSound.setVolume(0);
Symbol 67 Button
on (release) {
getURL ("http://www.pepsimax.com", "_blank");
}
Symbol 72 Button
on (release) {
getURL ("mailto:?subject=PEPSI MAX Monkey Taxi Game&body=Check out the Breakout game from PEPSI MAX, the website's really cool too.\r\rCheck it out here: http://www.pepsimax.com");
}
Symbol 77 Button
on (release) {
gotoAndPlay ("open");
}
Symbol 80 Button
on (release) {
gotoAndPlay ("exit");
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 10
stop();
Symbol 82 Button
on (release) {
gotoAndStop ("end");
}
Symbol 83 Button
on (release) {
getURL ("mailto:?subject=PEPSI MAX Monkey Taxi Game&body=Hi !\r\rCheck out the latest Monkey Taxi game from PEPSI MAX: http://www.pepsimax.com\r");
}
Symbol 115 MovieClip Frame 1
function play() {
status = true;
gotoAndPlay ("flash");
}
function stop() {
status = false;
gotoAndStop ("invisible");
}
stop();
Symbol 115 MovieClip Frame 30
gotoAndPlay ("flash");
Symbol 118 MovieClip Frame 1
function play() {
status = true;
gotoAndPlay ("flash");
}
function stop() {
status = false;
gotoAndStop ("invisible");
}
stop();
Symbol 118 MovieClip Frame 30
gotoAndPlay ("flash");
Symbol 121 MovieClip Frame 1
function play() {
gotoAndPlay ("flash");
status = true;
}
function stop() {
gotoAndStop ("invisible");
status = false;
}
stop();
Symbol 121 MovieClip Frame 30
gotoAndPlay ("flash");
Symbol 124 MovieClip Frame 1
function play() {
gotoAndPlay ("flash");
status = true;
}
function stop() {
gotoAndStop ("invisible");
status = false;
}
stop();
Symbol 124 MovieClip Frame 30
gotoAndPlay ("flash");
Symbol 127 MovieClip Frame 1
function play() {
status = true;
gotoAndStop ("visible");
_root.track.mcBarrier._x = 250;
_root.track.mcBarrier._y = 200;
}
function stop() {
status = false;
gotoAndStop ("invisible");
_root.track.mcBarrier._x = 1250;
_root.track.mcBarrier._y = 200;
}
stop();
Symbol 130 MovieClip Frame 1
function play() {
status = true;
gotoAndStop ("visible");
}
function stop() {
status = false;
gotoAndStop ("invisible");
}
stop();
Symbol 143 MovieClip Frame 1
function start() {
gotoAndPlay (2);
_visible = true;
}
function remove() {
gotoAndStop (1);
_visible = false;
}
remove();
Symbol 143 MovieClip Frame 75
_root.startGame();
_root.doTrack1();
Symbol 143 MovieClip Frame 100
remove();
Symbol 161 MovieClip Frame 1
function display(frame) {
gotoAndPlay(frame);
}
function remove() {
gotoAndStop ("stop");
}
remove();
Symbol 161 MovieClip Frame 94
remove();
Symbol 161 MovieClip Frame 179
remove();
Symbol 161 MovieClip Frame 264
remove();
Symbol 161 MovieClip Frame 349
remove();
Symbol 161 MovieClip Frame 404
remove();
Symbol 177 Button
on (release) {
_root.mcHST.onViewHighScoresPress();
_root.gamePaused = true;
this.pause();
_root.mcSign_southBank._visible = false;
_root.mcSign_northBank._visible = false;
_root.mcSign_start._visible = false;
_root.mcSign_._visible = false;
_root.mcSign_cones1._visible = false;
_root.mcSign_cones2._visible = false;
_root.playme1._visible = false;
_root.light1._visible = false;
_root.shadow._visible = false;
_root.alien1._visible = false;
_root.alien2._visible = false;
_root.target1._visible = false;
_root.target2._visible = false;
_root.target3._visible = false;
_root.target4._visible = false;
_root.target5._visible = false;
_root.viewHSTCallBack = function () {
_root.timer.unPause();
_root.gamePaused = false;
_root.mcSign_southBank._visible = true;
_root.mcSign_northBank._visible = true;
_root.mcSign_start._visible = true;
_root.mcSign_._visible = true;
_root.mcSign_cones1._visible = true;
_root.mcSign_cones2._visible = true;
_root.playme1._visible = true;
_root.light1._visible = true;
_root.shadow._visible = true;
_root.alien1._visible = true;
_root.alien2._visible = true;
_root.target1._visible = true;
_root.target2._visible = true;
_root.target3._visible = true;
_root.target4._visible = true;
_root.target5._visible = true;
};
}
Symbol 178 MovieClip Frame 20
stop();
Symbol 187 MovieClip Frame 36
stop();
Symbol 188 MovieClip Frame 1
if (_root.outcome == "loose") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 193 Button
on (release) {
_root.mcHST.onSubmitScorePress();
_root.alienEngine.removeAliens();
_root.removeAllTargets();
gotoAndPlay ("exit");
}
Symbol 198 Button
on (release, keyPress "<Enter>") {
_root.gotoAndStop("reset");
gotoAndPlay ("exit");
}
Symbol 204 Button
on (release, keyPress "<Enter>") {
_root.gotoAndStop("reset");
gotoAndPlay ("exit");
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
_root.accelSound.gotoAndStop(3);
_root.accelSound.gotoAndStop(5);
_root.accelSound.gotoAndStop(7);
_root.accelSound.gotoAndStop(9);
_root.accelSound.gotoAndStop(1);
Symbol 210 MovieClip Frame 21
gotoAndStop(_root.outcome);
Symbol 210 MovieClip Frame 22
disp_min = _root.timer.disp_min;
disp_sec = _root.timer.disp_sec;
disp_cent = _root.timer.disp_cent;
Symbol 210 MovieClip Frame 23
disp_text1 = ("You picked up " + _root.targetPicked) + " passengers in a time of...";
disp_min = _root.timer.disp_min;
disp_sec = _root.timer.disp_sec;
disp_cent = _root.timer.disp_cent;
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
newRandom = random(2);
if (newRandom == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (31);
}
Symbol 212 MovieClip Frame 30
gotoAndStop (1);
Symbol 212 MovieClip Frame 61
gotoAndStop (1);
Symbol 214 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 4
stop();
Symbol 219 MovieClip Frame 6
stop();
Symbol 219 MovieClip Frame 8
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 25
stop();
Symbol 238 MovieClip Frame 1
stop();
Instance of Symbol 237 MovieClip "bumper1" in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.topright = point.x;
_root.topright1 = point.y;
updateAfterEvent();
}
Instance of Symbol 237 MovieClip "bumper2" in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bottomright = point.x;
_root.bottomright1 = point.y;
updateAfterEvent();
}
Instance of Symbol 237 MovieClip "bumper3" in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.topleft = point.x;
_root.topleft1 = point.y;
updateAfterEvent();
}
Instance of Symbol 237 MovieClip "bumper4" in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bottomleft = point.x;
_root.bottomleft1 = point.y;
updateAfterEvent();
}
Symbol 238 MovieClip Frame 8
stop();
Symbol 251 MovieClip Frame 1
gotoAndStop(indice);
this._rotation = random(4) * 90;
Symbol 257 MovieClip Frame 1
this._visible = false;
Symbol 258 MovieClip Frame 1
statusOn = false;
Symbol 258 MovieClip Frame 33
stop();
statusOn = true;
Symbol 272 MovieClip Frame 10
stop();
Symbol 272 MovieClip Frame 20
stop();
Symbol 273 MovieClip Frame 1
function reset() {
headClip.gotoAndPlay("on");
}
function pick() {
headClip.gotoAndPlay("off");
}
indice = Number(_name.substr(13));
headClip.head.gotoAndStop(indice);
reset();