Frame 1
fscommand ("showmenu", "false");
Instance of Symbol 93 MovieClip "GameTotals" in Frame 1
onClipEvent (load) {
GameImageQuality = "LOW";
Gravity = 1;
GameMode = "";
CurrentGameState = "LevelIntro";
FirstPlayerControl = "Arrows";
DifficultyLevel = "";
Player1Name = "Player1";
Player2Name = "Player2";
VSLevelBG = "The Holiday Express";
TotalVSMatches = 3;
TimeLimit = 60;
StartingAmmo = 3;
CurrentVSRound = 0;
StartingWeapon = "NormalShot";
NumberOfBounces = 0;
LevelReached = 0;
ElfingtonChecks = 0;
ElfingtonShots = 0;
ElfingtonHits = 0;
ElfingtonMisses = 0;
ElfingtonTotalGifts = 0;
PanzaChecks = 0;
PanzaShots = 0;
PanzaMisses = 0;
PanzaTotalGifts = 0;
ElfingtonBattlesWon = 0;
PanzaBattlesWon = 0;
LevelFloor = 530;
CurTimer = TimeLimit;
CurSeconds = 17;
ButtonCaption = "";
_quality = GameImageQuality;
}
onClipEvent (enterFrame) {
function UpdateTimerString() {
if ((CurTimer < 60) && (CurTimer >= 0)) {
if (Curtimer < 10) {
TimerString = "0:0" + CurTimer;
_root.SoundLibrary.PlaySound("ButtonDown01");
} else {
TimerString = "0:" + CurTimer;
}
}
if ((CurTimer >= 60) && (119 >= CurTimer)) {
if ((Curtimer - 60) < 10) {
TimerString = "1:0" + (CurTimer - 60);
} else {
TimerString = "1:" + (CurTimer - 60);
}
}
if ((CurTimer >= 120) && (179 >= CurTimer)) {
if ((Curtimer - 120) < 10) {
TimerString = "2:0" + (CurTimer - 120);
} else {
TimerString = "2:" + (CurTimer - 120);
}
}
if ((CurTimer >= 180) && (239 >= CurTimer)) {
if ((Curtimer - 180) < 10) {
TimerString = "3:0" + (CurTimer - 180);
} else {
TimerString = "3:" + (CurTimer - 180);
}
}
if ((CurTimer >= 240) && (299 >= CurTimer)) {
if ((Curtimer - 240) < 10) {
TimerString = "4:0" + (CurTimer - 240);
} else {
TimerString = "4:" + (CurTimer - 240);
}
}
}
if (CurrentGameState == "InPlay") {
curSeconds++;
}
if (17 < curSeconds) {
curSeconds = 0;
curTimer--;
UpdateTimerString();
}
}
Instance of Symbol 96 MovieClip "MusicLibrary" in Frame 1
onClipEvent (load) {
MusicOn = true;
CurrentTune = "7";
lastTuneIn = 0;
}
onClipEvent (enterFrame) {
function PlayTune(TuneIn) {
CurrentTune = TuneIn;
if ((LastTune != TuneIn) && (MusicOn)) {
gotoAndPlay("Tune0" + TuneIn);
}
lastTune = TuneIn;
}
function StopTune() {
gotoAndPlay (1);
}
function ToggleMusic() {
MusicOn = !MusicOn;
if (!MusicOn) {
StopTune();
}
if (MusicOn) {
gotoAndPlay("Tune0" + CurrentTune);
}
}
}
Instance of Symbol 103 MovieClip "SoundLibrary" in Frame 1
onClipEvent (enterFrame) {
function PlaySound(TuneIn) {
gotoAndPlay(TuneIn);
}
function StopSound() {
gotoAndPlay (1);
}
}
Instance of Symbol 105 MovieClip in Frame 1
onClipEvent (load) {
_root.GameTotals.ELfingtonChecks = 0;
_root.GameTotals.ELfingtonHits = 0;
_root.GameTotals.ELfingtonMisses = 0;
_root.GameTotals.PanzaChecks = 0;
_root.GameTotals.PanzaHits = 0;
_root.GameTotals.PanzaMisses = 0;
}
onClipEvent (enterFrame) {
_root.MusicLibrary.MusicOn = true;
_root.MusicLibrary.PlayTune(7);
}
Instance of Symbol 131 MovieClip in Frame 64
onClipEvent (load) {
_root.GameTotals.ELfingtonChecks = 0;
_root.GameTotals.ELfingtonShots = 0;
_root.GameTotals.ELfingtonHits = 0;
_root.GameTotals.ELfingtonMisses = 0;
_root.GameTotals.ElfingtonTotalGifts = 0;
_root.GameTotals.PanzaChecks = 0;
_root.GameTotals.PanzaShots = 0;
_root.GameTotals.PanzaHits = 0;
_root.GameTotals.PanzaMisses = 0;
_root.GameTotals.PanzaTotalGifts = 0;
}
onClipEvent (enterFrame) {
_root.MusicLibrary.MusicOn = true;
_root.MusicLibrary.PlayTune(7);
}
Frame 67
gotoAndPlay(_currentframe - 1);
Frame 83
gotoAndPlay(_currentframe - 1);
Instance of Symbol 182 MovieClip in Frame 90
onClipEvent (load) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
this.unloadMovie();
}
}
Instance of Symbol 185 MovieClip "LevelVariables" in Frame 90
onClipEvent (load) {
GameTotals = _root.GameTotals;
ElfingtonComments = "Good Playing!";
PanzaComments = "Good Playing!";
if (GameTotals.LevelReached == 1) {
ElfingtonComments = "You couldn't get past level 1?!";
PanzaComments = "Is it that hard to help wrap gifts?!";
}
if (GameTotals.LevelReached == 2) {
ElfingtonComments = "Keep trying and you could reach level 3!";
PanzaComments = "Use teamwork to get through level 2!";
}
if (GameTotals.LevelReached == 3) {
ElfingtonComments = "Level 3...not too shabby!";
PanzaComments = "Good job! Level 4's just around the corner!";
}
if (GameTotals.LevelReached == 4) {
ElfingtonComments = "Watch out for those falling tools on this level!";
PanzaComments = "Keep trying!";
}
if (10 < ((GameTotals.ElfingtonChecks / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Perhaps you should send more time shooting and less time checking Panza.";
}
if (10 < ((GameTotals.PanzaChecks / GameTotals.PanzaShots) * 100)) {
PanzaComments = "Perhaps you should send more time shooting and less time checking Elfington.";
}
if (5 < ((GameTotals.ElfingtonChecks / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Do you have some Body Checking fixation with Panza?!";
}
if (5 < ((GameTotals.PanzaChecks / GameTotals.PanzaShots) * 100)) {
PanzaComments = "Do you have some Body Checking fixation with Elfington?!";
}
if (80 < ((GameTotals.ElfingtonHits / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Good shooting! Way to wrap those gifts!";
}
if (80 < ((GameTotals.PanzaHits / GameTotals.PanzaShots) * 100)) {
PanzaComments = "Good shooting! Way to wrap those gifts!";
}
if (90 < ((GameTotals.ElfingtonHits / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Excellent Aim!";
}
if (90 < ((GameTotals.PanzaHits / GameTotals.PanzaShots) * 100)) {
PanzaComments = "Excellent Aim!";
}
if (50 < ((GameTotals.ElfingtonMisses / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Looks like you need to work on your aim!";
}
if (50 < ((GameTotals.PanzaMisses / GameTotals.PanzaShots) * 100)) {
PanzaComments = "You could use some help hitting those targets!";
}
if (70 < ((GameTotals.ElfingtonMisses / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "You accuracy needs some improvement.";
}
if (70 < ((GameTotals.PanzaMisses / GameTotals.PanzaShots) * 100)) {
PanzaComments = "You accuracy needs some improvement.";
}
if (90 < ((GameTotals.ElfingtonMisses / GameTotals.ElfingtonShots) * 100)) {
ElfingtonComments = "Did you even ATTEMPT to hit the falling gifts?!";
}
if (90 < ((GameTotals.PanzaMisses / GameTotals.PanzaShots) * 100)) {
PanzaComments = "Did you even ATTEMPT to hit the falling gifts?!";
}
if (GameTotals.ElfingtonShots == GameTotals.ElfingtonHits) {
ElfingtonComments = "Perfect Shooting!";
}
if (GameTotals.PanzaShots == GameTotals.PanzaHits) {
PanzaComments = "Perfect Shooting!";
}
if (GameTotals.ElfingtonShots == GameTotals.ElfingtonMisses) {
ElfingtonComments = "You didn't hit a single gift. Is it that hard to aim a weapon you can only point in one direction?";
}
if (GameTotals.PanzaShots == GameTotals.PanzaMisses) {
PanzaComments = "You didn't hit a single gift. Is it that hard to aim a weapon you can only point in one direction?";
}
if (GameTotals.ElfingtonShots == 0) {
ElfingtonComments = "Congratulations sitting on your butt the whole game.";
}
if (GameTotals.PanzaShots == 0) {
PanzaComments = "Congratulations sitting on your butt the whole game.";
}
if ((GameTotals.ElfingtonShots < 5) && (4 < GameTotals.ElfingtonChecks)) {
ElfingtonComments = "You should consider wrapping the presents rather than beating up Panza the whole game.";
}
if ((GameTotals.PanzaShots < 5) && (4 < GameTotals.PanzaChecks)) {
PanzaComments = "You should consider wrapping the presents rather than beating up Panza the whole game.";
}
if (((GameTotals.ElfingtonTotalGifts / GameTotals.PanzaTotalGifts) * 100) < 5) {
ElfingtonComments = "Worthless Partner Award!";
}
if (((GameTotals.PanzaTotalGifts / GameTotals.ElfingtonTotalGifts) * 100) < 5) {
PanzaComments = "Worthless Partner Award!";
}
}
onClipEvent (enterFrame) {
_root.MusicLibrary.PlayTune(7);
}
Frame 93
gotoAndPlay(_currentframe - 1);
Frame 108
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 188 MovieClip in Frame 108
onClipEvent (load) {
escIsBeingHeld = false;
}
onClipEvent (enterFrame) {
if (((_root.GameTotals.CurrentGameState == "InPlay") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.GameTotals.CurrentGameState = "Paused";
_root.attachMovie("PausedScreen", "PausedScreen", 1000);
_root.PausedScreen.gotoAndPlay(1);
escIsBeingHeld = true;
} else if (((_root.GameTotals.CurrentGameState == "Paused") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.PausedScreen.UnloadMovie();
_root.GameTotals.CurrentGameState = "InPlay";
escIsBeingHeld = true;
}
if (!Key.IsDown(Key.Escape)) {
escIsBeingHeld = false;
}
}
Instance of Symbol 191 MovieClip in Frame 108
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 192 MovieClip in Frame 108
onClipEvent (load) {
PlayerName = "Panza";
}
Instance of Symbol 227 MovieClip "LevelVariables" in Frame 108
onClipEvent (load) {
_root.MusicLibrary.PlayTune(4);
Level = 1;
MaxLevelGifts = 5;
LevelGiftGoal = 25;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 60;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 254 MovieClip in Frame 108
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 108
onClipEvent (load) {
PlayerName = "Elfington";
}
Frame 111
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 119
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 275 MovieClip "LevelVariables" in Frame 119
onClipEvent (load) {
_root.MusicLibrary.PlayTune(4);
Level = 2;
MaxLevelGifts = 5;
LevelGiftGoal = 30;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 60;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 119
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 119
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 122
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 132
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 285 MovieClip "LevelVariables" in Frame 132
onClipEvent (load) {
_root.MusicLibrary.PlayTune(1);
Level = 3;
MaxLevelGifts = 5;
LevelGiftGoal = 35;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 80;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 60;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 132
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 132
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 136
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 142
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 327 MovieClip "LevelVariables" in Frame 142
onClipEvent (load) {
_root.MusicLibrary.PlayTune(5);
Level = 4;
MaxLevelGifts = 5;
LevelGiftGoal = 45;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 80;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 142
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 142
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 146
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 152
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 188 MovieClip in Frame 152
onClipEvent (load) {
escIsBeingHeld = false;
}
onClipEvent (enterFrame) {
if (((_root.GameTotals.CurrentGameState == "InPlay") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.GameTotals.CurrentGameState = "Paused";
_root.attachMovie("PausedScreen", "PausedScreen", 1000);
_root.PausedScreen.gotoAndPlay(1);
escIsBeingHeld = true;
} else if (((_root.GameTotals.CurrentGameState == "Paused") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.PausedScreen.UnloadMovie();
_root.GameTotals.CurrentGameState = "InPlay";
escIsBeingHeld = true;
}
if (!Key.IsDown(Key.Escape)) {
escIsBeingHeld = false;
}
}
Instance of Symbol 335 MovieClip "LevelVariables" in Frame 152
onClipEvent (load) {
_root.MusicLibrary.PlayTune(4);
Level = 5;
MaxLevelGifts = 5;
LevelGiftGoal = 55;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 60;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 152
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 152
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 155
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 160
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 343 MovieClip "LevelVariables" in Frame 160
onClipEvent (load) {
_root.MusicLibrary.PlayTune(4);
Level = 6;
MaxLevelGifts = 5;
LevelGiftGoal = 65;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 60;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 160
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 160
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 163
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 168
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 351 MovieClip "LevelVariables" in Frame 168
onClipEvent (load) {
_root.MusicLibrary.PlayTune(1);
Level = 7;
MaxLevelGifts = 5;
LevelGiftGoal = 75;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 80;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 130;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 168
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 168
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 172
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Frame 178
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 359 MovieClip "LevelVariables" in Frame 178
onClipEvent (load) {
_root.MusicLibrary.PlayTune(5);
Level = 8;
MaxLevelGifts = 5;
LevelGiftGoal = 85;
if (_root.GameTotals.GameMode == "TwoPlayerStory") {
LevelGiftGoal = LevelGiftGoal * 2;
}
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
GiftString = "0 / " + LevelGiftGoal;
TimeBetweenAttacks = 60;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = 95;
_root.GameTotals.UpdateTimerString();
_root.GameTotals.LevelReached = Level;
_root.Elfington.Player.CurrentIdleAnimation = "Idle";
_root.Elfington.Player.action = "Idle";
_root.Panza.Player.CurrentIdleAnimation = "Idle";
_root.Panza.Player.action = "Idle";
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
curGift++;
}
}
function CheckLevelCleared() {
if (TotalGifts >= LevelGiftGoal) {
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("LevelTally", "LevelTally", 1000);
_root.LevelTally.gotoAndPlay(1);
_root.Panza.player.CurrentIdleAnimation = "Dancing";
_root.Elfington.player.CurrentIdleAnimation = "Dancing";
trace(_root.Panza.player.CurrentIdleAnimation);
_root.MusicLibrary.PlayTune(6);
}
}
function CheckTimeUp() {
if (_root.GameTotals.CurTimer < 0) {
_root.GameTotals.CurrentGameState = "LevelTimeUp";
_root.attachMovie("TimeUp", "TimeUp", 1000);
_root.TimeUp.gotoAndPlay(1);
_root.MusicLibrary.PlayTune(3);
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
TotalGifts = ElfingtonPresents + PanzaPresents;
GiftString = (TotalGifts + " / ") + LevelGiftGoal;
CheckLevelCleared();
CheckTimeUp();
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 178
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 178
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 182
if (_root.gameVariables.LevelCompleted) {
gotoAndPlay(_root._currentFrame - 1);
} else {
gotoAndPlay(_root._currentFrame - 1);
}
Instance of Symbol 392 MovieClip in Frame 205
onClipEvent (load) {
_root.GameTotals.CurTimer = _root.GameTotals.TimeLimit;
_root.GameTotals.UpdateTimerString();
}
Frame 208
gotoAndPlay(_currentframe - 1);
Frame 217
gotoAndPlay(_root._currentFrame + 1);
Instance of Symbol 424 MovieClip "LevelDisplay" in Frame 217
onClipEvent (load) {
gotoAndStop(_root.GameTotals.VSLevelBG);
}
Instance of Symbol 188 MovieClip in Frame 217
onClipEvent (load) {
escIsBeingHeld = false;
}
onClipEvent (enterFrame) {
if (((_root.GameTotals.CurrentGameState == "InPlay") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.GameTotals.CurrentGameState = "Paused";
_root.attachMovie("PausedScreen", "PausedScreen", 1000);
_root.PausedScreen.gotoAndPlay(1);
escIsBeingHeld = true;
} else if (((_root.GameTotals.CurrentGameState == "Paused") && (Key.IsDown(Key.Escape))) && (!escIsBeingHeld)) {
_root.PausedScreen.UnloadMovie();
_root.GameTotals.CurrentGameState = "InPlay";
escIsBeingHeld = true;
}
if (!Key.IsDown(Key.Escape)) {
escIsBeingHeld = false;
}
}
Instance of Symbol 191 MovieClip in Frame 217
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 192 MovieClip in Frame 217
onClipEvent (load) {
PlayerName = "Panza";
}
Instance of Symbol 425 MovieClip "LevelVariables" in Frame 217
onClipEvent (load) {
_root.MusicLibrary.PlayTune(4);
if ((_root.GameTotals.ElfingtonBattlesWon == (_root.GameTotals.TotalVSMatches - 1)) && (_root.GameTotals.PanzaBattlesWon == (_root.GameTotals.TotalVSMatches - 1))) {
_root.MusicLibrary.PlayTune(5);
}
_root.GameTotals.CurrentVSRound++;
MaxLevelGifts = 5;
LevelCompleted = false;
NextGift = 30;
NextDepth = 100;
NextBulletInstance = 1;
Gravity = 1;
FirstPlayerControl = "Letters";
ElfingtonPresents = 0;
PanzaPresents = 0;
TotalGifts = 0;
_root.GameTotals.CurSeconds = 17;
_root.GameTotals.CurTimer = _root.GameTotals.TimeLimit;
_root.GameTotals.UpdateTimerString();
TimeBetweenAttacks = 60;
}
onClipEvent (enterFrame) {
function EndLevelIntro() {
curGift = 30;
while ((30 + MaxLevelGifts) >= curGift) {
_root.attachMovie("Gift", "Gift_" + curGift, curGift);
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
eval ("_root.Gift_" + curGift)._x = random(690) + 5;
eval ("_root.Gift_" + curGift)._y = (-random(100)) + 15;
curGift++;
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
if (_root.GameTotals.CurTimer < 0) {
_root.MusicLibrary.PlayTune(6);
_root.GameTotals.CurrentGameState = "EndLevelTally";
_root.attachMovie("EndVSMatch", "EndVSMatch", 1000);
_root.EndVSMatch.gotoAndPlay(1);
if (_root.LevelVariables.PanzaPresents < _root.LevelVariables.ElfingtonPresents) {
_root.EndVSMatch.panza._visible = false;
_root.EndVSMatch.draw._visible = false;
_root.GameTotals.ElfingtonBattlesWon++;
if (_root.Elfington.Player.Action == _root.Elfington.Player.CurrentIdleAnimation) {
_root.Elfington.Player.Action = "Dancing";
}
_root.Elfington.Player.CurrentIdleAnimation = "Dancing";
}
if (_root.LevelVariables.ElfingtonPresents < _root.LevelVariables.PanzaPresents) {
_root.EndVSMatch.elfington._visible = false;
_root.EndVSMatch.draw._visible = false;
_root.GameTotals.PanzaBattlesWon++;
if (_root.Panza.Player.Action == _root.Panza.Player.CurrentIdleAnimation) {
_root.Panza.Player.Action = "Dancing";
}
_root.Panza.Player.CurrentIdleAnimation = "Dancing";
}
if (_root.LevelVariables.ElfingtonPresents == _root.LevelVariables.PanzaPresents) {
_root.MusicLibrary.PlayTune(3);
_root.EndVSMatch.elfington._visible = false;
_root.EndVSMatch.panza._visible = false;
}
}
}
}
Instance of Symbol 250 MovieClip "elfington" in Frame 217
onClipEvent (load) {
PlayerName = "Elfington";
}
Instance of Symbol 254 MovieClip in Frame 217
onClipEvent (enterFrame) {
if (_root.GameTotals.GameMode == "OnePlayerStory") {
_visible = false;
}
}
Frame 218
gotoAndPlay(_root._currentFrame + 1);
Frame 222
gotoAndPlay(_root._currentFrame - 1);
Frame 223
gotoAndPlay(_root._currentFrame - 1);
Frame 224
gotoAndPlay(_root._currentFrame - 2);
Instance of Symbol 453 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (Key.isDown(Key.enter) || (Key.isDown(Key.space))) {
if (_root.GameTotals.ElfingtonBattlesWon >= _root.GameTotals.TotalVSMatches) {
_root.gotoAndPlay("ElfingtonWins");
}
if (_root.GameTotals.PanzaBattlesWon >= _root.GameTotals.TotalVSMatches) {
_root.gotoAndPlay("PanzaWins");
}
if ((_root.GameTotals.PanzaBattlesWon != _root.GameTotals.TotalVSMatches) && (_root.GameTotals.ElfingtonBattlesWon != _root.GameTotals.TotalVSMatches)) {
_root.gotoAndPlay("BattleLevel");
}
}
}
Frame 235
gotoAndPlay(_currentframe - 1);
Instance of Symbol 464 MovieClip in Frame 252
onClipEvent (load) {
_root.MusicLibrary.PlayTune(6);
}
Frame 257
gotoAndPlay(_currentframe - 1);
Instance of Symbol 468 MovieClip in Frame 274
onClipEvent (load) {
_root.MusicLibrary.PlayTune(6);
}
Frame 277
gotoAndPlay(_currentframe - 1);
Frame 296
_quality = "HIGH";
Instance of Symbol 475 MovieClip in Frame 312
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
_root.MusicLibrary.PlayTune(7);
timer++;
if ((timer >= 850) || (Key.isDown(Key.space))) {
gotoAndPlay (91);
}
}
Frame 317
gotoAndPlay(_currentframe - 1);
Symbol 11 MovieClip Frame 8
gotoAndStop (8);
Symbol 17 MovieClip Frame 6
_parent.DestroyBullet();
Instance of Symbol 18 MovieClip "Bullet" in Symbol 19 MovieClip [Bullet] Frame 1
onClipEvent (load) {
gotoAndStop(_parent.Action);
Action = _parent.Action;
LevelVariables = _root.LevelVariables;
ExplosionFirstFrame = true;
if (Action == "NormalShot") {
YVelocity = -15;
}
if (Action == "WrapMissile") {
if (YVelocity < 20) {
YVelocity = YVelocity - 2;
}
}
if (Action == "PeircingBow") {
YVelocity = -25;
}
HasHitAGift = false;
playerShotName = "Default";
}
onClipEvent (enterFrame) {
function DestroyBullet() {
trace(PlayerShotName);
if (!HasHitAGift) {
PlayerShotPath.IncrementMisses();
}
if (HasHitAGift) {
PlayerShotPath.IncrementHits();
}
_parent.removeMovieClip();
}
if (_root.GameTotals.CurrentGameState != "Paused") {
if (_parent._Y < -150) {
PlayerShotPath.WeaponRemaining++;
DestroyBullet();
}
if (Action == "WrapMissile") {
if (YVelocity < 20) {
YVelocity = YVelocity - 2;
}
}
curGift = 30;
while ((30 + LevelVariables.MaxLevelGifts) >= curGift) {
if (this.hitTest(eval (("_root.Gift_" + curGift) + ".Gift")) && (ExplosionFirstFrame)) {
HasHitAGift = true;
curPath = eval (("_root.Gift_" + curGift) + ".Gift");
curPathParent = eval ("_root.Gift_" + curGift);
if ((curPath.action == "PetGift") || (curPath.action == "PetGiftFalling")) {
curPath.ChangeAction("PetGiftFalling");
} else {
curPath.ChangeAction("GiftFalling");
}
curPath.YVelocity = -4;
curPath.xVelocity = 0;
if ((curPathParent._x + 10) < _parent._x) {
curPath.xVelocity = -3;
}
if ((curPathParent._x - 10) >= _parent._x) {
curPath.xVelocity = 3;
}
if (action == "NormalShot") {
PlayerShotPath.WeaponRemaining++;
DestroyBullet();
}
if (Action == "WrapMissile") {
PlayerShotPath.WeaponRemaining++;
LevelVariables.GetBulletCost(Action);
Action = "Explosion";
gotoAndStop (35);
ExplosionFirstFrame = true;
curGift = 30;
yVelocity = 0;
}
}
curGift++;
}
_parent._y = _parent._y + yVelocity;
if (Action == "Explosion") {
ExplosionFirstFrame = false;
}
}
}
Symbol 19 MovieClip [Bullet] Frame 2
gotoAndPlay (1);
Symbol 44 MovieClip Frame 17
gotoAndPlay (11);
Symbol 49 MovieClip Frame 27
gotoAndPlay (10);
Instance of Symbol 51 MovieClip "Gift" in Symbol 52 MovieClip [Gift] Frame 1
onClipEvent (load) {
XVelocity = 0;
YVelocity = 5;
MaxVelocity = 8;
Action = "Plus" + (random(2) + 1);
prevAction = "";
Bounces = 0;
GameTotals = _root.GameTotals;
if (Action == "Plus1") {
PresentPoints = 1;
}
if (Action == "Plus2") {
PresentPoints = 2;
}
if (Action == "Plus3") {
PresentPoints = 3;
}
if (Action == "Minus1") {
PresentPoints = -1;
}
if (Action == "Minus2") {
PresentPoints = -2;
}
}
onClipEvent (enterFrame) {
function ChangeAction(ActionIn) {
prevAction = Action;
Action = ActionIn;
}
function RepositionGift() {
bounces = 0;
_parent._y = 0;
ChangeAction("Plus" + (random(3) + 1));
if (random(15) == 5) {
action = "PetGift";
}
_parent._X = random(680) + 10;
xVelocity = 0;
if (Action == "Plus1") {
PresentPoints = 1;
}
if (Action == "Plus2") {
PresentPoints = 2;
}
if (Action == "Plus3") {
PresentPoints = 3;
}
if (Action == "Minus1") {
PresentPoints = -1;
}
if (Action == "Minus2") {
PresentPoints = -2;
}
}
if (_root.GameTotals.CurrentGameState == "InPlay") {
if (Action == "GiftFalling") {
curPath = _root.Elfington;
if (curPath.HitTest(this)) {
RepositionGift();
_root.LevelVariables.ElfingtonPresents = _root.LevelVariables.ElfingtonPresents + PresentPoints;
_root.GameTotals.ElfingtonTotalGifts = _root.GameTotals.ElfingtonTotalGifts + PresentPoints;
curPath.player.CurCombo++;
}
curPath = _root.Panza;
if (curPath.HitTest(this)) {
RepositionGift();
_root.LevelVariables.PanzaPresents = _root.LevelVariables.PanzaPresents + PresentPoints;
_root.GameTotals.PanzaTotalGifts = _root.GameTotals.PanzaTotalGifts + PresentPoints;
curPath.player.CurCombo++;
}
}
if (Action == "PetGiftFalling") {
curPath = _root.Elfington.player;
if (curPath.HitTest(this)) {
RepositionGift();
curPath.CatPoints++;
}
curPath = _root.Panza.player;
if (curPath.HitTest(this)) {
RepositionGift();
curPath.CatPoints++;
}
}
YVelocity = YVelocity + _root.LevelVariables.Gravity;
if (MaxVelocity < YVelocity) {
YVelocity = MaxVelocity;
}
_parent._y = _parent._y + YVelocity;
_parent._x = _parent._x + xVelocity;
if (((GameTotals.LevelFloor < _parent._y) && (bounces < 1)) && (Action == "GiftFalling")) {
yVelocity = -6;
_parent._y = _parent._y - 4;
bounces++;
}
if ((700 < _parent._x) || (_parent._x < 5)) {
xVelocity = xVelocity * -1;
_parent._x = _parent._x + xVelocity;
}
if (610 < _parent._y) {
RepositionGift();
}
gotoAndStop(Action);
gotoAndStop((_currentframe + PresentPoints) - 1);
}
if ((_root.gameTotals.CUrrentGameState == "EndLevelTally") || (_root.gameTotals.CUrrentGameState == "LevelTimeUp")) {
YVelocity = YVelocity + _root.LevelVariables.Gravity;
if (MaxVelocity < YVelocity) {
YVelocity = MaxVelocity;
}
_parent._y = _parent._y + YVelocity;
_parent._x = _parent._x + xVelocity;
if (_parent._alpha < 0) {
_parent.removeMovieClip();
}
_parent._alpha = _parent._alpha - 9;
}
}
Symbol 52 MovieClip [Gift] Frame 2
gotoAndStop (1);
Symbol 57 MovieClip [TimeUp] Frame 84
_root.gameTotals.currentGameState = "LevelIntro";
_root.gotoAndPlay("EndGameTally");
_root.TimeUp.removeMovieClip();
Symbol 64 Button
on (release) {
_root.PausedScreen.UnloadMovie();
_root.GameTotals.CurrentGameState = "InPlay";
}
Symbol 68 Button
on (release) {
_root.PausedScreen.UnloadMovie();
_root.GameTotals.CurrentGameState = "InPlay";
_root.GameTotals.CurTimer = 1;
}
Symbol 72 Button
on (release) {
_root.musicLibrary.ToggleMusic();
}
Symbol 76 Button
on (release) {
toggleHighQuality();
_root.GameTotals.GameImageQuality = _quality;
}
Symbol 79 MovieClip [PausedScreen] Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 82 MovieClip [LevelTally] Frame 80
_root.gameTotals.currentGameState = "LevelIntro";
_root.gotoAndPlay("Level" + (_root.levelVariables.level + 1));
if (_root.levelVariables.level == 8) {
_root.gotoAndPlay("StoryModeCongrats");
}
_root.LevelTally.removeMovieClip();
Symbol 92 MovieClip [EndVSMatch] Frame 73
_root.gotoAndPlay("BattleTally");
_root.EndVSMatch.removeMovieClip();
Symbol 96 MovieClip Frame 1
gotoAndStop(_currentframe);
Symbol 96 MovieClip Frame 193
this.gotoAndPlay("Tune01");
Symbol 96 MovieClip Frame 265
gotoAndStop (1);
Symbol 96 MovieClip Frame 774
gotoAndPlay (278);
Symbol 96 MovieClip Frame 1149
gotoAndPlay (781);
Symbol 96 MovieClip Frame 1235
gotoAndStop (1);
Symbol 96 MovieClip Frame 1489
gotoAndPlay (1243);
Symbol 96 MovieClip Frame 1521
gotoAndStop (1);
Symbol 103 MovieClip Frame 17
gotoAndStop (1);
Symbol 103 MovieClip Frame 36
gotoAndStop (1);
Symbol 103 MovieClip Frame 56
gotoAndStop (1);
Symbol 103 MovieClip Frame 76
gotoAndStop (1);
Symbol 103 MovieClip Frame 97
gotoAndStop (1);
Symbol 103 MovieClip Frame 113
gotoAndStop (1);
Symbol 103 MovieClip Frame 131
gotoAndStop (1);
Symbol 116 Button
on (release) {
_root.GameTotals.GameMode = "TwoPlayerStory";
_root.SoundLibrary.PlaySound("ButtonUp01");
gotoAndPlay (109);
}
on (rollOver) {
_root.GameTotals.ButtonCaption = "Two Player Co-Op";
}
on (rollOut) {
_root.GameTotals.ButtonCaption = "";
}
Symbol 120 Button
on (release) {
_root.GameTotals.GameMode = "OnePlayerStory";
_root.SoundLibrary.PlaySound("ButtonUp01");
gotoAndPlay (109);
}
on (rollOver) {
_root.GameTotals.ButtonCaption = "One Player Mode";
}
on (rollOut) {
_root.GameTotals.ButtonCaption = "";
}
Symbol 126 Button
on (release) {
_root.GameTotals.GameMode = "TwoPlayerBattle";
_root.GameTotals.TotalVSMatches = 3;
_root.GameTotals.TimeLimit = 60;
_root.GameTotals.StartingWeapon = "NormalShot";
_root.GameTotals.StartingAmmo = 3;
_root.GameTotals.ElfingtonBattlesWon = 0;
_root.GameTotals.PanzaBattlesWon = 0;
_root.SoundLibrary.PlaySound("ButtonUp01");
gotoAndPlay (206);
}
on (rollOver) {
_root.GameTotals.ButtonCaption = "Two Player Battle";
}
on (rollOut) {
_root.GameTotals.ButtonCaption = "";
}
Symbol 130 Button
on (release) {
_root.SoundLibrary.PlaySound("ButtonUp01");
gotoAndPlay (80);
}
on (rollOver) {
_root.GameTotals.ButtonCaption = "Options";
}
on (rollOut) {
_root.GameTotals.ButtonCaption = "";
}
Symbol 132 Button
on (release) {
getURL ("http://www.stardock.com", "_blank");
}
Symbol 137 Button
on (release) {
getURL ("http://www.stardock.com", "_blank");
}
Symbol 140 Button
on (release) {
gotoAndPlay (64);
}
Symbol 143 Button
on (release) {
toggleHighQuality();
_root.GameTotals.GameImageQuality = _quality;
}
Symbol 148 Button
on (release) {
_root.musicLibrary.ToggleMusic();
}
Symbol 151 Button
on (release) {
gotoAndStop (296);
}
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
holderPath = eval (("_root." + _parent.holder) + ".player");
}
onClipEvent (enterFrame) {
if (holderPath.CurrentWeapon == "NormalShot") {
gotoAndStop (1);
}
if (holderPath.CurrentWeapon == "WrapMissile") {
gotoAndStop (3);
}
if (holderPath.CurrentWeapon == "PeircingBow") {
gotoAndStop (2);
}
if (((holderPath.CurrentWeapon != "PeircingBow") && (holderPath.CurrentWeapon != "WrapMissile")) && (holderPath.CurrentWeapon != "NormalShot")) {
gotoAndStop (100);
}
}
Symbol 164 MovieClip Frame 6
gotoAndPlay(_currentframe - 2);
Instance of Symbol 164 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
Holder = "Elfington";
}
Instance of Symbol 163 MovieClip in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
holderPath = eval (("_root." + _parent.holder) + ".player");
}
onClipEvent (enterFrame) {
if (holderPath.CurrentWeapon == "NormalShot") {
gotoAndStop (1);
}
if (holderPath.CurrentWeapon == "WrapMissile") {
gotoAndStop (3);
}
if (holderPath.CurrentWeapon == "PeircingBow") {
gotoAndStop (2);
}
if (((holderPath.CurrentWeapon != "PeircingBow") && (holderPath.CurrentWeapon != "WrapMissile")) && (holderPath.CurrentWeapon != "NormalShot")) {
gotoAndStop (100);
}
}
Symbol 172 MovieClip Frame 6
gotoAndPlay(_currentframe - 2);
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
Holder = "Panza";
}
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_parent._y = _root.GameTotals.LevelFloor;
PlayerPath = eval ("_root." + _parent.PlayerName);
if ((_parent.PlayerName == "Panza") && (_root.GameTotals.GameMode == "OnePlayerStory")) {
_parent.unloadMovie();
}
}
onClipEvent (enterFrame) {
trace(_parent.PlayerName);
_parent._x = PlayerPath._x;
}
Instance of Symbol 190 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
_parent._y = _root.GameTotals.LevelFloor;
PlayerPath = eval ("_root." + _parent.PlayerName);
if ((_parent.PlayerName == "Panza") && (_root.GameTotals.GameMode == "OnePlayerStory")) {
_parent.unloadMovie();
}
}
onClipEvent (enterFrame) {
trace(_parent.PlayerName);
_parent._x = PlayerPath._x;
}
Instance of Symbol 164 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
Holder = "Elfington";
}
Instance of Symbol 172 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
Holder = "Panza";
}
Symbol 195 MovieClip Frame 9
gotoAndStop(_currentframe);
Symbol 196 MovieClip Frame 12
gotoAndStop(_currentframe);
Instance of Symbol 164 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
Holder = "Elfington";
}
Symbol 200 MovieClip Frame 7
_parent.action = _parent.CurrentIdleAnimation;
Instance of Symbol 163 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
holderPath = eval (("_root." + _parent.holder) + ".player");
}
onClipEvent (enterFrame) {
if (holderPath.CurrentWeapon == "NormalShot") {
gotoAndStop (1);
}
if (holderPath.CurrentWeapon == "WrapMissile") {
gotoAndStop (3);
}
if (holderPath.CurrentWeapon == "PeircingBow") {
gotoAndStop (2);
}
if (((holderPath.CurrentWeapon != "PeircingBow") && (holderPath.CurrentWeapon != "WrapMissile")) && (holderPath.CurrentWeapon != "NormalShot")) {
gotoAndStop (100);
}
}
Symbol 202 MovieClip Frame 6
gotoAndPlay(_currentframe - 2);
Instance of Symbol 202 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
Holder = "Panza";
}
Instance of Symbol 202 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (load) {
Holder = "Panza";
}
Symbol 206 MovieClip Frame 7
_parent.action = _parent.CurrentIdleAnimation;
Symbol 207 MovieClip Frame 7
_parent.action = _parent.CurrentIdleAnimation;
Symbol 210 MovieClip Frame 7
_parent.action = _parent.CurrentIdleAnimation;
Symbol 211 MovieClip Frame 7
_parent.action = _parent.CurrentIdleAnimation;
Instance of Symbol 164 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
Holder = "Elfington";
}
Instance of Symbol 225 MovieClip "Player" in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
if ((_root.GameTotals.GameMode == "OnePlayerStory") && (_parent._name == "Panza")) {
_parent.unloadMovie();
}
CatPoints = 0;
Speed = 2;
Friction = 5;
xVelocity = 0;
yVelocity = 0;
maxXVelocity = 20;
Action = "Idle";
prevAction = "";
CurrentIdleAnimation = "Idle";
ShotButtonHeld = false;
RightButtonHeld = false;
LeftButtonHeld = false;
JumpButtonHeld = false;
DownButtonHeld = false;
TimeLastJumpKey = 100;
TimeLastLeftKey = 100;
TimeLastRightKey = 100;
TimeLastDownKey = 100;
Combo = 0;
GameTotals = _root.GameTotals;
LevelVariables = _root.LevelVariables;
CurrentWeapon = GameTotals.StartingWeapon;
WeaponRemaining = GameTotals.StartingAmmo;
if (_parent._name == "Elfington") {
OtherPlayerPath = _root.Panza.player;
otherPlayerName = "Panza";
}
if (_parent._name == "Panza") {
OtherPlayerPath = _root.Elfington.player;
otherPlayerName = "Elfington";
}
eval (otherPlayerName)._visible = false;
if (((GameTotals.FirstPlayerControl == "Arrows") && (_parent._name == "Elfington")) || ((GameTotals.FirstPlayerControl != "Arrows") && (_parent._name == "Panza"))) {
rightKey = Key.Right;
leftKey = Key.Left;
shotKey = 13;
jumpKey = Key.Up;
downKey = Key.Down;
}
if (((GameTotals.FirstPlayerControl == "Letters") && (_parent._name == "Elfington")) || ((GameTotals.FirstPlayerControl != "Letters") && (_parent._name == "Panza"))) {
rightKey = 68;
leftKey = 65;
shotKey = 192;
jumpKey = 87;
downKey = 83;
}
}
onClipEvent (enterFrame) {
function IncrementHits() {
eval (("_root.GameTotals." + _parent._name) + "Hits")++;
}
function IncrementMisses() {
eval (("_root.GameTotals." + _parent._name) + "Misses")++;
}
function PlayOtherPlayerHurtSound() {
soundToPlay = (OtherPlayerName + "Checked0") + (random(2) + 1);
_root.soundLibrary.PlaySound(SoundToPlay);
}
function ChangeAction(ActionIn) {
prevAction = Action;
Action = ActionIn;
}
function UpdateXVelocity() {
if ((Action != "CheckRight") && (Action != "CheckLeft")) {
if (Key.isDown(rightKey) && ((XVelocity >= 0) < 20)) {
XVelocity = XVelocity + Speed;
RightButtonHeld = true;
}
if (Key.isDown(rightKey) && (XVelocity < 0)) {
XVelocity = XVelocity + Friction;
RightButtonHeld = true;
}
if (Key.isDown(leftKey) && (-20 < (XVelocity < 0))) {
XVelocity = XVelocity - Speed;
LeftButtonHeld = true;
}
if (Key.isDown(leftKey) && (XVelocity >= 0)) {
XVelocity = XVelocity - Friction;
LeftButtonHeld = true;
}
}
if (((XVelocity != 0) && (!Key.isDown(rightKey))) && (!Key.isDown(LeftKey))) {
if (((((-1 * Friction) - 1) < XVelocity) && (XVelocity < 0)) || ((Friction >= XVelocity) && (0 < XVelocity))) {
XVelocity = 0;
}
if (Friction < XVelocity) {
XVelocity = XVelocity - Friction;
}
if (XVelocity < ((-1 * Friction) + 1)) {
XVelocity = XVelocity + Friction;
}
}
if (maxXVelocity < XVelocity) {
XVelocity = maxXVelocity;
}
if (XVelocity < (-1 * maxXVelocity)) {
XVelocity = -1 * maxXVelocity;
}
}
function CreateNewBullet() {
eval (("_root.GameTotals." + _parent._name) + "Shots")++;
LevelVariables.NextBulletInstance++;
LevelVariables.NextDepth++;
_root.attachMovie("Bullet", "Bullet" + LevelVariables.NextBulletInstance, LevelVariables.NextDepth);
curPath = eval ("_root.Bullet" + LevelVariables.NextBulletInstance);
curPath._x = _parent._X;
curPath._y = _parent._Y;
curPath.Action = CurrentWeapon;
curPath.Bullet.PlayerShotPath = this;
curPath.PlayerShotName = _parent._name;
WeaponRemaining = WeaponRemaining - 1;
ShotButtonHeld = true;
}
function SetAnimation() {
gotoAndStop(Action);
eval (otherPlayerName)._visible = false;
}
function MakeCheckingCurrentAction() {
curTime = getTimer();
if (Key.isDown(rightKey) && (!RightButtonHeld)) {
if ((curTime - TimeLastRightKey) < 300) {
_parent._X = _parent._X + 100;
TimeLastRightKey = 100;
Action = "CheckRight";
} else {
TimeLastRightKey = curTime;
}
}
if (Key.isDown(leftKey) && (!LeftButtonHeld)) {
if ((curTime - TimeLastLeftKey) < 300) {
_parent._X = _parent._X - 100;
TimeLastLeftKey = 100;
Action = "CheckLeft";
} else {
TimeLastLeftKey = curTime;
}
}
}
function PowercheckPlayer(xVelocityIn, yVelocityIn, NewYIn) {
eval (("_root.GameTotals." + OtherPlayerName) + "Checks")++;
ChangeAction("Checked");
XVelocity = xVelocityIn;
yVelocity = yVelocityIn;
_parent._y = _parent._y + NewYIn;
}
trace(CurrentIdleAnimation);
if ((_parent._y < GameTotals.LevelFloor) && (Action != "Checked")) {
Action = "Jumping";
yVelocity = (yVelocity + LevelVariables.Gravity) + 4;
UpdateXVelocity();
if (hitTest(OtherPlayerPath) && (OtherPlayerPath.action == "Checked")) {
if (OtherPlayerPath._x < _parent._x) {
OtherPlayerPath.PowercheckPlayer(100, -40, -10);
PlayOtherPlayerHurtSound();
}
if (OtherPlayerPath._x >= _parent._x) {
OtherPlayerPath.PowercheckPlayer(-100, -40, -10);
PlayOtherPlayerHurtSound();
}
}
}
if (Action == "CheckLeft") {
if (_parent.hitTest(OtherPlayerPath) && (OtherPlayerPath.Action != "Jumping")) {
OtherPlayerPath.PowercheckPlayer(-100, -40, -10);
PlayOtherPlayerHurtSound();
}
}
if (Action == "CheckRight") {
if (_parent.hitTest(OtherPlayerPath) && (OtherPlayerPath.Action != "Jumping")) {
OtherPlayerPath.PowercheckPlayer(100, -40, -10);
PlayOtherPlayerHurtSound();
}
}
if ((_parent._y >= GameTotals.LevelFloor) && ((Action == "Jumping") || (Action == "Checked"))) {
yVelocity = 0;
_parent._y = GameTotals.LevelFloor;
Action = CurrentIdleAnimation;
}
if (Action == "Checked") {
if (_parent._y < GameTotals.LevelFloor) {
yVelocity = (yVelocity + LevelVariables.Gravity) + 4;
}
if ((Key.isDown(downKey) && (300 >= (getTimer() - TimeLastDownKey))) && (!DownButtonHeld)) {
TimeLastDownKey = getTimer();
ChangeAction("BumRush");
_parent._y = GameTotals.LevelFloor;
xVelocity = 0;
yVelocity = 0;
DownButtonHeld = true;
}
if ((Key.isDown(downKey) && (300 < (getTimer() - TimeLastDownKey))) && (!DownButtonHeld)) {
TimeLastDownKey = getTimer();
DownButtonHeld = true;
}
if ((_parent._y >= GameTotals.LevelFloor) && (Action != "BumRush")) {
yVelocity = 0;
_parent._y = GameTotals.LevelFloor;
ChangeAction("");
}
}
if (Action == "BumRush") {
if (hitTest(OtherPlayerPath)) {
if (OtherPlayerPath._x < _parent._x) {
OtherPlayerPath.PowercheckPlayer(100, -40, -10);
PlayOtherPlayerHurtSound();
}
if (OtherPlayerPath._x >= _parent._x) {
OtherPlayerPath.PowercheckPlayer(-100, -40, -10);
PlayOtherPlayerHurtSound();
}
}
}
if (((Action == CurrentIdleAnimation) || (Action == "MoveLeft")) || (Action == "MoveRight")) {
if (0 < XVelocity) {
Action = "MoveRight";
}
if (XVelocity < 0) {
Action = "MoveLeft";
}
if (XVelocity == 0) {
Action = CurrentIdleAnimation;
}
MakeCheckingCurrentAction();
UpdateXVelocity();
if (Key.isDown(jumpKey) && (!JumpButtonHeld)) {
action = "Jumping";
_parent._y = _parent._y - 50;
yVelocity = -10;
JumpButtonHeld = true;
xVelocity = 0;
}
if (((Key.isDown(shotkey) && (ShotButtonHeld == false)) && (WeaponRemaining != 0)) && (GameTotals.CurrentGameState == "InPlay")) {
CreateNewBullet();
}
}
SetAnimation();
if (_parent.hitTest(_root.SnowmanObject) && (action != "Jumping")) {
if (0 < xVelocity) {
xVelocity = 2;
}
if (xVelocity < 0) {
xVelocity = -2;
}
}
_parent._X = _parent._X + XVelocity;
_parent._Y = _parent._Y + yVelocity;
if (695 < _parent._x) {
_parent._x = 695;
xVelocity = 0;
if (Action == "Checked") {
xVelocity = -10;
}
}
if (_parent._x < 5) {
_parent._x = 5;
xVelocity = 0;
if (Action == "Checked") {
xVelocity = 10;
}
}
ShotButtonHeld = Key.isDown(shotKey);
RightButtonHeld = Key.isDown(rightKey);
LeftButtonHeld = Key.isDown(leftKey);
JumpButtonHeld = Key.isDown(jumpKey);
DownButtonHeld = Key.isDown(downKey);
}
Instance of Symbol 233 MovieClip "cat" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
xVelocity = 0;
yVelocity = 0;
_parent._x = -100;
_parent._y = 545;
action = "Idle";
CurrentPowerUp = "";
GoToPlayerPath = "";
CheckedBy = "";
PowerUpPath = _root.PowerUp;
}
onClipEvent (enterFrame) {
function PowercheckPlayer(xVelocityIn, yVelocityIn, NewYIn) {
action = "CheckedLeft";
XVelocity = xVelocityIn;
yVelocity = yVelocityIn;
_parent._y = _parent._y + NewYIn;
}
function GetCatMoving(curPlayerPath) {
GoToPlayerPath = curPlayerPath;
GoToPlayerPath.player.catpoints = 0;
if (350 >= GoToPlayerPath._x) {
action = "MovingRight";
xVelocity = 10;
}
if (350 < GoToPlayerPath._x) {
action = "MovingLeft";
xVelocity = -10;
_parent._x = 800;
}
CurrentPowerUp = "WrapMissile";
if (random(2) == 1) {
CurrentPowerUp = "PeircingBow";
}
}
if (Action != "Idle") {
gotoAndStop(action);
_parent._x = _parent._x + xVelocity;
_parent._y = _parent._y + yVelocity;
if ((((action == "MovingRight") && (gotoPlayerPath._x < _parent._x)) && (gotoPlayerPath != "")) && ((gotoPlayerPath.player.action != "checkingleft") || (gotoPlayerPath.player.action != "checkingRight"))) {
PowerUpPath._x = _parent._x;
PowerUpPath._y = _parent._y - 150;
PowerUpPath.PowerUpObject.InPlay = true;
PowerUpPath.PowerUpObject.xVelocity = 2;
PowerUpPath.PowerUpObject.yVelocity = -6;
xVelocity = -10;
yVelocity = 0;
action = "MovingLeft";
GoToPlayerPath = "";
}
if ((((action == "MovingLeft") && (_parent._x < gotoPlayerPath._x)) && (gotoPlayerPath != "")) && ((gotoPlayerPath.player.action != "checkingleft") || (gotoPlayerPath.player.action != "checkingRight"))) {
PowerUpPath._x = _parent._x;
PowerUpPath._y = _parent._y - 150;
PowerUpPath.PowerUpObject.InPlay = true;
PowerUpPath.PowerUpObject.xVelocity = -2;
PowerUpPath.PowerUpObject.yVelocity = -6;
xVelocity = 10;
yVelocity = 0;
action = "MovingRight";
GoToPlayerPath = "";
}
if (((_parent._x < -100) || (800 < _parent._x)) || (_parent._y < -10)) {
xVelocity = 0;
yVelocity = 0;
_parent._x = -100;
_parent._y = 545;
action = "Idle";
CurrentPowerUp = "";
GoToPlayerPath = "";
CheckedBy = "";
}
}
if (Action == "Idle") {
curPlayerPath = _root.Elfington;
if (curPlayerPath.player.catPoints == 5) {
GetCatMoving(curPlayerPath);
}
curPlayerPath = _root.panza;
if (curPlayerPath.player.catPoints == 5) {
GetCatMoving(curPlayerPath);
}
}
}
Instance of Symbol 240 MovieClip "PowerUpObject" in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
currentPowerup = 0;
maxPowerups = 4;
countToNextPowerUp = 18;
currentCOunt = 0;
xVelocity = 0;
yVelocity = 0;
curBounce = 5;
PanzaPath = _root.panza;
ElfingtonPath = _root.elfington;
PowerUp = new Array("PeircingBow", "WrapMissile", "Cleets", "RunningShoes", "AmmoHolder");
inPlay = true;
}
onClipEvent (enterFrame) {
function hidePowerUp() {
xVelocity = 0;
yVelocity = 0;
curBounce = 5;
_parent._x = -100;
_parent._y = 0;
inPlay = false;
}
if (InPlay) {
yVelocity = yVelocity + _root.LevelVariables.Gravity;
_parent._x = _parent._x + xVelocity;
_parent._y = _parent._y + yVelocity;
if ((545 < _parent._y) && (0 < curBounce)) {
curBounce--;
yVelocity = -5 * curBounce;
}
if ((_parent._x < 5) || (695 < _parent._x)) {
xVelocity = xVelocity * -1;
}
if (this.hitTest(PanzaPath)) {
if ((currentPowerUp == 0) || (currentPowerUp == 1)) {
panzaPath.player.CurrentWeapon = powerUp[currentPowerup];
}
if (currentPowerUp == 4) {
panzaPath.player.WeaponRemaining = panzaPath.player.WeaponRemaining + 1;
}
if (currentPowerUp == 2) {
panzaPath.player.Friction = 15;
panzaPath.player.maxXVelocity = 25;
panzaPath.player.speed = 4;
}
if (currentPowerUp == 3) {
_root.GameTotals.CurTimer = _root.GameTotals.CurTimer + 30;
}
hidePowerUp();
} else if (this.hitTest(ElfingtonPath)) {
if ((currentPowerUp == 0) || (currentPowerUp == 1)) {
ElfingtonPath.player.CurrentWeapon = powerUp[currentPowerup];
}
if (currentPowerUp == 4) {
ElfingtonPath.player.WeaponRemaining = ElfingtonPath.player.WeaponRemaining + 1;
}
if (currentPowerUp == 2) {
ElfingtonPath.player.Friction = 15;
ElfingtonPath.player.maxXVelocity = 25;
elfingtonPath.player.speed = 4;
}
if (currentPowerUp == 3) {
_root.GameTotals.CurTimer = _root.GameTotals.CurTimer + 30;
}
hidePowerUp();
}
if (currentCount < countToNextPowerUp) {
currentCount++;
} else {
currentCount = 0;
currentPowerUp++;
if (maxPowerUps < currentPowerUp) {
currentPowerUp = 0;
}
gotoAndStop(PowerUp[currentPowerUp]);
}
if (600 < _parent._y) {
hidePowerUp();
}
}
}
Instance of Symbol 249 MovieClip "1" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
playerPath = eval (("_root." + _parent._Name) + ".player");
_alpha = 30;
}
onClipEvent (enterFrame) {
if (playerPath.catPoints >= _name) {
_alpha = 100;
} else {
_alpha = 30;
}
}
Instance of Symbol 249 MovieClip "2" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
playerPath = eval (("_root." + _parent._Name) + ".player");
_alpha = 30;
}
onClipEvent (enterFrame) {
if (playerPath.catPoints >= _name) {
_alpha = 100;
} else {
_alpha = 30;
}
}
Instance of Symbol 249 MovieClip "3" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
playerPath = eval (("_root." + _parent._Name) + ".player");
_alpha = 30;
}
onClipEvent (enterFrame) {
if (playerPath.catPoints >= _name) {
_alpha = 100;
} else {
_alpha = 30;
}
}
Instance of Symbol 249 MovieClip "4" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
playerPath = eval (("_root." + _parent._Name) + ".player");
_alpha = 30;
}
onClipEvent (enterFrame) {
if (playerPath.catPoints >= _name) {
_alpha = 100;
} else {
_alpha = 30;
}
}
Instance of Symbol 249 MovieClip "5" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
playerPath = eval (("_root." + _parent._Name) + ".player");
_alpha = 30;
}
onClipEvent (enterFrame) {
if (playerPath.catPoints >= _name) {
_alpha = 100;
} else {
_alpha = 30;
}
}
Symbol 250 MovieClip Frame 4
gotoAndPlay (2);
Instance of Symbol 250 MovieClip "panza" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
PlayerName = "Elfington";
}
Symbol 269 MovieClip Frame 40
_root.gameTotals.CurrentGameState = "InPlay";
_root.levelVariables.EndLevelIntro();
Symbol 269 MovieClip Frame 46
gotoAndStop(_currentframe);
Symbol 317 MovieClip Frame 75
_parent.resetSnowman();
Instance of Symbol 320 MovieClip "Snowman" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
xVelocity = 0;
yVelocity = 50;
action = "Falling";
}
onClipEvent (enterFrame) {
function resetSnowman() {
_parent._x = random(400) + 100;
_parent._y = -1500;
xVelocity = 0;
yVelocity = 50;
action = "Falling";
}
gotoAndStop(action);
_parent._y = _parent._y + yVelocity;
_parent._x = _parent._x + xVelocity;
if (545 < _parent._y) {
_parent._y = 545;
action = "Idle";
}
}
Instance of Symbol 323 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
xVelocity = 0;
yVelocity = 0;
maxyVelocity = 25;
}
onClipEvent (enterFrame) {
yVelocity = yVelocity + 1;
if (maxYVelocity < yVelocity) {
yVelocity = maxYVelocity;
}
_parent._y = _parent._y + yVelocity;
if (_parent.hitTest(_root.elfington)) {
_root.elfington.player.PowercheckPlayer((100 * random(2)) - 1, -40, -10);
}
if (_parent.hitTest(_root.panza)) {
_root.panza.player.PowercheckPlayer((100 * random(2)) - 1, -40, -10);
}
if (700 < _parent._y) {
_parent._y = -1000;
_parent._x = random(700);
}
}
Symbol 371 Button
on (release) {
gotoAndPlay (220);
}
Symbol 377 Button
on (release) {
_root.GameTotals.StartingAmmo--;
if (_root.GameTotals.StartingAmmo < 1) {
_root.GameTotals.StartingAmmo = 1;
}
_root.SoundLibrary.PlaySound("ButtonDown01");
}
Symbol 381 Button
on (release) {
_root.GameTotals.StartingAmmo++;
if (5 < _root.GameTotals.StartingAmmo) {
_root.GameTotals.StartingAmmo = 5;
}
_root.SoundLibrary.PlaySound("ButtonUp01");
}
Symbol 384 MovieClip Frame 14
gotoAndPlay(_currentframe - 1);
Symbol 388 Button
on (release) {
_root.GameTotals.TimeLimit = _root.GameTotals.TimeLimit - 30;
if (_root.GameTotals.TimeLimit < 30) {
_root.GameTotals.TimeLimit = 30;
}
_root.GameTotals.CurTimer = _root.GameTotals.TimeLimit;
_root.GameTotals.UpdateTimerString();
_root.SoundLibrary.PlaySound("ButtonDown01");
}
Symbol 389 Button
on (release) {
_root.GameTotals.TimeLimit = _root.GameTotals.TimeLimit + 30;
if (210 < _root.GameTotals.TimeLimit) {
_root.GameTotals.TimeLimit = 210;
}
_root.GameTotals.CurTimer = _root.GameTotals.TimeLimit;
_root.GameTotals.UpdateTimerString();
_root.SoundLibrary.PlaySound("ButtonUp01");
}
Symbol 392 MovieClip Frame 20
gotoAndPlay(_currentframe - 1);
Symbol 397 Button
on (release) {
HasntBeenChanged = true;
if ((_root.GameTotals.StartingWeapon == "NormalShot") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "WrapMissile";
HasntBeenChanged = false;
}
if ((_root.GameTotals.StartingWeapon == "PeircingBow") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "NormalShot";
HasntBeenChanged = false;
}
if ((_root.GameTotals.StartingWeapon == "WrapMissile") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "PeircingBow";
HasntBeenChanged = false;
}
_root.SoundLibrary.PlaySound("ButtonDown01");
}
Symbol 400 Button
on (release) {
HasntBeenChanged = true;
if ((_root.GameTotals.StartingWeapon == "NormalShot") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "PeircingBow";
HasntBeenChanged = false;
}
if ((_root.GameTotals.StartingWeapon == "PeircingBow") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "WrapMissile";
HasntBeenChanged = false;
}
if ((_root.GameTotals.StartingWeapon == "WrapMissile") and HasntBeenChanged) {
_root.GameTotals.StartingWeapon = "NormalShot";
HasntBeenChanged = false;
}
_root.SoundLibrary.PlaySound("ButtonUp01");
}
Symbol 404 MovieClip Frame 20
gotoAndPlay(_currentframe - 1);
Symbol 408 Button
on (release) {
_root.GameTotals.TotalVSMatches--;
if (_root.GameTotals.TotalVSMatches < 1) {
_root.GameTotals.TotalVSMatches = 1;
}
_root.SoundLibrary.PlaySound("ButtonDown01");
}
Symbol 409 Button
on (release) {
_root.GameTotals.TotalVSMatches++;
if (5 < _root.GameTotals.TotalVSMatches) {
_root.GameTotals.TotalVSMatches = 5;
}
_root.SoundLibrary.PlaySound("ButtonUp01");
}
Symbol 413 MovieClip Frame 23
gotoAndPlay(_currentframe - 1);
Symbol 415 Button
on (release) {
changed = false;
if ((_root.GameTotals.VSLevelBG == "Santas Sweet Spot") && (!changed)) {
_root.GameTotals.VSLevelBG = "The Holiday Express";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Wrappin Courtside") && (!changed)) {
_root.GameTotals.VSLevelBG = "Santas Sweet Spot";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Christmas Conveyor") && (!changed)) {
_root.GameTotals.VSLevelBG = "Wrappin Courtside";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Elves Inc Classic") && (!changed)) {
_root.GameTotals.VSLevelBG = "Christmas Conveyor";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "The Holiday Express") && (!changed)) {
_root.GameTotals.VSLevelBG = "Elves Inc Classic";
changed = true;
}
_root.SoundLibrary.PlaySound("ButtonDown01");
}
Symbol 416 Button
on (release) {
changed = false;
if ((_root.GameTotals.VSLevelBG == "Elves Inc Classic") && (!changed)) {
_root.GameTotals.VSLevelBG = "The Holiday Express";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "The Holiday Express") && (!changed)) {
_root.GameTotals.VSLevelBG = "Santas Sweet Spot";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Santas Sweet Spot") && (!changed)) {
_root.GameTotals.VSLevelBG = "Wrappin Courtside";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Wrappin Courtside") && (!changed)) {
_root.GameTotals.VSLevelBG = "Christmas Conveyor";
changed = true;
}
if ((_root.GameTotals.VSLevelBG == "Christmas Conveyor") && (!changed)) {
_root.GameTotals.VSLevelBG = "Elves Inc Classic";
changed = true;
}
_root.SoundLibrary.PlaySound("ButtonUp01");
}
Instance of Symbol 420 MovieClip "LevelDisplay" in Symbol 421 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.GameTotals.VSLevelBG);
}
Symbol 435 MovieClip Frame 37
_root.gameTotals.CurrentGameState = "InPlay";
_root.levelVariables.EndLevelIntro();
Symbol 435 MovieClip Frame 43
gotoAndStop(_currentframe);
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip Frame 1
onClipEvent (load) {
PlayerBattlesWonPath = eval (("_root.GameTotals." + _parent._parent._name) + "BattlesWon");
if (PlayerBattlesWonPath >= _parent._name) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 449 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (load) {
PlayerBattlesWonPath = eval (("_root.GameTotals." + _parent._parent._name) + "BattlesWon");
if (PlayerBattlesWonPath >= _parent._name) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 454 Button
on (release) {
if (_root.GameTotals.ElfingtonBattlesWon >= _root.GameTotals.TotalVSMatches) {
_root.gotoAndPlay("ElfingtonWins");
}
if (_root.GameTotals.PanzaBattlesWon >= _root.GameTotals.TotalVSMatches) {
_root.gotoAndPlay("PanzaWins");
}
if ((_root.GameTotals.PanzaBattlesWon != _root.GameTotals.TotalVSMatches) && (_root.GameTotals.ElfingtonBattlesWon != _root.GameTotals.TotalVSMatches)) {
_root.gotoAndPlay("BattleLevel");
}
}
Symbol 469 Button
on (release) {
_quality = _root.GameTotals.GameImageQuality;
gotoAndPlay (64);
}
Symbol 476 Button
on (release) {
gotoAndPlay (91);
}