STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
231423
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2623 · P5246

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM55869427-13DC&rnd=55869427" width="1" height="1"></div>

ElvesInckancolle.swf

This is the info page for
Flash #262240

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 8 { } movieClip 10 { } movieClip 11 { frame 8 { gotoAndStop(8); } } movieClip 13 { } movieClip 15 { } movieClip 16 { } movieClip 17 { frame 6 { _parent.DestroyBullet(); } } movieClip 18 { } movieClip 19 Bullet { instance Bullet of movieClip 18 { 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 -= 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 -= 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 += yVelocity; if (Action == 'Explosion') { ExplosionFirstFrame = false; } } } } frame 2 { gotoAndPlay(1); } } movieClip 22 { } movieClip 26 { } movieClip 30 { } movieClip 44 { frame 17 { gotoAndPlay(11); } } movieClip 49 { frame 27 { gotoAndPlay(10); } } movieClip 51 { } movieClip 52 Gift { instance Gift of movieClip 51 { 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 += PresentPoints; _root.GameTotals.ElfingtonTotalGifts += PresentPoints; ++curPath.player.CurCombo; } curPath = _root.Panza; if (curPath.HitTest(this)) { RepositionGift(); _root.LevelVariables.PanzaPresents += PresentPoints; _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 += _root.LevelVariables.Gravity; if (MaxVelocity < YVelocity) { YVelocity = MaxVelocity; } _parent._y += YVelocity; _parent._x += xVelocity; if (GameTotals.LevelFloor < _parent._y && bounces < 1 && Action == 'GiftFalling') { yVelocity = -6; _parent._y -= 4; ++bounces; } if (700 < _parent._x || _parent._x < 5) { xVelocity *= -1; _parent._x += xVelocity; } if (610 < _parent._y) { RepositionGift(); } gotoAndStop(Action); gotoAndStop(_currentframe + PresentPoints - 1); } if (_root.gameTotals.CUrrentGameState == 'EndLevelTally' || _root.gameTotals.CUrrentGameState == 'LevelTimeUp') { YVelocity += _root.LevelVariables.Gravity; if (MaxVelocity < YVelocity) { YVelocity = MaxVelocity; } _parent._y += YVelocity; _parent._x += xVelocity; if (_parent._alpha < 0) { _parent.removeMovieClip(); } _parent._alpha -= 9; } } } frame 2 { gotoAndStop(1); } } movieClip 54 { } movieClip 56 { } movieClip 57 TimeUp { frame 84 { _root.gameTotals.currentGameState = 'LevelIntro'; _root.gotoAndPlay('EndGameTally'); _root.TimeUp.removeMovieClip(); } } movieClip 59 { } button 64 { on (release) { _root.PausedScreen.UnloadMovie(); _root.GameTotals.CurrentGameState = 'InPlay'; } } button 68 { on (release) { _root.PausedScreen.UnloadMovie(); _root.GameTotals.CurrentGameState = 'InPlay'; _root.GameTotals.CurTimer = 1; } } button 72 { on (release) { _root.musicLibrary.ToggleMusic(); } } button 76 { on (release) { toggleHighQuality(); _root.GameTotals.GameImageQuality = _quality; } } movieClip 78 { } movieClip 79 PausedScreen { frame 3 { gotoAndPlay(_currentframe - 1); } } movieClip 81 { } movieClip 82 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(); } } movieClip 84 { } movieClip 86 { } movieClip 89 { } movieClip 90 { } movieClip 91 { } movieClip 92 EndVSMatch { frame 73 { _root.gotoAndPlay('BattleTally'); _root.EndVSMatch.removeMovieClip(); } } frame 1 { fscommand('showmenu', 'false'); } movieClip 93 { } instance GameTotals of movieClip 93 { 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(); } } } movieClip 95 { } movieClip 96 { frame 1 { gotoAndStop(_currentframe); } frame 193 { this.gotoAndPlay('Tune01'); } frame 265 { gotoAndStop(1); } frame 774 { gotoAndPlay(278); } frame 1149 { gotoAndPlay(781); } frame 1235 { gotoAndStop(1); } frame 1489 { gotoAndPlay(1243); } frame 1521 { gotoAndStop(1); } } instance MusicLibrary of movieClip 96 { 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); } } } } movieClip 103 { frame 17 { gotoAndStop(1); } frame 36 { gotoAndStop(1); } frame 56 { gotoAndStop(1); } frame 76 { gotoAndStop(1); } frame 97 { gotoAndStop(1); } frame 113 { gotoAndStop(1); } frame 131 { gotoAndStop(1); } } instance SoundLibrary of movieClip 103 { onClipEvent (enterFrame) { function PlaySound(TuneIn) { gotoAndPlay(TuneIn); } function StopSound() { gotoAndPlay(1); } } } movieClip 105 { } instance of movieClip 105 { 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); } } movieClip 109 { } movieClip 110 { } button 116 { 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 = ''; } } button 120 { 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 = ''; } } button 126 { 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 = ''; } } button 130 { on (release) { _root.SoundLibrary.PlaySound('ButtonUp01'); gotoAndPlay(80); } on (rollOver) { _root.GameTotals.ButtonCaption = 'Options'; } on (rollOut) { _root.GameTotals.ButtonCaption = ''; } } movieClip 131 { } instance of movieClip 131 { 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); } } button 132 { on (release) { getURL('http://www.stardock.com', '_blank'); } } movieClip 135 { } button 137 { on (release) { getURL('http://www.stardock.com', '_blank'); } } frame 67 { gotoAndPlay(_currentframe - 1); } button 140 { on (release) { gotoAndPlay(64); } } button 143 { on (release) { toggleHighQuality(); _root.GameTotals.GameImageQuality = _quality; } } movieClip 145 { } button 148 { on (release) { _root.musicLibrary.ToggleMusic(); } } button 151 { on (release) { gotoAndStop(296); } } frame 83 { gotoAndPlay(_currentframe - 1); } movieClip 153 { } movieClip 154 { } movieClip 163 { } movieClip 164 { instance of movieClip 163 { 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); } } } frame 6 { gotoAndPlay(_currentframe - 2); } } movieClip 166 { instance of movieClip 164 { onClipEvent (load) { Holder = 'Elfington'; } } } movieClip 172 { instance of movieClip 163 { 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); } } } frame 6 { gotoAndPlay(_currentframe - 2); } } movieClip 174 { instance of movieClip 172 { onClipEvent (load) { Holder = 'Panza'; } } } movieClip 182 { } instance of movieClip 182 { onClipEvent (load) { if (_root.GameTotals.GameMode == 'OnePlayerStory') { this.unloadMovie(); } } } movieClip 185 { } instance LevelVariables of movieClip 185 { 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); } movieClip 188 { } instance of movieClip 188 { 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; } } } movieClip 190 { } movieClip 191 { instance of movieClip 190 { 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 movieClip 191 { onClipEvent (load) { PlayerName = 'Elfington'; } } movieClip 192 { instance of movieClip 190 { 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 movieClip 192 { onClipEvent (load) { PlayerName = 'Panza'; } } movieClip 193 { instance of movieClip 164 { onClipEvent (load) { Holder = 'Elfington'; } } } movieClip 194 { instance of movieClip 172 { onClipEvent (load) { Holder = 'Panza'; } } } movieClip 195 { frame 9 { gotoAndStop(_currentframe); } } movieClip 196 { frame 12 { gotoAndStop(_currentframe); } } movieClip 199 { instance of movieClip 164 { onClipEvent (load) { Holder = 'Elfington'; } } } movieClip 200 { frame 7 { _parent.action = _parent.CurrentIdleAnimation; } } movieClip 202 { instance of movieClip 163 { 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); } } } frame 6 { gotoAndPlay(_currentframe - 2); } } movieClip 204 { instance of movieClip 202 { onClipEvent (load) { Holder = 'Panza'; } } } movieClip 205 { instance of movieClip 202 { onClipEvent (load) { Holder = 'Panza'; } } } movieClip 206 { frame 7 { _parent.action = _parent.CurrentIdleAnimation; } } movieClip 207 { frame 7 { _parent.action = _parent.CurrentIdleAnimation; } } movieClip 208 { } movieClip 209 { } movieClip 210 { frame 7 { _parent.action = _parent.CurrentIdleAnimation; } } movieClip 211 { frame 7 { _parent.action = _parent.CurrentIdleAnimation; } } movieClip 214 { } movieClip 216 { } movieClip 224 { instance of movieClip 164 { onClipEvent (load) { Holder = 'Elfington'; } } } movieClip 225 { } movieClip 226 { instance Player of movieClip 225 { 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 += Speed; RightButtonHeld = true; } if (Key.isDown(rightKey) && XVelocity < 0) { XVelocity += Friction; RightButtonHeld = true; } if (Key.isDown(leftKey) && -20 < (XVelocity < 0)) { XVelocity -= Speed; LeftButtonHeld = true; } if (Key.isDown(leftKey) && XVelocity >= 0) { 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 -= Friction; } if (XVelocity < -1 * Friction + 1) { 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 -= 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 += 100; TimeLastRightKey = 100; Action = 'CheckRight'; } else { TimeLastRightKey = curTime; } } if (Key.isDown(leftKey) && !LeftButtonHeld) { if (curTime - TimeLastLeftKey < 300) { _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 += 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 -= 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 += XVelocity; _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); } } } movieClip 227 { } instance LevelVariables of movieClip 227 { onClipEvent (load) { _root.MusicLibrary.PlayTune(4); Level = 1; MaxLevelGifts = 5; LevelGiftGoal = 25; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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(); } } } movieClip 230 { } movieClip 231 { } movieClip 232 { } movieClip 233 { } movieClip 234 { instance cat of movieClip 233 { 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 += 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 += xVelocity; _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); } } } } } movieClip 240 { } movieClip 241 { instance PowerUpObject of movieClip 240 { 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 += _root.LevelVariables.Gravity; _parent._x += xVelocity; _parent._y += yVelocity; if (545 < _parent._y && 0 < curBounce) { --curBounce; yVelocity = -5 * curBounce; } if (_parent._x < 5 || 695 < _parent._x) { xVelocity *= -1; } if (this.hitTest(PanzaPath)) { if (currentPowerUp == 0 || currentPowerUp == 1) { panzaPath.player.CurrentWeapon = powerUp[currentPowerup]; } if (currentPowerUp == 4) { 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 += 30; } hidePowerUp(); } else { if (this.hitTest(ElfingtonPath)) { if (currentPowerUp == 0 || currentPowerUp == 1) { ElfingtonPath.player.CurrentWeapon = powerUp[currentPowerup]; } if (currentPowerUp == 4) { 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 += 30; } hidePowerUp(); } } if (currentCount < countToNextPowerUp) { ++currentCount; } else { currentCount = 0; ++currentPowerUp; if (maxPowerUps < currentPowerUp) { currentPowerUp = 0; } gotoAndStop(PowerUp[currentPowerUp]); } if (600 < _parent._y) { hidePowerUp(); } } } } } movieClip 249 { } movieClip 250 { instance 1 of movieClip 249 { onClipEvent (load) { playerPath = eval('_root.' + _parent._Name + '.player'); _alpha = 30; } onClipEvent (enterFrame) { if (playerPath.catPoints >= _name) { _alpha = 100; } else { _alpha = 30; } } } instance 2 of movieClip 249 { onClipEvent (load) { playerPath = eval('_root.' + _parent._Name + '.player'); _alpha = 30; } onClipEvent (enterFrame) { if (playerPath.catPoints >= _name) { _alpha = 100; } else { _alpha = 30; } } } instance 3 of movieClip 249 { onClipEvent (load) { playerPath = eval('_root.' + _parent._Name + '.player'); _alpha = 30; } onClipEvent (enterFrame) { if (playerPath.catPoints >= _name) { _alpha = 100; } else { _alpha = 30; } } } instance 4 of movieClip 249 { onClipEvent (load) { playerPath = eval('_root.' + _parent._Name + '.player'); _alpha = 30; } onClipEvent (enterFrame) { if (playerPath.catPoints >= _name) { _alpha = 100; } else { _alpha = 30; } } } instance 5 of movieClip 249 { onClipEvent (load) { playerPath = eval('_root.' + _parent._Name + '.player'); _alpha = 30; } onClipEvent (enterFrame) { if (playerPath.catPoints >= _name) { _alpha = 100; } else { _alpha = 30; } } } frame 4 { gotoAndPlay(2); } } movieClip 252 { } movieClip 254 { instance panza of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } } instance of movieClip 254 { onClipEvent (enterFrame) { if (_root.GameTotals.GameMode == 'OnePlayerStory') { _visible = false; } } } instance elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } movieClip 268 { } movieClip 269 { frame 40 { _root.gameTotals.CurrentGameState = 'InPlay'; _root.levelVariables.EndLevelIntro(); } frame 46 { gotoAndStop(_currentframe); } } movieClip 272 { } frame 111 { if (_root.gameVariables.LevelCompleted) { gotoAndPlay(_root._currentFrame - 1); } else { gotoAndPlay(_root._currentFrame - 1); } } frame 119 { gotoAndPlay(_root._currentFrame + 1); } movieClip 275 { } instance LevelVariables of movieClip 275 { onClipEvent (load) { _root.MusicLibrary.PlayTune(4); Level = 2; MaxLevelGifts = 5; LevelGiftGoal = 30; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { 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); } movieClip 285 { } instance LevelVariables of movieClip 285 { onClipEvent (load) { _root.MusicLibrary.PlayTune(1); Level = 3; MaxLevelGifts = 5; LevelGiftGoal = 35; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { onClipEvent (enterFrame) { if (_root.GameTotals.GameMode == 'OnePlayerStory') { _visible = false; } } } movieClip 294 { } movieClip 317 { frame 75 { _parent.resetSnowman(); } } movieClip 320 { } movieClip 321 { instance Snowman of movieClip 320 { 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 += yVelocity; _parent._x += xVelocity; if (545 < _parent._y) { _parent._y = 545; action = 'Idle'; } } } } frame 136 { if (_root.gameVariables.LevelCompleted) { gotoAndPlay(_root._currentFrame - 1); } else { gotoAndPlay(_root._currentFrame - 1); } } movieClip 323 { } movieClip 324 { instance of movieClip 323 { onClipEvent (load) { xVelocity = 0; yVelocity = 0; maxyVelocity = 25; } onClipEvent (enterFrame) { yVelocity += 1; if (maxYVelocity < yVelocity) { yVelocity = maxYVelocity; } _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); } } } } frame 142 { gotoAndPlay(_root._currentFrame + 1); } movieClip 327 { } instance LevelVariables of movieClip 327 { onClipEvent (load) { _root.MusicLibrary.PlayTune(5); Level = 4; MaxLevelGifts = 5; LevelGiftGoal = 45; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { 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 movieClip 188 { 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; } } } movieClip 335 { } instance LevelVariables of movieClip 335 { onClipEvent (load) { _root.MusicLibrary.PlayTune(4); Level = 5; MaxLevelGifts = 5; LevelGiftGoal = 55; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { 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); } movieClip 343 { } instance LevelVariables of movieClip 343 { onClipEvent (load) { _root.MusicLibrary.PlayTune(4); Level = 6; MaxLevelGifts = 5; LevelGiftGoal = 65; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { 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); } movieClip 351 { } instance LevelVariables of movieClip 351 { onClipEvent (load) { _root.MusicLibrary.PlayTune(1); Level = 7; MaxLevelGifts = 5; LevelGiftGoal = 75; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { 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); } movieClip 359 { } instance LevelVariables of movieClip 359 { onClipEvent (load) { _root.MusicLibrary.PlayTune(5); Level = 8; MaxLevelGifts = 5; LevelGiftGoal = 85; if (_root.GameTotals.GameMode == 'TwoPlayerStory') { 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 elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { onClipEvent (enterFrame) { if (_root.GameTotals.GameMode == 'OnePlayerStory') { _visible = false; } } } movieClip 367 { } frame 182 { if (_root.gameVariables.LevelCompleted) { gotoAndPlay(_root._currentFrame - 1); } else { gotoAndPlay(_root._currentFrame - 1); } } movieClip 369 { } button 371 { on (release) { gotoAndPlay(220); } } movieClip 375 { } button 377 { on (release) { --_root.GameTotals.StartingAmmo; if (_root.GameTotals.StartingAmmo < 1) { _root.GameTotals.StartingAmmo = 1; } _root.SoundLibrary.PlaySound('ButtonDown01'); } } movieClip 379 { } button 381 { on (release) { ++_root.GameTotals.StartingAmmo; if (5 < _root.GameTotals.StartingAmmo) { _root.GameTotals.StartingAmmo = 5; } _root.SoundLibrary.PlaySound('ButtonUp01'); } } movieClip 383 { } movieClip 384 { frame 14 { gotoAndPlay(_currentframe - 1); } } button 388 { on (release) { _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'); } } button 389 { on (release) { _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'); } } movieClip 390 { } movieClip 391 { } movieClip 392 { frame 20 { gotoAndPlay(_currentframe - 1); } } instance of movieClip 392 { onClipEvent (load) { _root.GameTotals.CurTimer = _root.GameTotals.TimeLimit; _root.GameTotals.UpdateTimerString(); } } movieClip 396 { } button 397 { 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'); } } movieClip 399 { } button 400 { 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'); } } movieClip 402 { } movieClip 403 { } movieClip 404 { frame 20 { gotoAndPlay(_currentframe - 1); } } button 408 { on (release) { --_root.GameTotals.TotalVSMatches; if (_root.GameTotals.TotalVSMatches < 1) { _root.GameTotals.TotalVSMatches = 1; } _root.SoundLibrary.PlaySound('ButtonDown01'); } } button 409 { on (release) { ++_root.GameTotals.TotalVSMatches; if (5 < _root.GameTotals.TotalVSMatches) { _root.GameTotals.TotalVSMatches = 5; } _root.SoundLibrary.PlaySound('ButtonUp01'); } } movieClip 411 { } movieClip 412 { } movieClip 413 { frame 23 { gotoAndPlay(_currentframe - 1); } } button 415 { 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'); } } button 416 { 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'); } } movieClip 420 { } movieClip 421 { instance LevelDisplay of movieClip 420 { onClipEvent (enterFrame) { gotoAndStop(_root.GameTotals.VSLevelBG); } } } frame 208 { gotoAndPlay(_currentframe - 1); } frame 217 { gotoAndPlay(_root._currentFrame + 1); } movieClip 424 { } instance LevelDisplay of movieClip 424 { onClipEvent (load) { gotoAndStop(_root.GameTotals.VSLevelBG); } } instance of movieClip 188 { 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 movieClip 191 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 192 { onClipEvent (load) { PlayerName = 'Panza'; } } movieClip 425 { } instance LevelVariables of movieClip 425 { 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; } } } } } movieClip 435 { frame 37 { _root.gameTotals.CurrentGameState = 'InPlay'; _root.levelVariables.EndLevelIntro(); } frame 43 { gotoAndStop(_currentframe); } } instance elfington of movieClip 250 { onClipEvent (load) { PlayerName = 'Elfington'; } } instance of movieClip 254 { onClipEvent (enterFrame) { if (_root.GameTotals.GameMode == 'OnePlayerStory') { _visible = false; } } } movieClip 443 { } movieClip 445 { } frame 218 { gotoAndPlay(_root._currentFrame + 1); } frame 222 { gotoAndPlay(_root._currentFrame - 1); } frame 223 { gotoAndPlay(_root._currentFrame - 1); } frame 224 { gotoAndPlay(_root._currentFrame - 2); } movieClip 447 { } movieClip 449 { } movieClip 450 { instance of movieClip 449 { onClipEvent (load) { PlayerBattlesWonPath = eval('_root.GameTotals.' + _parent._parent._name + 'BattlesWon'); if (PlayerBattlesWonPath >= _parent._name) { _visible = true; } else { _visible = false; } } } } movieClip 451 { instance of movieClip 449 { onClipEvent (load) { PlayerBattlesWonPath = eval('_root.GameTotals.' + _parent._parent._name + 'BattlesWon'); if (PlayerBattlesWonPath >= _parent._name) { _visible = true; } else { _visible = false; } } } } movieClip 452 { } movieClip 453 { } instance of movieClip 453 { 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'); } } } } button 454 { 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'); } } } frame 235 { gotoAndPlay(_currentframe - 1); } movieClip 460 { } movieClip 464 { } instance of movieClip 464 { onClipEvent (load) { _root.MusicLibrary.PlayTune(6); } } frame 257 { gotoAndPlay(_currentframe - 1); } movieClip 468 { } instance of movieClip 468 { onClipEvent (load) { _root.MusicLibrary.PlayTune(6); } } frame 277 { gotoAndPlay(_currentframe - 1); } frame 296 { _quality = 'HIGH'; } button 469 { on (release) { _quality = _root.GameTotals.GameImageQuality; gotoAndPlay(64); } } movieClip 473 { } movieClip 475 { } instance of movieClip 475 { onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { _root.MusicLibrary.PlayTune(7); ++timer; if (timer >= 850 || Key.isDown(Key.space)) { gotoAndPlay(91); } } } button 476 { on (release) { gotoAndPlay(91); } } frame 317 { gotoAndPlay(_currentframe - 1); }




https://swfchan.com/53/262240/info.shtml
Created: 10/12 -2025 13:15:27 Last modified: 10/12 -2025 13:15:27 Server time: 13/12 -2025 21:57:06