Frame 1
function initialiseMan() {
ymov = 0;
gravity = _root.gravity;
canJump = -1;
jumpHeight = _root.jumpHeight;
screen = _root.screen;
lives = _root.lives;
spawned = true;
game = "game1";
shoot = false;
manState = 1;
}
function checkMan() {
_root.frameRate = Math.floor(1000 / (getTimer() - _root.lastTimer));
_root.lastTimer = getTimer();
_root.scorePanel.txtLives = _root.lives;
if (399.5 < _root.turbo._y) {
_root.deathsound = "hole";
if (_root.developer == false) {
cleanScreen();
if (_root.gamelevel == 1) {
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.gotoAndStop("playerDie");
}
} else if (_root.gamelevel == 2) {
_root.lastLevel = _root.screen - 5;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.gotoAndStop("playerDie2");
}
} else {
_root.lastLevel = _root.screen - 10;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.gotoAndStop("playerDie3");
}
}
} else {
_root.turbo._y = 1;
}
}
if (0 >= _root.lives) {
gotoAndPlay (1);
}
ymov = ymov + gravity;
f = 0;
while (_root.platformArray.length >= f) {
thisPlat = _root.platformArray[f].mclip;
if (thisPlat != -1) {
turboRight = _root.turbo._x + (_root.turbo._width / 2);
turboLeft = _root.turbo._x - (_root.turbo._width / 2);
turboBot = _root.turbo._y;
turboTop = _root.turbo._y - _root.turbo._height;
boxLeft = (thisPlat._x - (thisPlat._width / 2)) + 4;
boxRight = (thisPlat._x + (thisPlat._width / 2)) - 4;
boxTop = (thisPlat._y - (thisPlat._height / 2)) + 8;
boxBot = thisPlat._y + (thisPlat._height / 2);
if (thisPlat.visible == true) {
ManTest = hittingMe(turboLeft, turboRight, turboTop + 20, turboBot, _root.turbo._x, boxLeft, boxRight, boxTop, boxBot, thisPlat._x, f);
if (ManTest == 1) {
ymov = 0;
canJump = f;
}
if (ManTest == 2) {
ymov = 0;
_root.turbo._y = (boxBot + 4) + _root.turbo._height;
}
if (ManTest == 3) {
_root.turbo._x = (boxLeft - (_root.turbo._width / 2)) - 2;
}
if (ManTest == 4) {
_root.turbo._x = (boxRight + (_root.turbo._width / 2)) + 2;
}
if (canJump == f) {
if ((boxRight < turboLeft) || (turboRight < boxLeft)) {
canjump = -1;
} else {
ymov = 0;
_root.turbo._y = boxTop - 2;
}
}
}
}
f++;
}
_root.turbo._y = _root.turbo._y + ymov;
if (key.isDown(39)) {
manstate = 3;
walkRight();
}
if (key.isDown(37)) {
manstate = 4;
walkLeft();
}
if ((!key.isDown(39)) && (!key.isDown(37))) {
isWalking = false;
if (((((manstate == 1) || (manstate == 3)) || (manstate == 5)) || (manstate == 7)) || (manstate == 9)) {
manstate = 1;
} else {
manstate = 2;
}
}
if (key.isDown(32) || (key.isDown(38))) {
if (-1 < canJump) {
if ((((((manstate == 1) || (manstate == 3)) || (manstate == 5)) || (manstate == 7)) || (manstate == 9)) || (key.isDown(39))) {
manstate = 5;
} else {
manstate = 6;
}
jump(jumpHeight);
}
}
if (key.isDown(66)) {
if (key.isDown(85)) {
_root.developer = true;
_root.jumpHeight = -29;
}
if (key.isDown(78)) {
_root.developer = false;
}
}
if (_root.developer == true) {
if (key.isDown(77)) {
if (_root.shrunken == false) {
_root.turbo._xscale = 50;
_root.turbo._yscale = 50;
_root.shrunken = true;
} else {
_root.turbo._xscale = 100;
_root.turbo._yscale = 100;
_root.shrunken = false;
}
}
if (key.isDown(49)) {
cleanScreen(1);
_root.collected = 0;
gotoAndPlay (1);
}
if (key.isDown(50)) {
cleanScreen(1);
_root.collected = 2;
gotoAndPlay (378);
}
if (key.isDown(51)) {
cleanScreen(1);
_root.collected = 4;
gotoAndPlay (790);
}
if (key.isDown(52)) {
_root.doorstate = "open";
}
if (key.isDown(53)) {
_root.collected++;
}
}
var _local1 = 1;
switch (manstate) {
case _local1 :
_root.turbo.gotoAndStop(9);
break;
case 2 :
_root.turbo.gotoAndStop(10);
break;
case 3 :
_root.turbo.gotoAndStop(1);
break;
case 4 :
_root.turbo.gotoAndStop(2);
break;
case 5 :
_root.turbo.gotoAndStop(5);
break;
case 6 :
_root.turbo.gotoAndStop(6);
break;
case 7 :
_root.turbo.gotoAndStop(3);
break;
case 8 :
_root.turbo.gotoAndStop(4);
break;
case 9 :
_root.turbo.gotoAndStop(7);
break;
case 10 :
_root.turbo.gotoAndStop(8);
break;
default :
_root.turbo.gotoAndStop(9);
}
if (520 < _root.turbo._x) {
if ((_root.screen == 5) || (_root.screen == 15)) {
_root.turbo._x = 520;
}
}
if (600 < _root.turbo._x) {
if (((_root.screen == 5) || (_root.screen == 10)) || (root.screen == 15)) {
_root.turbo._x = 600;
} else {
_root.entryheight = _root.turbo._y;
_root.lastentry = "l";
_root.removeBaddies();
_root.turbo._x = 5;
_root.screen++;
_root.nextFrame();
}
}
if (_root.turbo._x < 5) {
if (((_root.screen == 1) || (_root.screen == 6)) || (_root.screen == 11)) {
_root.turbo._x = 5;
} else {
_root.lastentry = "r";
_root.entryheight = _root.turbo._y;
_root.removeBaddies();
_root.turbo._x = 595;
_root.screen--;
_root.prevFrame();
}
}
}
function hittingMe(myL, myR, myT, myB, myC, boxL, boxR, boxT, boxB, boxC, platnum) {
if ((platnum == 8) || (platnum == 10)) {
}
if (((myR >= boxL) && (boxR >= myR)) || ((boxR >= myL) && (myL >= boxL))) {
if ((myB < boxT) && ((myB + ymov) >= boxT)) {
return(1);
}
if ((boxB < myT) && (boxB >= (myT + ymov))) {
return(2);
}
if ((boxT < myB) && (myT < boxB)) {
if (myC < boxC) {
return(3);
}
return(4);
}
return(0);
}
return(0);
}
function stopWalking() {
isWalking = false;
}
function walkRight() {
_root.turbo._x = _root.turbo._x + _root.walkIncrement;
isWalking = true;
}
function walkLeft() {
_root.turbo._x = _root.turbo._x - _root.walkIncrement;
isWalking = true;
}
function jump(thisJumpHeight) {
_root.playSound("boing");
canJump = -1;
ymov = thisJumpHeight;
}
Frame 2
factor = _root.getBytesLoaded() / _root.getBytesTotal();
perLoaded = Math.floor(factor * 100) + "% loaded";
if (factor >= 1) {
_root.gotoAndStop("splash");
}
Frame 3
_root.gotoAndPlay("loader");
Frame 9
function buildPlatforms(thisScreen) {
f = 0;
while (platformArray.length >= f) {
if (platformArray[f].screen == thisScreen) {
duplicateMovieClip (_root[platformArray[f].ptype], "floor" + clipLevel, clipLevel);
var thisClip = _root["floor" + clipLevel];
thisClip.id = f;
thisClip._x = platformArray[f].x + (platformArray[f].pwidth / 2);
thisClip._y = platformArray[f].y + (platformArray[f].pheight / 2);
thisClip._height = platformArray[f].pheight;
thisClip._width = platformArray[f].pwidth;
platformArray[f].mclip = thisClip;
if (platformArray[f].visible == true) {
thisClip._visible = true;
} else {
thisClip._visible = false;
}
clipLevel++;
}
f++;
}
}
function buildTokens(thisScreen) {
f = 0;
while (tokenArray.length >= f) {
if ((tokenArray[f].screen == thisScreen) && (tokenArray[f].collected == false)) {
duplicateMovieClip (_root.emptytoken, "token" + clipLevel, clipLevel);
var thisClip = _root["token" + clipLevel];
thisClip.id = f;
thisClip.collected = tokenArray[f].collected;
thisClip._x = tokenArray[f].x;
thisClip._y = tokenArray[f].y;
tokenArray[f].mclip = thisClip;
thisClip._visible = true;
clipLevel++;
}
f++;
}
}
function gotToken(tokenID, token) {
_root.tokenArray[tokenID].collected = true;
}
function levelEnd(thisLevel) {
}
function cleanScreen(full) {
if (full == 1) {
_root.turbo.removeMovieClip();
}
f = 0;
while (platformArray.length >= f) {
if (platformArray[f].mclip != -1) {
platformArray[f].mclip.removeMovieClip();
platformArray[f].mclip = -1;
}
f++;
}
f = 0;
while (tokenArray.length >= f) {
if (tokenArray[f].mclip != -1) {
tokenArray[f].mclip.removeMovieClip();
tokenArray[f].mclip = -1;
}
f++;
}
}
function removeBaddies() {
f = 0;
while (10 >= f) {
baddie = "baddie" + f;
_root[baddie].removeMovieClip();
f++;
}
}
function initialiseLevers() {
leverArray[0] = new Lever("off");
leverArray[1] = new Lever("off");
leverArray[2] = new Lever("off");
leverArray[3] = new Lever("off");
leverArray[4] = new Lever("off");
leverArray[5] = new Lever("off");
}
function initialisePlatforms() {
platformArray[0] = new Platform(-498, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 1);
platformArray[1] = new Platform(466, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 1);
platformArray[2] = new Platform(100, 294, 90, 23, "static", 0, 0, 0, true, false, 1);
platformArray[3] = new Platform(2, 204, 90, 23, "static", 0, 0, 0, true, false, 1);
platformArray[4] = new Platform(100, 114, 90, 23, "static", 0, 0, 0, true, false, 1);
platformArray[5] = new Platform(309, 114, 90, 23, "static", 0, 0, 0, true, false, 1);
platformArray[6] = new Platform(357, 204, 90, 23, "static", 0, 0, 0, true, false, 1);
platformArray[7] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 2);
platformArray[8] = new Platform(187, 294, 495, 18, "long", 0, 0, 0, true, false, 2);
platformArray[9] = new Platform(42, 210, 92, 24, "static", 0, 0, 0, true, false, 2);
platformArray[10] = new Platform(246, 145, 413, 18, "long", 0, 0, 0, true, false, 2);
platformArray[11] = new Platform(37, 69, 92, 24, "hidden", 0, 0, 0, false, false, 2);
platformArray[12] = new Platform(-558, 294, 650, 18, "long", 0, 0, 0, true, false, 3);
platformArray[13] = new Platform(516, 294, 650, 18, "long", 0, 0, 0, true, false, 3);
platformArray[14] = new Platform(264, 287, 90, 23, "moving", 8, 160, 0, true, true, 3);
platformArray[15] = new Platform(-558, 294, 650, 18, "long", 0, 0, 0, true, false, 4);
platformArray[16] = new Platform(516, 294, 650, 18, "long", 0, 0, 0, true, false, 4);
platformArray[17] = new Platform(99, 240, 90, 23, "crumbling", 0, 0, 0, true, false, 4);
platformArray[18] = new Platform(33, 158, 90, 23, "crumbling", 0, 0, 0, true, false, 4);
platformArray[19] = new Platform(305, 158, 90, 23, "crumbling", 0, 0, 0, true, false, 4);
platformArray[20] = new Platform(165, 72, 90, 23, "crumbling", 0, 0, 0, true, false, 4);
platformArray[21] = new Platform(450, 72, 90, 23, "crumbling", 0, 0, 0, true, false, 4);
platformArray[22] = new Platform(407, 225, 92, 24, "crumbling", 0, 0, 0, true, false, 4);
platformArray[23] = new Platform(-46, 294, 92, 24, "static", 0, 0, 0, true, false, 5);
platformArray[24] = new Platform(-46, 294, 92, 24, "static", 0, 0, 0, true, false, 5);
platformArray[25] = new Platform(95, 230, 92, 24, "hidden", 0, 0, 0, false, false, 5);
platformArray[26] = new Platform(224, 169, 92, 24, "static", 0, 0, 0, true, false, 5);
platformArray[27] = new Platform(357, 114, 92, 24, "static", 0, 0, 0, true, false, 5);
platformArray[28] = new Platform(-23, 372, 650, 18, "baseFloor", 0, 0, 0, true, false, 5);
platformArray[100] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 6);
platformArray[101] = new Platform(220, 325, 233, 36, "escalator", 7, 0, 0, true, false, 6);
platformArray[102] = new Platform(136, 234, 92, 24, "static", 0, 0, 0, true, false, 6);
platformArray[103] = new Platform(-12, 187, 92, 24, "crumbling", 0, 0, 0, true, false, 6);
platformArray[104] = new Platform(87, 100, 92, 24, "crumbling", 0, 0, 0, true, false, 6);
platformArray[105] = new Platform(277, 88, 92, 24, "crumbling", 0, 0, 0, true, false, 6);
platformArray[107] = new Platform(444, 187, 92, 24, "crumbling", 0, 0, 0, true, false, 6);
platformArray[34] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 7);
platformArray[35] = new Platform(267, 259, 616, 18, "long", 0, 0, 0, true, false, 7);
platformArray[37] = new Platform(278, 111, 416, 18, "long", 0, 0, 0, true, false, 7);
platformArray[38] = new Platform(135, 179, 92, 24, "crumbling", 0, 0, 0, true, false, 7);
platformArray[39] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 8);
platformArray[40] = new Platform(358, 330, 92, 24, "crumbling", 0, 0, 0, true, false, 8);
platformArray[41] = new Platform(-65, 259, 350, 18, "long", 0, 0, 0, true, false, 8);
platformArray[43] = new Platform(-145, 111, 416, 18, "long", 0, 0, 0, true, false, 8);
platformArray[44] = new Platform(346, 130, 92, 24, "crumbling", 0, 0, 0, true, false, 8);
platformArray[45] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 9);
platformArray[46] = new Platform(384, 333, 92, 24, "crumbling", 0, 0, 0, true, false, 9);
platformArray[47] = new Platform(223, 292, 92, 24, "static", 0, 0, 0, true, false, 9);
platformArray[48] = new Platform(138, 222, 92, 24, "static", 0, 0, 0, true, false, 9);
platformArray[49] = new Platform(337, 187, 265, 18, "long", 0, 0, 0, true, false, 9);
platformArray[50] = new Platform(14, 74, 92, 24, "crumbling", 0, 0, 0, true, false, 9);
platformArray[51] = new Platform(13, 104, 92, 24, "moving", 8, 200, 0, true, false, 9);
platformArray[52] = new Platform(-461, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 10);
platformArray[53] = new Platform(370, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 10);
platformArray[54] = new Platform(234, 356, 92, 24, "moving", 7, 180, 0, true, true, 10);
platformArray[55] = new Platform(278, 278, 92, 24, "crumbling", 0, 0, 0, true, false, 10);
platformArray[56] = new Platform(150, 210, 92, 24, "crumbling", 0, 0, 0, true, false, 10);
platformArray[57] = new Platform(277, 132, 92, 24, "crumbling", 0, 0, 0, true, false, 10);
platformArray[58] = new Platform(428, 84, 92, 24, "static", 0, 0, 0, true, false, 10);
platformArray[59] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 11);
platformArray[60] = new Platform(385, 382, 191, 18, "baseFloor", 0, 0, 0, true, false, 11);
platformArray[61] = new Platform(80, 330, 92, 23, "static", 0, 0, 0, true, false, 11);
platformArray[62] = new Platform(173, 281, 92, 23, "static", 0, 0, 0, true, false, 11);
platformArray[63] = new Platform(278, 330, 92, 23, "hidden", 0, 0, 0, true, false, 11);
platformArray[64] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 12);
platformArray[66] = new Platform(36, 382, 118, 18, "baseFloor", 0, 0, 0, true, false, 12);
platformArray[67] = new Platform(231, 382, 148, 18, "baseFloor", 0, 0, 0, true, false, 12);
platformArray[68] = new Platform(422, 382, 126, 18, "baseFloor", 0, 0, 0, true, false, 12);
platformArray[69] = new Platform(485, 217, 92, 23, "static", 0, 0, 0, true, false, 12);
platformArray[70] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 13);
platformArray[71] = new Platform(2, 294, 92, 23, "static", 0, 0, 0, true, false, 13);
platformArray[72] = new Platform(41, 166, 308, 18, "long", 0, 0, 0, true, false, 13);
platformArray[73] = new Platform(300, 314, 256, 26, "escalator", 7, 0, 0, false, false, 13);
platformArray[74] = new Platform(-23, 382, 650, 18, "baseFloor", 0, 0, 0, true, false, 14);
platformArray[75] = new Platform(160, 295, 92, 23, "hidden", 0, 0, 0, false, false, 14);
platformArray[76] = new Platform(269, 215, 92, 23, "static", 0, 0, 0, true, false, 14);
platformArray[77] = new Platform(400, 165, 92, 23, "static", 0, 0, 0, true, false, 14);
platformArray[78] = new Platform(531, 121, 70, 18, "long", 0, 0, 0, true, false, 14);
platformArray[79] = new Platform(574, 213, 39, 168, "rock", 0, 0, 0, true, false, 14);
platformArray[80] = new Platform(44, 215, 92, 23, "static", 0, 0, 0, true, false, 14);
platformArray[81] = new Platform(-209, 382, 353, 18, "baseFloor", 0, 0, 0, true, false, 15);
platformArray[82] = new Platform(409, 382, 353, 18, "baseFloor", 0, 0, 0, true, false, 15);
platformArray[83] = new Platform(106, 291, 92, 23, "static", 0, 0, 0, true, false, 15);
platformArray[84] = new Platform(131, 191, 92, 23, "crumbling", 0, 0, 0, true, false, 15);
platformArray[85] = new Platform(182, 108, 92, 23, "crumbling", 0, 0, 0, true, false, 15);
platformArray[86] = new Platform(-25, 223, 40, 168, "rock", 0, 0, 0, true, false, 15);
}
function initialiseTokens() {
tokenArray[0] = new token(49, 39, 2, 1);
tokenArray[1] = new token(393, 92, 5, 1);
tokenArray[2] = new token(138, 80, 8, 2);
tokenArray[3] = new token(58, 45, 9, 2);
tokenArray[4] = new token(214, 322, 11, 3);
tokenArray[5] = new token(531, 101, 14, 3);
}
function lever(state) {
this.state = state;
this.mclip = -1;
}
function token(x, y, screen, level) {
this.x = x;
this.y = y;
this.screen = screen;
this.level = level;
this.collected = false;
this.mclip = -1;
}
function Platform(x, y, pwidth, pheight, ptype, speed, xdist, ydist, visible, moving, screen) {
this.x = x;
this.y = y;
this.pheight = pheight;
this.pwidth = pwidth;
this.ptype = ptype;
this.speed = speed;
this.xdist = xdist;
this.ydist = ydist;
this.visible = visible;
this.mclip = -1;
this.moving = moving;
this.screen = screen;
}
function initSounds() {
gameSound = true;
soundFade = 0;
fadeSoundAmount = 2;
gameMaxVolume = 70;
globalSounds = new Sound();
soundExitOpen = new Sound(_root.sounds);
soundExitOpen.attachSound("sound_exitOpen");
soundBoingSound = new Sound(_root.sounds);
soundBoingSound.attachSound("sound_jump");
soundPickupCash = new Sound(_root.sounds);
soundPickupCash.attachSound("sound_pickUpCash");
soundLevelIn = new Sound(_root.sounds);
soundLevelIn.attachSound("sound_levelIn");
soundGongSound = new Sound(_root.sounds);
soundGongSound.attachSound("sound_gongSound");
soundIntroMusic = new Sound(_root.sounds);
soundIntroMusic.attachSound("sound_introMusic");
soundLaserSound = new Sound(_root.sounds);
soundLaserSound.attachSound("sound_laserSound");
soundBackgroundLoop = new Sound(_root.sounds);
soundBackgroundLoop.attachSound("sound_backgroundLoop");
soundBackgroundLoopFaster = new Sound(_root.sounds);
soundBackgroundLoopFaster.attachSound("sound_backgroundLoopFaster");
soundConveyorBelt = new Sound(_root.sounds);
soundConveyorBelt.attachSound("sound_conveyorBelt");
soundEasttheme = new Sound(_root.sounds);
soundEasttheme.attachSound("sound_eastenderstheme");
soundFoolstheme = new Sound(_root.sounds);
soundFoolstheme.attachSound("sound_foolstheme");
soundFoolslose = new Sound(_root.sounds);
soundFoolslose.attachSound("sound_foolslose");
soundFoolswin = new Sound(_root.sounds);
soundFoolswin.attachSound("sound_foolswin");
soundR1lose = new Sound(_root.sounds);
soundR1lose.attachSound("sound_r1lose");
soundR1theme = new Sound(_root.sounds);
soundR1theme.attachSound("sound_r1theme");
soundR1win = new Sound(_root.sounds);
soundR1win.attachSound("sound_r1win");
soundStarstheme = new Sound(_root.sounds);
soundStarstheme.attachSound("sound_starstheme");
soundStarslose = new Sound(_root.sounds);
soundStarslose.attachSound("sound_starslose");
soundStarswin = new Sound(_root.sounds);
soundStarswin.attachSound("sound_starswin");
soundEastlose = new Sound(_root.sounds);
sondEastlose.attachSound("sound_eastlose");
soundEastwin = new Sound(_root.sounds);
soundEastwin.attachSound("sound_eastwin");
soundZane3 = new Sound(_root.sounds);
soundZane3.attachSound("sound_zane3");
soundClickswitch = new Sound(_root.sounds);
soundClickswitch.attachSound("sound_switch");
soundCollectvideo = new Sound(_root.sounds);
soundCollectvideo.attachSound("sound_collectvideo");
soundDying = new Sound(_root.sounds);
soundDying.attachSound("sound_dying");
soundHole = new Sound(_root.sounds);
soundHole.attachSound("sound_hole");
soundEndgame = new Sound(_root.sounds);
soundEndgame.attachSound("sound_endgame");
soundLiftclose = new Sound(_root.sounds);
soundLiftclose.attachSound("sound_liftclose");
}
function soundOff() {
sounds.setVolume(0);
stopSounds();
gameSound = false;
}
function soundOn() {
stopSounds();
gameSound = true;
if (_root.gameLevel == 1) {
if (_root.screen == 4) {
_root.playSound("backgroundStars");
} else {
_root.playSound("backgroundFools");
}
} else if (_root.gameLevel == 2) {
_root.playSound("backgroundEast");
} else if (_root.gameLevel == 3) {
_root.playSound("backgroundR1");
}
}
function playSound(soundID) {
if (gameSound) {
var _local1 = "exitopen";
switch (soundID) {
case _local1 :
_root.soundExitOpen.start();
return;
case "boing" :
_root.soundBoingSound.start();
return;
case "pickupcash" :
_root.soundPickupCash.start();
return;
case "levelin" :
_root.soundLevelIn.setVolume(120);
_root.soundLevelIn.start();
return;
case "gong" :
_root.soundGongSound.start();
return;
case "intro" :
_root.soundIntroMusic.start();
return;
case "laser" :
_root.soundLaserSound.start();
return;
case "conveyor" :
_root.soundConveyorBelt.start(0, 9999);
return;
case "backgroundEast" :
_root.soundEasttheme.start(0, 9999);
return;
case "backgroundFools" :
_root.soundFoolstheme.start(0, 9999);
return;
case "backgroundStars" :
_root.soundStarstheme.start(0, 9999);
return;
case "soundR1lose" :
_root.soundR1lose.start();
return;
case "soundR1win" :
_root.soundR1win.start();
return;
case "backgroundR1" :
_root.soundR1theme.start(0, 9999);
return;
case "eastwin" :
_root.soundEastwin.start();
return;
case "eastlose" :
_root.soundEastlose.start();
return;
case "starswin" :
_root.soundStarswin.start();
return;
case "starsLose" :
_root.soundStarslose.start();
return;
case "lift3" :
_root.soundZane3.start(0, 9999);
return;
case "clickswitch" :
_root.soundClickswitch.start();
return;
case "Collectvideo" :
_root.soundCollectvideo.start();
return;
case "dying" :
_root.soundDying.start();
return;
case "hole" :
_root.soundHole.start();
return;
case "endgame" :
_root.soundEndgame.start();
return;
case "closelift" :
_root.soundLiftclose.start();
}
}
}
function stopSound(soundID) {
if (gameSound) {
var _local1 = "exitopen";
switch (soundID) {
case _local1 :
_root.soundExitOpen.stop("sound_soundExitOpen");
return;
case "boing" :
_root.soundBoingSound.stop("sound_soundBoingSound");
return;
case "pickupcash" :
_root.soundPickupCash.stop("sound_soundPickupCash");
return;
case "levelin" :
_root.soundLevelIn.stop("sound_soundLevelIn");
return;
case "gong" :
_root.soundGongSound.stop("sound_soundGongSound");
return;
case "intro" :
_root.soundIntroMusic.stop("sound_soundIntroMusic");
return;
case "laser" :
_root.soundLaserSound.stop("sound_soundLaserSound");
return;
case "conveyor" :
_root.soundConveyorBelt.stop("sound_conveyorBelt");
return;
case "backgroundEast" :
_root.soundEasttheme.stop("sound_eastenderstheme");
return;
case "backgroundFools" :
_root.soundFoolstheme.stop("sound_foolstheme");
return;
case "backgroundStars" :
_root.soundStarstheme.stop("sound_starstheme");
return;
case "backgroundR1" :
_root.soundR1theme.stop("sound_r1theme");
return;
case "eastwin" :
_root.soundEastwin.stop("sound_eastwin");
return;
case "eastlose" :
_root.soundEastlose.stop("sound_eastlose");
return;
case "starswin" :
_root.soundStarswin.stop("sound_starswin");
return;
case "starsLose" :
_root.soundStarslose.stop("sound_starslose");
return;
case "lift3" :
_root.soundZane3.stop("sound_zane3");
}
}
}
function stopSounds() {
globalSounds.stop();
}
function addToken(tokenName) {
_root.coinsCollected = _root.coinsCollected + 1;
_root.playsound("pickupcash");
hit = true;
if (tokenName.screen == 1) {
thisArray = coinArray1;
} else if (tokenName.screen == 2) {
thisArray = coinArray2;
} else if (tokenName.screen == 3) {
thisArray = coinArray3;
} else if (tokenName.screen == 4) {
thisArray = coinArray4;
} else if (tokenName.screen == 5) {
thisArray = coinArray5;
}
_root.thisArray[tokenName.id][0] = "false";
tokenName.gotoAndPlay(2);
}
function platformBehavior(type, platformID) {
var _local1 = "static";
switch (type) {
case _local1 :
return;
case "hidden" :
thisArrayPlat = platformArray[platformID.id];
if (thisArrayPlat.visible == true) {
platformID._alpha = 70;
platformID.visible = true;
} else {
platformID._visible = false;
}
return;
case "crumbling" :
if ((_root.canJump == platformID.id) && (platformID.visible == true)) {
if (!platformID.crumblestart) {
_root.playsound("crumble");
platformID.gotoAndPlay(2);
platformID.crumblestart = true;
}
}
return;
case "moving" :
thisArrayPlat = platformArray[platformID.id];
if (thisArrayPlat.moving == true) {
platformID.isMoving = true;
}
if (platformID.isMoving == true) {
if (_root.canJump == platformID.id) {
if (0 < thisArrayPlat.xdist) {
_root.turbo._x = _root.turbo._x + thisArrayPlat.speed;
}
if (0 < thisArrayPlat.ydist) {
_root.turbo._y = _root.turbo._y + thisArrayPlat.speed;
}
}
if (0 < thisArrayPlat.xdist) {
newx = platformID._x + thisArrayPlat.speed;
leftX = (thisArrayPlat.x - thisArrayPlat.xdist) + (thisArrayPlat.pwidth / 2);
rightX = (thisArrayPlat.x + thisArrayPlat.xdist) + (thisArrayPlat.pwidth / 2);
platformID._x = newx;
if ((platformID._x < leftX) || (rightX < platformID._x)) {
thisArrayPlat.speed = -thisArrayPlat.speed;
}
}
if (0 < thisArrayPlat.ydist) {
platformID.thisMov = platformID.thisMov + platformID.speed;
platformID._y = platformID.startX + platformID.thisMov;
if ((platformID.ydist < platformID.thisMov) || (platformID.thisMov < 0)) {
platformID.speed = -platformID.speed;
}
}
}
return;
case "escalator" :
thisArrayPlat = platformArray[platformID.id];
if (thisArrayPlat.visible != true) {
break;
}
platformID.visible = true;
_root.playSound("conveyor");
if (_root.canJump != platformID.id) {
break;
}
if (platformID.direction == 1) {
_root.turbo._x = _root.turbo._x + _root.platformArray[platformID.id].speed;
_root.turbo.isWalking = true;
} else {
_root.turbo._x = _root.turbo._x - _root.platformArray[platformID.id].speed;
_root.turbo.isWalking = true;
}
}
}
function leverTest(lever, platform) {
if (_level0.turbo.hitTest(lever)) {
_root.playSound("clickswitch");
arrayLever = lever.levernum;
_root.leverArray[arrayLever].state = "On";
lever.gotoAndPlay("on");
if (platformArray[platform].screen >= 0) {
platType = platformArray[platform].ptype;
var _local1 = "moving";
switch (platType) {
case _local1 :
platformArray[platform].moving = true;
break;
case "hidden" :
if (platformArray[platform].visible == true) {
platformArray[platform].visible = false;
} else {
platformArray[platform].visible = true;
}
break;
case "escalator" :
if (platformArray[platform].visible == true) {
platformArray[platform].visible = false;
} else {
platformArray[platform].visible = true;
}
}
lever.hit = true;
lever.pressed = true;
}
}
}
function gotoGameLevel(level) {
if (level == 1) {
gotoAndPlay (26);
} else if (level == 2) {
gotoAndPlay (791);
} else {
gotoAndPlay (799);
}
}
function gotoInstruct() {
gotoAndStop (25);
}
developer = false;
devLevel = 2;
if (developer == true) {
if (devLevel == 1) {
walkIncrement = 7.7;
standingHeight = 50;
crouchingHeight = 30;
minXmov = 0.75;
maxXmov = 12;
groundWalkIncrement = 3.7;
airWalkIncrement = 0.85;
jumpHeight = -20;
windResistance = 0.72;
gravity = 2;
} else {
walkIncrement = 10.7;
standingHeight = 50;
crouchingHeight = 30;
minXmov = 0.75;
maxXmov = 12;
groundWalkIncrement = 3.7;
airWalkIncrement = 0.85;
jumpHeight = -29;
windResistance = 0.72;
gravity = 2;
}
if (devLevel == 3) {
shrunken = true;
} else {
shrunken = false;
}
lives = 99;
_root.txtDev = "developer";
} else {
_root.txtDev = "";
walkIncrement = 7.7;
standingHeight = 50;
crouchingHeight = 30;
minXmov = 0.75;
maxXmov = 12;
groundWalkIncrement = 3.7;
airWalkIncrement = 0.85;
jumpHeight = -20;
windResistance = 0.72;
gravity = 2;
lives = 6;
}
music = true;
startTime = 0;
runningTimer = 0;
finishtime = 0;
collected = 0;
cliplevel = 0;
gameLevel = 2;
exit = "disable";
doorstate = "closed";
lastentry = "l";
entryheight = 385;
dropped = false;
txtExitOpen = "";
var platformArray = new Array();
var tokenArray = new Array();
var leverArray = new Array();
initialisePlatforms();
initialiseTokens();
initialiseLevers();
_root.initsounds();
_root.sentmsg = false;
fscommand ("allowscale", "false");
stop();
Frame 25
stop();
Frame 26
_root.gameLevel = 1;
screen = 1;
_root.entryheight = 370;
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 212 MovieClip "banner" in Frame 26
onClipEvent (load) {
dropped = false;
if (_root.gamelevel == 1) {
videosNeeded = 2;
} else if (_root.gamelevel == 2) {
videosNeeded = 4;
} else {
videosNeeded = 6;
}
}
onClipEvent (enterFrame) {
if ((_root.scorePanel.txtCoins == videosNeeded) && (dropped == false)) {
this.dropped = true;
_root.banner.gotoAndPlay("open");
_root.doorstate = "open";
}
}
Instance of Symbol 215 MovieClip "long" in Frame 26
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 218 MovieClip "moving" in Frame 26
onClipEvent (load) {
platformType = "moving";
isMoving = false;
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "static" in Frame 26
onClipEvent (load) {
platformType = "static";
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "hidden" in Frame 26
onClipEvent (load) {
platformType = "hidden";
visible = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 224 MovieClip "crumbling" in Frame 26
onClipEvent (load) {
platformType = "crumbling";
visible = true;
crumblestart = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 228 MovieClip "emptyToken" in Frame 26
onClipEvent (load) {
hit = false;
collected = false;
this._visible = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.turbo) && (hit == false)) {
_root.gotToken(this.id, this);
this.hit = true;
this._visible = false;
_root.collected++;
_root.playSound("Collectvideo");
this.removeMovieClip();
}
}
Instance of Symbol 230 MovieClip "baseFloor" in Frame 26
onClipEvent (load) {
platformType = "static";
visible = true;
this._alpha = 0;
}
Instance of Symbol 187 MovieClip "scorePanel" in Frame 26
onClipEvent (enterFrame) {
_root.scorePanel.txtTimer = math.floor((getTimer() - _root.startTime) / 1000);
_root.scorePanel.txtCoins = _root.collected;
}
Instance of Symbol 233 MovieClip in Frame 26
onClipEvent (load) {
_root.attachMovie("turbo_whole", "turbo", 10000);
if (382 < _root.entryheight) {
_root.entryheight = 382;
}
if (_root.lastentry == "l") {
_root.turbo._x = 15;
_root.turbo._y = _root.entryheight;
} else {
_root.turbo._x = 575;
_root.turbo._y = _root.entryheight;
_root.turbo.gotoAndStop(10);
}
this._xscale;
_root.initialiseMan();
}
onClipEvent (enterFrame) {
_root.checkMan();
}
Instance of Symbol 245 MovieClip in Frame 26
/* no clip actions */
Frame 27
screen = 2;
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
_root.turbo.canJump = 99;
stop();
Instance of Symbol 250 MovieClip "lever0" in Frame 27
onClipEvent (load) {
hit = false;
levernum = 0;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 25);
}
}
Instance of Symbol 253 MovieClip in Frame 27
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
hit = true;
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
_root.deathsound = "hole";
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen;
_root.gotoAndPlay("playerDie");
}
}
}
}
Instance of Symbol 261 MovieClip "baddie1" in Frame 27
onClipEvent (load) {
visible = true;
attachedTo = 8;
speed = 4;
move = speed;
this.swapDepths(9998);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen;
_root.gotoAndPlay("playerDie");
}
}
}
}
Instance of Symbol 261 MovieClip "baddie2" in Frame 27
onClipEvent (load) {
visible = true;
attachedTo = 10;
speed = 6;
move = speed;
this.swapDepths(9999);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen;
_root.gotoAndPlay("playerDie");
}
}
}
}
Frame 28
screen = 3;
cleanScreen();
buildPlatforms(screen);
if (_root.lastentry == "r") {
if (_root.music) {
_root.soundOff();
_root.soundOn();
}
}
_root.turbo.canJump = 99;
stop();
Frame 29
screen = 4;
cleanScreen();
buildPlatforms(screen);
if (_root.lastentry == "l") {
if (_root.music) {
_root.soundOff();
_root.soundOn();
}
}
_root.turbo.canJump = 99;
stop();
Frame 30
screen = 5;
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
_root.turbo.canJump = 99;
stop();
Instance of Symbol 250 MovieClip "lever1" in Frame 30
onClipEvent (load) {
hit = false;
levernum = 1;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 11);
}
}
Instance of Symbol 288 MovieClip "lift" in Frame 30
onClipEvent (load) {
opened = "no";
}
onClipEvent (enterFrame) {
if (key.isDown(52)) {
_root.doorstate = "open";
}
if (_root.doorstate == "open") {
if (opened == "yes") {
_root.lift.gotoAndStop("doorsOpen");
if (this.hitbox.hitTest(_root.turbo)) {
_root.finishtime = _root.scorePanel.txtTimer;
_root.runningTimer = _root.runningTimer + _root.finishTime;
_root.gotoAndPlay("level1end");
}
} else {
opened = "yes";
_root.lift.gotoAndPlay("doorsOpening");
}
} else {
_root.lift.gotoAndStop("doorsClosed");
}
}
Instance of Symbol 253 MovieClip in Frame 30
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
hit = true;
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
_root.deathsound = "hole";
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen;
_root.gotoAndPlay("playerDie");
}
}
}
}
Frame 31
_root.stopSounds();
var _local1 = "hole";
switch (_root.deathsound) {
case _local1 :
_root.playSound("hole");
break;
case "eastlose" :
_root.playSound("starsLose");
}
_root.cleanScreen(1);
_root.removeBaddies();
stop();
Frame 32
cleanScreen(1);
gotoAndPlay (34);
Frame 33
cleanScreen(1);
gotoAndStop (807);
stop();
Frame 34
_root.stopSounds();
_root.playSound("lift3");
Frame 242
stop();
Frame 333
_root.playSound("closelift");
Frame 376
_root.txtExitOpen = "";
_root.gameLevel = 2;
_root.txtCoins = 0;
_root.doorstate = "closed";
stopAllSounds();
_root.finishTime = 0;
_root.startTime = getTimer();
gotoAndPlay (791);
Frame 378
stop();
Frame 379
_root.stopSounds();
_root.playSound("lift3");
Frame 587
stop();
Frame 613
_root.playSound("closelift");
Frame 787
_root.txtExitOpen = "";
_root.gameLevel = 2;
_root.txtCoins = 0;
_root.doorstate = "closed";
stopAllSounds();
_root.finishTime = 0;
_root.startTime = getTimer();
gotoAndPlay (799);
Frame 788
_root.txtExitOpen = "";
_root.stopSounds();
_root.playSound("endgame");
stop();
stop();
Frame 789
stop();
Frame 790
stop();
Frame 791
_root.gameLevel = 2;
_root.entryheight = 370;
screen = 6;
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 212 MovieClip "banner" in Frame 791
onClipEvent (load) {
dropped = false;
if (_root.gamelevel == 1) {
videosNeeded = 2;
} else if (_root.gamelevel == 2) {
videosNeeded = 4;
} else {
videosNeeded = 6;
}
}
onClipEvent (enterFrame) {
if ((_root.scorePanel.txtCoins == videosNeeded) && (dropped == false)) {
this.dropped = true;
_root.banner.gotoAndPlay("open");
_root.doorstate = "open";
}
}
Instance of Symbol 187 MovieClip "scorePanel" in Frame 791
onClipEvent (enterFrame) {
_root.scorePanel.txtTimer = math.floor((getTimer() - _root.startTime) / 1000);
_root.scorePanel.txtCoins = _root.collected;
}
Instance of Symbol 230 MovieClip "long2" in Frame 791
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 230 MovieClip "baseFloor" in Frame 791
onClipEvent (load) {
platformType = "static";
visible = true;
this._alpha = 0;
}
Instance of Symbol 228 MovieClip "emptyToken" in Frame 791
onClipEvent (load) {
hit = false;
collected = false;
this._visible = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.turbo) && (hit == false)) {
_root.gotToken(this.id, this);
this.hit = true;
this._visible = false;
_root.collected++;
_root.playSound("Collectvideo");
gotToken(this);
this.removeMovieClip();
}
}
Instance of Symbol 215 MovieClip "long" in Frame 791
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 218 MovieClip "moving" in Frame 791
onClipEvent (load) {
platformType = "moving";
isMoving = false;
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "static" in Frame 791
onClipEvent (load) {
platformType = "static";
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "hidden" in Frame 791
onClipEvent (load) {
platformType = "hidden";
visible = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 224 MovieClip "crumbling" in Frame 791
onClipEvent (load) {
platformType = "crumbling";
visible = true;
crumblestart = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 363 MovieClip "escalator" in Frame 791
onClipEvent (load) {
platformType = "escalator";
thisMov = 0;
direction = 1;
this._xscale = -this._xscale;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 233 MovieClip in Frame 791
onClipEvent (load) {
_root.attachMovie("turbo_whole", "turbo", 10000);
if (382 < _root.entryheight) {
_root.entryheight = 382;
}
if (_root.lastentry == "l") {
_root.turbo._x = 15;
_root.turbo._y = _root.entryheight;
} else {
_root.turbo._x = 575;
_root.turbo._y = _root.entryheight;
_root.turbo.gotoAndStop(10);
}
this._xscale;
_root.initialiseMan();
}
onClipEvent (enterFrame) {
_root.checkMan();
}
Instance of Symbol 253 MovieClip in Frame 791
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
_root.deathsound = "hole";
hit = true;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 5;
_root.gotoAndPlay("playerDie2");
}
}
}
Instance of Symbol 253 MovieClip in Frame 791
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
_root.deathsound = "hole";
hit = true;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 5;
_root.gotoAndPlay("playerDie2");
}
}
}
Frame 792
_root.gameLevel = 2;
_root.stopSound("conveyor");
screen = 7;
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 261 MovieClip "baddie1" in Frame 792
onClipEvent (load) {
visible = true;
attachedTo = 37;
speed = 4;
move = speed;
this.swapDepths(9998);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.deathsound = "hole";
_root.cleanScreen(1);
_root.lastLevel = _root.screen - 5;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 5;
_root.gotoAndPlay("playerDie2");
}
}
}
}
Frame 793
_root.gameLevel = 2;
screen = 8;
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 261 MovieClip "baddie1" in Frame 793
onClipEvent (load) {
visible = true;
attachedTo = 41;
speed = 4;
move = speed;
this.swapDepths(9998);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.deathsound = "hole";
_root.cleanScreen(1);
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 5;
_root.gotoAndPlay("playerDie2");
}
}
}
}
Frame 794
_root.gameLevel = 2;
screen = 9;
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
manwidth = _root.turbo._xscale;
stop();
Frame 795
_root.gameLevel = 2;
screen = 10;
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 250 MovieClip "lever2" in Frame 795
onClipEvent (load) {
hit = false;
levernum = 2;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 51);
}
}
Instance of Symbol 288 MovieClip "lift" in Frame 795
onClipEvent (load) {
opened = "no";
}
onClipEvent (enterFrame) {
if (_root.doorstate == "open") {
if (opened == "yes") {
_root.lift.gotoAndStop("doorsOpen");
if (this.hitbox.hitTest(_root.turbo)) {
_root.finishtime = _root.scorePanel.txtTimer;
_root.runningTimer = _root.runningTimer + _root.finishTime;
_root.gotoAndPlay("level2end");
}
} else {
opened = "yes";
_root.lift.gotoAndPlay("doorsOpening");
}
} else {
_root.lift.gotoAndStop("doorsClosed");
}
}
Frame 796
_root.stopSounds();
var _local1 = "hole";
switch (_root.deathsound) {
case _local1 :
_root.playSound("hole");
break;
case "eastlose" :
_root.playSound("starsLose");
}
_root.cleanScreen(1);
_root.removeBaddies();
stop();
Frame 797
cleanScreen(1);
gotoAndPlay (379);
Frame 798
cleanScreen(1);
gotoAndStop (807);
stop();
Frame 799
_root.gameLevel = 3;
screen = 11;
_root.entryheight = 370;
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 393 MovieClip "rock" in Frame 799
onClipEvent (load) {
platformType = "static";
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 230 MovieClip "baseFloor" in Frame 799
onClipEvent (load) {
platformType = "static";
visible = true;
this._alpha = 0;
}
Instance of Symbol 215 MovieClip "long" in Frame 799
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 218 MovieClip "moving" in Frame 799
onClipEvent (load) {
platformType = "moving";
isMoving = false;
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "static" in Frame 799
onClipEvent (load) {
platformType = "static";
visible = true;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 218 MovieClip "hidden" in Frame 799
onClipEvent (load) {
platformType = "hidden";
visible = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 224 MovieClip "crumbling" in Frame 799
onClipEvent (load) {
platformType = "crumbling";
visible = true;
crumblestart = false;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 228 MovieClip "emptyToken" in Frame 799
onClipEvent (load) {
hit = false;
collected = false;
this._visible = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.turbo) && (hit == false)) {
_root.gotToken(this.id, this);
this.hit = true;
this._visible = false;
_root.collected++;
_root.playSound("Collectvideo");
gotToken(this);
this.removeMovieClip();
}
}
Instance of Symbol 363 MovieClip "escalator" in Frame 799
onClipEvent (load) {
platformType = "escalator";
visible = false;
thisMov = 0;
direction = 1;
}
onClipEvent (enterFrame) {
_root.platformBehavior(platformType, this);
}
Instance of Symbol 233 MovieClip in Frame 799
onClipEvent (load) {
_root.attachMovie("turbo_whole", "turbo", 10000);
if (382 < _root.entryheight) {
_root.entryheight = 382;
}
if (_root.lastentry == "l") {
_root.turbo._x = 15;
_root.turbo._y = _root.entryheight;
} else {
_root.turbo._x = 575;
_root.turbo._y = _root.entryheight;
_root.turbo.gotoAndStop(10);
}
this._xscale;
_root.initialiseMan();
}
onClipEvent (enterFrame) {
_root.checkMan();
}
Instance of Symbol 399 MovieClip "banner" in Frame 799
onClipEvent (load) {
dropped = false;
if (_root.gamelevel == 1) {
videosNeeded = 2;
} else if (_root.gamelevel == 2) {
videosNeeded = 4;
} else {
videosNeeded = 6;
}
}
onClipEvent (enterFrame) {
if ((_root.scorePanel.txtCoins == videosNeeded) && (dropped == false)) {
this.dropped = true;
_root.banner.gotoAndPlay("open");
_root.doorstate = "open";
}
}
Instance of Symbol 187 MovieClip "scorePanel" in Frame 799
onClipEvent (enterFrame) {
_root.scorePanel.txtTimer = math.floor((getTimer() - _root.startTime) / 1000);
_root.scorePanel.txtCoins = _root.collected;
}
Instance of Symbol 250 MovieClip "lever3" in Frame 799
onClipEvent (load) {
hit = false;
levernum = 3;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 75);
}
}
Instance of Symbol 261 MovieClip "baddie1" in Frame 799
onClipEvent (load) {
visible = true;
attachedTo = 60;
speed = 5.2;
move = speed;
this.swapDepths(9999);
width = this._xscale;
floor = _root.platformArray[attachedTo].mclip;
this._x = floor._x - (floor._width / 2);
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Instance of Symbol 401 MovieClip "floor1" in Frame 799
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 245 MovieClip in Frame 799
/* no clip actions */
Frame 800
_root.gameLevel = 3;
screen = 12;
_root.stopSound("conveyor");
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 261 MovieClip "baddie3" in Frame 800
onClipEvent (load) {
visible = true;
attachedTo = 68;
speed = 5.2;
move = speed;
this.swapDepths(9997);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Instance of Symbol 261 MovieClip "baddie2" in Frame 800
onClipEvent (load) {
visible = true;
attachedTo = 67;
speed = 5.2;
move = speed;
this.swapDepths(9998);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Instance of Symbol 261 MovieClip "baddie1" in Frame 800
onClipEvent (load) {
visible = true;
attachedTo = 66;
speed = 5.2;
move = speed;
this.swapDepths(9999);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Frame 801
_root.gameLevel = 3;
screen = 13;
cleanScreen();
buildPlatforms(screen);
moysnd = math.random(2);
if (moysnd == 1) {
_root.playSound("soundR1win");
} else {
_root.playSound("soundR1lose");
}
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 253 MovieClip in Frame 801
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
hit = true;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
Instance of Symbol 253 MovieClip in Frame 801
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitbox.hitTest(_root.turbo) && (hit == false)) {
hit = true;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
Instance of Symbol 261 MovieClip "baddie1" in Frame 801
onClipEvent (load) {
visible = true;
attachedTo = 70;
speed = 5.2;
move = speed;
this.swapDepths(9992);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Instance of Symbol 401 MovieClip "floor1" in Frame 801
onClipEvent (load) {
platformType = "static";
visible = true;
}
Instance of Symbol 419 MovieClip "floor13" in Frame 801
onClipEvent (load) {
platformType = "static";
visible = true;
}
Frame 802
_root.gameLevel = 3;
screen = 14;
_root.stopSound("conveyor");
cleanScreen();
buildPlatforms(screen);
buildTokens(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 250 MovieClip "lever5" in Frame 802
onClipEvent (load) {
hit = false;
levernum = 5;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 73);
}
}
Instance of Symbol 250 MovieClip "lever4" in Frame 802
onClipEvent (load) {
hit = false;
levernum = 4;
if (_root.leverArray[levernum].state != "off") {
this.gotoAndPlay("on");
}
}
onClipEvent (enterFrame) {
if (_root.leverArray[levernum].state == "off") {
_root.leverTest(this, 63);
}
}
Instance of Symbol 261 MovieClip "baddie1" in Frame 802
onClipEvent (load) {
visible = true;
attachedTo = 74;
speed = 5.2;
move = speed;
this.swapDepths(9993);
width = this._xscale;
this._x = _root.platformArray[attachedTo].mclip._x;
}
onClipEvent (enterFrame) {
floor = _root.platformArray[attachedTo].mclip;
this._y = (floor._y + (floor._height / 2)) - 8;
platR = floor._x + (floor._width / 2);
platL = floor._x - (floor._width / 2);
if (platR < (move + this._x)) {
this._xscale = -width;
move = -move;
} else if ((move + this._x) < platL) {
this._xscale = width;
move = -move;
}
this._x = this._x + move;
if (_root.developer == false) {
if (this.hitbox.hitTest(_root.turbo) || (this.hitbox2.hitTest(_root.turbo))) {
_root.cleanScreen(1);
_root.lastLevel = _root.screen;
_root.lives = _root.lives - 1;
if (0 >= _root.lives) {
_root.gotoAndPlay("gameEnd");
} else {
_root.lastLevel = _root.screen - 10;
_root.gotoAndPlay("playerDie3");
}
}
}
}
Instance of Symbol 454 MovieClip "floor1" in Frame 802
onClipEvent (load) {
platformType = "static";
visible = true;
}
Frame 803
_root.gameLevel = 3;
screen = 15;
cleanScreen();
buildPlatforms(screen);
manwidth = _root.turbo._xscale;
stop();
Instance of Symbol 288 MovieClip "lift" in Frame 803
onClipEvent (load) {
opened = "no";
}
onClipEvent (enterFrame) {
if (key.isDown(52)) {
_root.doorstate = "open";
}
if (_root.doorstate == "open") {
if (opened == "yes") {
_root.lift.gotoAndStop("doorsOpen");
if (this.hitbox.hitTest(_root.turbo)) {
_root.finishtime = _root.scorePanel.txtTimer;
_root.runningTimer = _root.runningTimer + _root.finishTime;
_root.finishTime = 0;
_root.gotoAndPlay("level3end");
}
} else {
opened = "yes";
_root.lift.gotoAndPlay("doorsOpening");
}
} else {
_root.lift.gotoAndStop("doorsClosed");
}
}
Frame 804
_root.stopSounds();
_root.cleanScreen(1);
_root.removeBaddies();
stop();
Frame 805
cleanScreen(1);
gotoAndPlay (788);
Frame 806
cleanScreen(1);
gotoAndStop (807);
stop();
Frame 807
stopAllSounds();
_root.soundEffects.gotoAndPlay("levelEnd");
stop();
Symbol 21 MovieClip [turbo_whole] Frame 1
stop();
Symbol 21 MovieClip [turbo_whole] Frame 2
stop();
Symbol 21 MovieClip [turbo_whole] Frame 3
stop();
Symbol 21 MovieClip [turbo_whole] Frame 4
stop();
Symbol 21 MovieClip [turbo_whole] Frame 5
stop();
Symbol 21 MovieClip [turbo_whole] Frame 6
stop();
Symbol 21 MovieClip [turbo_whole] Frame 7
stop();
Symbol 21 MovieClip [turbo_whole] Frame 8
stop();
Symbol 21 MovieClip [turbo_whole] Frame 9
stop();
Symbol 21 MovieClip [turbo_whole] Frame 10
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 40
stop();
Symbol 102 Button
on (release) {
gotoAndPlay (60);
}
Symbol 106 Button
on (release) {
_root.startTime = getTimer();
_root.gotoGameLevel(1);
}
Symbol 112 Button
on (release) {
getURL ("http://www.bbc.co.uk/teens/lads/joypad/winstuff/xmas_rules.shtml", "_blank");
}
Symbol 152 Button
on (release) {
getURL ("javascript:openWin();");
}
Symbol 163 Button
on (release) {
getURL ("http://www.bbc.co.uk/privacy/", "_blank");
}
Symbol 168 Button
on (release) {
body = (_root.sendfriendname + "\n\nI am seconds away from winning shed loads of DVDs from the BBC! Can you beat my time in the great Television Centre challenge, and bag the DVDs for yourself?\n\nwww.bbc.co.uk/entertainment/xmas/index.shtml\n\n\nGood Luck\n\n") + _root.sendyourname;
loadVariables ("http://www.bbc.co.uk/cgi-bin/navigation/mailto.pl?GO=1", this, "POST");
_root.sentmsg = true;
}
Symbol 198 MovieClip Frame 59
stop();
Symbol 198 MovieClip Frame 60
stop();
Symbol 198 MovieClip Frame 61
REFERER = "http://www.bbc.co.uk/entertainment/xmas/";
subject = "BBC DVD Competition";
stop();
Instance of Symbol 159 MovieClip "txtSent" in Symbol 198 MovieClip Frame 61
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.sentmsg == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 198 MovieClip Frame 62
stop();
Symbol 198 MovieClip Frame 63
stop();
Symbol 198 MovieClip Frame 64
stop();
Symbol 198 MovieClip Frame 65
stop();
Symbol 203 Button
on (release) {
gotoAndStop (3);
_root.music = false;
}
Symbol 208 Button
on (release) {
gotoAndStop (2);
_root.music = true;
}
Symbol 209 MovieClip Frame 1
if (_root.music) {
gotoAndPlay (2);
} else {
gotoAndPlay (3);
}
Symbol 209 MovieClip Frame 2
if (_root.music) {
_root.soundOn();
} else {
gotoAndPlay (3);
}
stop();
Symbol 209 MovieClip Frame 3
if (_root.music) {
gotoAndPlay (2);
} else {
_root.soundOff();
}
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 25
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 30
visible = false;
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "hitbox" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 255 MovieClip "hitbox" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 284 MovieClip "hitbox" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 288 MovieClip Frame 105
stop();
Symbol 294 Button
on (keyPress "<Space>") {
_root.removeBaddies();
if (_root.music) {
_root.bgmusic.gotoAndPlay("music");
} else {
_root.bgmusic.gotoAndPlay("nomusic");
}
gotoAndPlay(lastLevel +25);
}
Symbol 338 Button
on (keyPress "<Space>") {
gotoAndPlay (267);
}
Symbol 344 MovieClip Frame 36
gotoAndPlay (1);
Symbol 347 Button
on (release) {
_root.gameLevel = 2;
_root.txtCoins = 0;
_root.doorstate = "closed";
stopAllSounds();
_root.finishTime = 0;
_root.startTime = getTimer();
gotoAndPlay (791);
}
Symbol 349 Button
on (keyPress "<Space>") {
gotoAndPlay (612);
}
Symbol 354 Button
on (keyPress "<Space>") {
gotoAndPlay (9);
}
Symbol 357 Button
on (release) {
gotoAndPlay (9);
}
Symbol 358 Button
on (release) {
_root.invisiblocks = true;
_root.gameLevel = 3;
stopAllSounds();
_root.doorstate = "closed";
_root.finishTime = 0;
_root.startTime = getTimer();
gotoAndPlay (799);
}
Symbol 391 Button
on (keyPress "<Space>") {
_root.removeBaddies();
if (_root.music) {
_root.bgmusic.gotoAndPlay("music");
} else {
_root.bgmusic.gotoAndPlay("nomusic");
}
gotoAndPlay(lastLevel +790);
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 25
stop();
Symbol 464 Button
on (keyPress "<Space>") {
_root.removeBaddies();
if (_root.music) {
_root.bgmusic.gotoAndPlay("music");
} else {
_root.bgmusic.gotoAndPlay("nomusic");
}
gotoAndPlay(lastLevel +798);
}