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

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/67935162?noj=FRM67935162-24DC" width="1" height="1"></div>

539834_ManhattanProject202c.swf

This is the info page for
Flash #206874

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 bulletline-turret { frame 1 { onEnterFrame = function () { _alpha = _alpha - 10; if (_alpha < 0) { this.removeMovieClip(); } }; } } movieClip 29 { } movieClip 51 { } movieClip 52 WoodenCrateExplode { frame 50 { this.removeMovieClip(); } } movieClip 97 PropaneTankExplode { frame 46 { this.removeMovieClip(); } } movieClip 142 GreenBarrelExplode { frame 1 { onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } }; } frame 46 { this.removeMovieClip(); } } movieClip 144 BlueBarrelExplode { frame 1 { onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } }; } frame 47 { this.removeMovieClip(); } } movieClip 146 playchaosstartsmc { frame 1 { stop(); mySoundChaosStarting = new Sound(this); mySoundChaosStarting.attachSound('CHAOS_Starts'); mySoundChaosStarting.start(); mySoundChaosStarting.setVolume(_root.sfxvolume); } } movieClip 148 { } movieClip 164 { } movieClip 176 { } movieClip 177 paratroopers { frame 1 { stop(); speed = 1 + Math.random() / 2; _xscale = 15; _yscale = 15; } frame 1 { deploycounter = 0; rot = random(10) + 5; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } _rotation = _rotation + rot; _y = _y + speed * 2; ++deploycounter; if (deploycounter > 20) { gotoAndStop(2); } }; } frame 2 { mySound = new Sound(this); mySound.attachSound('ParachuteOPEN'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2); deploycounterz = 0; _rotation = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } _y = _y + speed; ++deploycounterz; if (deploycounterz > 10) { gotoAndStop(3); } }; } frame 3 { counter = 0; swiggle = random(30) + 30; swigglecounter = 0; swiggleright = true; swiggleleft = false; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++swigglecounter; if (swigglecounter < swiggle && swiggleright) { _rotation = _rotation + 0.2; } else { if (swigglecounter > swiggle && swiggleright) { swiggleright = false; swiggleleft = true; swigglecounter = 0; } else { if (swigglecounter < swiggle && swiggleleft) { _rotation = _rotation - 0.2; } else { if (swigglecounter > swiggle && swiggleleft) { swiggleleft = false; swiggleright = true; swigglecounter = 0; } } } } _y = _y + speed; ++counter; if (counter > 20) { mySound2 = new Sound(this); mySound2.attachSound('ParaShooterShooting'); mySound2.start(); mySound2.setVolume(_root.sfxvolume * 2.3); _root.bulletarray[_root.arrayspot] = _root.attachMovie('bullet-paratroop', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); counter = random(10); } if (_root.ground.hitTest(_x, _y, true)) { if (_root.shake == false) { _root.shake = true; _root.shakeintensity = 10; _root.shakelength = 1; } _root.attachMovie('ParashooterExplode', 'paraexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); _root.bomboff = true; this.removeMovieClip(); } }; } } movieClip 201 ParashooterExplode { frame 1 { _xscale = 15; _yscale = 15; mySound = new Sound(this); mySound.attachSound('Boom4'); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } }; } frame 26 { this.removeMovieClip(); } } movieClip 203 kaz { frame 1 { yspeed = 20; xspeed = 2; mySound = new Sound(this); mySound.attachSound('KamakazeSingle'); mySound.start(0.8, 1); mySound.setVolume(_root.sfxvolume * 2.5); onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } _y = _y + yspeed; _x = _x + xspeed; if (_root.ground.hitTest(_x, _y, true)) { if (_root.shake == false) { _root.shake = true; _root.shakeintensity = 10; _root.shakelength = 1; } mySound.stop(['KamakazeSingle']); _root.attachMovie('DeathKamikaze', 'kazexplosion', _root.getNextHighestDepth(), {'_x': _x - 11, '_y': _y - 55}); _root.bomboff = true; this.removeMovieClip(); } }; } } movieClip 272 DeathKamikaze { frame 1 { onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } }; } frame 1 { mySound = new Sound(this); mySound.attachSound('Boom3'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2); } frame 59 { this.removeMovieClip(); } } movieClip 297 CarboomFull { frame 54 { stop(); this.removeMovieClip(); } } movieClip 308 { } movieClip 310 Car1_Explode { frame 1 { onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } }; } frame 1 { mySound = new Sound(this); mySound.attachSound('Boom4'); mySound.start(); mySound.setVolume(_root.sfxvolume); } frame 54 { stop(); this.removeMovieClip(); } } movieClip 312 bulletline { frame 1 { angle = Math.atan((_root.airplane._y - _root.crosshair._y) / (_root.crosshair._x - _root.airplane._x)); if (_root.crosshair._x < _root.airplane._x) { _rotation = angle * 57.2957795 * -1 + 90; } else { _rotation = angle * 57.2957795 * -1 - 90; } onEnterFrame = function () { _alpha = _alpha - 10; if (_alpha < 0) { this.removeMovieClip(); } }; } } movieClip 314 bullet-paratroop { frame 1 { angle = Math.random() + 1.1; speed = 100; onEnterFrame = function () { _y = _y + Math.sin(angle) * speed; _x = _x + Math.cos(angle) * speed; }; } } movieClip 319 bullet { frame 1 { stop(); mySound = new Sound(this); mySound.attachSound('PlaneTurretShoot'); mySound.start(); mySound.setVolume(_root.sfxvolume); angle = Math.atan((_root.airplane._y - _root.crosshair._y) / (_root.crosshair._x - _root.airplane._x)); if (_root.mousetorightofplane) { yfliper = -1; } else { yfliper = 1; } if (_root.mousetorightofplane) { xfliper = 1; } else { xfliper = -1; } speed = 100; this.gotoAndStop(_root.bulletlevel); onEnterFrame = function () { _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; }; } frame 2 { stop(); onEnterFrame = function () { _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; }; } frame 3 { stop(); onEnterFrame = function () { _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; }; } frame 4 { stop(); onEnterFrame = function () { _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; }; } frame 5 { stop(); onEnterFrame = function () { _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; }; } } movieClip 325 SmallExplosion { frame 11 { this.removeMovieClip(); } } movieClip 370 buildingexp { frame 1 { mySound = new Sound(this); mySound.attachSound('Bomb_1'); mySound.start(); mySound.setVolume(_root.sfxvolume); } frame 86 { this.removeMovieClip(); } } movieClip 373 !!BazookaMissile { frame 1 { stop(); _root.missileout = true; speed = 5; moving = true; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { this.gotoAndStop(2); _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } if (this.hitTest(_root.airplane)) { _root.airplanehp -= 30; _root.airplane.gotoAndStop(4); _root.missileout = false; this.removeMovieClip(); } else { if (_root.planegone) { _root.missileout = false; this.removeMovieClip(); } } if (moving && _root.freezetime == false) { angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - 60 - _x)); this._rotation = angle; if (_x < _root.airplane._x - 60) { yfliper = -1; xfliper = 1; _rotation = angle * 57.2957795 * -1 + 90; } else { yfliper = 1; xfliper = -1; _rotation = angle * 57.2957795 * -1 - 90; } _y = _y + Math.sin(angle) * yfliper * speed; _x = _x + Math.cos(angle) * xfliper * speed; } }; } frame 2 { moving = false; acc = 0; onEnterFrame = function () { if (_root.ground.hitTest(_x, _y, true)) { _root.missileout = false; mySound = new Sound(this); mySound.attachSound('Boom3'); mySound.start(); mySound.setVolume(_root.sfxvolume); _root.attachMovie('CarboomFull', 'missileexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); _root.missileexplotion._xscale = 50; _root.missileexplotion._yscale = 50; this.removeMovieClip(); } else { acc += 0.5; _y = _y + (3 + acc); _rotation = _rotation + (10 + acc); } }; } } movieClip 375 !hurt { frame 1 { once = true; onEnterFrame = function () { if (once) { mySound = new Sound(this); mySound.attachSound('metal slam b JO'); mySound.start(); mySound.setVolume(_root.sfxvolume * 0.2); once = false; } _alpha = _alpha - 10; if (_alpha < 1) { mySound.stop(['metal slam b JO']); this.removeMovieClip(); } }; } } movieClip 390 BazookaExplode { frame 69 { stop(); } frame 79 { stop(); } } movieClip 395 { } movieClip 474 MarketExplodde { frame 41 { this.unloadMovie(); } frame 46 { } } movieClip 476 crosshair { } movieClip 499 Bomb2_Explosion { frame 40 { if (_root.timetodie == true) { _root.airplanehp = 100; _root.multiplyer = 0; _root.skipround = true; } this.unloadMovie(); } } button 505 { on (release) { com.newgrounds.API.loadNewgrounds(); } } movieClip 518 { } button 524 { on (release) { nextFrame(); } } button 525 { on (release) { prevFrame(); } } button 529 { on (release) { selectPeriod('Today'); } } button 532 { on (release) { selectPeriod('This Week'); } } button 535 { on (release) { selectPeriod('This Month'); } } button 538 { on (release) { selectPeriod('This Year'); } } button 541 { on (release) { selectPeriod('All-Time'); } } movieClip 542 { frame 1 { function selectPeriod(p) { _parent.loadScores(10, p); period = p; gotoAndStop(1); } stop(); } } movieClip 543 Score Board (NewgroundsAPI) { #initclip Object.registerClass('Score Board (NewgroundsAPI)', com.newgrounds.components.ScoreTable); #endinitclip frame 1 { loadScores(10); } } movieClip 570 { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (865 % 511) * true; if (!'') { } else {} return ; } var  = -67 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 287) {  += 374; true; } if ( == 239) { for (;;) {  -= 28; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( != 753) break;  -= 514; if ( == 211) {  += 348; } if ( == 140) {  += 608; } if ( == 963) {  -= 521; } if ( == 829) {  -= 268; } if ( != 913) break;  -= 160;  -= 678;  += 737;  += 747;  -= 291;  += 270;  += 302;  -= 204;  -= 753;  += 398;  -= 819;  -= 748; } ''; 1 ::: !1;  != 975; eval(true); } } } } } } } } } } } } } } } } } } } } } } } } } } } } movieClip 571 { frame 11 { gotoAndPlay(1); } } movieClip 572 Flash Ad (NewgroundsAPI) { #initclip Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd); #endinitclip } movieClip 579 { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2892 % 511) * true; if (!'') { } else {} return ; } var  = -160 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 177) {  += 121; true; } if ( != 713) break; for (;;) {  += 93; if ( == 540) {  += 246; } if ( == 922) {  -= 382; } if ( == 983) {  -= 147; ''; } if ( == 724) {  += 208; // An attempt to read a value from empty stack if (undefined) goto 442; break; label 442:  -= 219; }  += 89;  -= 786;  += 713;  += 421;  += 632;  += 170;  -= 505;  -= 131;  += 308; var  = 1;  -= 763;  -= 219;  -= 263;  += 510;  += 775;  -= 327;  += 46;  -= 421;  += 250; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 886; eval(!true); true; } } movieClip 581 { frame 10 { stop(); } } movieClip 583 { frame 37 { _parent.setGotoFrame('done'); stop(); } } movieClip 585 { } movieClip 587 NewgroundsAPIAsset_Medal_Icon_Placeholder { } movieClip 595 NewgroundsAPIAsset_Medal_Popup { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (737 % 511) * true; if (!'') { } else {} return ; } var  = 9 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 235) {  += 132; true; } if ( == 894) { for (;;) {  -= 891; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( != 434) break;  += 345; // An attempt to read a value from empty stack if (!undefined) { continue; }  += 29; if ( != 268) break;  += 166; // An attempt to read a value from empty stack if ( == 465) {  += 77; } if ( == 313) {  += 206; }  -= 422;  -= 355;  -= 135;  -= 235;  -= 105;  -= 669;  += 29;  -= 171;  -= 128;  += 953;  -= 490;  += 556;  -= 54;  -= 408;  += 401;  += 185;  += 252;  += 541;  += 568;  -= 293;  -= 318;  -= 688;  -= 425; } !undefined;  != 718; true; ''; true; ''; eval(1); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } frame 2 { medal.attachIcon(icon); } frame 10 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2142 % 511) * true; if (!'') { } else {} return ; } var  = 78 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 176) {  += 609; true; } if ( != 293) break; for (;;) {  += 436; if ( == 306) {  += 231; } if ( == 832) {  += 5; true; } if ( == 890) {  += 93; } if ( == 361) {  += 176; } if ( != 424) break;  += 286; if ( == 784) {  -= 784; // An attempt to read a value from empty stack !undefined; }  += 356;  += 909;  -= 455;  += 716;  -= 447;  += 515;  += 342;  += 890;  -= 600;  -= 210; var eval(1) = true;  -= 347;  -= 25;  -= 224;  -= 252;  -= 791;  -= 170;  -= 121;  -= 150;  -= 549;  -= 124;  -= 859; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 537; true; ''; ; } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 601 NewgroundsAPIAsset_Login_Warning { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2309 % 511) * true; if (!'') { } else {} return ; } var  = 253 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 518) {  -= 105; true; } if ( == 39) { for (;;) {  += 855; if ( != 413) break;  += 520; if (!'') { continue; }  -= 739; if ( != 194) break;  += 184; if ( == 913) {  -= 889; } if ( == 482) {  -= 443; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; }  -= 669;  -= 472;  += 117;  += 423;  += 503;  -= 308;  += 574;  -= 739;  += 231;  -= 419;  += 63;  -= 24;  += 346;  -= 46;  += 151;  += 275;  -= 2;  -= 338; } eval( != 894); ''; !1; true; true; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 604 NewgroundsAPIAsset_Connection_Error { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1793 % 511) * true; if (!'') { } else {} return ; } var  = 705 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 965) {  -= 568; true; } if ( == 764) { for (;;) {  += 3; if ( != 920) break;  -= 156; if ( == 28) {  += 917; } if ( == 698) {  -= 334; } if ( != 277) break;  += 421; if ( != 537) break;  -= 509;  += 266; if ( == 397) { }  += 62;  += 482;  += 39;  += 216;  -= 595; // An attempt to read a value from empty stack var eval(undefined) = eval(true ::: !true);  -= 616;  -= 339;  += 62;  -= 73;  -= 724;  += 346;  -= 468; } ''; } } } } } } } } } } } } } } } } } } } } } } } } } } } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 606 { } movieClip 608 { } movieClip 610 { } movieClip 612 { } movieClip 614 { } movieClip 616 { } movieClip 618 { } movieClip 620 { } movieClip 622 { } movieClip 624 { } movieClip 625 NewgroundsAPIAsset_big_popup_background { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (827 % 511) * true; if (!'') { } else {} return ; } var  = 669 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 985) {  -= 86; true; } if ( == 4) { for (;;) {  += 812; if ( != 545) break;  += 156; // An attempt to read a value from empty stack if (!undefined) { continue; }  -= 450; if ( == 497) {  -= 229; // An attempt to read a value from empty stack !undefined; } if ( != 702) break;  -= 400; if ( == 701) {  -= 450; }  += 77;  -= 377;  += 565;  -= 221;  -= 116;  -= 534;  += 234;  -= 553;  += 145;  -= 96;  += 96;  += 666;  += 162;  += 199;  += 165;  -= 47;  -= 105;  += 166; var  = 1;  -= 111;  -= 30;  += 364;  -= 18;  -= 779; } true;  != 899; true; true; ; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } button 629 { on (release) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2726 % 511) * true; if (!'') { } else {} return ; } var  = 118 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 289) {  += 703; true; } if ( != 628) break; for (;;) {  -= 63; // An attempt to read a value from empty stack if (!undefined) { goto 235; }  += 53; label 235: if ( == 859) {  += 37; // An attempt to read a value from empty stack !undefined; } if ( == 896) {  -= 852; // An attempt to read a value from empty stack if (!undefined) { goto 369; }  += 682; label 369: }  -= 553;  -= 15;  += 840;  += 107;  -= 319;  -= 280;  -= 74;  += 115;  += 315;  += 448;  += 215;  -= 481;  -= 40;  -= 136;  += 357;  += 53;  -= 355; var eval(true) = true;  -= 221;  -= 732;  += 183;  -= 21;  -= 243;  += 530;  += 682;  -= 833; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } eval( != 618); true; ''; ''; 1; } } button 635 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 637 NewgroundsAsset_New_Version_Available { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (980 % 511) * true; if (!'') { } else {} return ; } var  = -291 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 178) {  += 237; true; } if ( == 100) { for (;;) {  += 80; // An attempt to read a value from empty stack if (!undefined) { break; }  += 713; if ( == 893) {  -= 86; } if ( == 844) {  -= 744; // An attempt to read a value from empty stack !undefined; }  -= 541; if ( == 678) { continue; }  -= 116;  += 96;  += 723; // An attempt to read a value from empty stack  -= 947; // An attempt to read a value from empty stack var eval(undefined) = eval(undefined);  += 553;  += 317;  += 419;  += 713;  += 16;  -= 541;  += 471;  -= 807;  += 75;  -= 332;  -= 116; } ''; 1; true; ''; } } } } } } } } } } } } } } } } } } } } } } } } } } button 638 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 642 NewgroundsAsset_Illegal_Host { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2307 % 511) * true; if (!'') { } else {} return ; } var  = -142 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 121) {  += 383; true; } if ( == 505) { for (;;) {  += 45; if ( != 418) break;  += 276; // An attempt to read a value from empty stack if ( == 661) {  -= 104; // An attempt to read a value from empty stack var eval(undefined) = !undefined; } if ( == 134) {  += 305; } if ( != 439) break;  += 176; if ( == 301) {  += 243; } if ( != 544) break;  += 6;  -= 560;  += 388;  += 359;  += 409;  -= 527;  += 561;  -= 903;  -= 615;  -= 315;  += 89;  -= 203; } !undefined;  != 694; ''; eval(true); ''; 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } movieClip 643 API Connector (NewgroundsAPI) { #initclip Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector); #endinitclip frame 20 { _visible = false; } } frame 1 { stop(); getpumponce = true; getstoreupgradesonce = true; getturretachievmentonce = true; getepwndonce = true; getrelativeonce = true; getbirdsonce = true; startstartcounter = 0; startstart = false; oneunlocked = false; twounlocked = false; threeunlocked = false; fourunlocked = false; fiveunlocked = false; sixunlocked = false; sevemunlocked = false; eightunlocked = false; var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; zzzzz = true; _root._quality = 'medium'; bytes_loaded = 0; bytes_total = 0; getPercent = 0; doitonce = true; onEnterFrame = function () { if (startstart) { if (startstartcounter > 90 && doitonce) { this.gotoAndPlay('splash'); doitonce = false; } else { ++startstartcounter; } } bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded / bytes_total; loadbar.gotoAndStop(Math.round(getPercent * 100)); if (bytes_loaded == bytes_total && zzzzz) { zzzzz = false; startstart = true; } }; } frame 1 { my_sohi = SharedObject.getLocal('oneunlocked'); if (my_sohi.data.oneunlocked == undefined) { my_sohi.data.oneunlocked = false; } my_sohi.flush; updateoneunlocked = function () { my_sohi.data.oneunlocked = true; }; my_sohi = SharedObject.getLocal('twounlocked'); if (my_sohi.data.twounlocked == undefined) { my_sohi.data.twounlocked = false; } my_sohi.flush; updatetwounlocked = function () { my_sohi.data.twounlocked = true; }; my_sohi = SharedObject.getLocal('threeunlocked'); if (my_sohi.data.threeunlocked == undefined) { my_sohi.data.threeunlocked = false; } my_sohi.flush; updatethreeunlocked = function () { my_sohi.data.threeunlocked = true; }; my_sohi = SharedObject.getLocal('fourunlocked'); if (my_sohi.data.fourunlocked == undefined) { my_sohi.data.fourunlocked = false; } my_sohi.flush; updatefourunlocked = function () { my_sohi.data.fourunlocked = true; }; my_sohi = SharedObject.getLocal('fiveunlocked'); if (my_sohi.data.fiveunlocked == undefined) { my_sohi.data.fiveunlocked = false; } my_sohi.flush; updatefiveunlocked = function () { my_sohi.data.fiveunlocked = true; }; my_sohi = SharedObject.getLocal('sixunlocked'); if (my_sohi.data.sixunlocked == undefined) { my_sohi.data.sixunlocked = false; } my_sohi.flush; updatesixunlocked = function () { my_sohi.data.sixunlocked = true; }; my_sohi = SharedObject.getLocal('sevenunlocked'); if (my_sohi.data.sevenunlocked == undefined) { my_sohi.data.sevenunlocked = false; } my_sohi.flush; updatesevenunlocked = function () { my_sohi.data.sevenunlocked = true; }; my_sohi = SharedObject.getLocal('eightunlocked'); if (my_sohi.data.eightunlocked == undefined) { my_sohi.data.eightunlocked = false; } my_sohi.flush; updateeightunlocked = function () { my_sohi.data.eightunlocked = true; }; } movieClip 651 { frame 1 { stop(); } frame 101 { stop(); } } instance of movieClip 643 API Connector (NewgroundsAPI) { onClipEvent (construct) { api_id = '12030:91zKRKzm '; encryption_key = 'NSQdivPgFLeQ5rXxjGE8AnxZnBAeHtDF'; version = ''; fake_session = false; debug = false; error_screens = true; medal_popups = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } movieClip 546 __Packages.com.newgrounds.API { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1221 % 511) * true; if (!'') { } else {} return ; } var  = -124 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 75) break;  -= 2; if ( == 34) { for (;;) {  += 873; if ( == 644) {  -= 166; } if ( != 774) break;  -= 198; if ( == 291) {  -= 23; } if ( != 478) goto 429;  -= 2; label 429: if ( == 268) {  += 506; for (;;) { } } if ( == 982) {  -= 165; }  -= 39; goto 651; label 651:  -= 518;  -= 616;  += 404;  += 30;  -= 168;  -= 233;  += 6;  -= 571;  -= 371;  -= 24;  += 400;  -= 310; var eval( == 73) = true;  += 137;  -= 108;  -= 171; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } true; #endinitclip } movieClip 547 __Packages.com.newgrounds.Bridge { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1997 % 511) * true; if (!'') { } else {} return ; } var  = -85 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 70; continue; if ( == 745) { for (;;) {  += 224; if ( == 565) {  -= 487; } if ( != 127) break;  += 618; if ( == 969) {  -= 490; var  = 1; } if ( == 751) {  -= 518; } if ( != 786) goto 519;  -= 35; label 519: if ( == 233) {  -= 154; for (;;) { } } if ( == 79) {  += 366; }  += 383;  += 300;  -= 287;  -= 102;  += 627;  += 192;  += 35;  -= 220;  -= 100;  -= 78; } } } } } } } } } } } } } } } } } } } } } } } } }  != 379; true; #endinitclip } movieClip 548 __Packages.com.newgrounds.SaveFile { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1727 % 511) * true; if (!'') { } else {} return ; } var  = -55 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 289; continue; if ( == 270) { for (;;) {  += 502; if ( == 326) {  += 446; } if ( != 951) break;  -= 253; if ( == 772) {  -= 546; } if ( == 698) {  -= 85; } if ( != 574) goto 507;  += 39; label 507:  += 170;  += 307; for (;;) { if (!eval( != 603)) {  += 725; } }  -= 268;  -= 476;  += 392;  -= 457;  += 99;  += 384;  += 491;  += 155;  -= 669;  -= 191;  -= 135;  -= 188;  -= 550;  += 561;  += 83;  += 781;  -= 44; var eval(true) = true;  += 453;  -= 581; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 139; true; #endinitclip } movieClip 549 __Packages.com.newgrounds.SaveGroup { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1082 % 511) * true; if (!'') { } else {} return ; } var  = -27 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 33) {  += 408; true; } if ( == 462) { for (;;) {  -= 333; // An attempt to read a value from empty stack if (undefined) break; continue;  += 36; if ( == 165) {  += 281; } if ( != 869) break;  -= 224; if ( == 129) {  += 36; } if ( == 795) {  += 148; true; } if ( != 740) break;  -= 150; if ( == 364) {  += 281; }  += 299; goto 661; label 661:  -= 293;  -= 282;  -= 262;  += 690;  += 266;  += 205;  -= 883;  += 5;  += 192;  -= 741;  -= 301;  += 473;  -= 823; var  = true;  -= 327;  += 240;  += 492;  -= 250;  += 878;  -= 18;  -= 125; }  != 441; true; ''; eval(!1); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 551 __Packages.com.newgrounds.SaveGroupQuery { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1695 % 511) * true; if (!'') { } else {} return ; } var  = 421 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 204; continue; if ( == 661) { for (;;) {  -= 34; if ( == 868) {  -= 762; } if ( != 787) break;  += 171; if (!1) { } else {  -= 90; } if ( == 958) {  -= 90; } if ( != 440) break;  -= 70; if ( == 415) {  -= 309; } if ( == 151) {  += 788; } if ( != 106) goto 648;  += 231; label 648:  += 121;  += 346;  -= 252;  -= 512;  += 490;  += 17;  -= 345; var eval(eval( != 30)) = '';  -= 552;  += 53;  -= 370; } } } } } } } } } } } } } } } } } } } } } } } } }  != 583; true; #endinitclip } movieClip 553 __Packages.com.newgrounds.encoders.ImageScanner { #initclip for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2740 % 511) * true; if (!'') { } else {} return ; } var  = 685 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 455; continue; if ( == 269) { for (;;) {  += 296; if ( == 415) {  -= 41; if (!true) { goto 1324; }  -= 61; label 1324: } if ( == 837) {  -= 568; if (!true) { break; }  += 296; } if ( == 374) {  -= 61; } if ( != 112) break;  += 883; var eval( != 870) = true; if ( == 263) {  += 688; // An attempt to read a value from empty stack eval(undefined); } if ( == 313) {  -= 151; }  -= 114;  += 143;  -= 732;  += 82;  -= 50;  -= 647; } } } } } } } } } } } } } } } } }  != 870; true; #endinitclip } movieClip 552 __Packages.com.newgrounds.encoders.BaseN { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (263 % 511) * true; if (!'') { } else {} return ; } var  = 299 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 403; continue; if ( == 245) { for (;;) {  += 52; if ( == 200) {  += 325; } if ( != 46) break;  += 833; if ( == 29) {  += 527; } if ( != 297) goto 430;  += 269; var  = 1 ::: eval(1); label 430: if ( == 965) {  -= 765; for (;;) { } } if ( == 525) {  += 470; } if ( != 165) goto 618;  += 332; label 618:  += 41;  += 149;  -= 537;  -= 676;  += 577;  += 112;  -= 273;  -= 581;  -= 634;  -= 497; } } } } } } } } } } } } } } } } } } } } } } } } }  != 562; true; #endinitclip } movieClip 561 __Packages.com.newgrounds.APIEventDispatcher { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (595 % 511) * true; if (!'') { } else {} return ; } var  = 240 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 240; continue; if ( == 635) { for (;;) {  += 101; if ( == 513) {  += 17; } if ( != 245) break;  += 436; if ( == 303) {  += 433; } if ( == 861) {  += 89; } if ( != 736) goto 503;  -= 505; label 503:  -= 62; if ( == 575) { for (;;) {  -= 158; } }  -= 288;  -= 530;  -= 515;  -= 668;  += 630; var eval(1) = eval( != 564);  += 168;  += 125;  += 295;  += 7;  -= 31; } } } } } } } } } } } } } } } } } } } } } } } } }  != 324; true; #endinitclip } movieClip 545 __Packages.com.newgrounds.APIEvent { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1375 % 511) * true; if (!'') { } else {} return ; } var  = 491 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 844) break;  -= 510; if ( == 74) { for (;;) {  += 788; if ( != 123) break;  += 790; if (!true) { } else {  -= 824; } if ( == 744) {  -= 302; ''; } if ( == 180) {  -= 28; } if ( == 95) {  += 369; ''; 1; } if ( != 89) break;  += 599; if ( == 186) {  -= 112; }  -= 824;  -= 155;  -= 596;  += 34;  -= 185;  -= 49;  += 313;  -= 105;  -= 658;  -= 134;  -= 99;  += 280; var eval(eval(!true)) = true;  -= 230;  += 43;  -= 625;  -= 688; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } true :::  != 913; #endinitclip } movieClip 544 __Packages.com.newgrounds.APIError { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (678 % 511) * true; if (!'') { } else {} return ; } var  = 334 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 48; continue; if ( == 215) { for (;;) {  += 492; if ( == 895) {  -= 713; } if ( == 549) {  -= 296; if (!true) { break; }  += 405; } if ( == 362) {  += 614; } if ( != 896) break;  -= 866; if ( == 182) {  += 525; } if ( == 253) {  += 405; }  -= 100; for (;;) { }  -= 521;  -= 607;  += 329;  += 556;  -= 109;  += 562;  -= 716;  += 939;  += 443;  += 98;  -= 182;  -= 136;  += 153; var eval(eval(true)) = '';  -= 654;  -= 976; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 501; true; #endinitclip } movieClip 500 __Packages.com.newgrounds.components.ScoreTable { #initclip for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1203 % 511) * true; if (!'') { } else {} return ; } var  = 616 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 581; continue; if ( == 27) { for (;;) {  += 683; if ( == 450) {  -= 423; } if ( == 357) {  += 245; } if ( != 869) break;  -= 419; var eval( != 797) = eval(true); if ( == 913) {  -= 347; } if ( != 216) break;  -= 147; goto 516; label 516: if ( == 602) {  += 267; ''; 1; } if ( == 966) {  -= 53; }  += 439;  += 178;  -= 183;  += 355;  -= 566; } } } } } } } } } } } } } } } } } }  != 797; true; #endinitclip } movieClip 550 __Packages.com.newgrounds.ValidationTools { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (872 % 511) * true; if (!'') { } else {} return ; } var  = 209 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 570) break;  += 407; if ( == 588) { for (;;) {  += 333; if ( == 945) {  -= 518; } if ( != 643) break;  += 302; if ( == 977) {  += 2; if (true) goto 372; continue; label 372:  -= 336; } if ( == 490) {  += 455; } if ( != 413) break;  += 175; if ( == 979) {  -= 336; } if ( != 509) goto 786;  += 420; label 786:  -= 921;  -= 22;  -= 800;  += 326;  += 298;  -= 362;  -= 244;  += 221; var  = !1;  -= 220;  += 347; } } } } } } } } } } } } } } } } } } } } } } } } } } true; #endinitclip } movieClip 554 __Packages.com.newgrounds.encoders.SerialXML { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2879 % 511) * true; if (!'') { } else {} return ; } var  = -58 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 423; continue; if ( == 650) { for (;;) {  -= 578; if ( == 694) {  -= 583; if (!true) { goto 285; }  += 400; label 285: } if ( != 511) break;  += 259; if ( == 370) {  += 10; } if ( == 111) {  += 400; } if ( != 72) break;  += 729; if ( == 531) {  -= 272; } if ( == 250) {  += 664; }  -= 434;  += 39;  -= 390;  -= 88;  -= 115;  += 419;  += 145;  -= 169; var eval(1) =  == 684;  -= 61;  += 265;  -= 20;  -= 54;  += 85;  += 29;  -= 229;  += 164;  += 242;  += 91;  -= 262;  -= 914; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 266; true; #endinitclip } movieClip 555 __Packages.com.newgrounds.encoders.LZW2 { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1433 % 511) * true; if (!'') { } else {} return ; } var  = -183 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 628; continue; if ( == 546) { for (;;) {  -= 425; if ( == 301) {  -= 203; } if ( == 209) {  -= 88; } if ( == 856) {  -= 233; if (!true) { break; }  -= 322; } if ( != 581) break;  += 297; if (!true) { goto 487; }  += 11; label 487: if ( == 623) {  -= 322; } if ( == 878) {  += 11; }  -= 542;  -= 744;  -= 108;  += 412;  -= 786;  += 443;  -= 491;  += 460;  -= 389;  += 581;  -= 448; var  = 1;  += 298;  -= 15;  += 323;  += 481;  -= 724; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 228; true; #endinitclip } movieClip 556 __Packages.com.newgrounds.encoders.LZW { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (423 % 511) * true; if (!'') { } else {} return ; } var  = 264 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 521; continue; if ( == 239) { for (;;) {  -= 183; if ( == 166) {  -= 96; if (!true) { goto 498; }  += 343; label 498: } if ( == 154) {  -= 30; if (!true) { break; }  += 21; } if ( == 28) {  += 239; } if ( == 291) {  -= 52; if (!true) { break; }  -= 183; }  += 165;  -= 601;  -= 666;  += 343;  -= 139; var eval(true) = '';  -= 589;  += 775;  += 21;  += 23;  -= 385;  += 201;  += 712;  -= 832;  += 2;  += 42;  -= 578;  -= 221;  += 463; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 687; true; #endinitclip } movieClip 557 __Packages.com.newgrounds.Medal { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1006 % 511) * true; if (!'') { } else {} return ; } var  = 27 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 73; continue; if ( == 157) { for (;;) {  += 134; if ( == 438) {  -= 431; if (!true) { goto 298; }  += 261; label 298: } if ( == 595) {  -= 475; if (!true) { break; }  += 495; } if ( == 290) {  -= 141; } if ( == 603) {  -= 165; } if ( == 152) {  += 159; }  += 145; if ( != 149) break;  += 686;  -= 325;  -= 291; var eval( != 522) = true;  += 488; // An attempt to read a value from empty stack  += 152;  += 261;  -= 379;  -= 775;  += 952;  += 23;  -= 285;  -= 295;  -= 377;  -= 312;  += 686;  += 237;  += 495; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 522; true; #endinitclip } movieClip 558 __Packages.com.newgrounds.ScoreBoard { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1967 % 511) * true; if (!'') { } else {} return ; } var  = -285 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 13; continue; if ( == 389) { for (;;) {  -= 92; if ( == 470) {  -= 190; } if ( == 868) {  -= 291; } if ( != 871) break;  -= 482; if ( == 202) {  += 73; } if ( != 707) goto 553;  -= 318; label 553:  += 610;  += 45; if ( == 325) {  -= 228; }  -= 133;  -= 487;  -= 318;  -= 80;  -= 134;  += 367;  += 135;  += 554; var eval( != 140) = !true;  += 474;  += 137;  -= 75;  -= 538;  -= 510;  -= 26;  += 834;  += 189;  -= 688;  += 615;  -= 622; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 149; true; #endinitclip } movieClip 559 __Packages.com.newgrounds.encoders.RC4 { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (38 % 511) * true; if (!'') { } else {} return ; } var  = 295 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 333) {  += 438; true; } if ( == 783) { for (;;) {  -= 417; // An attempt to read a value from empty stack if (undefined) break; continue;  += 254; if ( == 61) {  += 722; // An attempt to read a value from empty stack !undefined; } if ( != 144) break;  += 847; if ( == 47) {  += 97; } if ( == 563) {  += 39; ''; } if ( != 566) break;  += 22; if ( == 135) {  += 428; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; }  += 303; goto 636; label 636:  += 807;  -= 62;  -= 542;  -= 291;  -= 806;  -= 541;  += 254;  -= 361;  -= 404;  += 282;  += 327;  -= 28;  += 441;  += 764;  += 207;  -= 746;  -= 478;  -= 142;  -= 351;  -= 326; }  != 263; eval(true); true; true; ''; 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 560 __Packages.com.newgrounds.encoders.JSON { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1418 % 511) * true; if (!'') { } else {} return ; } var  = 14 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 391; continue; if ( == 448) { for (;;) {  += 143; if ( == 539) {  -= 505; } if ( == 315) {  += 112; } if ( == 19) {  += 627; if (!(true ::: !true)) { break; }  -= 198; } if ( == 82) {  += 233; } if ( != 646) break;  -= 198; if ( == 653) {  -= 587; } if ( == 803) {  -= 212; } if ( != 832) goto 2244;  -= 179; label 2244:  -= 195;  -= 765;  -= 340;  -= 40; var eval(true) = '';  += 447;  -= 157;  -= 25;  += 575;  += 272;  += 112;  += 138;  += 11;  += 400;  -= 434; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 410; true; #endinitclip } movieClip 562 __Packages.com.newgrounds.encoders.MD5 { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2764 % 511) * true; if (!'') { } else {} return ; } var  = 750 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 281; continue; if ( == 419) { for (;;) {  -= 77; if ( == 816) {  -= 462; } if ( == 678) {  -= 340; if (!eval(true)) { break; }  -= 261; } if ( == 338) {  -= 261; } if ( != 185) break;  += 234; if ( == 191) {  += 177; } if ( == 658) {  += 132; }  -= 632; goto 891; label 891:  -= 918;  -= 48;  += 340;  += 574;  += 74;  += 175; var eval(1) = true;  += 713;  += 481;  += 341;  -= 709; } } } } } } } } } } } } } } } } } } } } } } } }  != 959; true; #endinitclip } movieClip 563 __Packages.com.newgrounds.Score { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (145 % 511) * true; if (!'') { } else {} return ; } var  = 543 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  -= 276; continue; if ( == 967) { for (;;) {  -= 668; if ( == 704) {  += 197; } if ( == 236) {  += 63; } if ( != 846) break;  += 104; if ( == 412) {  += 303; } if ( != 567) break;  += 278; if ( == 421) {  += 425; }  -= 569;  += 564;  -= 231;  += 337;  -= 664;  -= 590;  -= 671;  -= 570; var eval(true ::: !true) =  != 805;  -= 72;  += 388;  -= 45;  += 196;  -= 376;  += 391;  -= 845;  += 9; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 688; true; #endinitclip } movieClip 564 __Packages.com.newgrounds.components.FlashAd { #initclip for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2350 % 511) * true; if (!'') { } else {} return ; } var  = -239 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 206; continue; if ( == 957) { for (;;) {  -= 70; if ( == 822) {  -= 332; } if ( != 224) break;  += 663; if ( == 713) {  -= 489; } if ( != 968) break;  -= 675; goto 466; label 466: if ( == 475) {  += 342; } if ( == 293) {  += 529; }  += 440; goto 949; label 949:  += 66;  += 151;  -= 490;  += 468;  -= 946; var eval(!1) = ''; } } } } } } } } } } } } } } } } }  != 67; true; #endinitclip } movieClip 573 __Packages.com.newgrounds.components.APIConnector { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2421 % 511) * true; if (!'') { } else {} return ; } var  = -320 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 233; continue; if ( == 608) { for (;;) {  -= 3; if ( == 269) {  += 360; } if ( == 290) {  -= 110; if (!eval(true)) { } else {  += 810; } } if ( == 731) {  -= 470; if (eval(true)) break; continue;  += 69; } if ( != 411) break;  += 197; if ( == 259) {  += 218; } if ( == 440) {  += 141; }  -= 340;  += 810;  -= 14; var  =  == 605;  += 40;  -= 374;  -= 617;  -= 352;  -= 158;  += 247;  -= 2;  -= 68;  += 468;  += 478;  -= 117;  += 115;  += 317;  += 110;  += 69;  += 291;  -= 50;  -= 507; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 57; true; #endinitclip } frame 2 { stop(); clicktopass = false; onMouseDown = function () { clicktopass = true; }; onMouseUp = function () { clicktopass = false; }; } movieClip 653 { } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('330721_princess_full'); mySound.start(0, 99); mySound.setVolume(65); } } movieClip 678 { } movieClip 704 { } movieClip 708 { } movieClip 711 { } // unknown tag 88 length 69 movieClip 715 { } movieClip 720 { } movieClip 723 { } movieClip 738 { } movieClip 825 { } movieClip 829 { } movieClip 832 { } movieClip 842 { } movieClip 905 { } movieClip 909 { } movieClip 912 { } movieClip 915 { } movieClip 924 { } movieClip 1068 { } movieClip 1072 { } movieClip 1075 { } movieClip 1078 { } movieClip 1083 { } movieClip 1086 { } movieClip 1089 { } movieClip 1090 { frame 1 { onEnterFrame = function () { if (_root.clicktopass) { _root.gotoAndStop('menu'); } }; } frame 1062 { stop(); _root.gotoAndStop(3); } } movieClip 1150 { frame 1 { stop(); } } movieClip 1162 { frame 49 { this.unloadMovie(); } } movieClip 1207 { frame 51 { this.unloadMovie(); } } movieClip 1217 { } movieClip 1224 { frame 65 { this.unloadMovie(); } } movieClip 1234 { frame 64 { this.unloadMovie(); } } movieClip 1235 { } movieClip 1248 { } movieClip 1279 { frame 47 { this.unloadMovie(); } } movieClip 1317 { frame 78 { this.unloadMovie(); } } movieClip 1343 { } movieClip 1345 { frame 101 { this.removeMovieClip(); } } movieClip 1390 { frame 84 { this.unloadMovie(); } } movieClip 1458 { frame 99 { this.unloadMovie(); } } movieClip 1459 exps { frame 1 { this.gotoAndStop(_root.currentbomb); } frame 1 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1162 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_1'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } frame 2 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 499 Bomb2_Explosion { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2); } } frame 3 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1207 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_3'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } frame 4 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1235 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_4'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } frame 5 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1279 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_5'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } frame 6 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1317 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('bomb6fixed'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } frame 7 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1345 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_7'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2); } } frame 8 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1390 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_8'); mySound.start(); mySound.setVolume(_root.sfxvolume * 4); } } frame 9 { timer = 0; onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } ++timer; if (timer > 80) { this.removeMovieClip(); } }; } instance of movieClip 1458 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('Bomb_9'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } } instance of movieClip 1459 exps { onClipEvent (load) { stop(); } } movieClip 1484 { } movieClip 1490 { } movieClip 1500 { } movieClip 1510 { frame 24 { stop(); } } movieClip 1511 { frame 75 { stop(); } } movieClip 1521 { frame 40 { stop(); } } movieClip 1522 { frame 77 { stop(); } } movieClip 1535 { frame 73 { stop(); } } movieClip 1536 { frame 91 { stop(); } } movieClip 1553 { } movieClip 1591 { frame 81 { stop(); } } movieClip 1592 { frame 46 { stop(); } } movieClip 1599 { frame 60 { stop(); } } movieClip 1600 { frame 76 { stop(); } } movieClip 1601 bomb { frame 1 { yvelocity = 1; mySound2 = new Sound(this); mySound2.attachSound('BombDropping'); mySound2.start(); mySound2.setVolume(_root.sfxvolume); this.gotoAndStop(_root.currentbomb); onEnterFrame = function () { if (_root.atgame == false) { this.removeMovieClip(); } if (_root.atgame) { _x = _x + _root.airplanespeed; yvelocity += 0.24; _y = _y + yvelocity; } if (_root.ground.hitTest(_x, _y, true) && _root.grounttester._y > _y && (_root.currentbomb == 1 || _root.currentbomb == 2 || _root.currentbomb == 3)) { _root.shake = true; _root.shakeintensity = inten; _root.shakelength = len; _root.bombwentoff = true; mySound2.stop(['BombDropping']); _root.attachMovie('buildingexp', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); _root.bomboff = true; this.removeMovieClip(); } else { if (_root.ground.hitTest(_x, _y, true) && _root.grounttester._y > _y && (_root.currentbomb != 1 && _root.currentbomb != 2 && _root.currentbomb != 3)) { _root.shake = true; _root.shakeintensity = inten; _root.shakelength = len; _root.bombwentoff = true; mySound2.stop(['BombDropping']); _root.attachMovie('exps', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _root.grounttester._y}); _root.bomboff = true; this.removeMovieClip(); } else { if (_root.ground.hitTest(_x, _y, true)) { _root.shake = true; _root.shakeintensity = inten; _root.shakelength = len; _root.bombwentoff = true; mySound2.stop(['BombDropping']); _root.attachMovie('exps', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _root.grounttester._y + 15}); _root.bomboff = true; this.removeMovieClip(); } } } }; } frame 1 { inten = 15; len = 1; } frame 2 { inten = 5; len = 2; } frame 3 { inten = 12; len = 2; } frame 4 { inten = 12; len = 1; } frame 5 { inten = 14; len = 1; } frame 6 { inten = 12; len = 2; } frame 7 { inten = 10; len = 4; } frame 8 { inten = 18; len = 1; } frame 9 { inten = 22; len = 1; } } instance of movieClip 1601 bomb { onClipEvent (load) { stop(); } } movieClip 1609 { } movieClip 1610 { } movieClip 1618 { } movieClip 1623 { } movieClip 1625 { frame 29 { stop(); } } movieClip 1626 airplane { frame 1 { dropone = true; mySound = new Sound(this); mySound.attachSound('PlaneFly'); mySound.start(); mySound.setVolume(_root.sfxvolume * 1.6); } frame 2 { stop(); _xscale = 70; _yscale = 70; _xscale = _xscale * -1; } frame 2 { onEnterFrame = function () { if (_root.timetodie == true) { gotoAndStop(5); } if (_root.atgame == false) { mySound.stop(['PlaneFly']); this.removeMovieClip(); } if (_root.freezetime == false) { _x = _x + _root.airplanespeed; } if (this._x - _width / 2 + _root.targetline._width / 2 > _root.xx && dropone) { dropone = false; _root.attachMovie('bomb', 'bomb', _root.getNextHighestDepth(), {'_x': this._x - _width / 2, '_y': 100}); gotoAndStop(3); } if (this._x - _width > _root.ground._width) { _root.planegone = true; _root.buttonsshouldwork = false; _root.timetocountdown = true; this.removeMovieClip(); } }; } frame 3 { stop(); _xscale = 70; _yscale = 70; _xscale = _xscale * -1; } frame 3 { tcounter = 0; onEnterFrame = function () { if (_root.timetodie == true) { gotoAndStop(5); } if (_root.atgame == false) { mySound.stop(['PlaneFly']); this.removeMovieClip(); } if (_root.freezetime == false) { _x = _x + _root.airplanespeed; } ++tcounter; if (tcounter > 40) { this.gotoAndStop(2); } }; } frame 4 { stop(); _xscale = 70; _yscale = 70; _xscale = _xscale * -1; _root.attachMovie('!hurt', '!hurtgf', _root.getNextHighestDepth(), {'_x': _root.pos - 400, '_y': 0}); } frame 4 { thcounter = 0; onEnterFrame = function () { if (_root.timetodie == true) { gotoAndStop(5); } if (_root.atgame == false) { mySound.stop(['PlaneFly']); this.removeMovieClip(); } if (_root.freezetime == false) { _x = _x + _root.airplanespeed; } ++thcounter; if (thcounter > 5) { this.gotoAndStop(2); } }; } frame 5 { stop(); _xscale = 70; _yscale = 70; _xscale = _xscale * -1; } frame 5 { acc = 0; onEnterFrame = function () { _x = _x + _root.airplanespeed; acc += 0.7; _y = _y + (acc + 2); if (_root.ground.hitTest(_x, _y, true)) { _root.attachMovie('Bomb2_Explosion', 'planeexploding' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': _x - 50, '_y': _y}); this.unloadMovie(); } }; } } instance of movieClip 1626 airplane { onClipEvent (load) { stop(); } } movieClip 1633 { } movieClip 1656 { } movieClip 1695 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 41 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1696 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.money += 150; _root.score += 150; _root.updatesheet(25); mySound = new Sound(this); mySound.attachSound('Boom1'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } movieClip 1701 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 40 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1702 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.updatesheet(14); _root.money += 185; _root.score += 185; mySound = new Sound(this); mySound.attachSound('Boom2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } movieClip 1707 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 40 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1708 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.updatesheet(26); _root.money += 245; _root.score += 245; mySound = new Sound(this); mySound.attachSound('Boom2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } movieClip 1713 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 40 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1714 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.updatesheet(15); _root.money += 290; _root.score += 290; mySound = new Sound(this); mySound.attachSound('Boom1'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } movieClip 1717 { } movieClip 1721 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 41 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1722 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.updatesheet(20); _root.money += 200; _root.score += 200; mySound = new Sound(this); mySound.attachSound('Boom2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 2.5); } } movieClip 1736 { frame 31 { _root.poopypee._x = _parent._x + 150; _root.poopypee._y = _parent._y + 280; } frame 60 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 87 { stop(); } } movieClip 1737 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 100; _root.updatesheet(27); _root.money += 375; _root.score += 375; mySound = new Sound(this); mySound.attachSound('BuildingCollapse2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } movieClip 1747 { frame 31 { _root.poopypee._x = _parent._x + 150; _root.poopypee._y = _parent._y + 280; } frame 60 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 87 { stop(); } } movieClip 1748 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 100; _root.updatesheet(16); _root.money += 430; _root.score += 430; mySound = new Sound(this); mySound.attachSound('BuildingCollapse2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3.5); } } movieClip 1753 { frame 15 { _root.poopypee._x = _parent._x + 100; _root.poopypee._y = _parent._y + 220; } frame 40 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 91 { stop(); } } movieClip 1754 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 50; _root.updatesheet(21); _root.money += 350; _root.score += 350; mySound = new Sound(this); mySound.attachSound('Boom2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } movieClip 1763 { frame 31 { _root.poopypee._x = _parent._x + 150; _root.poopypee._y = _parent._y + 280; } frame 61 { _root.poopypee._x = 1; _root.poopypee._y = 800; } frame 87 { stop(); } } movieClip 1764 { frame 1 { hp = 100; } frame 2 { onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { hp -= 10; } else { if (this.hitTest(_root.carexplosion || _root.otherexp)) { hp -= 1.3; } } if (hp < 1) { this.gotoAndStop(4); } else { if (hp < 51) { this.gotoAndStop(3); } } }; } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.chaos += 100; _root.updatesheet(22); _root.money += 550; _root.score += 550; mySound = new Sound(this); mySound.attachSound('BuildingCollapse2'); mySound.start(); mySound.setVolume(_root.sfxvolume * 3); } } movieClip 1765 ground { frame 1 { gotoAndStop(_root.level - 9); } } instance of movieClip 1765 ground { onClipEvent (load) { stop(); } } frame 3 { stopAllSounds(); stop(); musicreducer = 0.3; sfxvolume = 50; shootingtime = 10; musicvolume = 75; airplanehp = 100; shootunlocked = false; paraunlocked = false; kazunlocked = false; timeunlocked = false; bulletlevel = 5; bulletpower = 20; currentbomb = 1; airplanespeed = 3; level = 10; money = 0; score = 0; spendablemoney = 0; moneytoadd = 0; } movieClip 1768 { frame 33 { stop(); } } movieClip 1769 { instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } frame 89 { stop(); } } movieClip 1784 { frame 15 { stop(); } } button 1786 { on (release) { _root.gotoAndStop(4); } } movieClip 1803 { frame 16 { stop(); } } button 1805 { on (press) { _root.menuz.gotoAndStop(2); } } movieClip 1824 { frame 18 { stop(); } } button 1826 { on (release) { getURL('http://www.newgrounds.com/game/', '_blank'); } } movieClip 1827 { frame 92 { stop(); } } movieClip 1831 { frame 226 { stop(); } } button 1835 { on (release) { _root.menuz.gotoAndStop(1); } } button 1837 { on (release) { getURL('http://frozenfire.newgrounds.com/', '_blank'); } } button 1838 { on (release) { getURL('http://archer-11.newgrounds.com/', '_blank'); } } movieClip 1840 { frame 61 { stop(); } } movieClip 1841 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 653 { onClipEvent (load) { counter = 0; once = true; } onClipEvent (enterFrame) { if (counter < 4) { ++counter; } if (counter > 2 && once) { mySound = new Sound(this); mySound.attachSound('MAINMENU'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 3); once = false; } } } movieClip 1847 { } movieClip 1855 { frame 1 { stop(); } instance of movieClip 1847 { onClipEvent (release) { _root.tut.gotoAndStop(2); } } instance of movieClip 1847 { onClipEvent (release) { _root.gotoAndStop(10); } } frame 2 { stop(); } instance of movieClip 1847 { onClipEvent (release) { _root.tut.gotoAndStop(3); } } frame 3 { stop(); } instance of movieClip 1847 { onClipEvent (release) { _root.tut.gotoAndStop(4); } } frame 4 { stop(); } instance of movieClip 1847 { onClipEvent (release) { _root.gotoAndStop(10); } } } frame 5 { stop(); } button 1857 { on (release) { getURL('http://www.newgrounds.com/', '_blank'); } } movieClip 1860 { frame 20 { stop(); } } movieClip 1861 { frame 25 { stop(); } } movieClip 1863 { } movieClip 1864 { } movieClip 1865 { } movieClip 1889 { } movieClip 1891 { } movieClip 1893 { } movieClip 1895 { } movieClip 1897 { } movieClip 1898 { frame 1 { root.stage.frameRate = 30; } frame 265 { _root.gotoAndStop('Start'); } } movieClip 1899 { frame 1 { stop(); } } frame 9 { if (level < 18 && shootunlocked) { updatesevenunlocked(); } gotoAndStop(level); } frame 10 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 1904 { } movieClip 1905 { frame 1 { variable = 0; onEnterFrame = function () { if (_root.chaos > variable) { variable = _root.chaos; } bgevil._alpha = variable; }; } frame 2 { stop(); } } movieClip 1907 { } // unknown tag 88 length 72 movieClip 1924 { } movieClip 1925 { } movieClip 1927 { } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 1.3); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } instance of movieClip 653 { onClipEvent (load) { once = true; chaosonce = true; } onClipEvent (enterFrame) { if (once && _root.bomboff) { mySound = new Sound(this); mySound.attachSound('PANICMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 3); once = false; } if (_root.chaos > 100 && chaosonce) { mySound.stop(['PANICMUSIC']); chaosonce = false; } } } instance of movieClip 653 { onClipEvent (load) { once = true; } onClipEvent (enterFrame) { if (_root.chaos > 100 && once) { mySound = new Sound(this); mySound.attachSound('CHAOSMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 5); once = false; } } } movieClip 1932 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(31); _root.money += 20; _root.score += 20; } } movieClip 1937 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(31); _root.money += 20; _root.score += 20; } } movieClip 1940 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(28); _root.money += 25; _root.score += 25; } } movieClip 1947 { } movieClip 1950 { frame 1 { stop(); } } movieClip 1960 { } movieClip 1974 { } movieClip 1990 { } movieClip 2017 { } movieClip 2020 { } movieClip 2032 { } movieClip 2066 { } movieClip 2083 { } movieClip 2092 { } movieClip 2093 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(2); _root.money += 1; _root.score += 1; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(2); _root.money += 1; _root.score += 1; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume * 2); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(2); _root.money += 1; _root.score += 1; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(2); _root.money += 1; _root.score += 1; this.unloadMovie(); } }; } } movieClip 2100 { } movieClip 2110 { } movieClip 2127 { } movieClip 2147 { } movieClip 2150 { } movieClip 2159 { } movieClip 2175 { } movieClip 2192 { } movieClip 2198 { } movieClip 2199 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(3); _root.money += 3; _root.score += 3; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(3); _root.money += 3; _root.score += 3; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(3); _root.money += 3; _root.score += 3; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(3); _root.money += 3; _root.score += 3; this.unloadMovie(); } }; } } movieClip 2201 { frame 1 { onEnterFrame = function () { i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); _root.chaos += 10; this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 10; _root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 10; _root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } }; } } movieClip 2206 { } movieClip 2207 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(18); _root.money += 29; _root.score += 29; mySound = new Sound(this); mySound.attachSound('FireHydrantPopped'); mySound.start(0, 99); mySound.setVolume(_root.sfxvolume); } } movieClip 2210 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(30); _root.money += 11; _root.score += 11; } } movieClip 2212 { } movieClip 2215 { } movieClip 2216 { frame 1 { hp = 3; chaintimer = 0; } frame 2 { onEnterFrame = function () { if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (hp < 3) { this.gotoAndStop(3); } } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); } frame 3 { stop(); mySound = new Sound(this); mySound.attachSound('caralarmfixed'); mySound.start(0, 99); mySound.setVolume(_root.sfxvolume); } } movieClip 2218 { } movieClip 2220 { } movieClip 2221 { frame 1 { hp = 3; chaintimer = 0; } frame 2 { onEnterFrame = function () { if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (hp < 3) { this.gotoAndStop(3); } } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); } frame 3 { stop(); mySound = new Sound(this); mySound.attachSound('caralarmfixed'); mySound.start(0, 99); mySound.setVolume(_root.sfxvolume); } } movieClip 2223 { } movieClip 2225 { } movieClip 2226 { frame 1 { hp = 3; chaintimer = 0; } frame 2 { onEnterFrame = function () { if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (hp < 3) { this.gotoAndStop(3); } } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; mySound.stop(['caralarmfixed']); _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); } frame 3 { stop(); mySound = new Sound(this); mySound.attachSound('caralarmfixed'); mySound.start(0, 99); mySound.setVolume(_root.sfxvolume); } } movieClip 2230 { } movieClip 2231 { frame 1 { hp = 3; pos = random(2); } frame 2 { if (pos == 0) { right = true; oneflip = true; } else { right = false; oneflip = false; } speed = 4; chaintimer = 0; onEnterFrame = function () { if (movin) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; } else { _x = _x - speed; } } if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } } else {} } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); movin = true; } } movieClip 2235 { } movieClip 2236 { frame 1 { hp = 3; pos = random(2); } frame 2 { if (pos == 0) { right = true; oneflip = true; } else { right = false; oneflip = false; } speed = 4; chaintimer = 0; onEnterFrame = function () { if (movin) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; } else { _x = _x - speed; } } if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } } else {} } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); movin = true; } } movieClip 2240 { } movieClip 2241 { frame 1 { hp = 3; pos = random(2); } frame 2 { if (pos == 0) { right = true; oneflip = true; } else { right = false; oneflip = false; } speed = 4; chaintimer = 0; onEnterFrame = function () { if (movin) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; } else { _x = _x - speed; } } if (hp < 1) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } else { if (this.hitTest(_root.carexplosion)) { ++chaintimer; if (chaintimer > 10) { _root.chaos += 15; _root.updatesheet(33); _root.money += 95; _root.score += 95; _root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); if (right) { _root.carexplosion._xscale *= -1; } this.unloadMovie(); } } else {} } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; --hp; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { stop(); movin = true; } } movieClip 2245 { } movieClip 2246 { } movieClip 2247 { } instance targetline of movieClip 2247 { onClipEvent (enterFrame) { this._x = _root._xmouse - 140; this._y = 30; if (_root.onetime == false) { _alpha = 0; } } } movieClip 2250 { } movieClip 2315 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } frame 29 { stop(); } frame 30 { stop(); } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } } movieClip 2353 { frame 1 { stop(); } frame 11 { mySoundWheel = new Sound(this); mySoundWheel.attachSound('ChaosRotate'); mySoundWheel.start(); mySoundWheel.setVolume(_root.sfxvolume); } frame 19 { stop(); } frame 47 { mySoundWheel = new Sound(this); mySoundWheel.attachSound('ChaosRotate'); mySoundWheel.start(); mySoundWheel.setVolume(_root.sfxvolume); } frame 55 { stop(); } frame 89 { mySoundWheel = new Sound(this); mySoundWheel.attachSound('ChaosRotate'); mySoundWheel.start(); mySoundWheel.setVolume(_root.sfxvolume); } frame 97 { stop(); } frame 130 { mySoundWheel = new Sound(this); mySoundWheel.attachSound('ChaosRotate'); mySoundWheel.start(); mySoundWheel.setVolume(_root.sfxvolume); } frame 138 { stop(); } } movieClip 2357 { } movieClip 2362 { } movieClip 2367 { } movieClip 2372 { } movieClip 2377 { } // unknown tag 88 length 62 // unknown tag 88 length 68 movieClip 2389 { } movieClip 2404 { frame 1 { if (_root.sparking) { randomspark = random(2); if (randomspark == 0) { mySound = new Sound(this); mySound.attachSound('Sparks1'); mySound.start(); mySound.setVolume(_root.sfxvolume * Math.random()); } else { if (randomspark == 1) { mySound = new Sound(this); mySound.attachSound('Sparks2'); mySound.start(); mySound.setVolume(_root.sfxvolume * Math.random()); } } } } } button 2410 { on (release) { _root.skipround = true; } } movieClip 2412 { } movieClip 2415 { } movieClip 2466 { } movieClip 2467 { instance paper of movieClip 2250 { onClipEvent (enterFrame) { if (this.hitTest(_root.airplane)) { _alpha = 20; } } } instance shootbutton of movieClip 2362 { onClipEvent (release) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } } instance kazbutton of movieClip 2367 { onClipEvent (release) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && _root.kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } } instance parabutton of movieClip 2372 { onClipEvent (release) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && _root.paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } } instance timebutton of movieClip 2377 { onClipEvent (release) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.timeunlocked == true) { mySound = new Sound(this); mySound.attachSound('TIMEFREEZE copy'); mySound.start(); mySound.setVolume(_root.sfxvolume * 10); _root.freezetime = true; _root.onefreeze = false; } } } } instance hud of movieClip 2467 { onClipEvent (load) { once = true; randomer = random(3); } onClipEvent (enterFrame) { if (_root.bomboff && once) { if (randomer == 0) { mySound = new Sound(this); mySound.attachSound('Panic1'); mySound.start(); mySound.setVolume(_root.sfxvolume); } else { if (randomer == 1) { mySound = new Sound(this); mySound.attachSound('Panic2'); mySound.start(); mySound.setVolume(_root.sfxvolume); } else { if (randomer == 2) { mySound = new Sound(this); mySound.attachSound('Panic3'); mySound.start(); mySound.setVolume(_root.sfxvolume); } } } once = false; } } } instance crosshair of movieClip 476 crosshair { onClipEvent (enterFrame) { this._x = _root._xmouse; this._y = _root._ymouse; if (_root.onetime == true || _root.switchmousetokaz || _root.shootunlocked == false) { _alpha = 0; } else { _alpha = 100; } } } movieClip 2469 { } instance of movieClip 2469 { onClipEvent (enterFrame) { this._x = _root._xmouse; if (_root.switchmousetokaz) { _alpha = 100; } else { _alpha = 0; } } } frame 11 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 2472 { } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 1); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } instance of movieClip 653 { onClipEvent (load) { once = true; chaosonce = true; } onClipEvent (enterFrame) { if (once && _root.bomboff) { mySound = new Sound(this); mySound.attachSound('PANICMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 3); once = false; } if (_root.chaos > 100 && chaosonce) { mySound.stop(['PANICMUSIC']); chaosonce = false; } } } instance of movieClip 653 { onClipEvent (load) { once = true; } onClipEvent (enterFrame) { if (_root.chaos > 100 && once) { mySound = new Sound(this); mySound.attachSound('CHAOSMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 5); once = false; } } } frame 12 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 2475 { } instance of movieClip 653 { onClipEvent (load) { mySoundr = new Sound(this); mySoundr.attachSound('PeacefullTime'); mySoundr.start(0, 99); mySoundr.setVolume(_root.musicvolume * _root.musicreducer * 0.8); } onClipEvent (enterFrame) { if (_root.bomboff) { mySoundr.stop(['PeacefullTime']); } } } movieClip 2476 { frame 1 { stop(); once = true; onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee) && once == true) { _root.chaos += 20; _root.updatesheet(29); _root.money += 130; _root.score += 130; once = false; gotoAndStop(2); } else { if (this.hitTest(_root.otherexp) && once == true) { _root.chaos += 20; _root.updatesheet(29); _root.money += 130; _root.score += 130; once = false; gotoAndStop(2); } } }; } } movieClip 2478 { frame 1 { onEnterFrame = function () { i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.chaos += 10; _root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 10; _root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 10; _root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } }; } } movieClip 2480 { frame 1 { onEnterFrame = function () { i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.chaos += 10; _root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 10; _root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 10; _root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } }; } } frame 13 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 2483 { } movieClip 2488 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(17); _root.money += 37; _root.score += 37; } } instance of movieClip 653 { onClipEvent (load) { mySound115 = new Sound(this); mySound115.attachSound('PeacefullTime'); mySound115.start(0, 99); mySound115.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound115.stop(['PeacefullTime']); } } } frame 14 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } movieClip 2491 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(23); _root.money += 62; _root.score += 62; } } movieClip 2498 { } movieClip 2508 { } movieClip 2525 { } movieClip 2545 { } movieClip 2548 { } movieClip 2557 { } movieClip 2573 { } movieClip 2590 { } movieClip 2597 { } movieClip 2598 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(4); _root.money += 6; _root.score += 6; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(4); _root.money += 6; _root.score += 6; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(4); _root.money += 6; _root.score += 6; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(4); _root.money += 6; _root.score += 6; this.unloadMovie(); } }; } } frame 15 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 2601 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { gotoAndStop(2); } } }; } frame 2 { stop(); _root.updatesheet(19); _root.money += 45; _root.score += 45; } } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } movieClip 2628 { } movieClip 2637 { } movieClip 2638 { frame 1 { stop(); onEnterFrame = function () { if (_root.bomboff == true) { this.gotoAndStop(2); } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } } }; } frame 2 { stop(); onEnterFrame = function () { if (_y < 0 || _x < 0 || _x > 800) { this.unloadMovie(); } _y = _y - 2; _x = _x + 1.4; i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } } }; } } movieClip 2652 { } movieClip 2653 { frame 1 { stop(); onEnterFrame = function () { if (_root.bomboff == true) { this.gotoAndStop(2); } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } } }; } frame 2 { stop(); onEnterFrame = function () { if (_y < 0 || _x < 0 || _x > 800) { this.unloadMovie(); } _y = _y - 2; _x = _x - 1.4; i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.updatesheet(24); _root.bomboff = true; _root.money += 120; _root.score += 120; ++_root.birdskilled; this.unloadMovie(); } } }; } } frame 16 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } movieClip 2655 { frame 1 { onEnterFrame = function () { i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); _root.chaos += 10; _root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 10; _root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 10; _root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y}); this.unloadMovie(); } } }; } } movieClip 2661 { } movieClip 2671 { } movieClip 2688 { } movieClip 2708 { } movieClip 2711 { } movieClip 2720 { } movieClip 2736 { } movieClip 2753 { } movieClip 2759 { } movieClip 2760 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(5); _root.money += 10; _root.score += 10; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(5); _root.money += 10; _root.score += 10; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(5); _root.money += 10; _root.score += 10; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(5); _root.money += 10; _root.score += 10; this.unloadMovie(); } }; } } frame 17 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 2763 { } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } movieClip 2768 { frame 14 { if (_root.timetodie == false) { _root.attachMovie('bulletline-turret', 'bulletforshooterthing', _root.getNextHighestDepth(), {'_x': _x - 0, '_y': _y - 40}); angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - _x)); bulletforshooterthing._rotation = angle * 57.2957795 * -1 - 65; mySound = new Sound(this); mySound.attachSound('TurretShootin'); mySound.start(); mySound.setVolume(_root.sfxvolume); } } frame 22 { if (_root.timetodie == false) { _root.airplanehp -= 5; _root.airplane.gotoAndStop(4); } } } movieClip 2783 { frame 72 { stop(); } } movieClip 2784 { frame 1 { stop(); } frame 1 { stop(); over = false; turret.gotoAndStop(1); turret._rotation = -20; startit = false; once = true; hp = 100; onEnterFrame = function () { hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (hp < 1) { this.gotoAndStop(2); } if (startit && once) { turret.gotoAndPlay(1); once = false; } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { this.gotoAndStop(2); } else { if (this.hitTest(_root.otherexp)) { this.gotoAndStop(2); } } angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - 60 - _x)); if (_x - 400 < _root.airplane._x && _x > _root.airplane._x && _root.freezetime == false) { turret._rotation = angle * 57.2957795 * -1 - 30; startit = true; } else { if (_x < _root.airplane._x || _root.freezetime) { over = true; turret.gotoAndStop(1); } } }; } frame 2 { stop(); _root.chaos += 30; _root.updatesheet(32); _root.money += 50; _root.score += 50; } } frame 18 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } movieClip 2790 { } movieClip 2800 { } movieClip 2817 { } movieClip 2837 { } movieClip 2840 { } movieClip 2848 { } movieClip 2866 { } movieClip 2883 { } movieClip 2889 { } movieClip 2890 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(6); _root.money += 16; _root.score += 16; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(6); _root.money += 16; _root.score += 16; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(6); _root.money += 16; _root.score += 16; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(6); _root.money += 16; _root.score += 16; this.unloadMovie(); } }; } } frame 19 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } frame 20 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance targetline of movieClip 2247 { onClipEvent (enterFrame) { this._x = _root._xmouse - 140; this._y = 30; if (_root.onetime == false) { _alpha = 0; } } } instance of movieClip 653 { onClipEvent (load) { mySound121 = new Sound(this); mySound121.attachSound('PeacefullTime'); mySound121.start(0, 99); mySound121.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound121.stop(['PeacefullTime']); } } } instance of movieClip 653 { onClipEvent (load) { once = true; chaosonce = true; } onClipEvent (enterFrame) { if (once && _root.bomboff) { mySound = new Sound(this); mySound.attachSound('PANICMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 3); once = false; } if (_root.chaos > 100 && chaosonce) { mySound.stop(['PANICMUSIC']); chaosonce = false; } } } instance of movieClip 653 { onClipEvent (load) { once = true; } onClipEvent (enterFrame) { if (_root.chaos > 100 && once) { mySound = new Sound(this); mySound.attachSound('CHAOSMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 5); once = false; } } } frame 21 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } instance of movieClip 653 { onClipEvent (load) { once = true; chaosonce = true; } onClipEvent (enterFrame) { if (once && _root.bomboff) { mySound = new Sound(this); mySound.attachSound('PANICMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 3); once = false; } if (_root.chaos > 100 && chaosonce) { mySound.stop(['PANICMUSIC']); chaosonce = false; } } } instance of movieClip 653 { onClipEvent (load) { once = true; } onClipEvent (enterFrame) { if (_root.chaos > 100 && once) { mySound = new Sound(this); mySound.attachSound('CHAOSMUSIC'); mySound.start(); mySound.setVolume(_root.musicvolume * _root.musicreducer * 5); once = false; } } } movieClip 2896 { } movieClip 2906 { } movieClip 2923 { } movieClip 2943 { } movieClip 2946 { } movieClip 2954 { } movieClip 2970 { } movieClip 2987 { } movieClip 2993 { } movieClip 2994 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(7); _root.money += 23; _root.score += 23; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(7); _root.money += 23; _root.score += 23; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(7); _root.money += 23; _root.score += 23; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(7); _root.money += 23; _root.score += 23; this.unloadMovie(); } }; } } frame 22 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } frame 23 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } movieClip 3000 { } movieClip 3010 { } movieClip 3027 { } movieClip 3047 { } movieClip 3050 { } movieClip 3058 { } movieClip 3074 { } movieClip 3091 { } movieClip 3097 { } movieClip 3098 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(8); _root.money += 65; _root.score += 65; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(8); _root.money += 65; _root.score += 65; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(8); _root.money += 65; _root.score += 65; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(8); _root.money += 65; _root.score += 65; this.unloadMovie(); } }; } } frame 24 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } frame 25 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } frame 26 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } movieClip 3101 { } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } movieClip 3107 { } movieClip 3117 { } movieClip 3134 { } movieClip 3154 { } movieClip 3157 { } movieClip 3165 { } movieClip 3181 { } movieClip 3198 { } movieClip 3204 { } movieClip 3205 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(9); _root.money += 40; _root.score += 40; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(9); _root.money += 40; _root.score += 40; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(9); _root.money += 40; _root.score += 40; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(9); _root.money += 40; _root.score += 40; this.unloadMovie(); } }; } } movieClip 3207 { } movieClip 3284 { frame 125 { mySoundg = new Sound(this); mySoundg.attachSound('BazookaManClose_repaired'); mySoundg.start(); mySoundg.setVolume(_root.sfxvolume); } } movieClip 3285 { frame 1 { shootable = false; dead = false; } frame 1 { hp = 100; timetocomeoutcounter = 0; once = true; } frame 2 { stop(); dead = false; shootable = false; } frame 2 { onEnterFrame = function () { if (_root.airplane._x > _x && once) { once = false; _xscale = _xscale * -1; } if (_root.onetime == false && _root.planegone == false && _root.missileout == false && dead == false) { ++timetocomeoutcounter; } if (timetocomeoutcounter > random(200) + 100 && dead == false && _root.missileout == false && _root.freezetime == false) { _root.missileout = true; timetocomeoutcounter = 0; this.gotoAndStop(3); } }; } frame 3 { stop(); shootable = true; zzzcounter = 0; g = true; dead = false; mySound = new Sound(this); mySound.attachSound('BazookaManOpen'); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { if (hp < 1) { this.gotoAndStop(4); } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { this.gotoAndStop(4); } else { if (this.hitTest(_root.otherexp)) { this.gotoAndStop(4); } } ++zzzcounter; if (zzzcounter > 75 && g && dead == false) { g = false; mySound2 = new Sound(this); mySound2.attachSound('BazookaManShootin'); mySound2.start(); mySound2.setVolume(_root.sfxvolume); _root.attachMovie('!!BazookaMissile', 'missile', _root.getNextHighestDepth(), {'_x': _x - 20, '_y': _y - 20}); } else { if (zzzcounter > 160 && dead == false) { zzzcounter = 0; gotoAndStop(2); } } }; } frame 4 { stop(); dead = true; _root.chaos += 30; _root.updatesheet(13); _root.money += 50; _root.score += 50; } } frame 27 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } movieClip 3292 { } movieClip 3302 { } movieClip 3319 { } movieClip 3339 { } movieClip 3342 { } movieClip 3351 { } movieClip 3367 { } movieClip 3384 { } movieClip 3391 { } movieClip 3392 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(10); _root.money += 52; _root.score += 52; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(10); _root.money += 52; _root.score += 52; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(10); _root.money += 52; _root.score += 52; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(10); _root.money += 52; _root.score += 52; this.unloadMovie(); } }; } } frame 28 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } frame 29 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } frame 30 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } frame 31 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } movieClip 3398 { } movieClip 3408 { } movieClip 3425 { } movieClip 3445 { } movieClip 3448 { } movieClip 3456 { } movieClip 3472 { } movieClip 3489 { } movieClip 3495 { } movieClip 3496 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(11); _root.money += 31; _root.score += 31; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(11); _root.money += 31; _root.score += 31; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(11); _root.money += 31; _root.score += 31; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(11); _root.money += 31; _root.score += 31; this.unloadMovie(); } }; } } frame 32 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } movieClip 3502 { } movieClip 3512 { } movieClip 3529 { } movieClip 3549 { } movieClip 3552 { } movieClip 3560 { } movieClip 3576 { } movieClip 3593 { } movieClip 3599 { } movieClip 3600 { frame 1 { hp = 100; speed = 0; pos = random(2); flyleft = false; flyright = false; } frame 2 { stop(); flips = 0; flipcount = 0; randomscream = random(3); if (randomscream == 0) { scream = 'Scream1'; } else { if (randomscream == 1) { scream = 'Scream2'; } else { if (randomscream == 2) { scream = 'Scream3'; } } } if (pos == 0) { right = true; oneflip = false; _root.hpflip = false; } else { right = false; oneflip = true; _root.hpflip = true; } flying = false; onEnterFrame = function () { if (flips > 2) { this.unloadMovie(); } ++flipcount; if (flipcount > 100) { flipcount = 0; flips = 0; } if (!flying) { if (oneflip) { _xscale = _xscale * -1; oneflip = false; _root.hpflip = false; } if (this._x < 10) { oneflip = true; _root.hpflip = true; right = true; } else { if (this._x > _root.ground._width) { right = false; oneflip = true; _root.hpflip = true; } } if (right) { _x = _x + speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = false; oneflip = true; _root.hpflip = true; } } else { _x = _x - speed; if (_root.ground.hitTest(_x, _y, true)) { ++flips; right = true; oneflip = true; _root.hpflip = true; } } } if (!flying) { if (_root.bomboff == true) { this.gotoAndStop(3); } else { this.gotoAndStop(2); } } hpbar.gotoAndStop(Math.abs(100 - hp) + 1); if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this.hitTest(_root.otherexp)) { _root.chaos += 5; this.gotoAndStop(8); } else { if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyright = true; } else { if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) { _root.chaos += 5; flying = true; this.gotoAndStop(6); flyleft = true; } else { if (hp < 1) { _root.chaos += 5; this.gotoAndStop(9); } } } } } i = 0; while (i < 15) { if (this.hitTest(_root.bulletarray[i])) { _root.bomboff = true; hp -= _root.bulletpower; _root.bulletarray[i] = null; _root.bulletarray[i].unloadMovie(); } ++i; } }; } frame 2 { speed = 1; } frame 3 { speed = 2; } frame 6 { archeight = random(150) + 50; secondarcheight = archeight + 15; downtime = false; speed = archeight / 50; acccounter = 0; acccounter2 = 0; othercounter = 0; onEnterFrame = function () { acccounter += 0.5; if (flyleft) { _x = _x - speed; } else { if (flyright) { _x = _x + speed; } } archeight -= 10; if (archeight > 0) { _y = _y - (10 - acccounter); } else { downtime = true; } if (downtime) { ++othercounter; } if (othercounter > 4) { secondarcheight -= 10; acccounter2 += 0.8; } if (secondarcheight > 0 && downtime && othercounter > 4) { _y = _y + (3 + acccounter2); } if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) { if (_y < _root.grounttester._y) { this.gotoAndStop(10); } else { this.gotoAndStop(7); } } }; } frame 7 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 50) { deadcounter = 0; _root.updatesheet(12); _root.money += 100; _root.score += 100; this.unloadMovie(); } }; } frame 8 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 20) { deadcounter = 0; _root.updatesheet(12); _root.money += 100; _root.score += 100; this.unloadMovie(); } }; } frame 9 { hpbar.gotoAndStop(100); deadcounter = 0; mySound = new Sound(this); mySound.attachSound(scream); mySound.start(); mySound.setVolume(_root.sfxvolume); onEnterFrame = function () { ++deadcounter; if (deadcounter > 25) { deadcounter = 0; _root.updatesheet(12); _root.money += 100; _root.score += 100; this.unloadMovie(); } }; } frame 10 { hpbar.gotoAndStop(100); deadcounter = 0; onEnterFrame = function () { ++deadcounter; if (deadcounter > 10) { deadcounter = 0; _root.updatesheet(12); _root.money += 100; _root.score += 100; this.unloadMovie(); } }; } } frame 33 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound11 = new Sound(this); mySound11.attachSound('PeacefullTime'); mySound11.start(0, 99); mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound11.stop(['PeacefullTime']); } } } frame 34 { stopAllSounds(); lws = true; birdskilled = 0; timetodie = false; shotcounter = 0; shotlimit = true; sparking = false; playpooponce = true; freezetimeplayonce = true; paperarray = new Array(); paperarray[0] = 1; paperarray[1] = 1; paperarray[2] = 1; paperarray[3] = 1; paperarray[4] = 1; updatesheet = function (intvar) { paperarray[4] = paperarray[3]; paperarray[3] = paperarray[2]; paperarray[2] = paperarray[1]; paperarray[1] = paperarray[0]; paperarray[0] = intvar; _root.hud.one.gotoAndStop(paperarray[0]); _root.hud.two.gotoAndStop(paperarray[1]); _root.hud.three.gotoAndStop(paperarray[2]); _root.hud.four.gotoAndStop(paperarray[3]); _root.hud.five.gotoAndStop(paperarray[4]); }; stop(); multiplyer = 1; multiplyercounter = 0; skipround = false; chaos = 0; chaospinlevel = 0; onekaz = true; onepara = true; onefreeze = true; missileout = false; bombwentoff = false; uptime = true; shakelength = 0; shake = false; shakecounter = 0; shakeintensity = 0; leftacc = 0; rightacc = 0; atgame = true; timetocountdown = false; kazx = 0; switchmousetokaz = false; onekaz = true; twokaz = true; startkaz = false; mdown = false; mup = false; kazcounter = 0; kaztime = false; buttonsshouldwork = true; freezetime = false; freezetimecounter = 0; baktoscroll = false; planegone = false; timetotroop = false; timetotroopcounter = 20; troopcounter = 0; bomboff = false; xx = 0; yy = 0; onetime = true; timetofly = false; mousetorightofplane = false; bulletarray = new Array(); bulletarray[0] = null; bulletarray[1] = null; bulletarray[2] = null; bulletarray[3] = null; bulletarray[4] = null; bulletarray[5] = null; bulletarray[6] = null; bulletarray[7] = null; bulletarray[8] = null; bulletarray[9] = null; bulletarray[10] = null; bulletarray[11] = null; bulletarray[12] = null; bulletarray[13] = null; bulletarray[14] = null; pos = 400; hud.alarm.gotoAndStop(1); onlyhavethealarmplayoncevariable = true; onEnterFrame = function () { if (birdskilled > 4 && lws) { if (getbirdsonce) { com.newgrounds.API.unlockMedal('Extinction', 150 + pos, 370); getbirdsonce = false; } updateeightunlocked(); lws = false; } ++shotcounter; if (shotcounter > shootingtime) { shotlimit = true; } else { shotlimit = false; } if (airplanehp < 1) { timetodie = true; } if (atgame) { if (shootunlocked == true || onetime == true || switchmousetokaz == true) { Mouse.hide(); } else { Mouse.show(); } } if (atgame) { hud.dayz.gotoAndStop(level - 9); if (Key.isDown(49)) { if (_root.kaztime == true) { _root.kaztime = false; _root.startkaz = false; _root.switchmousetokaz = false; } } if (Key.isDown(50)) { if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) { _root.kaztime = true; _root.switchmousetokaz = true; } } if (Key.isDown(51)) { if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) { _root.timetotroop = true; _root.onepara = false; } } if (Key.isDown(52)) { if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) { _root.freezetime = true; _root.onefreeze = false; } } if (chaos > 100) { ++multiplyercounter; } else { multiplyercounter = 0; } if (multiplyercounter > 100) { multiplyercounter = 0; if (multiplyer < 5) { ++multiplyer; if (multiplyer == 1) { hud.wheel.gotoAndStop(1); } else { if (multiplyer == 2) { hud.wheel.gotoAndPlay('two'); } else { if (multiplyer == 3) { hud.wheel.gotoAndPlay('three'); } else { if (multiplyer == 4) { hud.wheel.gotoAndPlay('four'); } else { if (multiplyer == 5) { if (getepwndonce) { com.newgrounds.API.unlockMedal('E=MCpwned', 150 + pos, 370); getepwndonce = false; } updatefourunlocked(); hud.wheel.gotoAndPlay('five'); } } } } } } } if (chaos < 100) { sparking = false; } if (chaos > 100) { sparking = true; if (playpooponce) { updatefiveunlocked(); if (getpumponce) { com.newgrounds.API.unlockMedal('Pump up the Volume', 150 + pos, 370); getpumponce = false; } attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); playpooponce = false; } hud.wordchaos._alpha = 100; hud.sparks._alpha = 100; } else { hud.wordchaos._alpha = 0; hud.sparks._alpha = 0; } if (chaos < 10 && planegone == true || skipround == true) { chaos = 0; moneytoadd = multiplyer * money; spendablemoney += moneytoadd; if (level < 15) { _root.gotoAndStop('store'); } else { _root.gotoAndStop('storewithnoad'); } } if (chaos > 100) { chaos -= 1; } else { if (chaos > 0) { chaos -= 0.5; } } if (chaospinlevel < chaos) { ++chaospinlevel; } else { if (chaospinlevel > chaos) { --chaospinlevel; } } hud.pin.gotoAndStop(chaospinlevel + 1); if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) { hud.shootbutton.gotoAndStop(1); } else { hud.shootbutton.gotoAndStop(2); } if (onetime) { hud.kazbutton.gotoAndStop(2); } else { if (onekaz == true && _root.kazunlocked == true) { hud.kazbutton.gotoAndStop(1); } else { hud.kazbutton.gotoAndStop(2); } } if (onetime) { hud.parabutton.gotoAndStop(2); } else { if (onepara == true && _root.paraunlocked == true) { hud.parabutton.gotoAndStop(1); } else { hud.parabutton.gotoAndStop(2); } } if (onetime) { hud.timebutton.gotoAndStop(2); } else { if (onefreeze == true && _root.timeunlocked == true) { hud.timebutton.gotoAndStop(1); } else { hud.timebutton.gotoAndStop(2); } } hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1); if (airplanehp < 10 && onlyhavethealarmplayoncevariable) { hud.alarm.gotoAndPlay(1); onlyhavethealarmplayoncevariable = false; } if (shake) { if (shakecounter < shakelength && uptime) { _root._y += shakeintensity; hud._y -= shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime) { uptime = false; shakecounter = 0; } else { if (uptime == false && shakecounter < shakelength) { _root._y -= shakeintensity; hud._y += shakeintensity; ++shakecounter; } else { if (shakecounter == shakelength && uptime == false) { uptime = true; shakecounter = 0; shakeintensity -= 3; } } } } if (shakeintensity < 1) { shake = false; } } if (kaztime) { if (mdown && startkaz == false) { kazx = _xmouse; startkaz = true; switchmousetokaz = false; } if (startkaz) { ++kazcounter; if (kazcounter > 75) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20}); kaztime = false; onekaz = true; twokaz = true; kazcounter = 0; startkaz = false; onekaz = false; } else { if (kazcounter > 50 && twokaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20}); twokaz = false; } else { if (kazcounter > 25 && onekaz) { attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20}); onekaz = false; } } } } } if (freezetime) { if (freezetimeplayonce == true) { freezetimeplayonce = false; } ++freezetimecounter; if (freezetimecounter > 180) { freezetime = false; freezetimeplayonce = true; freezetimecounter = 0; } } if (timetotroop) { ++timetotroopcounter; if (timetotroopcounter > 20) { if (troopcounter < 3) { attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); ++troopcounter; timetotroopcounter = 0; } else { troopcounter = 0; timetotroop = false; } } } if (atgame && timetodie == false) { if (onetime == true || planegone || baktoscroll) { if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) { rightacc += 0.5; _root._x -= 5 + rightacc; hud._x += 5 + rightacc; pos += 5 + rightacc; leftacc = 0; } if (_xmouse < pos + 300 && pos > 400) { leftacc += 0.5; _root._x += 5 + leftacc; hud._x -= 5 + leftacc; pos -= 5 + leftacc; rightacc = 0; } } else { if (freezetime == false) { if (ground._width - 400 < pos) { baktoscroll = true; } if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) { _root._x -= airplanespeed; hud._x += airplanespeed; pos += airplanespeed; } else { if (airplane._x + airplane._width < pos && pos > 400) { _root._x += 20; hud._x -= 20; pos -= 20; } } } } } i = 0; while (i < 15) { if (bulletarray[i] == null) { arrayspot = i; } if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) { bulletarray[i] = null; bulletarray[i].unloadMovie(); } ++i; } if (crosshair._x > airplane._x) { mousetorightofplane = true; } else { mousetorightofplane = false; } if (timetofly) { attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100}); timetofly = false; airplane.swapDepths(hud); crosshair.swapDepths(hud); } } onMouseDown = function () { mdown = true; mup = false; if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) { shotcounter = 0; shotlimit = false; bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y}); } }; onMouseUp = function () { mup = true; mdown = false; if (onetime) { timetofly = true; xx = _xmouse; onetime = false; } }; }; } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PeacefullTime'); mySound.start(0, 99); mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6); } onClipEvent (enterFrame) { if (_root.bomboff) { mySound.stop(['PeacefullTime']); } } } frame 35 { stop(); glitchcounter = 0; cancontinue = false; var musicmc; var sfxmc; stopAllSounds(); atgame = false; _x = 0; _y = 0; hud.removeMovieClip(); crosshair.removeMovieClip(); Mouse.show(); onEnterFrame = function () { if (glitchcounter > 140) { cancontinue = true; loadingcover._alpha = 0; } else { ++glitchcounter; loadingcover._alpha = 100; } }; } movieClip 3609 { } button 3611 { on (release) { if (_root.cancontinue) { _root.gotoAndStop('inbetween'); } } on (press) { if (_root.cancontinue) { mySound = new Sound(this); mySound.attachSound('ExitComputer'); mySound.start(); mySound.setVolume(_root.sfxvolume * 0.6); } } } movieClip 3616 { } movieClip 3666 { frame 158 { stop(); } } movieClip 3667 { frame 1 { onEnterFrame = function () { if (_root.cancontinue) { button._alpha = 100; } else { button._alpha = 0; } }; } } instance of movieClip 3667 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PointsScreenTransition'); mySound.start(); mySound.setVolume(_root.sfxvolume * 0.7); counter = 0; once = true; } onClipEvent (enterFrame) { if (once) { ++counter; } if (counter > 20 && once) { mySound2 = new Sound(this); mySound2.attachSound('PointsReveal'); mySound2.start(); mySound2.setVolume(_root.sfxvolume); once = false; } } } instance of movieClip 653 { onClipEvent (load) { counter = 0; once = true; } onClipEvent (enterFrame) { if (counter < 4) { ++counter; } if (counter > 2 && once) { mySound2 = new Sound(this); mySound2.attachSound('GarageAmbience'); mySound2.start(3, 99); mySound2.setVolume(_root.musicvolume * 3); once = false; } } } movieClip 3670 { } instance of movieClip 3670 { onClipEvent (enterFrame) { if (_root.multiplyer == 0) { this._alpha = 100; } else { this._alpha = 0; } } } movieClip 3673 { } instance of movieClip 572 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } frame 36 { stop(); if (my_sohi.data.oneunlocked == true) { oneunlocked = true; } if (my_sohi.data.twounlocked == true) { twounlocked = true; } if (my_sohi.data.threeunlocked == true) { threeunlocked = true; } if (my_sohi.data.fourunlocked == true) { fourunlocked = true; } if (my_sohi.data.fiveunlocked == true) { fiveunlocked = true; } if (my_sohi.data.sixunlocked == true) { sixunlocked = true; } if (my_sohi.data.sevenunlocked == true) { sevenunlocked = true; } if (my_sohi.data.eightunlocked == true) { eightunlocked = true; } if (spendablemoney >= 30000) { if (getrelativeonce) { com.newgrounds.API.unlockMedal('You must be a relative...'); getrelativeonce = false; } updatesixunlocked(); } if (level < 17 && shootunlocked) { if (getturretachievmentonce) { com.newgrounds.API.unlockMedal('I came prepared.'); getturretachievmentonce = false; } updatesevenunlocked(); } counterbob = 0; mousedownz = false; moneyleftopay = 0; if (_root.level == 34) { _root.inbetween.gotoAndStop(5); } stopAllSounds(); if (_root.currentbomb == 1) { moneyleftopay = 69450; } else { if (_root.currentbomb == 2) { moneyleftopay = 68750; } else { if (_root.currentbomb == 3) { moneyleftopay = 65500; } else { if (_root.currentbomb == 4) { moneyleftopay = 61000; } else { if (_root.currentbomb == 5) { moneyleftopay = 55500; } else { if (_root.currentbomb == 6) { moneyleftopay = 47500; } else { if (_root.currentbomb == 7) { moneyleftopay = 38000; } else { if (_root.currentbomb == 8) { moneyleftopay = 28000; } else { if (_root.currentbomb == 9) { moneyleftopay = 15000; } } } } } } } } } } button 3679 { on (release) { if (_root.level == 34) { _root.gotoAndStop(38); } else { ++_root.level; _root.money = 0; _root.gotoAndStop(9); } } on (rollOver) { mySound11 = new Sound(this); mySound11.attachSound('NextRound'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } button 3683 { on (release) { _root.gotoAndStop('actualstore'); } on (rollOver) { mySound11 = new Sound(this); mySound11.attachSound('ToUpgrades'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } movieClip 3695 { frame 12 { stop(); } } button 3698 { on (release) { gotoAndStop(4); } on (rollOver) { mySound11 = new Sound(this); mySound11.attachSound('chalkSwipe'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } button 3699 { on (release) { gotoAndStop(3); } on (rollOver) { mySound11 = new Sound(this); mySound11.attachSound('chalkSwipe'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } button 3700 { on (release) { gotoAndStop(2); } on (rollOver) { mySound11 = new Sound(this); mySound11.attachSound('chalkSwipe'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } movieClip 3750 { } button 3754 { on (release) { getURL('http://www.newgrounds.com/', '_blank'); } } movieClip 3803 { } movieClip 3805 { } movieClip 3808 { } movieClip 3816 { } movieClip 3835 { frame 1 { stop(); } } button 3840 { on (release) { gotoAndStop(1); } } movieClip 3845 { } button 3851 { on (release) { _root._quality = 'high'; } } button 3854 { on (release) { _root._quality = 'medium'; } } button 3857 { on (release) { _root._quality = 'low'; } } button 3863 { on (release) { if (_root.spendablemoney < _root.moneyleftopay) { _root.gotoAndStop(38); } } } button 3864 { on (release) { if (_root.spendablemoney >= _root.moneyleftopay) { _root.gotoAndStop(39); } } } movieClip 3865 { frame 1 { onEnterFrame = function () { if (_root.spendablemoney < _root.moneyleftopay) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } }; } } movieClip 3866 { frame 1 { stop(); } instance of movieClip 3750 { onClipEvent (enterFrame) { this.gotoAndStop(_root.level - 8); } } instance of movieClip 3803 { onClipEvent (enterFrame) { this.gotoAndStop(_root.level - 8); } } instance of movieClip 3808 { onClipEvent (load) { if (_root.level > 10) { this.unloadMovie(); } } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.oneunlocked == true) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(1); _root.inbetween.textbox.text = 'Buy the Atomic Bomb'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.eightunlocked) { _alpha = 0; } else { _alpha = 100; } } onClipEvent (rollOver) { if (_root.eightunlocked) { _root.inbetween.tester.gotoAndStop(8); _root.inbetween.textbox.text = 'Kill 5 rare birds.'; } else { _root.inbetween.tester.gotoAndStop(9); _root.inbetween.textbox.text = ' You cannot read this achievement until it\'s unlocked'; } } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.sevenunlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(7); _root.inbetween.textbox.text = 'Purchase the turret upgrade before the 8th day'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.sixunlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(6); _root.inbetween.textbox.text = 'Save up $30,000 in earnings.'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.threeunlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(3); _root.inbetween.textbox.text = 'Purchase all of the store upgrades.'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.fourunlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(4); _root.inbetween.textbox.text = 'Cause enough chaos to reach the x5 Multiplier'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.fiveunlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(5); _root.inbetween.textbox.text = 'Reach chaos for the first time'; } } instance of movieClip 3816 { onClipEvent (enterFrame) { if (_root.twounlocked) { _alpha = 0; } else { _alpha = 50; } } onClipEvent (rollOver) { _root.inbetween.tester.gotoAndStop(2); _root.inbetween.textbox.text = 'Beat the game before reaching the 20th Day'; } } instance of movieClip 3845 { onClipEvent (load) { mousedownz = false; ylimit = _y; _y = _y + Math.abs(_root.sfxvolume - 100) / 2; xx = _x; yy = _y; rollover = false; } onClipEvent (rollOver) { rollover = true; } onClipEvent (rollOut) { rollover = false; } onClipEvent (enterFrame) { onMouseUp = function () { mousedownz = false; }; onMouseDown = function () { mousedownz = true; }; if (rollover && mousedownz) { this.startDrag(true, xx, ylimit, xx, ylimit + 50); } if (mousedownz == false) { _root.sfxvolume = 100 - Math.abs(_y - ylimit) * 2; stopDrag(); } } } instance of movieClip 3845 { onClipEvent (load) { mousedownz = false; ylimit = _y; _y = _y + Math.abs(_root.musicvolume - 100) / 2; xx = _x; yy = _y; rollover = false; } onClipEvent (rollOver) { rollover = true; } onClipEvent (rollOut) { rollover = false; } onClipEvent (enterFrame) { onMouseUp = function () { mousedownz = false; }; onMouseDown = function () { mousedownz = true; }; if (rollover && mousedownz) { this.startDrag(true, xx, ylimit, xx, ylimit + 50); } if (mousedownz == false) { _root.musicvolume = 100 - Math.abs(_y - ylimit) * 2; stopDrag(); } } } } instance of movieClip 653 { onClipEvent (load) { counter = 0; once = true; } onClipEvent (enterFrame) { if (counter < 4) { ++counter; } if (counter > 2 && once) { mySound = new Sound(this); mySound.attachSound('GarageAmbience'); mySound.start(3, 99); mySound.setVolume(_root.musicvolume * 3); once = false; } } } frame 37 { stop(); stopAllSounds(); atgame = false; _x = 0; _y = 0; hud.removeMovieClip(); crosshair.removeMovieClip(); Mouse.show(); onEnterFrame = function () { if (paraunlocked && kazunlocked && timeunlocked && bulletpower == 100) { if (getstoreupgradesonce) { com.newgrounds.API.unlockMedal('Hero-shima'); getstoreupgradesonce = false; } updatethreeunlocked(); } }; } movieClip 3875 { } button 3877 { on (release) { if (_root.currentbomb == 1 && _root.spendablemoney >= 700) { _root.spendablemoney -= 700; _root.currentbomb = 2; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 2 && _root.spendablemoney >= 3250) { _root.spendablemoney -= 3250; _root.currentbomb = 3; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 3 && _root.spendablemoney >= 4500) { _root.spendablemoney -= 4500; _root.currentbomb = 4; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 4 && _root.spendablemoney >= 5500) { _root.spendablemoney -= 5500; _root.currentbomb = 5; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 5 && _root.spendablemoney >= 8000) { _root.spendablemoney -= 8000; _root.currentbomb = 6; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 6 && _root.spendablemoney >= 9500) { _root.spendablemoney -= 9500; _root.currentbomb = 7; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 7 && _root.spendablemoney >= 10000) { _root.spendablemoney -= 10000; _root.currentbomb = 8; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 8 && _root.spendablemoney >= 13000) { _root.spendablemoney -= 13000; _root.currentbomb = 9; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.currentbomb == 9 && _root.spendablemoney >= 15000) { _root.spendablemoney -= 15000; _root.gotoAndStop(39); } } } } } } } } } } } movieClip 3896 { frame 1 { onEnterFrame = function () { this.gotoAndStop(_root.currentbomb); }; } } button 3900 { on (press) { if (_root.shootunlocked == false && _root.spendablemoney >= 2400) { _root.shootunlocked = true; _root.spendablemoney -= 2400; _root.shootingtime = 10; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.bulletpower == 20 && _root.spendablemoney >= 1000) { _root.bulletpower = 25; _root.spendablemoney -= 1000; _root.shootingtime = 7; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.bulletpower == 25 && _root.spendablemoney >= 2000) { _root.bulletpower = 35; _root.spendablemoney -= 2000; _root.shootingtime = 5; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.bulletpower == 35 && _root.spendablemoney >= 3000) { _root.bulletpower = 51; _root.spendablemoney -= 3000; _root.shootingtime = 3; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } else { if (_root.bulletpower == 51 && _root.spendablemoney >= 4000) { _root.bulletpower = 100; _root.spendablemoney -= 4000; _root.shootingtime = 1; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } } } } } } button 3903 { on (release) { if (_root.spendablemoney >= 9000 && _root.kazunlocked == false) { _root.kazunlocked = true; _root.spendablemoney -= 9000; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } } button 3906 { on (release) { if (_root.spendablemoney >= 7500 && _root.paraunlocked == false) { _root.paraunlocked = true; _root.spendablemoney -= 7500; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } } button 3909 { on (release) { if (_root.spendablemoney >= 4000 && _root.timeunlocked == false) { _root.timeunlocked = true; _root.spendablemoney -= 4000; mySound11 = new Sound(this); mySound11.attachSound('BuySomething'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } } button 3913 { on (release) { hptoheal = 100 - _root.airplanehp; costy = hptoheal * 50; if (_root.spendablemoney >= costy) { _root.airplanehp = 100; _root.spendablemoney -= costy; if (hptoheal > 1) { mySound11 = new Sound(this); mySound11.attachSound('RepairPlane'); mySound11.start(); mySound11.setVolume(_root.sfxvolume); } } else { while (_root.spendablemoney >= 100) { ++_root.airplanehp; _root.spendablemoney -= 50; } } } } button 3918 { on (release) { _root.gotoAndStop('inbetween'); } } movieClip 3922 { } movieClip 3923 { frame 1 { onEnterFrame = function () { hptoheal = 100 - _root.airplanehp; costy = hptoheal * 50; txt.text = costy; }; } instance of movieClip 3875 { onClipEvent (enterFrame) { this.gotoAndStop(Math.abs(_root.airplanehp - 100) + 1); } } instance of movieClip 3922 { onClipEvent (enterFrame) { if (_root.shootunlocked == true) { this.unloadMovie(); } } } } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('GarageAmbience'); mySound.start(3, 99); mySound.setVolume(_root.musicvolume * 3); } } movieClip 3928 { frame 1 { onEnterFrame = function () { if (_root.kazunlocked) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }; } } movieClip 3931 { frame 1 { onEnterFrame = function () { if (_root.paraunlocked) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }; } } movieClip 3934 { frame 1 { onEnterFrame = function () { if (_root.timeunlocked) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }; } } movieClip 3945 { frame 1 { onEnterFrame = function () { if (_root.shootunlocked == false) { gotoAndStop(1); } else { if (_root.bulletpower == 20) { gotoAndStop(2); } else { if (_root.bulletpower == 25) { gotoAndStop(3); } else { if (_root.bulletpower == 35) { gotoAndStop(4); } else { if (_root.bulletpower == 51) { gotoAndStop(5); } else { gotoAndStop(6); } } } } } }; } } movieClip 3964 { frame 1 { onEnterFrame = function () { if (_root.currentbomb == 1) { gotoAndStop(1); } else { if (_root.currentbomb == 2) { gotoAndStop(2); } else { if (_root.currentbomb == 3) { gotoAndStop(3); } else { if (_root.currentbomb == 4) { gotoAndStop(4); } else { if (_root.currentbomb == 5) { gotoAndStop(5); } else { if (_root.currentbomb == 6) { gotoAndStop(6); } else { if (_root.currentbomb == 7) { gotoAndStop(7); } else { if (_root.currentbomb == 8) { gotoAndStop(8); } else { if (_root.currentbomb == 9) { gotoAndStop(9); } } } } } } } } } }; } } frame 38 { stop(); stopAllSounds(); atgame = false; _x = 0; _y = 0; hud.removeMovieClip(); crosshair.removeMovieClip(); Mouse.show(); } button 3971 { on (release) { _root.gotoAndStop(3); } } instance of movieClip 653 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('youfail'); mySound.start(); mySound.setVolume(65); } } frame 39 { stop(); stopAllSounds(); com.newgrounds.API.unlockMedal('Einstein Approves'); updateoneunlocked(); if (level < 29) { com.newgrounds.API.unlockMedal('Teacher\'s Pet'); updatetwounlocked(); } } movieClip 3982 { } movieClip 3983 { } movieClip 4009 { } movieClip 4065 { } movieClip 4074 { } button 4080 { on (release) { _root.gotoAndStop(3); } } movieClip 4081 { frame 1 { com.newgrounds.API.postScore('gameboard', _root.score); } frame 451 { stop(); } instance of movieClip 543 Score Board (NewgroundsAPI) { onClipEvent (construct) { board_name = 'gameboard'; period = 'All-Time'; tag = ''; } } } instance of movieClip 4081 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('epixxx3'); mySound.start(); mySound.setVolume(65); } } frame 40 { stop(); glitchcounter = 0; cancontinue = false; var musicmc; var sfxmc; stopAllSounds(); atgame = false; _x = 0; _y = 0; hud.removeMovieClip(); crosshair.removeMovieClip(); Mouse.show(); onEnterFrame = function () { if (glitchcounter > 140) { cancontinue = true; loadingcover._alpha = 0; } else { ++glitchcounter; loadingcover._alpha = 100; } }; } instance of movieClip 3667 { onClipEvent (load) { mySound = new Sound(this); mySound.attachSound('PointsScreenTransition'); mySound.start(); mySound.setVolume(_root.sfxvolume * 0.7); counter = 0; once = true; } onClipEvent (enterFrame) { if (once) { ++counter; } if (counter > 20 && once) { mySound2 = new Sound(this); mySound2.attachSound('PointsReveal'); mySound2.start(); mySound2.setVolume(_root.sfxvolume); once = false; } } } instance of movieClip 653 { onClipEvent (load) { counter = 0; once = true; } onClipEvent (enterFrame) { if (counter < 4) { ++counter; } if (counter > 2 && once) { mySound2 = new Sound(this); mySound2.attachSound('GarageAmbience'); mySound2.start(3, 99); mySound2.setVolume(_root.musicvolume * 3); once = false; } } } instance of movieClip 3670 { onClipEvent (enterFrame) { if (_root.multiplyer == 0) { this._alpha = 100; } else { this._alpha = 0; } } }




http://swfchan.com/42/206874/info.shtml
Created: 23/7 -2019 21:52:00 Last modified: 23/7 -2019 21:52:00 Server time: 24/04 -2024 09:00:46