Frame 2
ifFrameLoaded (143) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
loadMovieNum ("Travel-Sick-Music1.swf", 1);
gotoAndPlay (5);
Frame 5
function gotoGameLevel() {
gotoAndPlay (111);
}
function gotoInstruct() {
gotoAndPlay (65);
}
fscommand ("allowscale", "false");
Instance of Symbol 53 MovieClip "dropdown" in Frame 5
onClipEvent (load) {
gotogame = false;
gotoInstruct = false;
}
Frame 64
gotoAndPlay (5);
Frame 80
stop();
Frame 110
gotoAndPlay (5);
Frame 113
unloadMovieNum (1);
loadMovieNum ("Travel-Sick-Music.swf", 1);
Frame 128
stop();
Frame 129
function GameOver() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (143);
}
function GotoNextScene() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (201);
}
function MainCharInit() {
_root.MainChar.Init(-17, 270, 2, 0.4);
}
function deletevars() {
delete PickUpFlute;
delete PickUpSnake;
delete PickUpMelon;
delete PickUpJug;
delete PickUpBooze;
delete PickUpSnakeInJar;
delete SnakeCharmed;
delete ReleasedSnake;
delete PickUpPliers;
delete ManInEcstacy;
delete ManBoozedUP;
delete Item1;
delete Item5;
delete Item10;
delete Item12;
delete Item14;
delete ItemArray;
delete WorldArray;
}
function CreatePlatforms() {
var i = 0;
while (i < PlatformArray.length) {
_root["Platform" + i].Internal_x = PlatformArray[i][0];
_root["Platform" + i].Internal_y = PlatformArray[i][1];
_root["Platform" + i]._x = PlatformArray[i][0];
_root["Platform" + i]._y = PlatformArray[i][1];
_root["Platform" + i].gotoAndStop(PlatformArray[i][2]);
_root["Platform" + i].Platform.gotoAndStop(1);
_root["Platform" + i].Crumbler = PlatformArray[i][3];
_root["Platform" + i].Mover = PlatformArray[i][4];
_root["Platform" + i].Direction = PlatformArray[i][5];
_root["Platform" + i].FirstLimit = PlatformArray[i][6];
_root["Platform" + i].SecondLimit = PlatformArray[i][7];
_root["Platform" + i]._VelX = PlatformArray[i][8];
_root["Platform" + i]._VelY = PlatformArray[i][9];
_root["Platform" + i]._Radius = PlatformArray[i][10];
_root["Platform" + i]._ThetaIncrement = PlatformArray[i][11];
_root["Platform" + i]._Theta = 0;
_root["Platform" + i].active = true;
i++;
}
}
function LoadScreen() {
CreatePlatforms();
MainCharInit();
}
function resetVars() {
PickUpFlute = false;
PickUpSnake = false;
PickUpMelon = false;
PickUpJug = false;
PickUpBooze = false;
PickUpSnakeInJar = false;
SnakeCharmed = false;
ReleasedSnake = false;
PickUpPliers = false;
ManInEcstacy = false;
ManBoozedUP = false;
ItemArray = new Array();
_root.CurrentItem = 1;
Item1 = 5;
Item5 = 3;
Item10 = 2;
Item12 = 6;
Item14 = 4;
}
function CreateWorld() {
_root.Lives = 3;
_root.LivesBox = "Lives : " + _root.Lives;
DoneWorld = true;
_root.MainChar._xscale = 100;
_root.MainChar.Internal_x = 100;
WorldArray = new Array();
WorldArray[1] = new Screen(true, false);
WorldArray[2] = new Screen(false, false);
WorldArray[3] = new Screen(false, false);
WorldArray[4] = new Screen(false, false);
WorldArray[5] = new Screen(false, false);
WorldArray[6] = new Screen(false, false);
WorldArray[7] = new Screen(false, false);
WorldArray[8] = new Screen(false, false);
WorldArray[9] = new Screen(false, false);
WorldArray[10] = new Screen(false, false);
WorldArray[11] = new Screen(false, false);
WorldArray[12] = new Screen(false, false);
WorldArray[13] = new Screen(false, false);
WorldArray[14] = new Screen(false, true);
_root.StartTimer = getTimer();
}
function Screen(Left, Right) {
this.LeftBlocked = Left;
this.RightBlocked = Right;
}
function RemoveStuff() {
var i = 0;
while (i < 8) {
_root["Platform" + i]._y = -200;
_root["Platform" + i].active = false;
_root["Platform" + i].mover = false;
i++;
}
delete PlatFormArray;
}
function CleanUp(Frame) {
RemoveStuff();
_root.gotoAndStop(_currentframe + Frame);
}
1((hacker = 1));
_root._ground = 320;
if (!DoneWorld) {
resetVars();
CreateWorld();
}
FirstFrame = _currentframe - 1;
LoadScreen();
_root.Hole = false;
stop();
Instance of Symbol 92 MovieClip "MoroccoMan" in Frame 129
onClipEvent (load) {
if (_root.ManInEcstacy) {
this.gotoAndStop(148);
} else {
this.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if ((!_root.ManInEcstacy) && (_root.CurrentItem == 6)) {
_root.ManInEcstacy = true;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.Text.BoozeText1 = "Hmmm.......";
_root.Text.BoozeText2 = "Beli....Beli....";
_root.Text.BoozeText3 = "Oooooooooh...";
this.gotoAndPlay(52);
_root.MainChar.AllowControl = false;
}
}
}
Instance of Symbol 107 MovieClip "Item2" in Frame 129
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Instance of Symbol 111 MovieClip "Text" in Frame 129
onClipEvent (load) {
if (!_root.ManInEcstacy) {
this.BoozeText1 = "Women are for children...";
this.BoozeText2 = "Boys are for pleasure...";
this.BoozeText3 = "A watermelon is for ecstasy...";
} else {
this._visible = false;
}
}
Instance of Symbol 125 MovieClip "Platform0" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform1" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform2" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform3" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform4" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform5" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform6" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 125 MovieClip "Platform7" in Frame 129
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 157 MovieClip "MainChar" in Frame 129
onClipEvent (load) {
function CheckOffscreen() {
if (_x < 0) {
if (((_root._currentframe - _root.FirstFrame) != 1) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartLeft = false;
_root.StartRight = true;
Frame = -1;
_root.Cleanup(Frame);
}
} else if (600 < _x) {
if (((_root._currentframe - _root.FirstFrame) != (_root.WorldArray.length - 1)) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartRight = false;
_root.StartLeft = true;
Frame = 1;
_root.Cleanup(Frame);
}
}
}
function CheckMove(number) {
if (((number == -1) && (_x < (0 + (this._width / 1.5)))) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].LeftBlocked)) {
_VelX = 0;
return(false);
}
if (((number == 1) && ((600 - (this._width / 1.5)) < _x)) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].RightBlocked)) {
_VelX = 0;
return(false);
}
return(true);
}
function Init(JumpSpeed, MoveSpeed, Gravity, Friction) {
if (_root.StartLeft) {
this.Internal_x = 25;
this._xscale = 100;
} else if (_root.StartRight) {
this.Internal_x = 575;
this._xscale = -100;
}
this.AllowControl = false;
_root.controller.keyTimer = true;
this.JumpSpeed = JumpSpeed;
this.MoveSpeed = MoveSpeed;
this.Gravity = Gravity;
this.Friction = Friction;
this.up = false;
this.space = false;
this.nextscene = true;
this.Jumping = false;
this.spraying = false;
this.platform = false;
this.CharActive = true;
this.stopped = true;
this.Hit = false;
this.Internal_y = 320;
this._x = this.Internal_X;
this._y = this.Internal_Y;
this._VelX = 0;
this._VelY = 0;
this.InHole = false;
this.waterflagged = true;
}
function CheckHole() {
if ((110 < _x) && (_x < 490)) {
InHole = true;
} else {
InHole = false;
}
}
1((hacker = 1));
EndTime = getTimer();
if (_name == "MainChar") {
}
}
onClipEvent (enterFrame) {
if (CharActive && (_name == "MainChar")) {
DiffTime = getTimer() - EndTime;
DiffTime = DiffTime / 1000;
if (_root.Hole) {
CheckHole();
}
CheckOffscreen();
Internal_X = Internal_X + _VelX;
Internal_Y = Internal_Y + _VelY;
_x = Internal_X;
_y = Internal_y;
if (!Jumping) {
_VelX = _VelX * Friction;
}
if (19 < _VelY) {
_VelY = 19;
}
if ((_root._ground < Internal_y) && (!InHole)) {
Internal_y = _root._ground;
}
if (((-3 < _VelX) && (_VelX < 3)) && (!Jumping)) {
stopped = true;
Running = false;
} else if (((-1 < _VelX) && (_VelX < 1)) && (!Jumping)) {
_VelX = 0;
}
if ((Internal_y < _root._ground) && (!platform)) {
_VelY = _VelY + Gravity;
Jumping = true;
} else if (InHole && (!platform)) {
_VelY = _VelY + (Gravity * DiffTime);
Jumping = true;
this.CharActive = false;
_root.sounds.gotoAndPlay(187);
} else {
_VelY = 0;
Jumping = false;
}
if (AllowControl) {
if (Key.isDown(Key.RIGHT) && (CheckMove(1))) {
if (this.Jumping) {
_VelX = MoveSpeed * DiffTime;
} else {
_VelX = MoveSpeed * DiffTime;
}
Running = true;
stopped = false;
this._xscale = 100;
}
if (Key.isDown(Key.LEFT) && (CheckMove(-1))) {
if (this.Jumping) {
_VelX = (MoveSpeed * -1) * DiffTime;
} else {
_VelX = (MoveSpeed * -1) * DiffTime;
}
Running = true;
stopped = false;
this._xscale = -100;
}
if (Key.isDown(Key.UP) && (!up)) {
if (!Jumping) {
_VelY = JumpSpeed;
platform = false;
Jumping = true;
up = true;
}
}
}
if ((Key.isDown(Key.LEFT) && (Key.isDown(Key.RIGHT))) && (!Jumping)) {
stopped = true;
_velx = 0;
}
EndTime = getTimer();
} else {
this.AllowControl = false;
Internal_Y = Internal_Y + _VelY;
_y = Internal_y;
_VelY = _VelY + Gravity;
if (600 < _y) {
_VelX = 0;
_root.Lives--;
_root.LivesBox = "Lives : " + _root.Lives;
if (0 < _root.Lives) {
_root.MainCharInit();
} else {
_root.GameOver();
}
}
}
}
onClipEvent (keyUp) {
if (_name == "MainChar") {
if (Key.getCode() == 38) {
up = false;
} else if (Key.getCode() == 32) {
space = false;
} else if (((Key.getCode() == 37) || (Key.getCode() == 39)) && (!Jumping)) {
_Velx = 0;
}
}
}
Instance of Symbol 164 MovieClip "controller" in Frame 129
onClipEvent (load) {
function CheckPlatformHits() {
if (!_root.MainChar.platform) {
i = 0;
while (i < _root.PlatformArray.length) {
if ((_root["Platform" + i].CollideStrip.hitTest(_root.MainChar.collideline) && (0 < _root.MainChar._VelY)) && (_root["Platform" + i].active)) {
CurrentPlatform = i;
_root.MainChar.platform = true;
_root.MainChar._VelY = 0;
_root.MainChar.jumping = false;
if (_root["Platform" + i].Crumbler && (_root["Platform" + i].active)) {
_root["Platform" + i].active = false;
_root["Platform" + i].Platform.play();
}
}
i++;
}
} else if (!_root["Platform" + CurrentPlatform].CollideStrip.hitTest(_root.MainChar.collideline)) {
_root.MainChar.platform = false;
_root.MainChar.jumping = true;
} else {
_root.MainChar.Internal_X = _root.MainChar.Internal_X + _root["Platform" + CurrentPlatform]._VelX;
_root.MainChar.Internal_Y = _root.MainChar.Internal_Y + _root["Platform" + CurrentPlatform]._VelY;
}
}
function MovePlatforms() {
var i = 0;
while (i < _root.PlatformArray.length) {
if (_root["Platform" + i].mover) {
if (_root["Platform" + i].Direction == "HORIZONTAL") {
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "VERTICAL") {
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "CIRCULAR") {
_root["Platform" + i]._VelX = _root["Platform" + i]._Radius * Math.cos(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i]._VelY = _root["Platform" + i]._Radius * Math.sin(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i]._Theta = _root["Platform" + i]._Theta + _root["Platform" + i]._ThetaIncrement;
}
}
i++;
}
}
_root.MainCharInit();
KeyTimerCounter = 0;
}
onClipEvent (enterFrame) {
_root.Timer = "Timer : " + Math.floor((getTimer() - _root.StartTimer) / 1000);
CheckPlatformHits();
MovePlatforms();
if (keyTimer) {
if (1 < KeyTimerCounter) {
_root.MainChar.AllowControl = true;
KeyTimerCounter = 0;
keyTimer = false;
}
KeyTimerCounter++;
}
if (swapTimer) {
if (15 < counter) {
_root.swap = false;
swapTimer = false;
counter = 0;
}
counter++;
}
}
Frame 130
LoadScreen();
_root.Hole = false;
Frame 131
LoadScreen();
_root.Hole = false;
Frame 132
PlatformArray = new Array();
PlatformArray[0] = [200, 325, 4, false, false];
PlatformArray[1] = [400, 325, 4, false, false];
LoadScreen();
_root.Hole = true;
Frame 133
LoadScreen();
_root.Hole = false;
Instance of Symbol 107 MovieClip "Item2" in Frame 133
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 134
LoadScreen();
_root.Hole = false;
Frame 135
PlatformArray = new Array();
PlatformArray[0] = [200, 325, 1, false, false];
PlatformArray[1] = [400, 325, 1, false, false];
LoadScreen();
_root.Hole = true;
Frame 136
LoadScreen();
_root.Hole = false;
Instance of Symbol 232 MovieClip "ManInPain" in Frame 136
onClipEvent (load) {
if (_root.ManBoozedUP) {
this.gotoAndStop(88);
} else if ((_root.sounds._currentframe == 1) && (_root.currentItem != 2)) {
_root.sounds.gotoAndPlay(73);
}
}
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (((!_root.ManBoozedUP) && (_root.currentItem == 2)) && (!_root.MainChar.Jumping)) {
_root.ManBoozedUP = true;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
this.gotoAndPlay(2);
_root.MainChar.AllowControl = false;
} else if ((_root.ManBoozedUP && (_root.currentItem == 5)) && (!_root.MainChar.Jumping)) {
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.MainChar.AllowControl = false;
_root.GotoNextScene();
} else if (((!_root.ManBoozedUP) && (!_root.MainChar.Jumping)) && (_root.currentItem == 5)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "Wheres that anaesthetic???";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
} else if (((!_root.ManBoozedUP) && (!_root.MainChar.Jumping)) && (_root.sounds._currentframe == 1)) {
_root.sounds.gotoAndPlay(31);
}
}
}
Frame 137
PlatformArray = new Array();
PlatformArray[0] = [200, 325, 1, false, false];
PlatformArray[1] = [400, 325, 1, false, false];
PlatformArray[2] = [375, 100, 1, false, false];
PlatformArray[3] = [275, 160, 1, false, false];
LoadScreen();
_root.Hole = true;
Instance of Symbol 234 MovieClip "snake" in Frame 137
onClipEvent (load) {
if (!_root.SnakeCharmed) {
this._x = 380;
this._y = 60;
} else if (_root.SnakeCharmed && (!_root.pickUpSnakeInJar)) {
this.gotoAndStop(100);
} else if (_root.pickUpSnakeInJar) {
_x = -100;
_y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((((!_root.SnakeCharmed) && (!_root.MainChar.Jumping)) && (_root.CurrentItem == 4)) && (Key.isDown(Key.SPACE))) {
_root.Snake.gotoAndPlay(16);
_root.CurrentItem = 1;
_root.SnakeCharmed = true;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.MainChar.Spraying = true;
_root.MainChar.AllowControl = false;
} else if (((_root.MainChar.hitTest(this) && (_root.CurrentItem == 3)) && (_root.SnakeCharmed)) && (Key.isDown(Key.SPACE))) {
_root.Sounds.gotoAndPlay(294);
_root.CurrentItem = 7;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSnakeInJar = true;
this._visible = false;
}
}
Frame 138
PlatformArray = new Array();
PlatformArray[0] = [200, 325, 3, true, false];
PlatformArray[1] = [375, 325, 3, true, false];
PlatformArray[2] = [200, 245, 3, true, false];
PlatformArray[3] = [375, 245, 3, true, false];
PlatformArray[4] = [295, 175, 3, true, false];
PlatformArray[5] = [295, 115, 3, true, false];
LoadScreen();
_root.Hole = true;
Instance of Symbol 107 MovieClip "Item2" in Frame 138
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 139
LoadScreen();
_root.Hole = false;
Frame 140
PlatformArray = new Array();
PlatformArray[0] = [100, 150, 1, false, false];
PlatformArray[1] = [250, 200, 2, false, false];
PlatformArray[2] = [400, 260, 1, false, false];
PlatformArray[3] = [400, 310, 1, false, false];
LoadScreen();
_root.Hole = false;
Instance of Symbol 246 MovieClip "Goat" in Frame 140
onClipEvent (load) {
if ((!_root.PickUpMelon) && (!_root.ReleasedSnake)) {
this._x = 240;
this._y = 132;
charge = false;
} else {
this._x = -100;
this._y = -100;
}
}
onClipEvent (enterFrame) {
if (((((this._x < _root.MainChar._x) && (_root.MainChar._x < 380)) && (_root.MainChar._y < 230)) && (!charge)) && (!_root.ReleasedSnake)) {
if (_root.CurrentItem != 7) {
charge = true;
this.gotoAndPlay(2);
} else {
_root.ReleasedSnake = true;
this.gotoAndPlay(19);
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
}
} else if (!_root.ReleasedSnake) {
if (_root.MainChar._y < 132) {
this._y = _root.MainChar._y;
} else {
this._y = 132;
}
if (_root.MainChar._x < this._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
}
Instance of Symbol 107 MovieClip "Item2" in Frame 140
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 141
LoadScreen();
_root.Hole = false;
Frame 142
LoadScreen();
_root.Hole = false;
stop();
Instance of Symbol 107 MovieClip "Item2" in Frame 142
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 143
play();
Frame 200
stop();
Frame 201
play();
Frame 259
stop();
Frame 277
stop();
Frame 278
function GameOver() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (292);
}
function GotoNextScene() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (350);
}
function MainCharInit() {
_root.MainChar.Init(-17, 270, 2, 0.4);
}
function RemoveStuff() {
var i = 0;
while (i < 8) {
_root["Platform" + i]._y = -200;
_root["Platform" + i].active = false;
_root["Platform" + i].mover = false;
i++;
}
delete _root.PlatFormArray;
}
function deletevars() {
delete DoneIntro;
delete PickUpPoison;
delete PickUpSyringe;
delete PickUpBooze;
delete PickUpCat;
delete PickUpHelmet;
delete PickUpHorns;
delete PickUpVikingHat;
delete PickUpMatchBox;
delete PickedUpDeadCat;
delete CatDead;
delete CatSetDown;
delete CatOnFire;
delete Item3;
delete Item6;
delete Item8;
delete Item10;
delete Item12;
delete Item14;
delete ItemArray;
delete WorldArray;
}
function CreatePlatforms() {
var i = 0;
while (i < PlatformArray.length) {
_root["Platform" + i].Internal_x = PlatformArray[i][0];
_root["Platform" + i].Internal_y = PlatformArray[i][1];
_root["Platform" + i]._x = PlatformArray[i][0];
_root["Platform" + i]._y = PlatformArray[i][1];
_root["Platform" + i].gotoAndStop(PlatformArray[i][2]);
_root["Platform" + i].Platform.gotoAndStop(1);
_root["Platform" + i].Crumbler = PlatformArray[i][3];
_root["Platform" + i].Mover = PlatformArray[i][4];
_root["Platform" + i].Direction = PlatformArray[i][5];
_root["Platform" + i].FirstLimit = PlatformArray[i][6];
_root["Platform" + i].SecondLimit = PlatformArray[i][7];
_root["Platform" + i]._VelX = PlatformArray[i][8];
_root["Platform" + i]._VelY = PlatformArray[i][9];
_root["Platform" + i]._Radius = PlatformArray[i][10];
_root["Platform" + i]._ThetaIncrement = PlatformArray[i][11];
_root["Platform" + i]._Theta = 0;
_root["Platform" + i].active = true;
i++;
}
}
function LoadScreen() {
CreatePlatforms();
MainCharInit();
}
function resetvars() {
DoneIntro = false;
PickUpPoison = false;
PickUpSyringe = false;
PickUpBooze = false;
PickUpCat = false;
PickUpHelmet = false;
PickUpHorns = false;
PickUpVikingHat = false;
PickUpMatchBox = false;
PickedUpDeadCat = false;
CatDead = false;
CatSetDown = false;
CatOnFire = false;
Item3 = 3;
Item6 = 6;
Item8 = 2;
Item10 = 7;
Item12 = 4;
Item14 = 5;
}
function CreateWorld() {
_root.LivesBox = "Lives : " + _root.Lives;
DoneWorld = true;
ItemArray = new Array();
_root.CurrentItem = 1;
_root.MainChar._xscale = 100;
_root.MainChar.Internal_x = 100;
WorldArray = new Array();
WorldArray[1] = new Screen(true, false);
WorldArray[2] = new Screen(false, false);
WorldArray[3] = new Screen(false, false);
WorldArray[4] = new Screen(false, false);
WorldArray[5] = new Screen(false, false);
WorldArray[6] = new Screen(false, false);
WorldArray[7] = new Screen(false, false);
WorldArray[8] = new Screen(false, false);
WorldArray[9] = new Screen(false, false);
WorldArray[10] = new Screen(false, false);
WorldArray[11] = new Screen(false, false);
WorldArray[12] = new Screen(false, false);
WorldArray[13] = new Screen(false, false);
WorldArray[14] = new Screen(false, true);
_root.StartTimer = getTimer();
}
function Screen(Left, Right) {
this.LeftBlocked = Left;
this.RightBlocked = Right;
}
function CleanUp(Frame) {
var i = 0;
while (i < _root.PlatFormArray.length) {
_root["Platform" + i]._y = -200;
_root["Platform" + i].active = false;
_root["Platform" + i].mover = false;
i++;
}
delete _root.PlatFormArray;
_root.gotoAndStop(_currentframe + Frame);
}
1((hacker = 1));
_root._ground = 320;
if (!DoneWorld) {
resetvars();
CreateWorld();
}
FirstFrame = _currentframe - 1;
LoadScreen();
_root.Hole = false;
stop();
Instance of Symbol 312 MovieClip "Vet" in Frame 278
onClipEvent (load) {
if (_root.CatDead) {
this.gotoAndStop(86);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip "DeadCat" in Frame 278
onClipEvent (enterFrame) {
if ((!_root.PickedUpDeadCat) && (_root.CatDead)) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 2) {
_root.PickedUpDeadCat = true;
_root.CurrentItem = 9;
_root.Box.gotoAndStop(_root.CurrentItem);
this._visible = false;
this._y = -100;
} else if (!_root.MainChar.Jumping) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "And carry it with my bare hands??";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
if (_root.sounds._currentframe == 1) {
_root.sounds.gotoAndPlay(542);
}
}
}
}
}
onClipEvent (load) {
if ((!_root.PickedUpDeadCat) && (_root.CatDead)) {
_root.DeadCat._x = 465;
_root.DeadCat._y = 350;
}
}
Instance of Symbol 322 MovieClip "Platform0" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 322 MovieClip "Platform1" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 322 MovieClip "Platform2" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 322 MovieClip "Platform3" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 323 MovieClip "Platform4" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 323 MovieClip "Platform5" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 323 MovieClip "Platform6" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 323 MovieClip "Platform7" in Frame 278
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 324 MovieClip "MainChar" in Frame 278
onClipEvent (load) {
function CheckOffscreen() {
if (_x < 0) {
if (((_root._currentframe - _root.FirstFrame) != 1) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartLeft = false;
_root.StartRight = true;
Frame = -1;
_root.Cleanup(Frame);
}
} else if (600 < _x) {
if (((_root._currentframe - _root.FirstFrame) != (_root.WorldArray.length - 1)) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartRight = false;
_root.StartLeft = true;
Frame = 1;
_root.Cleanup(Frame);
}
}
}
function CheckMove(number) {
if (((number == -1) && (_x < (0 + (this._width / 1.5)))) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].LeftBlocked)) {
_VelX = 0;
return(false);
}
if (((number == 1) && ((600 - (this._width / 1.5)) < _x)) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].RightBlocked)) {
_VelX = 0;
return(false);
}
return(true);
}
function Init(JumpSpeed, MoveSpeed, Gravity, Friction) {
if (_root.StartLeft) {
this.Internal_x = 25;
this._xscale = 100;
} else if (_root.StartRight) {
this.Internal_x = 575;
this._xscale = -100;
}
_root.controller.keyTimer = true;
this.AllowControl = false;
this.JumpSpeed = JumpSpeed;
this.MoveSpeed = MoveSpeed;
this.Gravity = Gravity;
this.Friction = Friction;
this.up = false;
this.space = false;
this.nextscene = true;
this.Jumping = false;
this.spraying = false;
this.platform = false;
this.CharActive = true;
this.stopped = true;
this.Hit = false;
this.Internal_y = 320;
this._x = this.Internal_X;
this._y = this.Internal_Y;
this._VelX = 0;
this._VelY = 0;
this.InHole = false;
this.waterflagged = true;
this.AllowRight = true;
}
function CheckHole() {
if ((110 < _x) && (_x < 490)) {
InHole = true;
} else {
InHole = false;
}
}
1((hacker = 1));
EndTime = getTimer();
if (_name == "MainChar") {
}
}
onClipEvent (enterFrame) {
if (CharActive && (_name == "MainChar")) {
DiffTime = getTimer() - EndTime;
DiffTime = DiffTime / 1000;
if (_root.Hole) {
CheckHole();
}
CheckOffscreen();
Internal_X = Internal_X + _VelX;
Internal_Y = Internal_Y + _VelY;
_x = Internal_X;
_y = Internal_y;
if (!Jumping) {
_VelX = _VelX * Friction;
}
if (19 < _VelY) {
_VelY = 19;
}
if ((_root._ground < Internal_y) && (!InHole)) {
Internal_y = _root._ground;
}
if (((-3 < _VelX) && (_VelX < 3)) && (!Jumping)) {
stopped = true;
Running = false;
} else if (((-1 < _VelX) && (_VelX < 1)) && (!Jumping)) {
_VelX = 0;
}
if ((Internal_y < _root._ground) && (!platform)) {
_VelY = _VelY + Gravity;
Jumping = true;
} else if (InHole && (!platform)) {
_VelY = _VelY + (Gravity * DiffTime);
Jumping = true;
this.CharActive = false;
_root.sounds.gotoAndPlay(187);
} else {
_VelY = 0;
Jumping = false;
}
if (AllowControl) {
if ((Key.isDown(Key.RIGHT) && (CheckMove(1))) && (AllowRight)) {
if (this.Jumping) {
_VelX = MoveSpeed * DiffTime;
} else {
_VelX = MoveSpeed * DiffTime;
}
Running = true;
stopped = false;
this._xscale = 100;
}
if (Key.isDown(Key.LEFT) && (CheckMove(-1))) {
if (this.Jumping) {
_VelX = (MoveSpeed * -1) * DiffTime;
} else {
_VelX = (MoveSpeed * -1) * DiffTime;
}
Running = true;
stopped = false;
this._xscale = -100;
}
if (Key.isDown(Key.UP) && (!up)) {
if (!Jumping) {
_VelY = JumpSpeed;
platform = false;
Jumping = true;
up = true;
}
}
}
if ((Key.isDown(Key.LEFT) && (Key.isDown(Key.RIGHT))) && (!Jumping)) {
stopped = true;
_velx = 0;
}
EndTime = getTimer();
} else {
this.AllowControl = false;
Internal_Y = Internal_Y + _VelY;
_y = Internal_y;
_VelY = _VelY + Gravity;
if (600 < _y) {
_VelX = 0;
_root.Lives--;
_root.LivesBox = "Lives : " + _root.Lives;
if (0 < _root.Lives) {
_root.MainCharInit();
} else {
_root.GameOver();
}
}
}
}
onClipEvent (keyUp) {
if (_name == "MainChar") {
if (Key.getCode() == 38) {
up = false;
} else if (Key.getCode() == 32) {
space = false;
} else if (((Key.getCode() == 37) || (Key.getCode() == 39)) && (!Jumping)) {
_Velx = 0;
}
}
}
Instance of Symbol 346 MovieClip "controller" in Frame 278
onClipEvent (load) {
function CheckPlatformHits() {
if (!_root.MainChar.platform) {
i = 0;
while (i < _root.PlatformArray.length) {
if ((_root["Platform" + i].CollideStrip.hitTest(_root.MainChar.collideline) && (0 < _root.MainChar._VelY)) && (_root["Platform" + i].active)) {
CurrentPlatform = i;
_root.MainChar.platform = true;
_root.MainChar._VelY = 0;
_root.MainChar.jumping = false;
if (_root["Platform" + i].Crumbler && (_root["Platform" + i].active)) {
_root["Platform" + i].active = false;
_root["Platform" + i].Platform.play();
}
}
i++;
}
} else if (!_root["Platform" + CurrentPlatform].CollideStrip.hitTest(_root.MainChar.collideline)) {
_root.MainChar.platform = false;
_root.MainChar.jumping = true;
} else {
_root.MainChar.Internal_X = _root.MainChar.Internal_X + _root["Platform" + CurrentPlatform]._VelX;
_root.MainChar.Internal_Y = _root.MainChar.Internal_Y + _root["Platform" + CurrentPlatform]._VelY;
}
}
function MovePlatforms() {
var i = 0;
while (i < _root.PlatformArray.length) {
if (_root["Platform" + i].mover) {
if (_root["Platform" + i].Direction == "HORIZONTAL") {
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "VERTICAL") {
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "CIRCULAR") {
_root["Platform" + i]._VelX = _root["Platform" + i]._Radius * Math.cos(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i]._VelY = _root["Platform" + i]._Radius * Math.sin(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i]._Theta = _root["Platform" + i]._Theta + _root["Platform" + i]._ThetaIncrement;
}
}
i++;
}
}
_root.MainCharInit();
KeyTimer = false;
KeyTimerCounter = 0;
}
onClipEvent (enterFrame) {
_root.Timer = "Timer : " + Math.floor((getTimer() - _root.StartTimer) / 1000);
CheckPlatformHits();
MovePlatforms();
if (keyTimer) {
if (1 < KeyTimerCounter) {
_root.MainChar.AllowControl = true;
KeyTimerCounter = 0;
keyTimer = false;
}
KeyTimerCounter++;
}
if (swapTimer) {
if (15 < counter) {
_root.swap = false;
swapTimer = false;
counter = 0;
}
counter++;
}
}
Frame 279
PlatformArray = new Array();
PlatformArray[0] = [200, 350, 1, false, false];
PlatformArray[1] = [375, 350, 1, false, false];
LoadScreen();
_root.Hole = true;
Frame 280
PlatformArray = new Array();
PlatformArray[0] = [425, 350, 1, false, true, "HORIZONTAL", 175, 425, 2, 0];
PlatformArray[1] = [300, 150, 1, false, true, "VERTICAL", 150, 300, 0, 2];
LoadScreen();
_root.Hole = true;
Instance of Symbol 358 MovieClip "ItemList" in Frame 280
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 281
LoadScreen();
_root.Hole = false;
Instance of Symbol 370 MovieClip in Frame 281
onClipEvent (load) {
if (_root.PickUpHelmet) {
this.gotoAndStop(14);
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.MainChar) && (!_root.MainChar.Jumping)) && (Key.isDown(Key.SPACE))) {
if ((_root.CurrentItem == 5) && (!_root.PickUpHelmet)) {
_root.sound.gotoAndPlay(239);
_root.CurrentItem = 1;
_root.MainChar.AllowControl = false;
_root.Box.gotoAndStop(1);
this.play();
}
}
}
Instance of Symbol 372 MovieClip "Text" in Frame 281
onClipEvent (load) {
if (!_root.PickUpVikingHat) {
this.BoozeText = "Booze....hic...\rBooooooze...";
} else {
_visible = false;
}
}
Frame 282
PlatformArray = new Array();
PlatformArray[0] = [125, 325, 1, false, false];
PlatformArray[1] = [175, 250, 1, false, false];
PlatformArray[2] = [300, 175, 1, false, false];
PlatformArray[3] = [500, 150, 1, false, true, "VERTICAL", 150, 325, 0, 2];
LoadScreen();
_root.Hole = true;
Frame 283
PlatformArray = new Array();
PlatformArray[0] = [250, 370, 2];
PlatformArray[1] = [350, 370, 2];
PlatformArray[2] = [300, 300, 1];
PlatformArray[3] = [400, 220, 1];
LoadScreen();
_root.Hole = false;
Instance of Symbol 373 MovieClip "ItemList" in Frame 283
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 284
PlatformArray = new Array();
PlatformArray[0] = [300, 140, 1, false, true, "CIRCULAR", 0, 0, 0, 0, 2.7, 0.025];
LoadScreen();
_root.Hole = true;
Frame 285
PlatformArray = new Array();
PlatformArray[0] = [300, 350, 3, true];
PlatformArray[1] = [300, 275, 3, true];
PlatformArray[2] = [300, 200, 3, true];
LoadScreen();
_root.Hole = true;
Instance of Symbol 373 MovieClip "ItemList" in Frame 285
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 286
PlatformArray = new Array();
PlatformArray[0] = [100, 320, 3, true];
PlatformArray[1] = [200, 240, 3, true];
PlatformArray[2] = [300, 150, 3, true];
PlatformArray[3] = [500, 320, 3, true];
PlatformArray[4] = [400, 240, 3, true];
LoadScreen();
_root.Hole = true;
Frame 287
LoadScreen();
_root.Hole = false;
Instance of Symbol 373 MovieClip "ItemList" in Frame 287
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 288
PlatformArray = new Array();
PlatformArray[0] = [200, 370, 2];
PlatformArray[1] = [400, 370, 2];
PlatformArray[2] = [300, 370, 2];
LoadScreen();
_root.Hole = false;
Frame 289
PlatformArray = new Array();
PlatformArray[0] = [200, 350, 3, true];
PlatformArray[1] = [375, 350, 3, true];
LoadScreen();
_root.Hole = true;
stop();
Instance of Symbol 373 MovieClip "ItemList" in Frame 289
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 290
PlatformArray = new Array();
PlatformArray[0] = [200, 350, 3, true];
PlatformArray[1] = [375, 350, 3, true];
LoadScreen();
_root.Hole = true;
Frame 291
LoadScreen();
_root.Hole = false;
_root.ItemList.gotoAndStop(Item14);
Instance of Symbol 382 MovieClip in Frame 291
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (!_root.MainChar.Jumping)) {
_root.MainChar.AllowRight = false;
if ((_root.CurrentItem == 9) && (Key.isDown(Key.SPACE))) {
_root.CurrentItem = 1;
_root.CatSetDown = true;
_root.Box.gotoAndStop(1);
_root.MainChar.AllowControl = false;
this.gotoAndplay(2);
} else if (((((_root.CurrentItem == 6) && (_root.catSetDown)) && (_root.PickUpVikingHat)) && (_root.pickUpHelmet)) && (Key.isDown(Key.SPACE))) {
_root.CurrentItem = 1;
_root.Box.gotoAndStop(1);
_root.MainChar.AllowControl = false;
this.gotoAndplay("CatAlight");
_root.CatOnFire = true;
} else if ((((_root.catSetDown && (!_root.PickUpVikingHat)) && (Key.isDown(Key.SPACE))) && (this._currentframe == 28)) && (!_root.MainChar.Jumping)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "I'm no viking!";
_root.MainChar.AllowControl = false;
_root.newbubble.gotoAndPlay(2);
} else if (((((_root.catSetDown && (_root.PickUpVikingHat)) && (Key.isDown(Key.SPACE))) && (!_root.CatOnFire)) && (this._currentframe == 28)) && (!_root.MainChar.Jumping)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "Hmmm...its not on fire!";
_root.MainChar.AllowControl = false;
_root.newbubble.gotoAndPlay(2);
}
} else if (_root.MainChar.hitTest(this) && (_root.MainChar.Jumping)) {
_root.MainChar._velx = 0;
} else {
_root.MainChar.AllowRight = true;
}
}
onClipEvent (load) {
if (_root.CatSetDown) {
this.gotoAndStop("CatInWater");
}
}
Instance of Symbol 373 MovieClip "ItemList" in Frame 291
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 349
stop();
Frame 350
play();
Frame 418
stop();
Frame 436
stop();
Frame 437
function GameOver() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (451);
}
function GotoNextScene() {
RemoveStuff();
deletevars();
DoneWorld = false;
gotoAndPlay (509);
}
function MainCharInit() {
_root.MainChar.Init(-17, 270, 2, 0.4);
}
function RemoveStuff() {
var i = 0;
while (i < 8) {
_root["Platform" + i]._y = -200;
_root["Platform" + i].active = false;
_root["Platform" + i].mover = false;
i++;
}
delete _root.PlatFormArray;
}
function deletevars() {
delete DoneIntro;
delete ItemArray;
delete WorldArray;
}
function CreatePlatforms() {
var i = 0;
while (i < PlatformArray.length) {
_root["Platform" + i].Internal_x = PlatformArray[i][0];
_root["Platform" + i].Internal_y = PlatformArray[i][1];
_root["Platform" + i]._x = PlatformArray[i][0];
_root["Platform" + i]._y = PlatformArray[i][1];
_root["Platform" + i].gotoAndStop(PlatformArray[i][2]);
_root["Platform" + i].Platform.gotoAndStop(1);
_root["Platform" + i].Crumbler = PlatformArray[i][3];
_root["Platform" + i].Mover = PlatformArray[i][4];
_root["Platform" + i].Direction = PlatformArray[i][5];
_root["Platform" + i].FirstLimit = PlatformArray[i][6];
_root["Platform" + i].SecondLimit = PlatformArray[i][7];
_root["Platform" + i]._VelX = PlatformArray[i][8];
_root["Platform" + i]._VelY = PlatformArray[i][9];
_root["Platform" + i]._Radius = PlatformArray[i][10];
_root["Platform" + i]._ThetaIncrement = PlatformArray[i][11];
_root["Platform" + i]._Theta = 0;
_root["Platform" + i].active = true;
i++;
}
}
function LoadScreen() {
CreatePlatforms();
MainCharInit();
}
function resetvars() {
DoneIntro = false;
PickUPSombrero = false;
PickUpTeaSet = false;
PutOnSombrero = false;
PickUpPhraseBook = false;
pickUpBanana = false;
pickUpPenKnife = false;
GiveBanana = false;
GiveSombrero = false;
GiveBook = false;
RopeCut = false;
Item1 = 3;
Item14 = 5;
Item9 = 4;
Item13 = 6;
}
function CreateWorld() {
_root.Lives = 3;
_root.LivesBox = "Lives : " + _root.Lives;
DoneWorld = true;
ItemArray = new Array();
_root.CurrentItem = 1;
_root.MainChar._xscale = 100;
_root.MainChar.Internal_x = 100;
WorldArray = new Array();
WorldArray[1] = new Screen(true, false);
WorldArray[2] = new Screen(false, false);
WorldArray[3] = new Screen(false, false);
WorldArray[4] = new Screen(false, false);
WorldArray[5] = new Screen(false, false);
WorldArray[6] = new Screen(false, false);
WorldArray[7] = new Screen(false, false);
WorldArray[8] = new Screen(false, false);
WorldArray[9] = new Screen(false, false);
WorldArray[10] = new Screen(false, false);
WorldArray[11] = new Screen(false, false);
WorldArray[12] = new Screen(false, false);
WorldArray[13] = new Screen(false, false);
WorldArray[14] = new Screen(false, true);
_root.StartTimer = getTimer();
}
function Screen(Left, Right) {
this.LeftBlocked = Left;
this.RightBlocked = Right;
}
function CleanUp(Frame) {
var i = 0;
while (i < _root.PlatFormArray.length) {
_root["Platform" + i]._y = -200;
_root["Platform" + i].active = false;
_root["Platform" + i].mover = false;
i++;
}
delete _root.PlatFormArray;
_root.gotoAndStop(_currentframe + Frame);
}
fscommand ("allowscale", "false");
1((hacker = 1));
_root._ground = 320;
if (!DoneWorld) {
resetvars();
CreateWorld();
}
FirstFrame = _currentframe - 1;
LoadScreen();
_root.Hole = false;
stop();
Instance of Symbol 417 MovieClip "LocalMan" in Frame 437
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 6) {
if (_root.sounds._currentframe == 1) {
_root.sounds.gotoAndPlay(239);
}
_root.GiveBook = true;
_root.TextBox.gotoAndPlay(1);
_root.TextBox.BoozeText1 = "The sun is too hot for me";
_root.TextBox.BoozeText2 = "The sun is too hot for me";
_root.TextBox.BoozeText3 = "Ooooh aaaah pheeeew...";
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
} else if ((_root.CurrentItem == 4) && (_root.GiveBook)) {
_root.SomBrero._visible = true;
_root.GiveSombrero = true;
_root.TextBox._visible = false;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
}
}
}
Instance of Symbol 417 MovieClip "LocalMan" in Frame 437
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 6) {
if (_root.sounds._currentframe == 1) {
_root.sounds.gotoAndPlay(239);
}
_root.GiveBook = true;
_root.TextBox.gotoAndPlay(1);
_root.TextBox.BoozeText1 = "The sun is too hot for me";
_root.TextBox.BoozeText2 = "The sun is too hot for me";
_root.TextBox.BoozeText3 = "Ooooh aaaah pheeeew...";
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
} else if ((_root.CurrentItem == 4) && (_root.GiveBook)) {
_root.SomBrero._visible = true;
_root.GiveSombrero = true;
_root.TextBox._visible = false;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
}
}
}
Instance of Symbol 421 MovieClip "textbox" in Frame 437
onClipEvent (load) {
if (!_root.GiveSombrero) {
if (!_root.GiveBook) {
this.BoozeText1 = "El sol esta muy caliente para mi";
this.BoozeText2 = "El sol esta muy caliente para mi";
this.BoozeText3 = "Ooooh aaaah pheeeew";
} else if (_root.GiveBook) {
this.BoozeText1 = "The sun is too hot for me";
this.BoozeText2 = "The sun is too hot for me";
this.BoozeText3 = "Ooooh aaaah pheeeew...";
}
} else {
_visible = false;
}
}
Instance of Symbol 423 MovieClip "SomBrero" in Frame 437
onClipEvent (load) {
if (!_root.GiveSombrero) {
_visible = false;
}
}
Instance of Symbol 430 MovieClip "Platform0" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform1" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform2" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform3" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform4" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform5" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform7" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 430 MovieClip "Platform8" in Frame 437
onClipEvent (load) {
function CheckLimit() {
if (Direction == "VERTICAL") {
if (SecondLimit < this._y) {
this._VelY = this._VelY * -1;
} else if (this._y < FirstLimit) {
this._VelY = this._VelY * -1;
}
} else if (Direction == "HORIZONTAL") {
if (SecondLimit < this._x) {
this._VelX = this._VelX * -1;
} else if (this._x < FirstLimit) {
this._VelX = this._VelX * -1;
}
}
}
}
Instance of Symbol 441 MovieClip "ItemList" in Frame 437
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Instance of Symbol 442 MovieClip "MainChar" in Frame 437
onClipEvent (load) {
function CheckOffscreen() {
if (_x < 0) {
if (((_root._currentframe - _root.FirstFrame) != 1) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartLeft = false;
_root.StartRight = true;
Frame = -1;
_root.Cleanup(Frame);
}
} else if (600 < _x) {
if (((_root._currentframe - _root.FirstFrame) != (_root.WorldArray.length - 1)) && (nextscene)) {
nextscene = false;
CharActive = false;
_root.StartRight = false;
_root.StartLeft = true;
Frame = 1;
_root.Cleanup(Frame);
}
}
}
function CheckMove(number) {
if (((number == -1) && (_x < (0 + (this._width / 1.5)))) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].LeftBlocked)) {
_VelX = 0;
return(false);
}
if (((number == 1) && ((600 - (this._width / 1.5)) < _x)) && (_root.WorldArray[_root._currentframe - _root.FirstFrame].RightBlocked)) {
_VelX = 0;
return(false);
}
return(true);
}
function Init(JumpSpeed, MoveSpeed, Gravity, Friction) {
if (_root.StartLeft) {
this.Internal_x = 25;
this._xscale = 100;
} else if (_root.StartRight) {
this.Internal_x = 575;
this._xscale = -100;
}
_root.controller.keyTimer = true;
this.AllowControl = true;
this.JumpSpeed = JumpSpeed;
this.MoveSpeed = MoveSpeed;
this.Gravity = Gravity;
this.Friction = Friction;
this.up = false;
this.space = false;
this.nextscene = true;
this.Jumping = false;
this.spraying = false;
this.platform = false;
this.CharActive = true;
this.stopped = true;
this.Hit = false;
this.Internal_y = 320;
this._x = this.Internal_X;
this._y = this.Internal_Y;
this._VelX = 0;
this._VelY = 0;
this.InHole = false;
this.waterflagged = true;
this.AllowRight = true;
}
function CheckHole() {
if ((110 < _x) && (_x < 490)) {
InHole = true;
} else {
InHole = false;
}
}
1((hacker = 1));
EndTime = getTimer();
if (_name == "MainChar") {
}
}
onClipEvent (enterFrame) {
if (CharActive && (_name == "MainChar")) {
DiffTime = getTimer() - EndTime;
DiffTime = DiffTime / 1000;
if (_root.Hole) {
CheckHole();
}
CheckOffscreen();
Internal_X = Internal_X + _VelX;
Internal_Y = Internal_Y + _VelY;
_x = Internal_X;
_y = Internal_y;
if (!Jumping) {
_VelX = _VelX * Friction;
}
if (19 < _VelY) {
_VelY = 19;
}
if ((_root._ground < Internal_y) && (!InHole)) {
Internal_y = _root._ground;
}
if (((-3 < _VelX) && (_VelX < 3)) && (!Jumping)) {
stopped = true;
Running = false;
} else if (((-1 < _VelX) && (_VelX < 1)) && (!Jumping)) {
_VelX = 0;
}
if ((Internal_y < _root._ground) && (!platform)) {
_VelY = _VelY + Gravity;
Jumping = true;
} else if (InHole && (!platform)) {
_VelY = _VelY + (Gravity * DiffTime);
Jumping = true;
this.CharActive = false;
_root.sounds.gotoAndPlay(187);
} else {
_VelY = 0;
Jumping = false;
}
if (AllowControl) {
if ((Key.isDown(Key.RIGHT) && (CheckMove(1))) && (AllowRight)) {
if (this.Jumping) {
_VelX = MoveSpeed * DiffTime;
} else {
_VelX = MoveSpeed * DiffTime;
}
Running = true;
stopped = false;
this._xscale = 100;
}
if (Key.isDown(Key.LEFT) && (CheckMove(-1))) {
if (this.Jumping) {
_VelX = (MoveSpeed * -1) * DiffTime;
} else {
_VelX = (MoveSpeed * -1) * DiffTime;
}
Running = true;
stopped = false;
this._xscale = -100;
}
if (Key.isDown(Key.UP) && (!up)) {
if (!Jumping) {
_VelY = JumpSpeed;
platform = false;
Jumping = true;
up = true;
}
}
}
if ((Key.isDown(Key.LEFT) && (Key.isDown(Key.RIGHT))) && (!Jumping)) {
stopped = true;
_velx = 0;
}
EndTime = getTimer();
} else {
this.AllowControl = false;
Internal_Y = Internal_Y + _VelY;
_y = Internal_y;
_VelY = _VelY + Gravity;
if (600 < _y) {
_VelX = 0;
_root.Lives--;
_root.LivesBox = "Lives : " + _root.Lives;
if (0 < _root.Lives) {
_root.MainCharInit();
} else {
_root.GameOver();
}
}
}
}
onClipEvent (keyUp) {
if (_name == "MainChar") {
if (Key.getCode() == 38) {
up = false;
} else if (Key.getCode() == 32) {
space = false;
} else if (((Key.getCode() == 37) || (Key.getCode() == 39)) && (!Jumping)) {
_Velx = 0;
}
}
}
Instance of Symbol 346 MovieClip "controller" in Frame 437
onClipEvent (load) {
function CheckPlatformHits() {
if (!_root.MainChar.platform) {
i = 0;
while (i < _root.PlatformArray.length) {
if ((_root["Platform" + i].CollideStrip.hitTest(_root.MainChar.collideline) && (0 < _root.MainChar._VelY)) && (_root["Platform" + i].active)) {
CurrentPlatform = i;
_root.MainChar.platform = true;
_root.MainChar._VelY = 0;
_root.MainChar.jumping = false;
if (_root["Platform" + i].Crumbler && (_root["Platform" + i].active)) {
_root["Platform" + i].active = false;
_root["Platform" + i].Platform.play();
}
}
i++;
}
} else if (!_root["Platform" + CurrentPlatform].CollideStrip.hitTest(_root.MainChar.collideline)) {
_root.MainChar.platform = false;
_root.MainChar.jumping = true;
} else {
_root.MainChar.Internal_X = _root.MainChar.Internal_X + _root["Platform" + CurrentPlatform]._VelX;
_root.MainChar.Internal_Y = _root.MainChar.Internal_Y + _root["Platform" + CurrentPlatform]._VelY;
}
}
function MovePlatforms() {
var i = 0;
while (i < _root.PlatformArray.length) {
if (_root["Platform" + i].mover) {
if (_root["Platform" + i].Direction == "HORIZONTAL") {
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "VERTICAL") {
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i].CheckLimit();
} else if (_root["Platform" + i].Direction == "CIRCULAR") {
_root["Platform" + i]._VelX = _root["Platform" + i]._Radius * Math.cos(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_X = _root["Platform" + i].Internal_X + _root["Platform" + i]._VelX;
_root["Platform" + i]._x = _root["Platform" + i].Internal_X;
_root["Platform" + i]._VelY = _root["Platform" + i]._Radius * Math.sin(_root["Platform" + i]._Theta);
_root["Platform" + i].Internal_Y = _root["Platform" + i].Internal_Y + _root["Platform" + i]._VelY;
_root["Platform" + i]._y = _root["Platform" + i].Internal_Y;
_root["Platform" + i]._Theta = _root["Platform" + i]._Theta + _root["Platform" + i]._ThetaIncrement;
}
}
i++;
}
}
_root.MainCharInit();
KeyTimer = false;
KeyTimerCounter = 0;
}
onClipEvent (enterFrame) {
_root.Timer = "Timer : " + Math.floor((getTimer() - _root.StartTimer) / 1000);
CheckPlatformHits();
MovePlatforms();
if (keyTimer) {
if (1 < KeyTimerCounter) {
_root.MainChar.AllowControl = true;
KeyTimerCounter = 0;
keyTimer = false;
}
KeyTimerCounter++;
}
if (swapTimer) {
if (15 < counter) {
_root.swap = false;
swapTimer = false;
counter = 0;
}
counter++;
}
}
Frame 438
LoadScreen();
_root.Hole = false;
Frame 439
PlatformArray = new Array();
PlatformArray[0] = [200, 350, 2, true];
PlatformArray[1] = [400, 350, 2, true];
LoadScreen();
_root.Hole = true;
Frame 440
LoadScreen();
_root.Hole = false;
Frame 441
PlatformArray = new Array();
PlatformArray[0] = [140, 350, 2, true];
PlatformArray[1] = [460, 350, 2, true];
PlatformArray[2] = [300, 150, 2, true, true, "VERTICAL", 150, 300, 0, 2];
LoadScreen();
_root.Hole = true;
Frame 442
LoadScreen();
_root.Hole = false;
Instance of Symbol 456 MovieClip "Tree" in Frame 442
onClipEvent (load) {
if (_root.ropeCut) {
gotoAndStop (442);
}
}
Instance of Symbol 441 MovieClip "ItemList" in Frame 442
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 443
PlatformArray = new Array();
PlatformArray[0] = [140, 350, 2, true];
PlatformArray[1] = [140, 275, 2, true];
PlatformArray[2] = [100, 200, 2, true];
PlatformArray[3] = [300, 200, 2, true, true, "HORIZONTAL", 300, 400, 2, 0];
PlatformArray[4] = [480, 275, 2, true];
PlatformArray[5] = [480, 350, 2, true];
LoadScreen();
_root.Hole = true;
Frame 444
LoadScreen();
_root.Hole = false;
Frame 445
LoadScreen();
_root.Hole = false;
Instance of Symbol 441 MovieClip "ItemList" in Frame 445
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 446
PlatformArray = new Array();
PlatformArray[0] = [200, 350, 2, true];
PlatformArray[1] = [400, 350, 2, true];
LoadScreen();
_root.Hole = true;
Frame 447
PlatformArray = new Array();
PlatformArray[0] = [150, 350, 2, true, true, "HORIZONTAL", 150, 450, 4, 0];
PlatformArray[1] = [450, 275, 2, true, true, "HORIZONTAL", 150, 450, -4, 0];
LoadScreen();
_root.Hole = true;
Frame 448
PlatformArray = new Array();
PlatformArray[0] = [200, 325, 2, true, false];
PlatformArray[1] = [375, 325, 2, true, false];
PlatformArray[2] = [200, 245, 2, true, false];
PlatformArray[3] = [375, 245, 2, true, false];
PlatformArray[4] = [295, 175, 2, true, false];
PlatformArray[5] = [295, 115, 2, true, false];
LoadScreen();
_root.Hole = true;
stop();
Frame 449
PlatformArray = new Array();
PlatformArray[0] = [350, 325, 1, false, false];
PlatformArray[1] = [425, 275, 1, false, false];
PlatformArray[2] = [500, 225, 1, false, false];
PlatformArray[3] = [250, 150, 1, false, false];
PlatformArray[4] = [100, 150, 1, false, false];
LoadScreen();
_root.Hole = false;
Instance of Symbol 441 MovieClip "ItemList" in Frame 449
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Instance of Symbol 468 MovieClip "Monkey" in Frame 449
onClipEvent (load) {
function CheckHit() {
if ((((_root.MainChar._x < 350) && (250 < _root.MainChar._x)) && (!charge)) && (_root.MainChar._y < 150)) {
if (_root.CurrentItem == 2) {
_root.GiveBanana = true;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
this.Monkey.gotoAndPlay(10);
} else if (_root.CurrentItem == 1) {
this.Monkey.play();
charge = true;
_root.MainChar._VelX = _root.MainChar._VelX - 1;
_root.MainChar._VelX = _root.MainChar._VelX * -2;
_root.MainChar.AllowControl = false;
} else if (_root.sounds._currentframe == 1) {
this.Monkey.play();
charge = true;
_root.MainChar._VelX = _root.MainChar._VelX - 1;
_root.MainChar._VelX = _root.MainChar._VelX * -2;
_root.MainChar.AllowControl = false;
_root.sounds.gotoAndPlay(369);
}
}
}
if (_root.GiveBanana) {
this.Monkey.gotoAndPlay(10);
}
charge = false;
}
onClipEvent (enterFrame) {
if (!_root.GiveBanana) {
if (_root.MainChar._x < _x) {
_xscale = 100;
} else {
CheckHit();
_xscale = -100;
}
}
}
Frame 450
LoadScreen();
_root.ItemList.gotoAndStop(Item14);
_root.Hole = false;
Instance of Symbol 470 MovieClip "wall" in Frame 450
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (!_root.MainChar.Jumping)) {
_root.MainChar.AllowRight = false;
if (_root.CurrentItem == 3) {
_root.GotoNextScene();
} else if (Key.isDown(Key.SPACE)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "Do monkeys really like tea??";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
}
} else if (_root.MainChar.hitTest(this) && (_root.MainChar.Jumping)) {
_root.MainChar._velx = 0;
} else {
_root.MainChar.AllowRight = true;
}
}
Instance of Symbol 441 MovieClip "ItemList" in Frame 450
onClipEvent (load) {
this.gotoAndStop(_root["Item" + (_root._currentframe - _root.FirstFrame)]);
}
Frame 508
stop();
Frame 509
play();
Frame 577
stop();
Symbol 27 Button
on (release) {
getURL ("http://www.bravo.co.uk/telly_new/sick_frames.html ", "_blank");
}
Symbol 30 Button
on (press) {
getURL ("http://www.bravo.co.uk ", "_blank");
}
Symbol 38 Button
on (release) {
if (_root.dropdown._currentframe == 1) {
_root.dropdown.gotogame = true;
_root.dropdown.gotoAndPlay(1);
}
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 43 Button
on (release) {
if (_root.dropdown._currentframe == 1) {
_root.dropdown.gotoInstruct = true;
_root.dropdown.gotoAndPlay(1);
this.nextFrame();
}
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 49 Button
on (release) {
getURL ("javascript:popup();");
}
Symbol 52 Button
on (release) {
getURL ("http://www.kerb.co.uk/", "_blank");
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 19
if (this.gotogame) {
this.gotogame = false;
this.gotoInstruct = false;
_root.gotoGameLevel();
} else if (this.gotoInstruct) {
this.gotogame = false;
this.gotoInstruct = false;
_root.gotoInstruct();
}
stop();
Symbol 61 Button
on (release) {
getURL ("http://www.bravo.co.uk ", "_blank");
}
Symbol 66 Button
on (release) {
gotoAndPlay (81);
}
Symbol 67 Button
on (release) {
getURL ("http://www.bravo.co.uk/telly_new/sick_frames.html ", "_blank");
}
Symbol 71 Button
on (release) {
gotoAndStop (129);
}
Symbol 89 MovieClip Frame 12
gotoAndPlay (1);
Symbol 92 MovieClip Frame 51
gotoAndPlay (1);
Symbol 92 MovieClip Frame 52
_root.Text._visible = false;
Symbol 92 MovieClip Frame 148
_root.MainChar.AllowControl = true;
stop();
Symbol 107 MovieClip Frame 1
stop();
Instance of Symbol 96 MovieClip "Booze" in Symbol 107 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBooze = true;
_root.Sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBooze = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.Sounds.gotoAndPlay(294);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 98 MovieClip "Jug" in Symbol 107 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpJug = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpJug = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 100 MovieClip "Flute" in Symbol 107 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.sounds.gotoAndStop(1);
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpFlute = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpFlute = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 102 MovieClip "Pliers" in Symbol 107 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if ((_root.CurrentItem == 1) && (_root.ManInEcstacy)) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpPliers = true;
_parent.gotoAndStop(1);
} else if ((((_root.CurrentItem != 1) && (!_root.swap)) && (_root.ManInEcstacy)) && (!_root.pickUpPliers)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpPliers = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
} else if ((!_root.ManInEcstacy) && (!_root.MainChar.Jumping)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "I think he wants a trade first!";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
}
}
}
Instance of Symbol 104 MovieClip "Melon" in Symbol 107 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((_root.MainChar.hitTest(this) && (_root.ReleasedSnake)) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
if (!_root.pickUpMelon) {
_root.sounds.gotoAndPlay(421);
}
_root.pickUpMelon = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpMelon = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 106 MovieClip "SnakeInJar" in Symbol 107 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSnakeInJar = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpSnakeInJar = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Symbol 111 MovieClip Frame 1
BoozeText = BoozeText1;
Symbol 111 MovieClip Frame 56
BoozeText = BoozeText2;
Symbol 111 MovieClip Frame 112
BoozeText = BoozeText3;
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 10
if (_root.MainChar.collideline.hitTest(_parent.CollideStrip)) {
_root.MainChar.platform = false;
}
Symbol 122 MovieClip Frame 17
stop();
Symbol 125 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip "CollideStrip" in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 156 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip "Hat" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
if (_root.PickUpHelmet) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 136 MovieClip "Helmet" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
if (_root.PickUpHelmet && (!_root.PickUpHorns)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 138 MovieClip "HornHelmet" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
if (_root.PickUpHelmet && (_root.PickUpHorns)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 143 MovieClip "Hat" in Symbol 156 MovieClip Frame 5
onClipEvent (load) {
if (_root.PickUpHelmet) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 134 MovieClip "Hat" in Symbol 156 MovieClip Frame 7
onClipEvent (load) {
if (_root.PickUpHelmet) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 156 MovieClip Frame 12
gotoAndPlay (2);
Symbol 156 MovieClip Frame 22
if (spraycounter < 20) {
gotoAndPlay (13);
spraycounter++;
} else {
spraycounter = 0;
_root.MainChar.Spraying = false;
_root.snake.gotoAndStop(100);
gotoAndStop (1);
}
Instance of Symbol 115 MovieClip "collideline" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 156 MovieClip "MainChar" in Symbol 157 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.CharActive) {
if (_parent.jumping) {
if (0 < _parent.VelY) {
gotoAndStop (11);
running = false;
spraying = false;
} else {
gotoAndStop (11);
running = false;
spraying = false;
}
} else if ((_parent.stopped && (!_parent.Jumping)) && (!_parent.Spraying)) {
running = false;
spraying = false;
gotoAndStop (1);
} else if ((_parent.Running && (!_parent.Spraying)) && (!Running)) {
gotoAndPlay (2);
running = true;
spraying = false;
} else if (_parent.Spraying && (!Spraying)) {
Spraying = true;
SprayCounter = 0;
gotoAndPlay (13);
}
} else {
gotoAndStop (1);
}
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 58
_root.MainChar.AllowControl = true;
gotoAndStop (1);
Symbol 162 MovieClip Frame 1
stop();
Symbol 166 Button
on (release) {
if (_quality eq "LOW") {
_quality = "MEDIUM";
} else if (_quality eq "MEDIUM") {
_quality = "HIGH";
} else {
_quality = "LOW";
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 30
gotoAndStop (1);
Symbol 180 MovieClip Frame 72
gotoAndStop (1);
Symbol 180 MovieClip Frame 186
gotoAndStop (1);
Symbol 180 MovieClip Frame 238
gotoAndStop (1);
Symbol 180 MovieClip Frame 293
gotoAndStop (1);
Symbol 180 MovieClip Frame 303
gotoAndStop (1);
Symbol 180 MovieClip Frame 368
gotoAndStop (1);
Symbol 180 MovieClip Frame 420
gotoAndStop (1);
Symbol 180 MovieClip Frame 477
gotoAndStop (1);
Symbol 180 MovieClip Frame 541
gotoAndStop (1);
Symbol 180 MovieClip Frame 603
gotoAndStop (1);
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
play();
Symbol 187 MovieClip Frame 11
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
play();
Symbol 188 MovieClip Frame 11
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
play();
Symbol 189 MovieClip Frame 11
stop();
Symbol 190 MovieClip Frame 1
num = Math.floor(Math.random() * 40);
if (num == 1) {
gotoAndPlay (3);
}
Symbol 190 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 187 MovieClip in Symbol 190 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.MainChar._x, _root.MainChar._y, true)) {
_root.Lives--;
if (0 < _root.Lives) {
_root.LivesBox = "Lives : " + _root.Lives;
_root.MainCharInit();
} else {
_parent.Stop();
_root.MainChar.CharActive = false;
_root.GameOver();
}
}
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 22
onClipEvent (load) {
this.gotoAndPlay(2);
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 15
gotoAndPlay (1);
Symbol 209 MovieClip Frame 16
play();
Symbol 209 MovieClip Frame 100
play();
Symbol 209 MovieClip Frame 101
_root.MainChar.Spraying = false;
_root.MainChar.AllowControl = true;
prevFrame();
Symbol 210 MovieClip Frame 15
gotoAndPlay (1);
Symbol 210 MovieClip Frame 16
play();
Symbol 210 MovieClip Frame 100
play();
Symbol 210 MovieClip Frame 101
_root.MainChar.Spraying = false;
_root.MainChar.AllowControl = true;
prevFrame();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 88
_root.MainChar.AllowControl = true;
stop();
Symbol 234 MovieClip Frame 15
gotoAndPlay (1);
Symbol 234 MovieClip Frame 16
play();
Symbol 234 MovieClip Frame 100
play();
Symbol 234 MovieClip Frame 101
_root.MainChar.Spraying = false;
_root.MainChar.AllowControl = true;
prevFrame();
Symbol 239 MovieClip Frame 1
number = Math.floor(Math.random() * 100);
if (number == 1) {
gotoAndPlay (3);
}
Symbol 239 MovieClip Frame 2
gotoAndPlay (1);
Symbol 239 MovieClip Frame 24
gotoAndPlay (1);
Symbol 246 MovieClip Frame 1
charge = false;
stop();
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this)) {
_root.MainChar.AllowControl = false;
_root.MainChar._Velx = 15;
}
}
Symbol 246 MovieClip Frame 18
_root.MainChar.AllowControl = true;
gotoAndStop (1);
Symbol 246 MovieClip Frame 45
stop();
Symbol 256 Button
on (release) {
getURL ("http://www.bravo.co.uk/telly_new/sick_frames.html ", "_blank");
}
Symbol 257 Button
on (press) {
getURL ("http://www.bravo.co.uk ", "_blank");
}
Symbol 266 Button
on (release) {
_root.startleft = true;
_root.lives = 3;
gotoAndStop (129);
}
Symbol 269 Button
on (release) {
gotoAndPlay (4);
}
Symbol 284 Button
on (release) {
gotoAndPlay (260);
}
Symbol 287 Button
on (release) {
gotoAndStop (278);
}
Symbol 300 MovieClip Frame 1
BoozeText = BoozeText1;
Symbol 300 MovieClip Frame 71
BoozeText = BoozeText2;
Symbol 300 MovieClip Frame 142
BoozeText = BoozeText3;
Symbol 300 MovieClip Frame 213
_root.MainChar.AllowControl = true;
this._visible = false;
stop();
Symbol 308 MovieClip Frame 1
stop();
Instance of Symbol 305 MovieClip "Cat" in Symbol 308 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.MainChar.hitTest(this) && (!_root.CatDead)) && (!_root.MainChar.Jumping)) && (Key.isDown(Key.SPACE))) {
if ((_root.pickUpPoison && (_root.PickUpSyringe)) && (_root.CurrentItem == 8)) {
_root.CatDead = true;
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.MainChar._VelY = 0;
_root.Vet.gotoAndPlay(1);
} else if (_root.pickUpPoison && (_root.currentItem == 3)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "I'll need more than this!";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
}
}
}
Instance of Symbol 307 MovieClip "DeadCat" in Symbol 308 MovieClip Frame 2
onClipEvent (load) {
_velx = -16;
_vely = 0;
_gravity = 0.7;
_friction = 0.97;
active = true;
}
onClipEvent (enterFrame) {
if (active) {
if (_root.MainChar._x < (this._x * -1)) {
_root.MainChar._xscale = 100;
}
_x = (_x + _velx);
_velx = _velx * _friction;
if (_root.ground < _y) {
}
if (((_vely < 1) && (-1 < _vely)) && (-1 < _velx)) {
_root.MainChar.AllowControl = true;
active = false;
_vely = 0;
}
}
}
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 298 MovieClip "vetgirl" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
if (!_root.DoneIntro) {
_root.MainChar.AllowControl = false;
}
}
Instance of Symbol 300 MovieClip "textbox" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
if (!_root.DoneIntro) {
_root.DoneIntro = true;
_root.MainChar.AllowControl = false;
this.BoozeText1 = "I need you to get the 'medicine'...";
this.BoozeText2 = "for this poor sick cat....";
this.BoozeText3 = "It looks like it needs putting down...";
} else {
_visible = false;
}
}
Instance of Symbol 308 MovieClip "Cat" in Symbol 312 MovieClip Frame 1
/* no clip actions */
Symbol 312 MovieClip Frame 2
play();
Symbol 312 MovieClip Frame 110
this.Cat.gotoAndStop(2);
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 10
if (_root.MainChar.collideline.hitTest(_parent.CollideStrip)) {
_root.MainChar.platform = false;
}
Symbol 321 MovieClip Frame 17
stop();
Symbol 322 MovieClip Frame 1
stop();
Instance of Symbol 315 MovieClip "CollideStrip" in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 315 MovieClip "CollideStrip" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 115 MovieClip "collideline" in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 156 MovieClip "MainChar" in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.CharActive) {
if (_parent.jumping) {
if (0 < _parent.VelY) {
gotoAndStop (11);
running = false;
spraying = false;
} else {
gotoAndStop (11);
running = false;
spraying = false;
}
} else if ((_parent.stopped && (!_parent.Jumping)) && (!_parent.Spraying)) {
running = false;
spraying = false;
gotoAndStop (1);
} else if ((_parent.Running && (!_parent.Spraying)) && (!Running)) {
gotoAndPlay (2);
running = true;
spraying = false;
} else if (_parent.Spraying && (!Spraying)) {
Spraying = true;
SprayCounter = 0;
gotoAndPlay (13);
}
} else {
gotoAndStop (1);
}
}
Symbol 345 MovieClip Frame 1
stop();
Instance of Symbol 334 MovieClip "Syringe" in Symbol 345 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpHorns = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpHorns = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 344 MovieClip "fire" in Symbol 345 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Symbol 355 MovieClip Frame 1
stop();
Instance of Symbol 344 MovieClip "fire" in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 358 MovieClip Frame 1
stop();
Instance of Symbol 349 MovieClip in Symbol 358 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBasket = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBasket = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 350 MovieClip "Poison" in Symbol 358 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpPoison = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if (_root.CurrentItem == 4) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.CurrentItem = 8;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpPoison = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpPoison = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 351 MovieClip "Syringe" in Symbol 358 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSyringe = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if (_root.CurrentItem == 3) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.CurrentItem = 8;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSyringe = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpSyringe = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 352 MovieClip "BoozeBottle" in Symbol 358 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBooze = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBooze = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 353 MovieClip "MatchBox" in Symbol 358 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpMatchBox = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.PickUpMatchBox = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 355 MovieClip "Horns" in Symbol 358 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if ((_root.CurrentItem == 1) && (!_root.PickUpHelmet)) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.sounds.gotoAndPlay(2);
_root.pickUpHorns = true;
_parent.gotoAndStop(1);
} else if (_root.PickUpHelmet && (_root.CurrentItem == 1)) {
_root.CurrentItem = 1;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpHorns = true;
_root.PickUpVikingHat = true;
_root.MainChar.MainChar.HornHelmet._visible = true;
_root.MainChar.MainChar.Helmet._visible = false;
_parent.gotoAndStop(1);
} else if (((_root.CurrentItem != 1) && (!_root.swap)) && (!_root.PickUpHelmet)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpHorns = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
} else if ((_root.CurrentItem != 1) && (_root.PickUpHelmet)) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.pickUpHorns = true;
_root.PickUpVikingHat = true;
_root.MainChar.MainChar.HornHelmet._visible = true;
_root.MainChar.MainChar.Helmet._visible = false;
_parent.gotoAndStop(1);
}
}
}
Instance of Symbol 356 MovieClip "Syringe" in Symbol 358 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpHorns = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpHorns = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 357 MovieClip "DeadCatBasket" in Symbol 358 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 14
_root.PickUpHelmet = true;
_root.MainChar.AllowControl = true;
_root.MainChar.MainChar.Hat._visible = false;
_root.MainChar.MainChar.Helmet._visible = true;
_root.Text._visible = false;
stop();
Symbol 373 MovieClip Frame 1
stop();
Instance of Symbol 349 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBasket = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBasket = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 350 MovieClip "Poison" in Symbol 373 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpPoison = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if (_root.CurrentItem == 4) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.CurrentItem = 8;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpPoison = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpPoison = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 351 MovieClip "Syringe" in Symbol 373 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSyringe = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if (_root.CurrentItem == 3) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.CurrentItem = 8;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpSyringe = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpSyringe = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 352 MovieClip "BoozeBottle" in Symbol 373 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBooze = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBooze = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 353 MovieClip "MatchBox" in Symbol 373 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.PickUpMatchBox = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.PickUpMatchBox = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 355 MovieClip "Horns" in Symbol 373 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if ((_root.CurrentItem == 1) && (!_root.PickUpHelmet)) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.sounds.gotoAndPlay(2);
_root.pickUpHorns = true;
_parent.gotoAndStop(1);
} else if (_root.PickUpHelmet && (_root.CurrentItem == 1)) {
_root.CurrentItem = 1;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpHorns = true;
_root.PickUpVikingHat = true;
_root.MainChar.MainChar.HornHelmet._visible = true;
_root.MainChar.MainChar.Helmet._visible = false;
_parent.gotoAndStop(1);
} else if (((_root.CurrentItem != 1) && (!_root.swap)) && (!_root.PickUpHelmet)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpHorns = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
} else if ((_root.CurrentItem != 1) && (_root.PickUpHelmet)) {
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.pickUpHorns = true;
_root.PickUpVikingHat = true;
_root.MainChar.MainChar.HornHelmet._visible = true;
_root.MainChar.MainChar.Helmet._visible = false;
_parent.gotoAndStop(1);
}
}
}
Instance of Symbol 356 MovieClip "Syringe" in Symbol 373 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpHorns = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpHorns = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 357 MovieClip "DeadCatBasket" in Symbol 373 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 344 MovieClip "fire" in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 382 MovieClip Frame 1
stop();
Instance of Symbol 344 MovieClip "fire" in Symbol 382 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 382 MovieClip Frame 28
_root.MainChar.AllowControl = true;
stop();
Symbol 382 MovieClip Frame 29
this.catonfire.fire._visible = true;
Symbol 382 MovieClip Frame 30
this.catonfire.fire._visible = true;
Symbol 382 MovieClip Frame 78
this.catonfire.fire._visible = true;
_root.GotoNextScene();
stop();
Symbol 388 Button
on (press) {
getURL ("http://www.bravo.co.uk ", "_blank");
}
Symbol 389 Button
on (release) {
_root.Lives = 3;
_root.StartLeft = true;
_root.StartRight = false;
gotoAndStop (278);
}
Symbol 390 Button
on (release) {
gotoAndPlay (4);
}
Symbol 403 Button
on (release) {
gotoAndPlay (419);
}
Symbol 405 Button
on (release) {
gotoAndStop (437);
}
Symbol 421 MovieClip Frame 1
BoozeText = BoozeText1;
Symbol 421 MovieClip Frame 71
BoozeText = BoozeText2;
Symbol 421 MovieClip Frame 142
BoozeText = BoozeText3;
Symbol 421 MovieClip Frame 213
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 10
if (_root.MainChar.collideline.hitTest(_parent.CollideStrip)) {
_root.MainChar.platform = false;
}
Symbol 429 MovieClip Frame 17
stop();
Symbol 430 MovieClip Frame 1
stop();
Instance of Symbol 315 MovieClip "CollideStrip" in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 441 MovieClip Frame 1
stop();
Instance of Symbol 433 MovieClip in Symbol 441 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpBanana = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpBanana = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 435 MovieClip in Symbol 441 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.GiveSombrero) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpTeaSet = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpTeaSet = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
} else if ((_root.GiveBook && (_root.CurrentItem == 1)) && (!_root.MainChar.Jumping)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "Hmmm. He's needs to cool down!";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
} else if (((_root.CurrentItem != 4) && (!_root.MainChar.Jumping)) && (!_root.GiveBook)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "Whats he on about??";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
} else if (((_root.CurrentItem == 4) && (!_root.MainChar.Jumping)) && (!_root.GiveBook)) {
_root.newbubble._x = _root.MainChar._x + 90;
_root.newbubble._y = _root.MainChar._y - 92;
_root.newbubble.text = "I'll need a phrase book first!!";
_root.MainChar.AllowControl = false;
_root.MainChar._VelX = 0;
_root.newbubble.gotoAndPlay(2);
} else if ((_root.sounds._currentframe == 1) && (!_root.MainChar.Jumping)) {
_root.sounds.gotoAndPlay(31);
}
}
}
Instance of Symbol 436 MovieClip in Symbol 441 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
if (!_root.pickUpSombrero) {
_root.sounds.gotoAndPlay(421);
}
_root.pickUpSombrero = true;
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpSombrero = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 438 MovieClip in Symbol 441 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpPenKnife = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpPenKnife = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 440 MovieClip in Symbol 441 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) && (_root.GiveBanana)) {
if (_root.CurrentItem == 1) {
_root.CurrentItem = _parent._currentframe;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.pickUpPhraseBook = true;
_root.sounds.gotoAndPlay(2);
_parent.gotoAndStop(1);
} else if ((_root.CurrentItem != 1) && (!_root.swap)) {
_root.Sounds.gotoAndPlay(294);
_root.swap = true;
_root["Item" + (_root._currentframe - _root.FirstFrame)] = _root.CurrentItem;
_root.controller.swapTimer = true;
_root.pickUpPhraseBook = true;
var prevItem = _root.CurrentItem;
_root.CurrentItem = _parent._currentframe;
_root.Box.gotoAndStop(_root.CurrentItem);
_parent.gotoAndStop(prevItem);
}
}
}
Instance of Symbol 115 MovieClip "collideline" in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 156 MovieClip "MainChar" in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.CharActive) {
if (_parent.jumping) {
if (0 < _parent.VelY) {
gotoAndStop (11);
running = false;
spraying = false;
} else {
gotoAndStop (11);
running = false;
spraying = false;
}
} else if ((_parent.stopped && (!_parent.Jumping)) && (!_parent.Spraying)) {
running = false;
spraying = false;
gotoAndStop (1);
} else if ((_parent.Running && (!_parent.Spraying)) && (!Running)) {
gotoAndPlay (2);
running = true;
spraying = false;
} else if (_parent.Spraying && (!Spraying)) {
Spraying = true;
SprayCounter = 0;
gotoAndPlay (13);
}
} else {
gotoAndStop (1);
}
}
Symbol 443 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 1
stop();
Instance of Symbol 450 MovieClip "rope" in Symbol 456 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MainChar.hitTest(this) && (Key.isDown(Key.SPACE))) {
if (_root.CurrentItem == 5) {
_root.CurrentItem = 1;
_root.Box.gotoAndStop(_root.CurrentItem);
_root.RopeCut = true;
_parent.play();
} else if ((_root.CurrentItem != 1) && (_root.sounds._currentframe == 1)) {
_root.sounds.gotoAndPlay(31);
} else if (_root.sounds._currentframe == 1) {
_root.sounds.gotoAndPlay(478);
}
}
}
Symbol 456 MovieClip Frame 16
_root.Item6 = 2;
_root.ItemList.gotoAndStop(_root.Item6);
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 9
_root.MainChar.AllowControl = true;
_parent.charge = false;
gotoAndStop (1);
Symbol 467 MovieClip Frame 10
play();
Symbol 467 MovieClip Frame 45
gotoAndPlay (10);
Symbol 478 Button
on (release) {
_root.Lives = 3;
_root.StartLeft = true;
_root.StartRight = false;
gotoAndStop (437);
}