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

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

armorgames tribot-fighter-14203.swf

This is the info page for
Flash #267980

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function itemHandler1(obj, item) { _quality = 'LOW'; } function itemHandler2(obj, item) { _quality = 'MEDIUM'; } function itemHandler3(obj, item) { _quality = 'HIGH'; } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); item1 = new ContextMenuItem('Quality -> LOW', itemHandler1); item2 = new ContextMenuItem('Quality -> MEDIUM', itemHandler2); item3 = new ContextMenuItem('Quality -> HIGH', itemHandler3); myMenu.customItems.push(item1); myMenu.customItems.push(item2); myMenu.customItems.push(item3); _root.menu = myMenu; stop(); var savefile = SharedObject.getLocal('tribot'); if (savefile.data.a1 == true) { _root.a1 = true; } else { _root.a1 = false; } if (savefile.data.a2 == true) { _root.a2 = true; } else { _root.a2 = false; } if (savefile.data.a3 == true) { _root.a3 = true; } else { _root.a3 = false; } if (savefile.data.a4 == true) { _root.a4 = true; } else { _root.a4 = false; } if (savefile.data.a5 == true) { _root.a5 = true; } else { _root.a5 = false; } if (savefile.data.a6 == true) { _root.a6 = true; } else { _root.a6 = false; } if (savefile.data.a7 == true) { _root.a7 = true; } else { _root.a7 = false; } if (savefile.data.a8 == true) { _root.a8 = true; } else { _root.a8 = false; } if (savefile.data.a9 == true) { _root.a9 = true; } else { _root.a9 = false; } if (savefile.data.a10 == true) { _root.a10 = true; } else { _root.a10 = false; } if (savefile.data.a11 == true) { _root.a11 = true; } else { _root.a11 = false; } if (savefile.data.a12 == true) { _root.a12 = true; } else { _root.a12 = false; } if (savefile.data.a13 == true) { _root.a13 = true; } else { _root.a13 = false; } if (savefile.data.a14 == true) { _root.a14 = true; } else { _root.a14 = false; } if (savefile.data.a15 == true) { _root.a15 = true; } else { _root.a15 = false; } if (savefile.data.a16 == true) { _root.a16 = true; } else { _root.a16 = false; } if (savefile.data.a17 == true) { _root.a17 = true; } else { _root.a17 = false; } if (savefile.data.a18 == true) { _root.a18 = true; } else { _root.a18 = false; } if (savefile.data.a1taken == true) { _root.a1taken = true; } else { _root.a1taken = false; } if (savefile.data.a2taken == true) { _root.a2taken = true; } else { _root.a2taken = false; } if (savefile.data.a3taken == true) { _root.a3taken = true; } else { _root.a3taken = false; } if (savefile.data.a4taken == true) { _root.a4taken = true; } else { _root.a4taken = false; } if (savefile.data.a5taken == true) { _root.a5taken = true; } else { _root.a5taken = false; } if (savefile.data.a6taken == true) { _root.a6taken = true; } else { _root.a6taken = false; } if (savefile.data.a7taken == true) { _root.a7taken = true; } else { _root.a7taken = false; } if (savefile.data.a8taken == true) { _root.a8taken = true; } else { _root.a8taken = false; } if (savefile.data.a9taken == true) { _root.a9taken = true; } else { _root.a9taken = false; } if (savefile.data.a10taken == true) { _root.a10taken = true; } else { _root.a10taken = false; } if (savefile.data.a11taken == true) { _root.a11taken = true; } else { _root.a11taken = false; } if (savefile.data.a12taken == true) { _root.a12taken = true; } else { _root.a12taken = false; } if (savefile.data.a13taken == true) { _root.a13taken = true; } else { _root.a13taken = false; } if (savefile.data.a14taken == true) { _root.a14taken = true; } else { _root.a14taken = false; } if (savefile.data.a15taken == true) { _root.a15taken = true; } else { _root.a15taken = false; } if (savefile.data.a16taken == true) { _root.a16taken = true; } else { _root.a16taken = false; } if (savefile.data.a17taken == true) { _root.a17taken = true; } else { _root.a17taken = false; } if (savefile.data.a18taken == true) { _root.a18taken = true; } else { _root.a18taken = false; } if (savefile.data.abils == undefined) { _root.abils = 0; } else { _root.abils = savefile.data.abils; } if (_root.savefile.data.medal1 == undefined) { _root.medal1 = false; _root.savefile.data.medal1 = false; } else { _root.medal1 = _root.savefile.data.medal1; } if (_root.savefile.data.medal2 == undefined) { _root.medal2 = false; _root.savefile.data.medal2 = false; } else { _root.medal2 = _root.savefile.data.medal2; } if (_root.savefile.data.medal3 == undefined) { _root.medal3 = false; _root.savefile.data.medal3 = false; } else { _root.medal3 = _root.savefile.data.medal3; } if (_root.savefile.data.medal4 == undefined) { _root.medal4 = false; _root.savefile.data.medal4 = false; } else { _root.medal4 = _root.savefile.data.medal4; } if (_root.savefile.data.medal5 == undefined) { _root.medal5 = false; _root.savefile.data.medal5 = false; } else { _root.medal5 = _root.savefile.data.medal5; } if (_root.savefile.data.medal6 == undefined) { _root.medal6 = false; _root.savefile.data.medal6 = false; } else { _root.medal6 = _root.savefile.data.medal6; } if (_root.savefile.data.medal7 == undefined) { _root.medal7 = false; _root.savefile.data.medal7 = false; } else { _root.medal7 = _root.savefile.data.medal7; } if (_root.savefile.data.medal8 == undefined) { _root.medal8 = false; _root.savefile.data.medal8 = false; } else { _root.medal8 = _root.savefile.data.medal8; } if (_root.savefile.data.medal9 == undefined) { _root.medal9 = false; _root.savefile.data.medal9 = false; } else { _root.medal9 = _root.savefile.data.medal9; } if (_root.savefile.data.medal10 == undefined) { _root.medal10 = false; _root.savefile.data.medal10 = false; } else { _root.medal10 = _root.savefile.data.medal10; } if (_root.savefile.data.medal11 == undefined) { _root.medal11 = false; _root.savefile.data.medal11 = false; } else { _root.medal11 = _root.savefile.data.medal11; } if (_root.savefile.data.medal12 == undefined) { _root.medal12 = false; _root.savefile.data.medal12 = false; } else { _root.medal12 = _root.savefile.data.medal12; } if (_root.savefile.data.medal13 == undefined) { _root.medal13 = false; _root.savefile.data.medal13 = false; } else { _root.medal13 = _root.savefile.data.medal13; } if (_root.savefile.data.medal14 == undefined) { _root.medal14 = false; _root.savefile.data.medal14 = false; } else { _root.medal14 = _root.savefile.data.medal14; } if (_root.savefile.data.medal15 == undefined) { _root.medal15 = false; _root.savefile.data.medal15 = false; } else { _root.medal15 = _root.savefile.data.medal15; } if (_root.savefile.data.medal16 == undefined) { _root.medal16 = false; _root.savefile.data.medal16 = false; } else { _root.medal16 = _root.savefile.data.medal16; } if (_root.savefile.data.medals == undefined) { _root.medals = 0; _root.savefile.data.medals = 0; } else { _root.medals = _root.savefile.data.medals; } if (savefile.data.showX == true) { _root.showX = true; } else { _root.showX = false; } if (savefile.data.blockingExp == true) { _root.blockingExp = true; } else { _root.blockingExp = false; } } movieClip 8 { } movieClip 10 { } button 12 { on (rollOver) { fjf.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://armor.ag/MoreGames', '_blank'); } } movieClip 14 { } movieClip 16 { } movieClip 18 { } movieClip 20 { } movieClip 22 { } movieClip 24 { } movieClip 26 { } movieClip 28 { } movieClip 30 { } movieClip 32 { } movieClip 34 { } movieClip 36 { } movieClip 38 { } movieClip 39 { } movieClip 41 { } button 43 { on (rollOver) { devb.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.ratherrandomreality.com', '_blank'); } } movieClip 45 { } movieClip 47 { } movieClip 51 { } movieClip 53 { } movieClip 54 { } movieClip 56 { } movieClip 61 { } movieClip 63 { } movieClip 65 { } movieClip 67 { } movieClip 68 { } movieClip 71 { } movieClip 74 { } movieClip 79 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar1._xscale = PercentLoaded; bar2._xscale = PercentLoaded; } else { gotoAndPlay('loaded'); } } frame 2 { gotoAndPlay(1); } frame 28 { urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; pfixEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(pfixEnd, domain.length); } frame 36 { _root.play(); if (domain == 'ratherrandomreality.com' || domain == 'www.ratherrandomreality.com' || domain == 'armorgames.com' || domain == 'www.armorgames.com' || domain == 'http://games.armorgames.com' || domain == 'http://preview.armorgames.com' || domain == 'http://cache.armorgames.com' || domain == 'http://cdn.armorgames.com' || domain == 'http://gamemedia.armorgames.com' || domain == 'http://*.armorgames.com') { _root.play(); } else { stop(); _root.stop(); } } } frame 2 { stop(); } movieClip 103 { frame 1 { stop(); } } movieClip 106 { } movieClip 113 { } movieClip 120 { } movieClip 123 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } button 125 { on (rollOver) { arglink.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); argtext.gotoAndStop(2); } on (rollOut) { argtext.gotoAndStop(1); } on (dragOut) { argtext.gotoAndStop(1); } on (press) { argtext.gotoAndStop(3); } on (release) { getURL('http://armor.ag/MoreGames', '_blank'); } } movieClip 126 { frame 195 { _root.play(); } } frame 3 { stop(); } movieClip 128 { } movieClip 130 { } movieClip 132 { } movieClip 134 { } movieClip 136 { } movieClip 138 { } movieClip 139 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 141 { } movieClip 145 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 149 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 153 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } button 155 { on (rollOver) { rrrlink.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); rrrstext.gotoAndStop(2); rrrsrrr.gotoAndStop(2); rrrsc.gotoAndStop(2); rrrssun.gotoAndStop(2); } on (rollOut) { rrrstext.gotoAndStop(1); rrrsrrr.gotoAndStop(1); rrrsc.gotoAndStop(1); rrrssun.gotoAndStop(1); } on (dragOut) { rrrstext.gotoAndStop(1); rrrsrrr.gotoAndStop(1); rrrsc.gotoAndStop(1); rrrssun.gotoAndStop(1); } on (press) { rrrstext.gotoAndStop(3); rrrsrrr.gotoAndStop(3); rrrsc.gotoAndStop(3); rrrssun.gotoAndStop(3); } on (release) { getURL('http://www.ratherrandomreality.com', '_blank'); } } movieClip 159 { frame 184 { _root.play(); } } frame 4 { stop(); musicplaying = true; introskippressed = false; } movieClip 161 { } movieClip 163 { } movieClip 165 { } movieClip 167 { } movieClip 169 { } movieClip 171 { } movieClip 173 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 14 { _root.intro.gotoAndPlay('skipafter'); } } movieClip 175 { } movieClip 178 { } movieClip 180 { } movieClip 182 { } movieClip 184 { } movieClip 186 { } movieClip 187 { } movieClip 188 { } movieClip 190 { } movieClip 192 { } movieClip 194 { } movieClip 195 { } movieClip 197 { } button 199 { on (rollOver) { sk.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (_root.introskippressed == false) { _root.introskippressed = true; skipper.gotoAndPlay(2); } } } movieClip 202 { } movieClip 228 { } movieClip 229 { } movieClip 243 { } movieClip 251 { } movieClip 253 { } movieClip 256 { } movieClip 258 { } movieClip 261 { } movieClip 263 { } movieClip 266 { } movieClip 267 { } movieClip 276 { } movieClip 278 { } movieClip 280 { } movieClip 282 { } movieClip 284 { } movieClip 287 { } movieClip 290 { } movieClip 293 { } movieClip 295 { } movieClip 308 { } movieClip 311 { } movieClip 317 { } movieClip 319 { } movieClip 321 { } movieClip 324 { } movieClip 326 { } movieClip 327 { } movieClip 328 { } movieClip 331 { } movieClip 335 { } movieClip 337 { } movieClip 340 { } movieClip 342 { } movieClip 345 { } movieClip 347 { } movieClip 351 { } movieClip 354 { } movieClip 356 { } movieClip 358 { } movieClip 360 { } movieClip 362 { } movieClip 364 { } movieClip 370 { } movieClip 371 { } movieClip 374 { } movieClip 376 { } movieClip 378 { } movieClip 380 { } movieClip 383 { } movieClip 392 { } movieClip 396 { } movieClip 401 { } movieClip 403 { } movieClip 410 { } movieClip 412 { } movieClip 419 { } movieClip 421 { } movieClip 423 { } movieClip 425 { } movieClip 428 { } movieClip 437 { } movieClip 493 { } movieClip 549 { } movieClip 605 { } movieClip 661 { } movieClip 717 { } movieClip 773 { } movieClip 829 { } movieClip 830 { } movieClip 831 { } movieClip 832 { } movieClip 833 { } movieClip 840 { } movieClip 844 { } movieClip 847 { } movieClip 855 { } movieClip 857 { } movieClip 859 { } movieClip 862 { } button 863 { on (rollOver) { sk.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } } movieClip 864 { } movieClip 866 { } movieClip 870 { } movieClip 875 { frame 150 { stop(); } } movieClip 877 { } movieClip 881 { } movieClip 886 { frame 150 { stop(); } } movieClip 888 { } movieClip 892 { } movieClip 897 { frame 150 { stop(); } } movieClip 902 { } movieClip 904 { } movieClip 906 { } movieClip 908 { } movieClip 910 { } movieClip 912 { } movieClip 914 { } movieClip 916 { } movieClip 918 { } movieClip 920 { } movieClip 922 { } movieClip 924 { } movieClip 926 { } movieClip 928 { } movieClip 930 { } movieClip 933 { } movieClip 935 { } movieClip 937 { } movieClip 939 { } movieClip 941 { } movieClip 943 { } movieClip 945 { } movieClip 947 { } movieClip 949 { } movieClip 951 { } movieClip 953 { } movieClip 955 { } movieClip 957 { } movieClip 959 { } movieClip 961 { } movieClip 963 { } movieClip 964 { } movieClip 966 { } movieClip 968 { } movieClip 971 { } movieClip 973 { } movieClip 975 { } movieClip 977 { } movieClip 979 { } movieClip 981 { } movieClip 983 { } movieClip 985 { } movieClip 987 { } movieClip 989 { } movieClip 990 { } movieClip 992 { } movieClip 995 { } movieClip 996 { } movieClip 997 { } movieClip 998 { } movieClip 1000 { } movieClip 1002 { } movieClip 1004 { } movieClip 1006 { } movieClip 1008 { } movieClip 1010 { } movieClip 1012 { } movieClip 1014 { } movieClip 1015 { } movieClip 1016 { } movieClip 1018 { } movieClip 1019 { frame 1537 { _root.gotoAndStop('mainmenu'); } frame 1556 { _root.gotoAndStop('mainmenu'); } } frame 5 { stop(); butclicked = false; _root.replayedlevel = false; _root.justlearned = 0; _root.menuSound = new Sound(); _root.menuSound.attachSound('menuloop'); _root.menuSound.start(0, 99); Key.removeListener(mySoundListener); var mySoundListener = new Object(); mySoundListener.onKeyUp = function () { k = Key.getCode(); if (k == 77) { if (musicplaying == true) { _root.menuSound.setVolume(0); _root.musicicon.gotoAndPlay('stop'); musicplaying = false; } else { if (musicplaying == false) { _root.menuSound.setVolume(100); _root.musicicon.gotoAndPlay('play'); musicplaying = true; } } } }; Key.addListener(mySoundListener); } button 1022 { on (rollOver) { ng.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (butclicked == false) { butclicked = true; _root.goto = 1; _root.gotoPlace.gotoAndPlay(2); } } } movieClip 1024 { } movieClip 1026 { } button 1028 { on (rollOver) { ag.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.ratherrandomreality.com', '_blank'); } } button 1029 { on (rollOver) { mg.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://armor.ag/MoreGames', '_blank'); } } button 1030 { on (rollOver) { cr.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (butclicked == false) { butclicked = true; _root.goto = 2; _root.gotoPlace.gotoAndPlay(2); } } } movieClip 1032 { } button 1033 { on (rollOver) { ach.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (butclicked == false) { butclicked = true; _root.goto = 3; _root.gotoPlace.gotoAndPlay(2); } } } button 1034 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (butclicked == false) { butclicked = true; _root.goto = 4; _root.gotoPlace.gotoAndPlay(2); } } } button 1035 { on (rollOver) { tipsbut.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (butclicked == false) { butclicked = true; _root.goto = 5; _root.gotoPlace.gotoAndPlay(2); } } } button 1037 { on (rollOver) { spons.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://armor.ag/MoreGames', '_blank'); } } movieClip 1039 { } button 1040 { on (rollOver) { rint.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (_root.butclicked == false) { _root.butclicked = true; _root.introrep.gotoAndPlay(2); } } } movieClip 1041 { frame 8 { stop(); } } movieClip 1042 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 14 { if (_root.goto == 1) { _root.gotoAndPlay('showcontrols'); } if (_root.goto == 2) { _root.gotoAndPlay('credits'); } if (_root.goto == 3) { _root.gotoAndPlay('achievements'); } if (_root.goto == 4) { _root.gotoAndPlay('abilities'); } if (_root.goto == 5) { _root.gotoAndPlay('tribopedia'); } } } movieClip 1044 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 22 { _root.gotoAndPlay('gameintro'); } } movieClip 1047 { } movieClip 1049 { } movieClip 1050 { } movieClip 1052 { } movieClip 1054 { } movieClip 1055 { } movieClip 1056 { frame 1 { stop(); } frame 24 { gotoAndStop(1); } frame 47 { gotoAndStop(1); } } frame 6 { stop(); } movieClip 1058 { } movieClip 1060 { } button 1061 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; gotoAndPlay('after'); } } } movieClip 1064 { } button 1066 { on (rollOver) { fjs.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://armor.ag/MoreGames', '_blank'); } } movieClip 1069 { } movieClip 1071 { } movieClip 1073 { } button 1074 { on (rollOver) { adc.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.ratherrandomreality.com', '_blank'); } } movieClip 1076 { } movieClip 1078 { } button 1079 { on (rollOver) { ap.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.mcsmstudios.com', '_blank'); } } movieClip 1081 { } movieClip 1083 { } movieClip 1085 { } movieClip 1087 { } movieClip 1089 { } movieClip 1091 { } movieClip 1093 { } movieClip 1095 { } movieClip 1097 { } movieClip 1099 { } movieClip 1101 { } button 1102 { on (rollOver) { ac1.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://coffee-break.newgrounds.com/', '_blank'); } } movieClip 1104 { } button 1105 { on (rollOver) { ac2.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.symphonyofspecters.com/', '_blank'); } } movieClip 1107 { } button 1108 { on (rollOver) { ac3.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://davidorr.net', '_blank'); } } movieClip 1110 { } button 1111 { on (rollOver) { ac4.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.evil-dog.com/', '_blank'); } } movieClip 1113 { } button 1114 { on (rollOver) { ac5.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://deathkllr84.newgrounds.com/', '_blank'); } } movieClip 1116 { } button 1117 { on (rollOver) { ac6.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { getURL('http://www.hearmick.com/', '_blank'); } } movieClip 1118 { } movieClip 1119 { } movieClip 1121 { frame 2 { mmpressed = false; } frame 9 { stop(); _root.credSound = new Sound(); _root.credSound.attachSound('credLoop'); _root.credSound.start(0, 99); onEnterFrame = function () { creditsUp._y -= 1; if (creditsUp._y < -1030) { if (_root.medal3 == false) { _root.medal3 = true; _root.savefile.data.medal3 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } creditsUp._y = -10; } }; } frame 11 { stopAllSounds(); } frame 26 { onEnterFrame = function () {}; } frame 34 { _root.gotoAndStop('mainmenu'); } } frame 7 { stop(); } button 1122 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; gotoAndPlay('after'); } } } movieClip 1124 { } movieClip 1126 { } button 1131 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri1to2'); } } button 1135 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } } movieClip 1137 { } movieClip 1139 { } movieClip 1141 { } movieClip 1142 { } movieClip 1146 { } movieClip 1148 { } movieClip 1149 { } button 1150 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri2to3'); } } button 1153 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri2to1'); } } movieClip 1155 { } movieClip 1158 { } movieClip 1160 { } movieClip 1161 { } button 1162 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri3to4'); } } button 1163 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri3to2'); } } movieClip 1165 { } movieClip 1168 { } movieClip 1170 { } movieClip 1171 { } button 1172 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri4to5'); } } button 1173 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri4to3'); } } movieClip 1175 { } movieClip 1178 { } movieClip 1182 { } movieClip 1190 { } movieClip 1191 { instance of movieClip 1182 { } } movieClip 1192 { } button 1193 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri5to6'); } } button 1194 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri5to4'); } } movieClip 1196 { } movieClip 1199 { } movieClip 1202 { } movieClip 1203 { } movieClip 1204 { } movieClip 1205 { } button 1208 { on (rollOver) { br.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } } button 1209 { on (rollOver) { bl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('tri6to5'); } } movieClip 1211 { } movieClip 1213 { frame 1 { stop(); } frame 15 { stop(); } frame 29 { stop(); } frame 43 { stop(); } frame 57 { stop(); } frame 71 { stop(); if (_root.medal2 == false) { _root.medal2 = true; _root.savefile.data.medal2 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 85 { gotoAndStop('tri1'); } frame 99 { gotoAndStop('tri2'); } frame 113 { gotoAndStop('tri3'); } frame 127 { gotoAndStop('tri4'); } frame 141 { gotoAndStop('tri5'); } } movieClip 1214 { frame 2 { mmpressed = false; } frame 9 { stop(); _root.achSound = new Sound(); _root.achSound.attachSound('triloop'); _root.achSound.start(0, 99); } frame 11 { stopAllSounds(); } frame 34 { _root.gotoAndStop('mainmenu'); } } frame 8 { stop(); } button 1215 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; gotoAndPlay('after'); } } } movieClip 1217 { } movieClip 1219 { } movieClip 1221 { } movieClip 1223 { } button 1224 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(3); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1226 { } movieClip 1227 { } movieClip 1228 { } button 1229 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(3); _parent.achexp2.gotoAndStop(3); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1230 { frame 1 { stop(); } frame 2 { stop(); } } button 1231 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(4); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1233 { } movieClip 1234 { } movieClip 1235 { } button 1236 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(4); _parent.achexp2.gotoAndStop(4); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1237 { frame 1 { stop(); } frame 2 { stop(); } } button 1238 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(5); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1240 { } movieClip 1241 { } movieClip 1242 { } button 1243 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(5); _parent.achexp2.gotoAndStop(5); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1244 { frame 1 { stop(); } frame 2 { stop(); } } button 1245 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(10); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1247 { } movieClip 1249 { } movieClip 1250 { } movieClip 1251 { } movieClip 1252 { } button 1253 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(10); _parent.achexp2.gotoAndStop(10); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1254 { frame 1 { stop(); } frame 2 { stop(); } } button 1255 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(11); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1257 { } movieClip 1259 { } movieClip 1260 { } movieClip 1261 { } movieClip 1262 { } button 1263 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(11); _parent.achexp2.gotoAndStop(11); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1264 { frame 1 { stop(); } frame 2 { stop(); } } button 1265 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(12); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1267 { } movieClip 1269 { } movieClip 1270 { } movieClip 1271 { } movieClip 1272 { } button 1273 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(12); _parent.achexp2.gotoAndStop(12); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1274 { frame 1 { stop(); } frame 2 { stop(); } } button 1275 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(13); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1277 { } movieClip 1279 { } movieClip 1280 { } movieClip 1281 { } movieClip 1282 { } button 1283 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(13); _parent.achexp2.gotoAndStop(13); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1284 { frame 1 { stop(); } frame 2 { stop(); } } button 1285 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(6); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1287 { } movieClip 1288 { } movieClip 1289 { } button 1290 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(6); _parent.achexp2.gotoAndStop(6); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1291 { frame 1 { stop(); } frame 2 { stop(); } } button 1292 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(7); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1294 { } movieClip 1295 { } movieClip 1296 { } button 1297 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(7); _parent.achexp2.gotoAndStop(7); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1298 { frame 1 { stop(); } frame 2 { stop(); } } button 1299 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(8); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1301 { } movieClip 1302 { } movieClip 1303 { } button 1304 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(8); _parent.achexp2.gotoAndStop(8); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1305 { frame 1 { stop(); } frame 2 { stop(); } } button 1306 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(9); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1308 { } movieClip 1309 { } movieClip 1310 { } button 1311 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(9); _parent.achexp2.gotoAndStop(9); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1312 { frame 1 { stop(); } frame 2 { stop(); } } button 1313 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(14); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1315 { } movieClip 1317 { } movieClip 1318 { } movieClip 1319 { } button 1320 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(14); _parent.achexp2.gotoAndStop(14); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1321 { frame 1 { stop(); } frame 2 { stop(); } } button 1322 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(15); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1324 { } movieClip 1326 { } movieClip 1327 { } movieClip 1328 { } button 1329 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(15); _parent.achexp2.gotoAndStop(15); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1330 { frame 1 { stop(); } frame 2 { stop(); } } button 1331 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(16); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1333 { } movieClip 1334 { } movieClip 1335 { } button 1336 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(16); _parent.achexp2.gotoAndStop(16); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1337 { frame 1 { stop(); } frame 2 { stop(); } } button 1338 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(17); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1340 { } movieClip 1341 { } movieClip 1342 { } button 1343 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(17); _parent.achexp2.gotoAndStop(17); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1344 { frame 1 { stop(); } frame 2 { stop(); } } button 1345 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp1.gotoAndStop(2); _parent.achexp2.gotoAndStop(2); } on (rollOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp1.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1347 { } movieClip 1348 { } movieClip 1349 { } button 1350 { on (rollOver) { ab.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); _parent.achexp3.gotoAndStop(2); _parent.achexp2.gotoAndStop(2); } on (rollOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } on (dragOut) { _parent.achexp3.gotoAndStop(1); _parent.achexp2.gotoAndStop(1); } } movieClip 1351 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1368 { 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(); } } movieClip 1370 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1387 { 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(); } } movieClip 1389 { } // unknown tag 88 length 123 movieClip 1393 { } movieClip 1394 { frame 2 { achitext.medtext.text = _root.medals; mmpressed = false; if (_root.medal1 == false) { m1icon.gotoAndStop(1); } else { m1icon.gotoAndStop(2); } if (_root.medal2 == false) { m2icon.gotoAndStop(1); } else { m2icon.gotoAndStop(2); } if (_root.medal3 == false) { m3icon.gotoAndStop(1); } else { m3icon.gotoAndStop(2); } if (_root.medal4 == false) { m4icon.gotoAndStop(1); } else { m4icon.gotoAndStop(2); } if (_root.medal5 == false) { m5icon.gotoAndStop(1); } else { m5icon.gotoAndStop(2); } if (_root.medal6 == false) { m6icon.gotoAndStop(1); } else { m6icon.gotoAndStop(2); } if (_root.medal7 == false) { m7icon.gotoAndStop(1); } else { m7icon.gotoAndStop(2); } if (_root.medal8 == false) { m8icon.gotoAndStop(1); } else { m8icon.gotoAndStop(2); } if (_root.medal9 == false) { m9icon.gotoAndStop(1); } else { m9icon.gotoAndStop(2); } if (_root.medal10 == false) { m10icon.gotoAndStop(1); } else { m10icon.gotoAndStop(2); } if (_root.medal11 == false) { m11icon.gotoAndStop(1); } else { m11icon.gotoAndStop(2); } if (_root.medal12 == false) { m12icon.gotoAndStop(1); } else { m12icon.gotoAndStop(2); } if (_root.medal13 == false) { m13icon.gotoAndStop(1); } else { m13icon.gotoAndStop(2); } if (_root.medal14 == false) { m14icon.gotoAndStop(1); } else { m14icon.gotoAndStop(2); } if (_root.medal15 == false) { m15icon.gotoAndStop(1); } else { m15icon.gotoAndStop(2); } if (_root.medal16 == false) { m16icon.gotoAndStop(1); } else { m16icon.gotoAndStop(2); } } frame 9 { stop(); _root.achSound = new Sound(); _root.achSound.attachSound('achmusic'); _root.achSound.start(0, 99); } frame 11 { stopAllSounds(); } frame 34 { _root.gotoAndStop('mainmenu'); } } frame 9 { stop(); } movieClip 1397 { } button 1400 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; gotoAndPlay('after'); } } } movieClip 1401 { frame 2 { achitext.medtext.text = _root.medals; mmpressed = false; if (_root.medal1 == false) { m1icon.gotoAndStop(1); } else { m1icon.gotoAndStop(2); } if (_root.medal2 == false) { m2icon.gotoAndStop(1); } else { m2icon.gotoAndStop(2); } if (_root.medal3 == false) { m3icon.gotoAndStop(1); } else { m3icon.gotoAndStop(2); } if (_root.medal4 == false) { m4icon.gotoAndStop(1); } else { m4icon.gotoAndStop(2); } if (_root.medal5 == false) { m5icon.gotoAndStop(1); } else { m5icon.gotoAndStop(2); } if (_root.medal6 == false) { m6icon.gotoAndStop(1); } else { m6icon.gotoAndStop(2); } if (_root.medal7 == false) { m7icon.gotoAndStop(1); } else { m7icon.gotoAndStop(2); } if (_root.medal8 == false) { m8icon.gotoAndStop(1); } else { m8icon.gotoAndStop(2); } if (_root.medal9 == false) { m9icon.gotoAndStop(1); } else { m9icon.gotoAndStop(2); } if (_root.medal10 == false) { m10icon.gotoAndStop(1); } else { m10icon.gotoAndStop(2); } if (_root.medal11 == false) { m11icon.gotoAndStop(1); } else { m11icon.gotoAndStop(2); } if (_root.medal12 == false) { m12icon.gotoAndStop(1); } else { m12icon.gotoAndStop(2); } if (_root.medal13 == false) { m13icon.gotoAndStop(1); } else { m13icon.gotoAndStop(2); } if (_root.medal14 == false) { m14icon.gotoAndStop(1); } else { m14icon.gotoAndStop(2); } if (_root.medal15 == false) { m15icon.gotoAndStop(1); } else { m15icon.gotoAndStop(2); } if (_root.medal16 == false) { m16icon.gotoAndStop(1); } else { m16icon.gotoAndStop(2); } } frame 9 { stop(); _root.achSound = new Sound(); _root.achSound.attachSound('achmusic'); _root.achSound.start(0, 99); } frame 11 { stopAllSounds(); } frame 22 { if (_root.currentLevel == 1) { _root.gotoAndStop('level2'); } if (_root.currentLevel == 2) { _root.gotoAndStop('level3'); } if (_root.currentLevel == 3) { _root.gotoAndStop('level4'); } if (_root.currentLevel == 4) { _root.gotoAndStop('level5'); } if (_root.currentLevel == 5) { _root.gotoAndStop('level6'); } } } frame 10 { stop(); } button 1402 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; gotoAndPlay('after'); } } } movieClip 1404 { } movieClip 1407 { } movieClip 1409 { } movieClip 1411 { } movieClip 1414 { } movieClip 1416 { } movieClip 1418 { } movieClip 1419 { } movieClip 1420 { frame 1 { if (_root.a5 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1422 { } movieClip 1424 { } movieClip 1427 { } movieClip 1429 { } movieClip 1430 { } movieClip 1431 { frame 1 { if (_root.a2 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1433 { } movieClip 1435 { } movieClip 1438 { } movieClip 1440 { } movieClip 1442 { } movieClip 1443 { } movieClip 1444 { frame 1 { if (_root.a8 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1446 { } movieClip 1448 { } movieClip 1451 { } movieClip 1453 { } movieClip 1454 { } movieClip 1455 { frame 1 { if (_root.a11 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1457 { } movieClip 1459 { } movieClip 1462 { } movieClip 1464 { } movieClip 1465 { } movieClip 1466 { frame 1 { if (_root.a14 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1468 { } movieClip 1470 { } movieClip 1473 { } movieClip 1474 { } movieClip 1475 { frame 1 { if (_root.a17 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1477 { } movieClip 1479 { } movieClip 1482 { } movieClip 1484 { } movieClip 1486 { } movieClip 1488 { } movieClip 1490 { } movieClip 1492 { } movieClip 1494 { } movieClip 1496 { } movieClip 1498 { } movieClip 1500 { } movieClip 1502 { } movieClip 1504 { } movieClip 1506 { } movieClip 1508 { } movieClip 1510 { } movieClip 1512 { } movieClip 1514 { } movieClip 1516 { } movieClip 1518 { } movieClip 1520 { } movieClip 1521 { } movieClip 1522 { frame 1 { if (_root.a1 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1524 { } movieClip 1526 { } movieClip 1529 { } movieClip 1531 { } movieClip 1533 { } movieClip 1534 { } movieClip 1535 { } movieClip 1536 { frame 1 { if (_root.a4 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1538 { } movieClip 1540 { } movieClip 1542 { } movieClip 1543 { frame 1 { if (_root.a7 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1545 { } movieClip 1547 { } movieClip 1550 { } movieClip 1552 { } movieClip 1553 { } movieClip 1554 { frame 1 { if (_root.a10 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1556 { } movieClip 1558 { } movieClip 1560 { } movieClip 1561 { frame 1 { if (_root.a16 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1563 { } movieClip 1565 { } movieClip 1567 { } movieClip 1568 { frame 1 { if (_root.a13 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1570 { } movieClip 1572 { } movieClip 1575 { } movieClip 1577 { } movieClip 1579 { } movieClip 1581 { } movieClip 1583 { } movieClip 1585 { } movieClip 1587 { } movieClip 1589 { } movieClip 1591 { } movieClip 1593 { } movieClip 1595 { } movieClip 1597 { } movieClip 1598 { } movieClip 1599 { frame 1 { if (_root.a3 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1601 { } movieClip 1603 { } movieClip 1606 { } movieClip 1608 { } movieClip 1610 { } movieClip 1611 { } movieClip 1612 { frame 1 { if (_root.a6 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1614 { } movieClip 1616 { } movieClip 1619 { } movieClip 1620 { } movieClip 1621 { frame 1 { if (_root.a9 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1623 { } movieClip 1625 { } movieClip 1628 { } movieClip 1630 { } movieClip 1631 { } movieClip 1632 { frame 1 { if (_root.a12 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1634 { } movieClip 1636 { } movieClip 1638 { } movieClip 1639 { frame 1 { if (_root.a15 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1641 { } movieClip 1643 { } movieClip 1646 { } movieClip 1648 { } movieClip 1649 { } movieClip 1650 { frame 1 { if (_root.a18 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } movieClip 1651 { frame 2 { mmpressed = false; abiltext.abil.text = _root.abils; } frame 9 { stop(); _root.abSound = new Sound(); _root.abSound.attachSound('skilloop'); _root.abSound.start(0, 99); } frame 11 { stopAllSounds(); } frame 34 { _root.gotoAndStop('mainmenu'); } } frame 11 { stop(); } movieClip 1653 { } movieClip 1655 { } movieClip 1657 { } movieClip 1659 { } movieClip 1661 { } movieClip 1663 { } movieClip 1665 { } movieClip 1667 { } movieClip 1669 { } movieClip 1671 { } movieClip 1673 { } movieClip 1675 { } movieClip 1677 { } movieClip 1679 { } movieClip 1681 { } movieClip 1683 { } movieClip 1685 { } movieClip 1687 { } movieClip 1689 { } movieClip 1691 { } movieClip 1693 { } movieClip 1695 { } movieClip 1697 { } movieClip 1700 { } movieClip 1701 { } movieClip 1702 { } movieClip 1704 { } movieClip 1706 { } movieClip 1707 { } movieClip 1709 { } movieClip 1711 { } movieClip 1713 { } movieClip 1715 { } movieClip 1717 { } button 1718 { on (rollOver) { gob.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { gotoAndPlay('after'); } } movieClip 1719 { frame 9 { stop(); } frame 24 { _root.gotoAndPlay('level1'); } } frame 12 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { if (_root.bossShow == true) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { level.enemy1.hit.newguy(guytype, startx, starty, startz); } } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } stop(); enemcheck.text._alpha = 0; _root.currentLevel = 1; _root.dontmovedown = false; _root.levelReplayed = false; _root.gotBarrel = false; did = 1; hp = 100; maxhp = 100; lives = 2; turbo = 0; turboTimer = 0; turboMulti = 1; if (_root.medals > 3 && _root.medals < 8) { lives += 1; } if (_root.medals > 7 && _root.medals < 12) { lives += 2; } if (_root.medals > 11) { lives += 3; } blockingTimes = 0; blockingapp = false; _root.passFront = random(24) + 1; _root.passBack = random(24) + 1; _root.bluedied = 0; _root.yellowdied = 0; _root.reddied = 0; _root.bluekilled = 0; _root.yellowkilled = 0; _root.redkilled = 0; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.enemies < 0) { _root.enemies = 0; } if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } if (blockingExp == false && blockingTimes > 80 && blockingapp == false) { blockingapp = true; _root.changeRob.gotoAndPlay(2); } } }; } movieClip 1721 { } movieClip 1723 { instance of movieClip 1721 { onClipEvent (load) { function barrel(one) { if (one.hit.hitTest(this) && one.hit.z < front) { if (one.hit.thrown) { one.hit.explode = true; } else { if (one.hit.yspeed > 24) { one.hit.explode = true; } else { if (one._y < top + 24) { one._y = top; one.hit.yspeed = 0; } else { if (one._x > _parent._x) { one._x = right + 30; } else { one._x = left - 30; } } } } } } function bot(one) { if (one.hitTest(this)) { if (one.z < front + one.deepness) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldy >= bottom + one.tallness && one.yspeed <= 0) { one.ceiling(bottom); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } else { one.wallz(front + one.deepness); } } } } } } } function shader(one, two) { if (one.hit.hitTest(this) && two.hit.z < front && two._y < _parent._y) { one._y = top; two.hit.resetshadow(); } } _parent._alpha = 0; player = _root.level.player; shade = _root.level.shade; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; front = -110; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.z < front + player.hit.deepness) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(botom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } else { player.hit.wallz(front + player.hit.deepness); } } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); shader(_root.level.shade, _root.level.player); shader(_root.level.shade1, _root.level.enemy1); shader(_root.level.shade2, _root.level.enemy2); shader(_root.level.shade3, _root.level.enemy3); shader(_root.level.shade4, _root.level.enemy4); shader(_root.level.shade5, _root.level.enemy5); shader(_root.level.shade6, _root.level.enemy6); shader(_root.level.shade7, _root.level.enemy7); shader(_root.level.shade8, _root.level.enemy8); barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } movieClip 1724 { instance of movieClip 1721 { onClipEvent (load) { function barrel(one) { if (one.hit.hitTest(this) && one.hit.z < front) { if (one.hit.thrown) { one.hit.explode = true; } else { if (one.hit.yspeed > 24) { one.hit.explode = true; } else { if (one._y < top + 24) { one._y = top; one.hit.yspeed = 0; } else { if (one._x > _parent._x) { one._x = right + 30; } else { one._x = left - 30; } } } } } } function bot(one) { if (one.hitTest(this)) { if (one.z < front + one.deepness) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldy >= bottom + one.tallness && one.yspeed <= 0) { one.ceiling(bottom); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } else { one.wallz(front + one.deepness); } } } } } } } function shader(one, two) { if (one.hit.hitTest(this) && two.hit.z < front && two._y < _parent._y) { one._y = top; two.hit.resetshadow(); } } _parent._alpha = 0; player = _root.level.player; shade = _root.level.shade; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; front = -55; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.z < front + player.hit.deepness) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(botom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } else { player.hit.wallz(front + player.hit.deepness); } } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); shader(_root.level.shade, _root.level.player); shader(_root.level.shade1, _root.level.enemy1); shader(_root.level.shade2, _root.level.enemy2); shader(_root.level.shade3, _root.level.enemy3); shader(_root.level.shade4, _root.level.enemy4); shader(_root.level.shade5, _root.level.enemy5); shader(_root.level.shade6, _root.level.enemy6); shader(_root.level.shade7, _root.level.enemy7); shader(_root.level.shade8, _root.level.enemy8); barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } movieClip 1725 { instance of movieClip 1721 { onClipEvent (load) { function bot(one) { if (one.hitTest(this)) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } } } } } function barrel(one) { if (one.hit.hitTest(this)) { if (one.hit.thrown) { one.hit.explode = true; } else { if (one.hit.yspeed > 24) { one.hit.explode = true; } else { if (one._y < top + 24) { one._y = top; one.hit.yspeed = 0; } else { if (one._x > _parent._x) { one._x = right + 30; } else { one._x = left - 30; } } } } } } function shader(one, two) { if (one.hit.hitTest(this) && two._y < _parent._y) { one._y = top; two.hit.resetshadow(); } } _parent._alpha = 0; player = _root.level.player; shade = _root.level.shade; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(bottom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); shader(_root.level.shade, _root.level.player); shader(_root.level.shade1, _root.level.enemy1); shader(_root.level.shade2, _root.level.enemy2); shader(_root.level.shade3, _root.level.enemy3); shader(_root.level.shade4, _root.level.enemy4); shader(_root.level.shade5, _root.level.enemy5); shader(_root.level.shade6, _root.level.enemy6); shader(_root.level.shade7, _root.level.enemy7); shader(_root.level.shade8, _root.level.enemy8); barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } movieClip 1726 { instance of movieClip 1721 { onClipEvent (load) { function barrel(one) { if (one.hit.hitTest(this) && one.hit.z < front) { if (one.hit.thrown) { one.hit.explode = true; } else { if (one.hit.yspeed > 24) { one.hit.explode = true; } else { if (one._y < top + 24) { one._y = top; one.hit.yspeed = 0; } else { if (one._x > _parent._x) { one._x = right + 30; } else { one._x = left - 30; } } } } } } function bot(one) { if (one.hitTest(this)) { if (one.z < front + one.deepness) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldy >= bottom + one.tallness && one.yspeed <= 0) { one.ceiling(bottom); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } else { one.wallz(front + one.deepness); } } } } } } } function shader(one, two) { if (one.hit.hitTest(this) && two.hit.z < front && two._y < _parent._y) { one._y = top; two.hit.resetshadow(); } } _parent._alpha = 0; player = _root.level.player; shade = _root.level.shade; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; front = -165; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.z < front + player.hit.deepness) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(botom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } else { player.hit.wallz(front + player.hit.deepness); } } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); shader(_root.level.shade, _root.level.player); shader(_root.level.shade1, _root.level.enemy1); shader(_root.level.shade2, _root.level.enemy2); shader(_root.level.shade3, _root.level.enemy3); shader(_root.level.shade4, _root.level.enemy4); shader(_root.level.shade5, _root.level.enemy5); shader(_root.level.shade6, _root.level.enemy6); shader(_root.level.shade7, _root.level.enemy7); shader(_root.level.shade8, _root.level.enemy8); barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } movieClip 1727 { instance of movieClip 1721 { onClipEvent (load) { function barrel(one) { if (one.hit.hitTest(this) && one.hit.z < front) { if (one.hit.thrown) { one.hit.explode = true; } else { if (one.hit.yspeed > 24) { one.hit.explode = true; } else { if (one._y < top + 24) { one._y = top; one.hit.yspeed = 0; } else { if (one._x > _parent._x) { one._x = right + 30; } else { one._x = left - 30; } } } } } } function bot(one) { if (one.hitTest(this)) { if (one.z < front + one.deepness) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldy >= bottom + one.tallness && one.yspeed <= 0) { one.ceiling(bottom); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } else { one.wallz(front + one.deepness); } } } } } } } _parent._alpha = 0; player = _root.level.player; shade = _root.level.shade; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; front = -185; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.z < front + player.hit.deepness) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(botom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } else { player.hit.wallz(front + player.hit.deepness); } } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); if (shade.hit.hitTest(this) && player.hit.z < front && player._y < _parent._y) { shade._y = top; player.hit.resetshadow(); } barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } movieClip 1735 { } movieClip 1739 { } movieClip 1740 { } movieClip 1750 { } movieClip 1752 { } movieClip 1754 { } movieClip 1756 { } movieClip 1780 { } movieClip 1782 { } movieClip 1783 { instance hit of movieClip 1721 { onClipEvent (enterFrame) { if (_parent.guy.hit.movement == 'dead') { _parent._alpha = 0; } else { if (!_parent.guy.hit.alive) { _parent._alpha = 0; } else { _parent._x = _parent.guy._x; _parent._alpha = 100; } } } } } movieClip 1809 { 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(); } } movieClip 1834 { 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(); } } movieClip 1835 { } movieClip 1836 { frame 1 { bar.sign.gotoAndStop(_root.passFront); bar.signBG.gotoAndStop(_root.passBack); } } movieClip 1838 { } movieClip 1840 { } movieClip 1842 { } movieClip 1844 { } movieClip 1846 { } movieClip 1848 { } movieClip 1850 { } movieClip 1852 { } movieClip 1854 { } movieClip 1856 { } movieClip 1858 { } movieClip 1860 { } movieClip 1862 { } movieClip 1864 { } movieClip 1866 { } movieClip 1868 { } movieClip 1870 { } movieClip 1872 { } movieClip 1873 { frame 11 { prevFrame(); } } movieClip 1877 { } movieClip 1880 { } movieClip 1883 { } movieClip 1886 { } movieClip 1889 { } movieClip 1892 { } movieClip 1895 { } movieClip 1897 { frame 11 { prevFrame(); } } movieClip 1898 { instance hit of movieClip 1721 { onClipEvent (load) { function toss() { thrown = true; _xscale = 150; _yscale = 150; _parent._x = player._x; z = player.hit.z + 1; player.hit.attack = 'none'; if (player.hit.robot == 1) { _parent._y = player._y - 140; xspeed = 15 * player.hit.direct + player.hit.xspeed; yspeed = -4; spin = 15 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; } else { if (player.hit.robot == 2) { _parent._y = player._y - 20; xspeed = 20 * player.hit.direct + player.hit.xspeed; yspeed = -12; spin = 6 * player.hit.direct; _parent.barrel._rotation = 75 * player.hit.direct; } else { if (player.hit.robot == 3) { _parent._y = player._y - 140; xspeed = 15 * player.hit.direct + player.hit.xspeed; yspeed = -8; spin = 12 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; } } } } function drop() { thrown = true; _xscale = 150; _parent._x = player._x; _parent._y = player._y - player.hit.tallness; z = player.hit.z + 1; spin = 15 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; xspeed = 0; yspeed = -30; } function putdown() { unseen = false; pickupable = true; yspeed = 0; _parent.barrel._alpha = 100; _parent._x = player._x + player.hit.direct * 37; _parent._y = player._y; z = player.hit.z + 1; _parent.barrel._y = z - 43; _parent.barrel._x = z / 10 + wiggle; } function hurt(damage) { hp -= damage; showhp(); if (hp <= 0) { explode = true; movetime = 120; } } function wall(guy) {} _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; pickupable = true; hp = 10; wiggle = 0; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } if (_parent.style == undefined) { style = 1; } else { style = _parent.style; } } onClipEvent (enterFrame) { if (!_root.gamepause) { left = _parent._x - 20; right = _parent._x + 20; front = z + 10; back = z - 10; if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(player.hit.z - z) < player.hit.deepness + 20 && pickupable) { if (player.hit.hitTest(this)) { if (Math.abs(player.hit.z - z) < player.hit.deepness + 10) { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); } } if (player.hit.oldz > front + player.hit.deepness / 2) { player.hit.wallz(front + player.hit.deepness); } else { if (player.hit.oldz < back - player.hit.deepness / 2) { player.hit.wallz(back - player.hit.deepness); } } } if (player.hit.punchtime == 1 && player.hit.kicktime != 1 && !player.hit.holdbarrel && !player.hit.air && player.hit.movement == 'attack') { player.hit.movement = 'pickup'; player.hit.holdbarrel = true; player.hit.barrelheld = _parent; player.hit.movetime = 6; pickupable = false; } } if (_parent.barrel.punchable.hitTest(player.guy.carry.hit)) { if (lasthit != player.hit.attack) { hurt(player.hit.damager); lasthit = player.hit.attack; wiggle = 5; if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } } if (explode) { _parent.gotoAndStop(1 + style); pickupable = false; } else { if (thrown) { _parent.barrel._alpha = 100; _parent._x += xspeed; _parent._y += yspeed; yspeed += 3; _parent.barrel._rotation += spin; } else { if (unseen) { _parent.barrel._alpha = 0; } else { if (!pickupable) { unseen = true; } else { _parent._y += yspeed; yspeed += 3; } } } } if (Math.abs(wiggle) > 0.5) { wiggle *= -0.7; } _parent.barrel._y = z - 43; _parent.barrel._x = z / 10 + wiggle; _parent.barrel.gotoAndStop(style); _parent.swapDepths(10000 + z * 100 - did); } } } instance of movieClip 1721 { onClipEvent (load) { function barrel(other) { if (other.hit.hitTest(this) && Math.abs(other.hit.z - _parent.hit.z) < 60) { if (_parent != other) { if (other.hit.thrown) { other.hit.explode = true; } else { if (other.hit.pickupable) { other.hit.explode = true; } } } } } function enemy(one) { if (one.hitTest(this) && Math.abs(one.z - _parent.hit.z) < one.deepness + 60) { if (one.movement != 'down' && one.movement != 'dead') { one.hurt(15, 0, 48); } } } player = _root.level.player; time = 5; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (time > 0) { time -= 1; if (player.hit.hitTest(this) && Math.abs(player.hit.z - _parent.hit.z) < player.hit.deepness + 60) { player.hit.hurt(10, 50); } enemy(_root.level.enemy1.hit); enemy(_root.level.enemy2.hit); enemy(_root.level.enemy3.hit); enemy(_root.level.enemy4.hit); enemy(_root.level.enemy5.hit); enemy(_root.level.enemy6.hit); enemy(_root.level.enemy7.hit); enemy(_root.level.enemy8.hit); if (time == 1) { barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } } } instance carry of movieClip 1873 { onClipEvent (load) { _y = _parent.hit.z - 58; } onClipEvent (enterFrame) { if (_root.gamepause) { stop(); } else { play(); } } } instance carry of movieClip 1897 { onClipEvent (load) { _y = _parent.hit.z - 58; } onClipEvent (enterFrame) { if (_root.gamepause) { stop(); } else { play(); } } } } movieClip 1908 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mytorso + (_parent._parent._parent.hit.mycolour - 1) * 3); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1912 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1922 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myleg + (_parent._parent._parent.hit.mycolour - 1) * 3); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1938 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myhead + (_parent._parent._parent.hit.mycolour - 1) * 5); } 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(); } } movieClip 1948 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myjoint + (_parent._parent._parent.hit.mycolour - 1) * 3); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1958 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycrotch + (_parent._parent._parent.hit.mycolour - 1) * 3); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1962 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1972 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myfoot + (_parent._parent._parent.hit.mycolour - 1) * 3); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1973 { } movieClip 1974 { } movieClip 1975 { } movieClip 1977 { frame 8 { prevFrame(); } } movieClip 1986 { } movieClip 1988 { } movieClip 1990 { } movieClip 1992 { } movieClip 1994 { } movieClip 1996 { } movieClip 1998 { } movieClip 2000 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 2001 { } movieClip 2002 { frame 9 { prevFrame(); } } movieClip 2003 { frame 8 { prevFrame(); } } movieClip 2004 { } movieClip 2005 { } movieClip 2007 { frame 7 { prevFrame(); } } movieClip 2008 { } movieClip 2009 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 20; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; if ((_root.level.phase == 1 || _root.level.phase == 2) && player.hit.robot == 1) { mycolour = random(2) + 2; } else { if ((_root.level.phase == 1 || _root.level.phase == 2) && player.hit.robot == 3) { mycolour = random(2) + 1; } else { if ((_root.level.phase == 1 || _root.level.phase == 2) && player.hit.robot == 2) { randcol = random(2); if (randcol == 0) { mycolour = 1; } else { mycolour = 3; } } else { if (_root.level.phase == 4 && player.hit.robot == 1) { mycolour = 1; } else { if (_root.level.phase == 4 && player.hit.robot == 2) { mycolour = 2; } else { if (_root.level.phase == 4 && player.hit.robot == 3) { mycolour = 3; } else { mycolour = random(3) + 1; } } } } } } if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 0; healthType = 20; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 20; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 2008 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 2011 { } movieClip 2013 { } movieClip 2015 { } movieClip 2016 { } movieClip 2018 { } movieClip 2020 { } movieClip 2022 { } movieClip 2024 { } movieClip 2026 { } movieClip 2028 { } movieClip 2030 { } movieClip 2032 { } movieClip 2034 { } movieClip 2036 { } movieClip 2038 { } movieClip 2040 { } movieClip 2042 { } movieClip 2044 { } movieClip 2046 { } movieClip 2047 { } movieClip 2049 { } movieClip 2051 { } movieClip 2053 { } movieClip 2055 { } movieClip 2057 { } movieClip 2059 { } movieClip 2061 { } movieClip 2062 { instance of movieClip 2049 { onClipEvent (enterFrame) { if (this.hitTest(_root.trashcan.shade) && _root.pause == false) { _root.trashcan.gotoAndStop(2); _root.trashcan._x += 20; } } onClipEvent (enterFrame) { if (this.hitTest(_root.trashcan2.shade) && _root.pause == false) { _root.trashcan2.gotoAndStop(2); _root.trashcan2._x += 20; } } } } movieClip 2064 { } movieClip 2066 { } movieClip 2067 { frame 11 { prevFrame(); } } movieClip 2069 { } movieClip 2070 { } movieClip 2071 { frame 12 { gotoAndPlay(4); } } movieClip 2073 { } movieClip 2076 { } movieClip 2079 { } movieClip 2081 { } movieClip 2083 { } movieClip 2084 { } movieClip 2086 { } movieClip 2088 { } movieClip 2091 { } movieClip 2092 { } movieClip 2094 { } movieClip 2096 { } movieClip 2098 { } movieClip 2100 { } movieClip 2101 { } movieClip 2103 { } movieClip 2105 { } movieClip 2108 { } movieClip 2109 { } movieClip 2111 { } movieClip 2113 { } movieClip 2115 { } movieClip 2116 { } movieClip 2118 { } movieClip 2120 { } movieClip 2122 { } movieClip 2123 { } movieClip 2125 { } movieClip 2127 { } movieClip 2129 { } movieClip 2130 { } movieClip 2132 { } movieClip 2134 { } movieClip 2137 { } movieClip 2139 { } movieClip 2141 { } movieClip 2143 { } movieClip 2145 { } movieClip 2147 { } movieClip 2149 { } movieClip 2151 { } movieClip 2153 { } movieClip 2155 { } movieClip 2157 { } movieClip 2159 { } movieClip 2161 { } movieClip 2163 { } movieClip 2165 { } movieClip 2166 { } movieClip 2168 { } movieClip 2170 { } movieClip 2172 { } movieClip 2174 { } movieClip 2177 { } movieClip 2179 { } movieClip 2181 { } movieClip 2184 { } movieClip 2186 { } movieClip 2188 { } movieClip 2190 { } movieClip 2192 { } movieClip 2193 { } movieClip 2195 { } movieClip 2197 { } movieClip 2200 { } movieClip 2202 { } movieClip 2204 { } movieClip 2206 { } movieClip 2208 { } movieClip 2210 { } movieClip 2212 { } movieClip 2214 { } movieClip 2216 { } movieClip 2218 { } movieClip 2220 { } movieClip 2222 { } movieClip 2224 { } movieClip 2225 { } movieClip 2227 { } movieClip 2229 { } movieClip 2231 { } movieClip 2233 { } movieClip 2236 { } movieClip 2239 { } movieClip 2241 { } movieClip 2243 { } movieClip 2245 { } movieClip 2247 { } movieClip 2249 { } movieClip 2251 { } movieClip 2253 { } movieClip 2255 { } movieClip 2257 { } movieClip 2259 { } movieClip 2261 { } movieClip 2263 { } movieClip 2265 { } movieClip 2266 { } movieClip 2268 { } movieClip 2270 { } movieClip 2272 { } movieClip 2274 { } movieClip 2276 { } movieClip 2278 { } movieClip 2280 { } movieClip 2282 { } movieClip 2283 { } movieClip 2285 { } movieClip 2287 { } movieClip 2290 { } movieClip 2292 { } movieClip 2294 { } movieClip 2296 { } movieClip 2298 { } movieClip 2300 { } movieClip 2302 { } movieClip 2304 { } movieClip 2306 { } movieClip 2308 { } movieClip 2310 { } movieClip 2312 { } movieClip 2314 { } movieClip 2316 { } movieClip 2318 { } movieClip 2320 { } movieClip 2322 { } movieClip 2324 { } movieClip 2326 { } movieClip 2328 { } movieClip 2330 { } movieClip 2332 { } movieClip 2333 { } movieClip 2335 { } movieClip 2337 { } movieClip 2339 { } movieClip 2341 { } movieClip 2343 { } movieClip 2345 { } movieClip 2347 { } movieClip 2348 { } movieClip 2350 { } movieClip 2352 { } movieClip 2354 { } movieClip 2356 { } movieClip 2358 { } movieClip 2360 { } movieClip 2362 { } movieClip 2364 { } movieClip 2366 { } movieClip 2368 { } movieClip 2369 { } movieClip 2371 { } movieClip 2373 { } movieClip 2375 { } movieClip 2377 { } movieClip 2379 { } movieClip 2381 { } movieClip 2383 { } movieClip 2385 { } movieClip 2386 { } movieClip 2388 { } movieClip 2390 { } movieClip 2391 { } movieClip 2393 { } movieClip 2395 { } movieClip 2396 { } movieClip 2398 { } movieClip 2400 { } movieClip 2402 { } movieClip 2404 { } movieClip 2406 { } movieClip 2408 { } movieClip 2410 { } movieClip 2412 { } movieClip 2414 { } movieClip 2416 { } movieClip 2417 { instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 2419 { } movieClip 2421 { } movieClip 2422 { instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 2424 { } movieClip 2426 { } movieClip 2428 { } movieClip 2430 { } movieClip 2432 { } movieClip 2433 { instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 2435 { } movieClip 2437 { } movieClip 2439 { } movieClip 2441 { } movieClip 2443 { } movieClip 2445 { } movieClip 2446 { } movieClip 2448 { } movieClip 2450 { } movieClip 2451 { instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } frame 10 { prevFrame(); } } movieClip 2452 { instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } instance object of movieClip 1836 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 2453 { } movieClip 2455 { } movieClip 2458 { } movieClip 2465 { instance of movieClip 2453 { onClipEvent (enterFrame) { if (this.hitTest(_root.enemy1.shade) && _root.pause == false) { _root.enemy1hud.gotoAndPlay(2); _root.enemy1.gotoAndStop(26); } } onClipEvent (enterFrame) { if (this.hitTest(_root.enemy2.shade) && _root.pause == false) { _root.enemy2hud.gotoAndPlay(2); _root.enemy2.gotoAndStop(26); } } onClipEvent (enterFrame) { if (this.hitTest(_root.enemy3.shade) && _root.pause == false) { _root.enemy3hud.gotoAndPlay(2); _root.enemy3.gotoAndStop(26); } } onClipEvent (enterFrame) { if (this.hitTest(_root.enemy4.shade) && _root.pause == false) { _root.enemy4hud.gotoAndPlay(2); _root.enemy4.gotoAndStop(26); } } onClipEvent (enterFrame) { if (this.hitTest(_root.enemy5.shade) && _root.pause == false) { _root.enemy5hud.gotoAndPlay(2); _root.enemy5.gotoAndStop(26); } } onClipEvent (enterFrame) { if (this.hitTest(_root.trashcan.shade)) { _root.trashcan.gotoAndStop(3); _root.trashcan._x -= 20; } } onClipEvent (enterFrame) { if (this.hitTest(_root.trashcan2.shade)) { _root.trashcan2.gotoAndStop(3); _root.trashcan2._x -= 20; } } } } movieClip 2466 { } movieClip 2467 { } movieClip 2468 { } movieClip 2469 { } movieClip 2470 { } movieClip 2472 { } movieClip 2473 { } movieClip 2475 { } movieClip 2477 { } movieClip 2479 { } movieClip 2481 { } movieClip 2483 { } movieClip 2485 { } movieClip 2488 { } movieClip 2490 { } movieClip 2492 { } movieClip 2494 { } movieClip 2496 { } movieClip 2498 { } movieClip 2500 { } movieClip 2502 { } movieClip 2504 { } movieClip 2506 { } movieClip 2508 { } movieClip 2510 { } movieClip 2512 { } movieClip 2514 { } movieClip 2516 { } movieClip 2518 { } movieClip 2519 { frame 2 { ++_root.bluedied; } frame 32 { stop(); if (_root.gameover == true) { stopAllSounds(); _root.gamepause = true; _root.gameovertype = 1; _root.shouldnotpause = true; _root.gameoverstart.gotoAndPlay('start'); } } } movieClip 2521 { } movieClip 2523 { } movieClip 2525 { } movieClip 2527 { } movieClip 2529 { } movieClip 2531 { } movieClip 2533 { } movieClip 2535 { } movieClip 2537 { } movieClip 2539 { } movieClip 2541 { } movieClip 2543 { } movieClip 2545 { } movieClip 2547 { } movieClip 2549 { } movieClip 2551 { } movieClip 2553 { } movieClip 2555 { } movieClip 2557 { } movieClip 2559 { } movieClip 2561 { } movieClip 2563 { } movieClip 2565 { } movieClip 2567 { } movieClip 2569 { } movieClip 2571 { } movieClip 2572 { } movieClip 2574 { } movieClip 2576 { } movieClip 2578 { } movieClip 2580 { } movieClip 2582 { } movieClip 2584 { } movieClip 2586 { } movieClip 2588 { } movieClip 2590 { } movieClip 2592 { } movieClip 2594 { } movieClip 2596 { } movieClip 2598 { } movieClip 2600 { } movieClip 2601 { } movieClip 2622 { } movieClip 2635 { frame 9 { prevFrame(); } } movieClip 2645 { frame 9 { prevFrame(); } } movieClip 2647 { } movieClip 2649 { } movieClip 2651 { } movieClip 2652 { } movieClip 2654 { } movieClip 2656 { } movieClip 2658 { } movieClip 2660 { } movieClip 2662 { } movieClip 2664 { } movieClip 2666 { } movieClip 2668 { } movieClip 2670 { } movieClip 2672 { } movieClip 2674 { } movieClip 2676 { } movieClip 2678 { } movieClip 2680 { } movieClip 2682 { } movieClip 2683 { } movieClip 2684 { } movieClip 2685 { frame 20 { gotoAndPlay(4); } } movieClip 2687 { } movieClip 2689 { } movieClip 2691 { } movieClip 2693 { } movieClip 2694 { frame 11 { prevFrame(); } frame 12 { stop(); } } movieClip 2695 { } movieClip 2697 { } movieClip 2699 { } movieClip 2701 { } movieClip 2703 { } movieClip 2705 { } movieClip 2708 { } movieClip 2710 { } movieClip 2711 { } movieClip 2712 { } movieClip 2714 { } movieClip 2715 { } movieClip 2716 { } movieClip 2718 { } movieClip 2736 { } movieClip 2738 { } movieClip 2740 { } movieClip 2743 { } movieClip 2745 { } movieClip 2746 { } movieClip 2748 { } movieClip 2750 { } movieClip 2752 { } movieClip 2753 { } movieClip 2754 { } movieClip 2756 { } movieClip 2761 { } movieClip 2767 { } movieClip 2776 { } movieClip 2778 { } movieClip 2780 { } movieClip 2783 { } movieClip 2785 { } movieClip 2787 { } movieClip 2789 { } movieClip 2790 { } movieClip 2792 { } movieClip 2811 { } movieClip 2821 { } movieClip 2823 { } movieClip 2824 { } movieClip 2826 { } movieClip 2828 { } movieClip 2830 { } movieClip 2831 { } movieClip 2832 { } movieClip 2833 { } movieClip 2834 { } movieClip 2835 { } movieClip 2837 { } movieClip 2838 { frame 11 { prevFrame(); } } movieClip 2839 { } movieClip 2841 { } movieClip 2843 { } movieClip 2844 { } movieClip 2846 { } movieClip 2848 { } movieClip 2850 { } movieClip 2852 { } movieClip 2854 { } movieClip 2856 { } movieClip 2858 { } movieClip 2860 { } movieClip 2862 { } movieClip 2864 { } movieClip 2866 { } movieClip 2868 { } movieClip 2870 { } movieClip 2872 { } movieClip 2874 { } movieClip 2876 { } movieClip 2878 { } movieClip 2879 { frame 2 { ++_root.yellowdied; } frame 33 { stop(); if (_root.gameover == true) { stopAllSounds(); _root.gamepause = true; _root.gameovertype = 2; _root.shouldnotpause = true; _root.gameoverstart.gotoAndPlay('start'); } } } movieClip 2880 { } movieClip 2882 { } movieClip 2884 { } movieClip 2886 { } movieClip 2888 { } movieClip 2890 { } movieClip 2892 { } movieClip 2894 { } movieClip 2896 { } movieClip 2898 { } movieClip 2900 { } movieClip 2902 { } movieClip 2904 { } movieClip 2906 { } movieClip 2908 { } movieClip 2909 { } movieClip 2914 { } movieClip 2917 { } movieClip 2919 { } movieClip 2934 { } movieClip 2937 { frame 12 { prevFrame(); } } movieClip 2938 { } movieClip 2939 { frame 4 { prevFrame(); } } movieClip 2941 { } movieClip 2943 { } movieClip 2945 { } movieClip 2946 { } movieClip 2948 { } movieClip 2950 { } movieClip 2952 { } movieClip 2954 { } movieClip 2956 { } movieClip 2958 { } movieClip 2960 { } movieClip 2962 { } movieClip 2964 { } movieClip 2966 { } movieClip 2968 { } movieClip 2970 { } movieClip 2972 { } movieClip 2974 { } movieClip 2976 { } movieClip 2978 { } movieClip 2980 { } movieClip 2982 { } movieClip 2984 { } movieClip 2986 { } movieClip 2988 { } movieClip 2990 { } movieClip 2991 { } movieClip 2995 { } movieClip 3001 { } movieClip 3003 { } movieClip 3005 { } movieClip 3007 { } movieClip 3009 { } movieClip 3010 { frame 11 { prevFrame(); } } movieClip 3013 { } movieClip 3015 { } movieClip 3016 { } movieClip 3017 { frame 11 { gotoAndPlay(3); } } movieClip 3018 { } movieClip 3019 { } movieClip 3020 { } movieClip 3021 { } movieClip 3023 { } movieClip 3025 { } movieClip 3026 { } movieClip 3027 { } movieClip 3048 { } movieClip 3057 { } movieClip 3065 { } movieClip 3076 { } movieClip 3087 { } movieClip 3106 { } movieClip 3120 { } movieClip 3123 { } movieClip 3125 { } movieClip 3133 { } movieClip 3134 { } movieClip 3136 { } movieClip 3138 { } movieClip 3140 { } movieClip 3141 { } movieClip 3143 { } movieClip 3145 { } movieClip 3148 { } movieClip 3149 { } movieClip 3151 { } movieClip 3153 { } movieClip 3154 { } movieClip 3155 { } movieClip 3156 { } movieClip 3157 { } movieClip 3158 { frame 11 { prevFrame(); } } movieClip 3159 { } movieClip 3161 { } movieClip 3162 { } movieClip 3164 { } movieClip 3166 { } movieClip 3168 { } movieClip 3170 { } movieClip 3172 { } movieClip 3174 { } movieClip 3175 { frame 2 { ++_root.reddied; } frame 33 { stop(); if (_root.gameover == true) { stopAllSounds(); _root.gamepause = true; _root.shouldnotpause = true; _root.gameovertype = 3; _root.gameoverstart.gotoAndPlay('start'); } } } movieClip 3176 { } movieClip 3177 { } movieClip 3188 { } movieClip 3202 { frame 10 { prevFrame(); } } movieClip 3203 { } movieClip 3204 { instance carry of movieClip 2451 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(31); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(32); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(31); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(31); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(37); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(37); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } } instance carry of movieClip 2572 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(39); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(3); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(3); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(13); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(59); } } } instance carry of movieClip 2622 { } instance carry of movieClip 2645 { } instance carry of movieClip 2880 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(39); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(3); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(3); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(13); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(59); } } } instance carry of movieClip 3001 { onClipEvent (enterFrame) { if (Key.isDown(65) && Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { } else { if (Key.isDown(83) && _root.pause == false) { } else { if (Key.isDown(68) && _root.pause == false) { } else { if (_root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } } } } } onClipEvent (enterFrame) { if (Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } onClipEvent (enterFrame) { if (Key.isDown(68) && _root.hobo._x > 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 40; _root.bg2._x -= 40; _root.fg1._x -= 60; _root.fg2._x -= 60; _root.fb1._x -= 20; _root.fb2._x -= 20; _root.trashcan._x -= 40; _root.trashcan2._x -= 40; _root.tire._x -= 40; _root.bottle1._x -= 40; _root.bottle2._x -= 40; _root.bottle3._x -= 40; _root.bottle4._x -= 40; _root.prop1._x -= 40; _root.prop2._x -= 40; _root.prop3._x -= 40; _root.prop4._x -= 40; _root.prop5._x -= 40; _root.enemy1._x -= 40; _root.enemy2._x -= 40; _root.enemy3._x -= 40; _root.enemy4._x -= 40; _root.enemy5._x -= 40; _root.hobo._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x == 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 200 && _root.hobo._x > 180 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 181 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } else { if (Key.isDown(68) && _root.rightallowed == false && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } } } } } } onClipEvent (enterFrame) { if (Key.isDown(87) && _root.upallowed == true && _root.pause == false) { _root.hobo._y -= 3; _root.bg1._y += 3; _root.bg2._y += 3; _root.fg1._y += 6; _root.fg2._y += 6; _root.fb1._y += 1.5; _root.fb2._y += 1.5; _root.trashcan._y += 3; _root.trashcan2._y += 3; _root.tire._y += 3; _root.bottle1._y += 3; _root.bottle2._y += 3; _root.bottle3._y += 3; _root.bottle4._y += 3; _root.prop1._y += 3; _root.prop2._y += 3; _root.prop3._y += 3; _root.prop4._y += 3; _root.prop5._y += 3; _root.enemy1._y += 3; _root.enemy2._y += 3; _root.enemy3._y += 3; _root.enemy4._y += 3; _root.enemy5._y += 3; } } onClipEvent (enterFrame) { if (Key.isDown(83) && _root.downallowed == true && _root.pause == false) { _root.hobo._y += 3; _root.bg1._y -= 3; _root.bg2._y -= 3; _root.fg1._y -= 6; _root.fg2._y -= 6; _root.fb1._y -= 1.5; _root.fb2._y -= 1.5; _root.trashcan._y -= 3; _root.trashcan2._y -= 3; _root.tire._y -= 3; _root.bottle1._y -= 3; _root.bottle2._y -= 3; _root.bottle3._y -= 3; _root.bottle4._y -= 3; _root.prop1._y -= 3; _root.prop2._y -= 3; _root.prop3._y -= 3; _root.prop4._y -= 3; _root.prop5._y -= 3; _root.enemy1._y -= 3; _root.enemy2._y -= 3; _root.enemy3._y -= 3; _root.enemy4._y -= 3; _root.enemy5._y -= 3; } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.run = false; _root.punchallowed = false; _root.hobo.gotoAndStop(9); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.run = false; _root.kickallowed = false; _root.hobo.gotoAndStop(17); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(61); } } } } movieClip 3205 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function attackstats(stat1, stat2, stat3, stat4, stat5, stat6, stat7) { attack = stat1; movetime = stat2; damager = stat3; stuntime = stat4; knockback = stat5; knockdown = stat6; knockup = stat7; } function stoprun() { if (robot == 2 && running == 2) { if (movement == 'free') { exitroll = 3; } spinjump = false; } running = 1; runtime = 0; } function hurt(damage, stuntime) { if (movement != 'hurt' && movement != 'down' && movement != 'dead' && invuln == 0) { _root.hp -= damage * damrat; attack = 'none'; barrelheld.hit.drop(); barrelheld = 'none'; holdbarrel = false; if (movement == 'transform' && movetime <= 7) { trans(gobot); } if (_root.hp <= 0) { _root.lives -= 1; movement = 'dead'; alive = false; if (_root.lives >= 0) { movetime = 30; _root.performdesp = true; } else { movetime = 12500; _root.gameover = true; } } else { if (stuntime > 0) { movement = 'down'; movetime = 7 + stuntime; } else { movement = 'hurt'; movetime = 7; } } } } function trans(bot) { if (bot == 1) { robot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; } else { if (bot == 2) { robot = 2; xmax = 6; zmax = 3; _xscale = 200; deepness = 12; jump = -24; damrat = 0.8; } else { if (bot == 3) { robot = 3; xmax = 8; zmax = 4; _xscale = 150; deepness = 10; jump = -30; damrat = 1.2; } } } tallness = _height; fatness = _width / 2; } function resetshadow() { if (robot == 1) { shadrat = 1; } else { if (robot == 2) { shadrat = 1.2; } else { if (robot == 3) { shadrat = 0.8; } } } shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } if (_root.currentLevel == 1) { robot = 1; bot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; z = -55; } if (_root.currentLevel == 2 || _root.currentLevel == 3 || _root.currentLevel == 4 || _root.currentLevel == 5 || _root.currentLevel == 6) { z = -80; if (_root.transitionbot == 1) { robot = 1; bot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; } if (_root.transitionbot == 2) { robot = 2; bot = 2; xmax = 6; zmax = 3; _xscale = 200; deepness = 12; jump = -24; damrat = 0.8; } if (_root.transitionbot == 3) { robot = 3; bot = 3; xmax = 8; zmax = 4; _xscale = 150; deepness = 10; jump = -30; damrat = 1.2; } } direct = 1; runtime = 0; running = 1; xspeed = 0; yspeed = 0; zspeed = 0; air = false; tallness = _height; fatness = _width / 2; movement = 'free'; movetime = 0; attack = 'none'; holdbarrel = false; barrelheld = 'none'; windowtime = 5; exitroll = 0; invuln = 0; alive = true; guy = _parent.guy; shade = _parent._parent.shade; desptimer = 0; } onClipEvent (enterFrame) { if (Key.isDown(88) || Key.isDown(27)) { if (_root.oktopause == true) { if (_root.gameover == false) { if (_root.levComp == false) { if (_root.pauser._currentframe == 1) { _root.pauser.play(); _root.gamepause = true; } else { if (_root.pauser._currentframe == 23 && _root.conapp == false) { _root.pauser.play(); } } } } } } if (_root.pauser._currentframe == 45) { _root.gamepause = false; } if (!_root.gamepause) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (Key.isDown(39) && movement == 'free') { xmove += 1; if (xspeed <= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (Key.isDown(37) && movement == 'free') { xmove -= 1; if (xspeed >= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (Key.isDown(38) && movement == 'free') { zmove -= 1; } if (Key.isDown(40) && movement == 'free' && _root.dontmovedown == false) { zmove += 1; } if (xmove != 0) { xspeed = xmove * xmax * running; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } if (runtime > 0 && !air) { runtime -= 1; if (runtime == 0) { stoprun(); } } else { if (!air) { stoprun(); } } punch = false; kick = false; if (_root.performdesp == false) { if (Key.isDown(68)) { punch = true; punchtime += 1; } if (Key.isDown(83)) { kick = true; kicktime += 1; } if (movement == 'free' && !punch && !kick) { if (Key.isDown(65)) { if (jumpkey) { if (robot == 1 && holdbarrel) { } else { if (robot == 3 && holdbarrel) { } else { if (!air) { yspeed = jump; air = true; if (running == 2) { spinjump = true; } else { spinjump = false; } } } } } jumpkey = false; } else { jumpkey = true; } } else { if (!air) { jumpkey = true; } } if (!air) { spinjump = false; } if (movement == 'free' && holdbarrel == false && !air) { if (Key.isDown(81) && robot != 1) { punch = false; kick = false; gobot = 1; movement = 'transform'; movetime = 14; invuln = 8; } else { if (Key.isDown(87) && robot != 2) { punch = false; kick = false; gobot = 2; movement = 'transform'; movetime = 14; invuln = 8; } else { if (Key.isDown(69) && robot != 3) { punch = false; kick = false; gobot = 3; movement = 'transform'; movetime = 14; invuln = 8; } } } } } if (!punch) { punchtime = 0; } if (!kick) { kicktime = 0; } if (robot == 2 && running == 2 && movement == 'free') { attackstats('roll', 0, 1, 12, 10, 0, 0); } else { if (movement != 'attack') { attack = 'none'; stuntime = 0; knockdown = 0; knockup = 0; } } if (movement != 'free' && movement != 'attack') { } else { if (holdbarrel) { if (kicktime == 1 && !air) { movement = 'putdown'; movetime = 11; attack = 'none'; } else { if (punchtime == 1) { movement = 'throw'; movetime = 6; barrelheld.hit.toss(); barrelheld = 'none'; holdbarrel = false; } } } else { if (robot == 1) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 13, 5, 0, 20, 12, 20); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && attack != 'desp' && _root.hp > 1) { attackstats('desp', 13, 5, 0, 20, 12, 20); } else { if (air && attack == 'none') { attackstats('jp', 12, 4, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 9, 5, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 5, 1, 0, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p3') { attackstats('p4', 5, 3, 2, 12, 4, 0); } else { if (attack == 'p2') { attackstats('p3', 5, 2, 0, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 6, 1, 0, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a17 == true) { attackstats('pkp', 15, 14, 8, 20, 36, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a8 == true) { attackstats('k2p', 11, 8, 5, 14, 12, 16); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a2 == true) { attackstats('kp', 12, 5, 7, 2, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 7, 12 + Math.abs(xspeed * 2), 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 11, 6, 0, 10, 24, 0); } else { if (attack == 'none') { attackstats('k1', 8, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 8, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 8, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a11 == true) { attackstats('p2k', 12, 10, 5, 18, 24, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a5 == true) { attackstats('pk', 10, 6, 8, 8, 0, 10); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a14 == true) { attackstats('kpk', 22, 12, 6, 20, 36, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'rp') { attackstats('rk', 11, 6, 0, 10, 24, 0); xspeed = direct * xmax * 2; } } } } } } } } } } } } } else { if (robot == 2) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 15, 5, 0, 20, 12, 0); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 15, 5, 0, 20, 12, 0); } else { if (air && attack == 'none') { attackstats('jp', 12, 5, 3, 8, 0, 0); stoprun(); } else { if (running == 2 && !air) { attackstats('rp', 11, 7, 5, 9, 0, 0); } else { if (attack == 'none') { attackstats('p1', 14, 5, 9, 5, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 14, 5, 5, 4, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 14, 5, 5, 2, 0, 0); } else { if (attack == 'pk') { if (_root.a16 == true) { attackstats('pkp', 32, 3, 0, 3, 0, 3); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k2') { if (_root.a7 == true) { attackstats('k2p', 15, 8, 5, 15, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k1') { if (_root.a1 == true) { attackstats('kp', 14, 1, 4, 1, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 4, 0, 8, 0, 0); stoprun(); } else { if (running == 2 && !air) { attackstats('rk', 11, 6, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 14, 3, 5, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 14, 3, 5, 12, 4, 0); } else { if (attack == 'k1') { attackstats('k2', 14, 3, 5, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a10 == true) { attackstats('p2k', 28, 10, 7, 16, 24, 14); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a4 == true) { attackstats('pk', 16, 2, 0, 1, 0, 2); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a13 == true) { attackstats('kpk', 21, 3, 0, 1, 0, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } } } } } } } } } } } } else { if (robot == 3) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 11, 5, 0, 20, 12, 8); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 11, 5, 0, 20, 12, 8); } else { if (air && attack == 'none') { attackstats('jp', 12, 3, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 11, 4, 7, 10, 10, 12); } else { if (attack == 'none') { attackstats('p1', 11, 1, 1, 2, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 10, 2, 2, 5, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 10, 2, 3, 3, 0, 0); } else { if (attack == 'pk') { if (_root.a18 == true) { attackstats('pkp', 14, 12, 0, 10, 0, 24); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } else { if (attack == 'k2') { if (_root.a9 == true) { attackstats('k2p', 15, 7, 6, 12, 14, 0); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } else { if (attack == 'k1') { if (_root.a3 == true) { attackstats('kp', 13, 5, 7, 2, 0, 0); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 2, 5, 7, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 12, 3, 5, 5, 0, 0); } else { if (attack == 'none') { attackstats('k1', 10, 1, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 10, 2, 2, 12, 4, 0); } else { if (attack == 'k1') { attackstats('k2', 10, 1, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a12 == true) { attackstats('p2k', 21, 9, 6, 14, 24, 0); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a6 == true) { attackstats('pk', 9, 6, 8, 8, 0, 6); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a15 == true) { attackstats('kpk', 19, 2, 5, -2, 0, 4); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } } } } } } } } } } } } } } } } if (!air) { if (attack == 'jp') { movement = 'free'; attack = 'none'; } else { if (attack == 'jk') { movement = 'free'; attack = 'none'; } } } _parent._x += xspeed; z += zspeed; if (air && movement == 'attack') { } else { if (attack == 'rk' && movetime > 6) { } else { if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } } } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; if (running == 2 && robot == 2) { spinjump = true; } } yspeed += 3; if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'pickup') { movement = 'free'; } else { if (movement == 'throw') { movement = 'free'; } else { if (movement == 'putdown') { movement = 'free'; barrelheld.hit.putdown(); barrelheld = 'none'; holdbarrel = false; } else { if (movement == 'hurt') { movement = 'free'; invuln = 4; } else { if (movement == 'dead') { movement = 'free'; _root.hp = _root.maxhp; _parent._y -= 400; invuln = 75; alive = true; } else { if (movement == 'transform') { movement = 'free'; trans(gobot); } else { if (movement == 'down') { movement = 'getup'; movetime = 7; } else { if (movement == 'getup') { movement = 'free'; invuln = 4; } } } } } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (_parent._x < _parent._parent.leftlim + 20) { _parent._x = _parent._parent.leftlim + 20; stoprun(); } else { if (_parent._x > _parent._parent.rightlim - 20) { _parent._x = _parent._parent.rightlim - 20; stoprun(); } } resetshadow(); if (invuln > 0) { invuln -= 1; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100); if (movement == 'transform') { if (gobot == 1) { goframe = 31; } else { if (gobot == 2) { goframe = 32; } else { if (gobot == 3) { goframe = 33; } } } } else { if (movement == 'pickup') { goframe = 23; } else { if (movement == 'throw') { goframe = 26; } else { if (movement == 'putdown') { goframe = 28; } else { if (movement == 'hurt') { goframe = 29; } else { if (movement == 'dead') { goframe = 30; } else { if (air) { if (holdbarrel) { goframe = 27; } else { if (attack == 'jp') { goframe = 21; } else { if (attack == 'jk') { goframe = 22; } else { if (!spinjump) { goframe = 4; } else { goframe = 5; if (robot == 2) { goframe = 3; } } } } } } else { if (holdbarrel) { if (Math.abs(xspeed) > 0) { goframe = 25; } else { if (Math.abs(zspeed) > 0) { goframe = 25; } else { goframe = 24; } } } else { if (movement == 'down') { goframe = 35; } else { if (movement == 'getup') { goframe = 36; } else { if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } } } } } } } guy.gotoAndStop(goframe + 60 * (robot - 1)); } } } instance guy of movieClip 3204 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 3209 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } } movieClip 3225 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myhead + (_parent._parent._parent.hit.mycolour - 1) * 5); } 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(); } } movieClip 3226 { } movieClip 3227 { } movieClip 3228 { } movieClip 3229 { frame 8 { prevFrame(); } } movieClip 3236 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 3237 { } movieClip 3238 { frame 9 { prevFrame(); } } movieClip 3239 { frame 8 { prevFrame(); } } movieClip 3240 { } movieClip 3245 { } movieClip 3255 { } movieClip 3256 { frame 7 { prevFrame(); } } movieClip 3257 { } movieClip 3258 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 30; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; mycolour = random(3) + 1; if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; var enemyColour; var blockMode; var shotTimer = 0; iconFix = 15; healthType = 30; alive = false; guytype = 'standard'; hp = 30; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } ++shotTimer; if (movement != 'dead') { if (shotTimer == 20 || shotTimer == 320 || shotTimer == 620 || shotTimer == 920 || shotTimer == 1220) { movement = 'attack'; attacktype = 2; movetime = 26; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { blockMode = true; } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(12 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 130) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 130) { xmove = -1; xgood = false; } else { xgood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && punchtime == 0) { movement = 'attack'; attacktype = random(2); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 130) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 130) { xmove = -1; xgood = false; } else { xgood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && punchtime == 0) { movement = 'attack'; attacktype = random(2); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { if (attacktype == 2) { goframe = 10; } } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 3257 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 3277 { frame 9 { stop(); } } movieClip 3279 { } movieClip 3280 { frame 31 { stop(); } } movieClip 3282 { frame 9 { gotoAndPlay(1); } } movieClip 3283 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; _root.hp += 20; } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3340 { } movieClip 3341 { frame 51 { stop(); } } movieClip 3343 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a1taken == true) { ablearned._alpha = 100; } else { _root.a1taken = true; _root.savefile.data.a1taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 3344 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3373 { frame 9 { stop(); } } movieClip 3375 { } movieClip 3376 { frame 31 { stop(); } } movieClip 3378 { frame 15 { gotoAndPlay(1); } } movieClip 3379 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; _root.lives += 1; } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3390 { } movieClip 3391 { frame 31 { stop(); } } movieClip 3392 { frame 9 { gotoAndPlay(1); } } movieClip 3393 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; _root.hp += 50; } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3448 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a3taken == true) { ablearned._alpha = 100; } else { _root.a3taken = true; _root.savefile.data.a3taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 3449 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3504 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a2taken == true) { ablearned._alpha = 100; } else { _root.a2taken = true; _root.savefile.data.a2taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 3505 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3560 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.level.player.hit.holdbarrel == true) { _root.gotBarrel = true; } _root.levelcomplete.gotoAndPlay('start'); _root.levComp = true; _root.gamepause = true; } } movieClip 3561 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 3577 { } movieClip 3578 { } movieClip 3579 { } movieClip 3582 { } movieClip 3583 { } movieClip 3584 { frame 1 { stop(); } frame 152 { stop(); } } movieClip 3585 { instance shade of movieClip 1783 { onClipEvent (load) { guy = _root.level.player; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade6 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade7 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade8 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy8; } } instance barrel1 of movieClip 1898 { onClipEvent (load) { z = -30; style = 1; } } instance barrel3 of movieClip 1898 { onClipEvent (load) { z = -190; style = 1; } } instance barrel2 of movieClip 1898 { onClipEvent (load) { z = -190; style = 1; } } instance enemy1 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade4; } } instance barrel5 of movieClip 1898 { onClipEvent (load) { z = -40; style = 1; } } instance barrel4 of movieClip 1898 { onClipEvent (load) { z = -200; style = 1; } } instance enemy5 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 2009 { onClipEvent (load) { shade = _root.level.shade8; } } instance of movieClip 3283 { onClipEvent (load) { z = -55; } } instance of movieClip 3283 { onClipEvent (load) { z = -55; } } instance of movieClip 3344 { onClipEvent (load) { z = -175; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -31; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -31; style = 1; } } instance of movieClip 3379 { onClipEvent (load) { z = -78; } } instance of movieClip 3393 { onClipEvent (load) { z = -80; } } instance of movieClip 3449 { onClipEvent (load) { z = -88; } } instance of movieClip 3505 { onClipEvent (load) { z = -148; } } instance of movieClip 3561 { onClipEvent (load) { z = -115; } } } instance level of movieClip 3585 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 1700; newlim = 1700; gotoy = 0; phase = 1; _root.gosign.timer = 250; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (phase == 1) { if (player._x > 1300) { leftlim = 900; newlim = 1700; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 1800, 450, -55); _root.enemies = 1; phase = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 2) { if (_root.enemies == 0) { if (_root.medal1 == false) { _root.medal1 = true; _root.savefile.data.medal1 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } _root.spawn('standard', 1800, 450, -90); _root.spawn('standard', 1800, 450, -130); _root.enemies = 2; phase = 3; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 3) { if (_root.enemies == 0) { leftlim = 900; newlim = 2100; phase = 4; _root.gosign.timer = 50; } } else { if (phase == 4) { if (player._x > 1700) { leftlim = 1300; newlim = 2100; _root.spawn('standard', 2200, 450, -55); _root.enemies = 1; phase = 5; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 5) { if (_root.enemies == 0) { _root.spawn('standard', 2050, 0, -165); _root.spawn('standard', 2000, 0, -110); _root.enemies = 2; phase = 6; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 6) { if (_root.enemies == 0) { leftlim = 1300; newlim = 3300; phase = 7; _root.gosign.timer = 50; } } else { if (phase == 7) { if (player._x > 2900) { leftlim = 2500; newlim = 3300; _root.spawn('standard', 3380, 450, -25); _root.spawn('standard', 3400, 450, -5); _root.enemies = 2; phase = 8; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 8) { if (_root.enemies == 0) { _root.spawn('standard', 3380, 250, -165); _root.spawn('standard', 3400, 250, -135); _root.enemies = 2; phase = 9; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 9) { if (_root.enemies == 0) { leftlim = 2500; newlim = 4480; phase = 10; _root.gosign.timer = 50; } } else { if (phase == 10) { if (player._x > 4080) { leftlim = 3680; newlim = 4480; gotoy = 100; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 4560, 100, -30); _root.spawn('standard', 4580, 100, -70); _root.spawn('standard', 3600, 250, -130); _root.spawn('standard', 3580, 250, -170); _root.enemies = 4; phase = 11; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 11) { if (_root.enemies == 0) { leftlim = 3680; newlim = 5550; phase = 12; _root.gosign.timer = 50; } } else { if (phase == 12) { if (player._x > 5150) { leftlim = 4750; newlim = 5550; phase = 13; _root.spawn('standard', 5650, 100, -30); _root.spawn('standard', 4650, 250, -30); _root.enemies = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 13) { if (_root.enemies == 0) { leftlim = 4750; newlim = 6460; phase = 14; _root.gosign.timer = 50; } } else { if (phase == 14) { if (player._x > 6060) { _root.bossShow = true; leftlim = 5660; newlim = 6460; phase = 15; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 6370, 0, -110); _root.enemies = 1; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 15) { if (_root.enemies == 0) { leftlim = 5660; newlim = 6672; phase = 16; } } else { if (phase == 16) { _root.level.barExplain.gotoAndPlay('begin'); phase = 17; } } } } } } } } } } } } } } } } } } button 3588 { on (rollOver) { enemcheck.useHandCursor = false; } } movieClip 3590 { } movieClip 3592 { } movieClip 3594 { } movieClip 3595 { frame 1 { stop(); } frame 2 { play(); } frame 3 { play(); } frame 4 { play(); } frame 28 { gotoAndStop(1); } frame 29 { gotoAndStop(1); } frame 30 { gotoAndStop(1); } frame 31 { gotoAndStop(1); } frame 32 { play(); } frame 33 { play(); } frame 34 { play(); } frame 58 { gotoAndStop(1); } frame 59 { gotoAndStop(1); } frame 60 { gotoAndStop(1); } frame 61 { gotoAndStop(1); } frame 62 { play(); } frame 63 { play(); } frame 64 { play(); } frame 88 { gotoAndStop(1); } frame 89 { gotoAndStop(1); } frame 90 { gotoAndStop(1); } frame 91 { gotoAndStop(1); } } movieClip 3598 { } movieClip 3599 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3601 { } movieClip 3603 { } movieClip 3605 { frame 10 { stop(); } } movieClip 3606 { frame 1 { stop(); } frame 2 { stop(); _root.blockingExp = true; _root.savefile.data.blockingExp = true; _root.savefile.flush(); if (_root.level.player.hit.robot == 1) { currentRob = 1; } if (_root.level.player.hit.robot == 2) { currentRob = 2; } if (_root.level.player.hit.robot == 3) { currentRob = 3; } pressButs.gotoAndStop(_root.level.player.hit.robot); onEnterFrame = function () { if (currentRob == 1) { if (_root.level.player.hit.robot == 2 || _root.level.player.hit.robot == 3) { gotoAndStop(1); } } if (currentRob == 2) { if (_root.level.player.hit.robot == 1 || _root.level.player.hit.robot == 3) { gotoAndStop(1); } } if (currentRob == 3) { if (_root.level.player.hit.robot == 1 || _root.level.player.hit.robot == 2) { gotoAndStop(1); } } }; } } movieClip 3608 { frame 3 { if (this._alpha == 100 && _root.gamepause == false) { _root.goSound = new Sound(); _root.goSound.attachSound('gosound'); _root.goSound.start(); } } } instance gosign of movieClip 3608 { onClipEvent (enterFrame) { if (timer > 0) { timer -= 1; if (timer == 0) { _alpha = 100; gotoAndPlay(1); } } if (_root.showability == true) { gotoAndStop(20); } else { play(); } } } movieClip 3612 { } movieClip 3615 { } movieClip 3622 { } movieClip 3623 { } movieClip 3626 { instance of movieClip 3612 { onClipEvent (enterFrame) { if (_root.level.player.hit.movement == 'transform') { gotoAndStop(4); } else { gotoAndStop(_root.level.player.hit.robot); } } } } instance genhp of movieClip 3626 { onClipEvent (load) { myhp = 100; } onClipEvent (enterFrame) { this.hptext.text = Math.round(myhp); if (this.hptext.text < 0) { this.hptext.text = 0; } this.turbotext.text = Math.round(_root.turbo); if (this.turbotext.text < 0) { this.turbotext.text = 0; } if (_root.hp > _root.maxhp) { _root.hp = _root.maxhp; } else { if (_root.hp < 0) { _root.hp = 0; } } if (myhp < _root.hp - 1) { myhp += 1; } else { if (myhp > _root.hp + 1) { myhp -= 1; } else { myhp = _root.hp; } } if (_root.hp <= myhp) { darkbar.gotoAndStop(Math.round(_root.hp + 1)); lightbar.gotoAndStop(Math.round(myhp + 1)); } else { lightbar.gotoAndStop(Math.round(_root.hp + 1)); darkbar.gotoAndStop(Math.round(myhp + 1)); } turbobar.gotoAndStop(_root.turbo + 1); } } movieClip 3692 { frame 1 { gotoAndStop(_parent.myhead); } 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(); } frame 34 { stop(); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } frame 42 { stop(); } frame 43 { stop(); } frame 44 { stop(); } frame 45 { stop(); } frame 46 { stop(); } frame 47 { stop(); } frame 48 { stop(); } frame 49 { stop(); } frame 50 { stop(); } frame 51 { stop(); } frame 52 { stop(); } frame 53 { stop(); } frame 54 { stop(); } frame 55 { stop(); } frame 56 { stop(); } frame 57 { stop(); } frame 58 { stop(); } frame 59 { stop(); } frame 60 { stop(); } frame 61 { stop(); } frame 62 { stop(); } frame 63 { stop(); } frame 64 { stop(); } frame 65 { stop(); } frame 66 { stop(); } frame 67 { stop(); } frame 68 { stop(); } frame 69 { stop(); } frame 70 { stop(); } frame 71 { stop(); } frame 72 { stop(); } frame 73 { stop(); } frame 74 { stop(); } frame 75 { stop(); } } movieClip 3694 { } movieClip 3698 { instance of movieClip 3692 { onClipEvent (enterFrame) { gotoAndStop(_parent.myhead); } } instance of movieClip 3694 { onClipEvent (enterFrame) { if (_parent.myhp <= 0 && _parent._alpha == 100) { _alpha = 100; } else { _alpha = 0; } } } } instance hp3 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp2 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp1 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } movieClip 3716 { instance of movieClip 3694 { onClipEvent (enterFrame) { if (_parent.myhp <= 0 && _parent._alpha == 100) { _alpha = 100; } else { _alpha = 0; } } } } instance of movieClip 3716 { onClipEvent (enterFrame) { gotoAndStop(_root.lives + 2); } } movieClip 3720 { } movieClip 3721 { } movieClip 3724 { } movieClip 3725 { } movieClip 3728 { } movieClip 3729 { } movieClip 3732 { } movieClip 3733 { } movieClip 3736 { } movieClip 3737 { } movieClip 3738 { } movieClip 3741 { } movieClip 3742 { } movieClip 3745 { } movieClip 3746 { } movieClip 3749 { } movieClip 3750 { } movieClip 3753 { } movieClip 3754 { } movieClip 3757 { } movieClip 3758 { } movieClip 3761 { } movieClip 3762 { } movieClip 3765 { } movieClip 3766 { } movieClip 3769 { } movieClip 3770 { } movieClip 3773 { } movieClip 3774 { } movieClip 3777 { } movieClip 3778 { } movieClip 3781 { } movieClip 3782 { } movieClip 3785 { } movieClip 3786 { } movieClip 3789 { } movieClip 3790 { } movieClip 3791 { 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(); } } movieClip 3793 { } movieClip 3795 { } movieClip 3796 { } movieClip 3799 { frame 1 { stop(); } frame 2 { _root.showability = true; ++_root.abils; _root.savefile.data.abils = _root.abils; _root.savefile.data.flush(); _root.justlearned = _root.abils; if (_root.abils == 1) { _root.a1 = true; _root.savefile.data.a1 = true; _root.savefile.flush(); } if (_root.abils == 2) { _root.a2 = true; _root.savefile.data.a2 = true; _root.savefile.flush(); } if (_root.abils == 3) { _root.a3 = true; _root.savefile.data.a3 = true; _root.savefile.flush(); } if (_root.abils == 4) { _root.a4 = true; _root.savefile.data.a4 = true; _root.savefile.flush(); } if (_root.abils == 5) { _root.a5 = true; _root.savefile.data.a5 = true; _root.savefile.flush(); } if (_root.abils == 6) { _root.a6 = true; _root.savefile.data.a6 = true; _root.savefile.flush(); } if (_root.abils == 7) { _root.a7 = true; _root.savefile.data.a7 = true; _root.savefile.flush(); } if (_root.abils == 8) { _root.a8 = true; _root.savefile.data.a8 = true; _root.savefile.flush(); } if (_root.abils == 9) { _root.a9 = true; _root.savefile.data.a9 = true; _root.savefile.flush(); } if (_root.abils == 10) { _root.a10 = true; _root.savefile.data.a10 = true; _root.savefile.flush(); } if (_root.abils == 11) { _root.a11 = true; _root.savefile.data.a11 = true; _root.savefile.flush(); } if (_root.abils == 12) { _root.a12 = true; _root.savefile.data.a12 = true; _root.savefile.flush(); } if (_root.abils == 13) { _root.a13 = true; _root.savefile.data.a13 = true; _root.savefile.flush(); } if (_root.abils == 14) { _root.a14 = true; _root.savefile.data.a14 = true; _root.savefile.flush(); } if (_root.abils == 15) { _root.a15 = true; _root.savefile.data.a15 = true; _root.savefile.flush(); } if (_root.abils == 16) { _root.a16 = true; _root.savefile.data.a16 = true; _root.savefile.flush(); } if (_root.abils == 17) { _root.a17 = true; _root.savefile.data.a17 = true; _root.savefile.flush(); } if (_root.abils == 18) { _root.a18 = true; _root.savefile.data.a18 = true; _root.savefile.flush(); } } frame 6 { stopAllSounds(); } frame 7 { abShower.gotoAndStop(_root.abils); } frame 18 { stop(); } } movieClip 3803 { } button 3804 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; _root.goChoise = 1; gotoAndPlay('after'); } } } movieClip 3806 { } movieClip 3809 { } movieClip 3810 { } movieClip 3811 { } button 3812 { on (rollOver) { rl.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mmpressed == false) { mmpressed = true; _root.goChoise = 2; gotoAndPlay('after'); _root.replayedlevel = true; } } } movieClip 3815 { } movieClip 3817 { } movieClip 3819 { } movieClip 3820 { } movieClip 3826 { } movieClip 3829 { } movieClip 3830 { } movieClip 3843 { } movieClip 3844 { } movieClip 3850 { } movieClip 3863 { } movieClip 3864 { } movieClip 3872 { } movieClip 3878 { } movieClip 3879 { } movieClip 3880 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3887 { frame 1 { stop(); } frame 3 { mmpressed = false; } frame 7 { bluediedtext.text = _root.bluedied; yellowdiedtext.text = _root.yellowdied; reddiedtext.text = _root.reddied; bluekilledtext.text = _root.bluekilled; yellowkilledtext.text = _root.yellowkilled; redkilledtext.text = _root.redkilled; goa.gotoAndStop(_root.gameovertype); } frame 23 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('gameovermusic'); _root.backgroundMusic.start(0, 999999); _root.onEnterFrame = function () {}; stop(); } frame 25 { stopAllSounds(); } frame 37 { _root.bluedied = 0; _root.yellowdied = 0; _root.reddied = 0; _root.bluekilled = 0; _root.yellowkilled = 0; _root.redkilled = 0; if (_root.goChoise == 2) { stop(); _root.levelReplayed = true; _root.gotoAndStop('repLev'); } } frame 46 { _root.gotoAndStop('mainmenu'); } } button 3890 { on (rollOver) { covbut1.useHandCursor = false; } } movieClip 3893 { } button 3896 { on (rollOver) { backb.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (_root.conback == false) { gotoAndPlay('backt'); } } } movieClip 3897 { frame 1 { stop(); } frame 2 { _root.conapp = true; _root.conback = false; } frame 23 { stop(); } frame 24 { _root.conback = true; } frame 45 { _root.conapp = false; } } movieClip 3899 { } movieClip 3901 { } movieClip 3904 { } movieClip 3905 { } button 3908 { on (rollOver) { vc.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (_root.conapp == false) { conshow.gotoAndPlay('showcon'); } } } movieClip 3910 { } movieClip 3914 { } movieClip 3916 { } movieClip 3918 { } movieClip 3920 { } movieClip 3922 { } movieClip 3923 { } movieClip 3926 { } movieClip 3928 { } movieClip 3929 { frame 1 { stop(); if (_root.justlearned == 2) { gotoAndPlay('1'); } if (_root.justlearned == 5) { gotoAndPlay('4'); } if (_root.justlearned == 8) { gotoAndPlay('7'); } if (_root.justlearned == 11) { gotoAndPlay('10'); } if (_root.justlearned == 14) { gotoAndPlay('13'); } if (_root.justlearned == 17) { gotoAndPlay('16'); } } frame 20 { gotoAndPlay('1'); } frame 39 { gotoAndPlay('4'); } frame 58 { gotoAndPlay('7'); } frame 77 { gotoAndPlay('10'); } frame 96 { gotoAndPlay('13'); } frame 115 { gotoAndPlay('16'); } } button 3936 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a2demo'); } } } movieClip 3937 { } button 3939 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a3demo'); } } } movieClip 3940 { } button 3943 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a4demo'); } } } movieClip 3945 { frame 1 { if (_root.a2 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3947 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a5demo'); } } } movieClip 3949 { frame 1 { if (_root.a5 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3951 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a6demo'); } } } movieClip 3953 { frame 1 { if (_root.a8 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3955 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a7demo'); } } } movieClip 3957 { frame 1 { if (_root.a11 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3959 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a8demo'); } } } movieClip 3961 { frame 1 { if (_root.a14 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3963 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a9demo'); } } } movieClip 3965 { frame 1 { if (_root.a17 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 3967 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r1a1demo'); } } } movieClip 3968 { } movieClip 3969 { } movieClip 3971 { } movieClip 3972 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3974 { } movieClip 3975 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3977 { } movieClip 3978 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 3986 { } movieClip 3999 { } movieClip 4000 { instance carry of movieClip 3999 { } } movieClip 4002 { } movieClip 4005 { } movieClip 4006 { } movieClip 4009 { } movieClip 4010 { } movieClip 4012 { } movieClip 4015 { } movieClip 4016 { } movieClip 4017 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4019 { } movieClip 4022 { } movieClip 4023 { } movieClip 4024 { } movieClip 4027 { } movieClip 4028 { } movieClip 4030 { } movieClip 4033 { } movieClip 4034 { } movieClip 4035 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4037 { } movieClip 4040 { } movieClip 4041 { } movieClip 4042 { } movieClip 4045 { } movieClip 4046 { } movieClip 4048 { } movieClip 4051 { } movieClip 4052 { } movieClip 4053 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4061 { frame 1 { stop(); if (_root.justlearned == 1) { gotoAndPlay('1'); } if (_root.justlearned == 4) { gotoAndPlay('4'); } if (_root.justlearned == 7) { gotoAndPlay('7'); } if (_root.justlearned == 10) { gotoAndPlay('10'); } if (_root.justlearned == 13) { gotoAndPlay('13'); } if (_root.justlearned == 16) { gotoAndPlay('16'); } } frame 20 { gotoAndPlay('1'); } frame 39 { gotoAndPlay('4'); } frame 58 { gotoAndPlay('7'); } frame 77 { gotoAndPlay('10'); } frame 96 { gotoAndPlay('13'); } frame 115 { gotoAndPlay('16'); } } button 4066 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a2demo'); } } } movieClip 4067 { } button 4069 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a3demo'); } } } movieClip 4070 { } button 4072 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a4demo'); } } } movieClip 4074 { frame 1 { if (_root.a1 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4076 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a5demo'); } } } movieClip 4078 { frame 1 { if (_root.a4 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4080 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a6demo'); } } } movieClip 4082 { frame 1 { if (_root.a7 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4084 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a7demo'); } } } movieClip 4086 { frame 1 { if (_root.a10 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4088 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a8demo'); } } } movieClip 4090 { frame 1 { if (_root.a13 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4092 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a9demo'); } } } movieClip 4094 { frame 1 { if (_root.a16 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4096 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r2a1demo'); } } } movieClip 4097 { } movieClip 4098 { } movieClip 4115 { } movieClip 4116 { instance carry of movieClip 2880 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(39); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(3); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(3); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(13); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(59); } } } } movieClip 4129 { frame 1 { stop(); if (_root.justlearned == 3) { gotoAndPlay('1'); } if (_root.justlearned == 6) { gotoAndPlay('4'); } if (_root.justlearned == 9) { gotoAndPlay('7'); } if (_root.justlearned == 12) { gotoAndPlay('10'); } if (_root.justlearned == 15) { gotoAndPlay('13'); } if (_root.justlearned == 18) { gotoAndPlay('16'); } } frame 20 { gotoAndPlay('1'); } frame 39 { gotoAndPlay('4'); } frame 58 { gotoAndPlay('7'); } frame 77 { gotoAndPlay('10'); } frame 96 { gotoAndPlay('13'); } frame 115 { gotoAndPlay('16'); } } button 4134 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a2demo'); } } } movieClip 4135 { } button 4137 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a3demo'); } } } movieClip 4138 { } button 4141 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a4demo'); } } } movieClip 4143 { frame 1 { if (_root.a3 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4146 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a5demo'); } } } movieClip 4148 { frame 1 { if (_root.a6 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4151 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a6demo'); } } } movieClip 4153 { frame 1 { if (_root.a9 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4156 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a7demo'); } } } movieClip 4158 { frame 1 { if (_root.a12 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4161 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a8demo'); } } } movieClip 4163 { frame 1 { if (_root.a15 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4166 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a9demo'); } } } movieClip 4168 { frame 1 { if (_root.a18 == false) { stop(); } else { gotoAndStop(2); } } frame 2 { stop(); } } button 4170 { on (rollOver) { demo.useHandCursor = false; } on (release) { if (_root.abilityAnim == false) { _root.pauser.executer.gotoAndPlay('r3a1demo'); } } } movieClip 4171 { } movieClip 4172 { } movieClip 4184 { } movieClip 4185 { instance carry of movieClip 3001 { onClipEvent (enterFrame) { if (Key.isDown(65) && Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { } else { if (Key.isDown(83) && _root.pause == false) { } else { if (Key.isDown(68) && _root.pause == false) { } else { if (_root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } } } } } onClipEvent (enterFrame) { if (Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } onClipEvent (enterFrame) { if (Key.isDown(68) && _root.hobo._x > 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 40; _root.bg2._x -= 40; _root.fg1._x -= 60; _root.fg2._x -= 60; _root.fb1._x -= 20; _root.fb2._x -= 20; _root.trashcan._x -= 40; _root.trashcan2._x -= 40; _root.tire._x -= 40; _root.bottle1._x -= 40; _root.bottle2._x -= 40; _root.bottle3._x -= 40; _root.bottle4._x -= 40; _root.prop1._x -= 40; _root.prop2._x -= 40; _root.prop3._x -= 40; _root.prop4._x -= 40; _root.prop5._x -= 40; _root.enemy1._x -= 40; _root.enemy2._x -= 40; _root.enemy3._x -= 40; _root.enemy4._x -= 40; _root.enemy5._x -= 40; _root.hobo._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x == 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 200 && _root.hobo._x > 180 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 181 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } else { if (Key.isDown(68) && _root.rightallowed == false && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } } } } } } onClipEvent (enterFrame) { if (Key.isDown(87) && _root.upallowed == true && _root.pause == false) { _root.hobo._y -= 3; _root.bg1._y += 3; _root.bg2._y += 3; _root.fg1._y += 6; _root.fg2._y += 6; _root.fb1._y += 1.5; _root.fb2._y += 1.5; _root.trashcan._y += 3; _root.trashcan2._y += 3; _root.tire._y += 3; _root.bottle1._y += 3; _root.bottle2._y += 3; _root.bottle3._y += 3; _root.bottle4._y += 3; _root.prop1._y += 3; _root.prop2._y += 3; _root.prop3._y += 3; _root.prop4._y += 3; _root.prop5._y += 3; _root.enemy1._y += 3; _root.enemy2._y += 3; _root.enemy3._y += 3; _root.enemy4._y += 3; _root.enemy5._y += 3; } } onClipEvent (enterFrame) { if (Key.isDown(83) && _root.downallowed == true && _root.pause == false) { _root.hobo._y += 3; _root.bg1._y -= 3; _root.bg2._y -= 3; _root.fg1._y -= 6; _root.fg2._y -= 6; _root.fb1._y -= 1.5; _root.fb2._y -= 1.5; _root.trashcan._y -= 3; _root.trashcan2._y -= 3; _root.tire._y -= 3; _root.bottle1._y -= 3; _root.bottle2._y -= 3; _root.bottle3._y -= 3; _root.bottle4._y -= 3; _root.prop1._y -= 3; _root.prop2._y -= 3; _root.prop3._y -= 3; _root.prop4._y -= 3; _root.prop5._y -= 3; _root.enemy1._y -= 3; _root.enemy2._y -= 3; _root.enemy3._y -= 3; _root.enemy4._y -= 3; _root.enemy5._y -= 3; } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.run = false; _root.punchallowed = false; _root.hobo.gotoAndStop(9); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.run = false; _root.kickallowed = false; _root.hobo.gotoAndStop(17); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(61); } } } } movieClip 4205 { frame 1 { function attackstats(stat1, stat2, stat3, stat4, stat5, stat6, stat7) { attack = stat1; movetime = stat2; damager = stat3; stuntime = stat4; knockback = stat5; knockdown = stat6; knockup = stat7; } function stoprun() { if (robot == 2 && running == 2) { if (movement == 'free') { exitroll = 3; } spinjump = false; } running = 1; runtime = 0; } stop(); _root.abilityAnim = false; r1but.gotoAndStop(1); r2but.gotoAndStop(3); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; r2but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r2but.onRollOut = function () { r2but.gotoAndStop(3); }; r2but.onDragOut = function () { r2but.gotoAndStop(3); }; r2but.onRelease = function () { gotoAndPlay('r1r2change'); }; r3but.onRollOver = function () { r3but.useHandCursor = false; r3but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r3but.onRollOut = function () { r3but.gotoAndStop(3); }; r3but.onDragOut = function () { r3but.gotoAndStop(3); }; r3but.onRelease = function () { gotoAndPlay('r1r3change'); }; robot = 1; z = -55; direct = 1; runtime = 0; running = 1; xspeed = 0; zspeed = 0; xmax = 10; zmax = 5; jump = -27; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; movetime = 0; attack = 'none'; holdbarrel = false; barrelheld = 'none'; windowtime = 5; exitroll = 0; damrat = 1; invuln = 0; alive = true; desptimer = 0; onEnterFrame = function () { if (_root.abilityAnim == false && _root.conapp == false) { xmove = 0; zmove = 0; if (Key.isDown(39) && movement == 'free') { xmove += 1; if (xspeed <= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (xmove != 0) { xspeed = xmove * xmax * running; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } if (runtime > 0 && !air) { runtime -= 1; if (runtime == 0) { stoprun(); } } else { if (!air) { stoprun(); } } punch = false; kick = false; if (_root.performdesp == false) { if (Key.isDown(68)) { punch = true; punchtime += 1; } if (Key.isDown(83)) { kick = true; kicktime += 1; } } if (!punch) { punchtime = 0; } if (!kick) { kicktime = 0; } if (robot == 2 && running == 2 && movement == 'free') { attackstats('roll', 0, 1, 12, 10, 0, 0); } else { if (movement != 'attack') { attack = 'none'; stuntime = 0; knockdown = 0; knockup = 0; } } if (movement != 'free' && movement != 'attack') { } else { if (holdbarrel) { if (kicktime == 1 && !air) { movement = 'putdown'; movetime = 9; attack = 'none'; } else { if (punchtime == 1) { movement = 'throw'; movetime = 6; barrelheld.hit.toss(); barrelheld = 'none'; holdbarrel = false; } } } else { if (robot == 1) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 13, 5, 0, 20, 12, 20); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && attack != 'desp' && _root.hp > 1) { attackstats('desp', 13, 5, 0, 20, 12, 20); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 9, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 5, 1, 0, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p3') { attackstats('p4', 5, 3, 2, 2, 0, 0); } else { if (attack == 'p2') { attackstats('p3', 5, 2, 0, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 6, 1, 0, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a17 == true) { attackstats('pkp', 15, 10, 0, 8, 36, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a8 == true) { attackstats('k2p', 11, 6, 5, 3, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a2 == true) { attackstats('kp', 12, 5, 7, 2, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 7, 12 + Math.abs(xspeed * 2), 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 8, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 8, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 8, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a11 == true) { attackstats('p2k', 12, 7, 0, 8, 0, 8); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a5 == true) { attackstats('pk', 10, 6, 8, 8, 0, 10); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a14 == true) { attackstats('kpk', 22, 8, 3, 8, 36, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'rp') { attackstats('rk', 11, 8, 0, 9, 36, 0); xspeed = direct * xmax * 2; } } } } } } } } } } } } } else { if (robot == 2) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 15, 5, 0, 20, 12, 0); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 15, 5, 0, 20, 12, 0); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rp', 11, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 14, 5, 9, 5, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 14, 5, 5, 4, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 14, 5, 5, 2, 0, 0); } else { if (attack == 'pk') { if (_root.a16 == true) { attackstats('pkp', 32, 1, 0, 3, 0, 3); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k2') { if (_root.a7 == true) { attackstats('k2p', 15, 6, 5, 15, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k1') { if (_root.a1 == true) { attackstats('kp', 14, 1, 4, 1, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 14, 3, 5, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 14, 3, 5, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 14, 3, 5, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a10 == true) { attackstats('p2k', 28, 7, 0, 8, 25, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a4 == true) { attackstats('pk', 16, 1, 0, 1, 0, 2); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a13 == true) { attackstats('kpk', 21, 1, 0, 1, 0, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } } } } } } } } } } } } else { if (robot == 3) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 11, 5, 0, 20, 12, 8); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 11, 5, 0, 20, 12, 8); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 11, 8, 7, 10, 0, 12); } else { if (attack == 'none') { attackstats('p1', 11, 1, 1, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 10, 2, 2, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 10, 1, 3, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a18 == true) { attackstats('pkp', 14, 10, 0, 10, 0, 24); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a9 == true) { attackstats('k2p', 15, 6, 0, 12, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a3 == true) { attackstats('kp', 13, 5, 7, 2, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 5, 7, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 12, 5, 5, 5, 0, 0); } else { if (attack == 'none') { attackstats('k1', 10, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 10, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 10, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a12 == true) { attackstats('p2k', 21, 7, 0, 8, 25, 0); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a6 == true) { attackstats('pk', 9, 6, 8, 8, 0, 6); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a15 == true) { attackstats('kpk', 19, 1, 5, -2, 0, 4); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } } } } } } } } } } } } } } } } if (!air) { if (attack == 'jp') { movement = 'free'; attack = 'none'; } else { if (attack == 'jk') { movement = 'free'; attack = 'none'; } } } z += zspeed; if (air && movement == 'attack') { } else { if (attack == 'rk' && movetime > 6) { } else { if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } } } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } } if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } guy.gotoAndStop(goframe); if (movement == 'transform') { if (gobot == 1) { goframe = 31; } else { if (gobot == 2) { goframe = 32; } else { if (gobot == 3) { goframe = 33; } } } } else { if (movement == 'pickup') { goframe = 23; } else { if (movement == 'throw') { goframe = 26; } else { if (movement == 'putdown') { goframe = 28; } else { if (movement == 'hurt') { goframe = 29; } else { if (movement == 'dead') { goframe = 30; } else { if (air) { if (holdbarrel) { goframe = 27; } else { if (attack == 'jp') { goframe = 21; } else { if (attack == 'jk') { goframe = 22; } else { if (!spinjump) { goframe = 4; } else { goframe = 5; if (robot == 2) { goframe = 3; } } } } } } else { if (holdbarrel) { if (Math.abs(xspeed) > 0) { goframe = 25; } else { if (Math.abs(zspeed) > 0) { goframe = 25; } else { goframe = 24; } } } else { if (movement == 'down') { goframe = 35; } else { if (movement == 'getup') { goframe = 36; } else { if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } } } } } } } guy.gotoAndStop(goframe); if (Key.isDown(87)) { gotoAndPlay('r1r2change'); } if (Key.isDown(69)) { gotoAndPlay('r1r3change'); } if (Key.isDown(39)) { rightBut.gotoAndStop(2); } else { rightBut.gotoAndStop(1); } if (Key.isDown(68)) { dBut.gotoAndStop(2); } else { dBut.gotoAndStop(1); } if (Key.isDown(83)) { sBut.gotoAndStop(2); } else { sBut.gotoAndStop(1); } } }; } frame 2 { _root.abilityAnim = true; r1but.gotoAndStop(3); r2but.gotoAndStop(1); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 16 { function attackstats(stat1, stat2, stat3, stat4, stat5, stat6, stat7) { attack = stat1; movetime = stat2; damager = stat3; stuntime = stat4; knockback = stat5; knockdown = stat6; knockup = stat7; } function stoprun() { if (robot == 2 && running == 2) { if (movement == 'free') { exitroll = 3; } spinjump = false; } running = 1; runtime = 0; } stop(); _root.abilityAnim = false; r1but.gotoAndStop(3); r2but.gotoAndStop(1); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; r1but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r1but.onRollOut = function () { r1but.gotoAndStop(3); }; r1but.onDragOut = function () { r1but.gotoAndStop(3); }; r1but.onRelease = function () { gotoAndPlay('r2r1change'); }; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; r3but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r3but.onRollOut = function () { r3but.gotoAndStop(3); }; r3but.onDragOut = function () { r3but.gotoAndStop(3); }; r3but.onRelease = function () { gotoAndPlay('r2r3change'); }; robot = 2; z = -55; direct = 1; runtime = 0; running = 1; xspeed = 0; zspeed = 0; xmax = 10; zmax = 5; jump = -27; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; movetime = 0; attack = 'none'; holdbarrel = false; barrelheld = 'none'; windowtime = 5; exitroll = 0; damrat = 1; invuln = 0; alive = true; desptimer = 0; onEnterFrame = function () { if (_root.abilityAnim == false && _root.conapp == false) { xmove = 0; zmove = 0; if (Key.isDown(39) && movement == 'free') { xmove += 1; if (xspeed <= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (xmove != 0) { xspeed = xmove * xmax * running; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } if (runtime > 0 && !air) { runtime -= 1; if (runtime == 0) { stoprun(); } } else { if (!air) { stoprun(); } } punch = false; kick = false; if (_root.performdesp == false) { if (Key.isDown(68)) { punch = true; punchtime += 1; } if (Key.isDown(83)) { kick = true; kicktime += 1; } } if (!punch) { punchtime = 0; } if (!kick) { kicktime = 0; } if (robot == 2 && running == 2 && movement == 'free') { attackstats('roll', 0, 1, 12, 10, 0, 0); } else { if (movement != 'attack') { attack = 'none'; stuntime = 0; knockdown = 0; knockup = 0; } } if (movement != 'free' && movement != 'attack') { } else { if (holdbarrel) { if (kicktime == 1 && !air) { movement = 'putdown'; movetime = 9; attack = 'none'; } else { if (punchtime == 1) { movement = 'throw'; movetime = 6; barrelheld.hit.toss(); barrelheld = 'none'; holdbarrel = false; } } } else { if (robot == 1) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 13, 5, 0, 20, 12, 20); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && attack != 'desp' && _root.hp > 1) { attackstats('desp', 13, 5, 0, 20, 12, 20); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 9, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 5, 1, 0, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p3') { attackstats('p4', 5, 3, 2, 2, 0, 0); } else { if (attack == 'p2') { attackstats('p3', 5, 2, 0, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 6, 1, 0, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a17 == true) { attackstats('pkp', 19, 10, 0, 8, 36, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a8 == true) { attackstats('k2p', 11, 6, 5, 3, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a2 == true) { attackstats('kp', 12, 5, 7, 2, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 7, 12 + Math.abs(xspeed * 2), 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 8, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 8, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 8, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a11 == true) { attackstats('p2k', 12, 7, 0, 8, 0, 8); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a5 == true) { attackstats('pk', 10, 6, 8, 8, 0, 10); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a14 == true) { attackstats('kpk', 22, 8, 3, 8, 36, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'rp') { attackstats('rk', 11, 8, 0, 9, 36, 0); xspeed = direct * xmax * 2; } } } } } } } } } } } } } else { if (robot == 2) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 15, 5, 0, 20, 12, 0); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 15, 5, 0, 20, 12, 0); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rp', 11, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 14, 5, 9, 5, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 14, 5, 5, 4, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 14, 5, 5, 2, 0, 0); } else { if (attack == 'pk') { if (_root.a16 == true) { attackstats('pkp', 32, 1, 0, 3, 0, 3); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k2') { if (_root.a7 == true) { attackstats('k2p', 15, 6, 5, 15, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k1') { if (_root.a1 == true) { attackstats('kp', 14, 1, 4, 1, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 14, 3, 5, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 14, 3, 5, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 14, 3, 5, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a10 == true) { attackstats('p2k', 28, 7, 0, 8, 25, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a4 == true) { attackstats('pk', 16, 1, 0, 1, 0, 2); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a13 == true) { attackstats('kpk', 21, 1, 0, 1, 0, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } } } } } } } } } } } } else { if (robot == 3) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 11, 5, 0, 20, 12, 8); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 11, 5, 0, 20, 12, 8); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 11, 8, 7, 10, 0, 12); } else { if (attack == 'none') { attackstats('p1', 11, 1, 1, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 10, 2, 2, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 10, 1, 3, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a18 == true) { attackstats('pkp', 14, 10, 0, 10, 0, 24); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a9 == true) { attackstats('k2p', 15, 6, 0, 12, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a3 == true) { attackstats('kp', 13, 5, 7, 2, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 5, 7, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 12, 5, 5, 5, 0, 0); } else { if (attack == 'none') { attackstats('k1', 10, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 10, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 10, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a12 == true) { attackstats('p2k', 21, 7, 0, 8, 25, 0); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a6 == true) { attackstats('pk', 9, 6, 8, 8, 0, 6); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a15 == true) { attackstats('kpk', 19, 1, 5, -2, 0, 4); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } } } } } } } } } } } } } } } } if (!air) { if (attack == 'jp') { movement = 'free'; attack = 'none'; } else { if (attack == 'jk') { movement = 'free'; attack = 'none'; } } } z += zspeed; if (air && movement == 'attack') { } else { if (attack == 'rk' && movetime > 6) { } else { if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } } } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } } if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } guy.gotoAndStop(goframe); if (movement == 'transform') { if (gobot == 1) { goframe = 31; } else { if (gobot == 2) { goframe = 32; } else { if (gobot == 3) { goframe = 33; } } } } else { if (movement == 'pickup') { goframe = 23; } else { if (movement == 'throw') { goframe = 26; } else { if (movement == 'putdown') { goframe = 28; } else { if (movement == 'hurt') { goframe = 29; } else { if (movement == 'dead') { goframe = 30; } else { if (air) { if (holdbarrel) { goframe = 27; } else { if (attack == 'jp') { goframe = 21; } else { if (attack == 'jk') { goframe = 22; } else { if (!spinjump) { goframe = 4; } else { goframe = 5; if (robot == 2) { goframe = 3; } } } } } } else { if (holdbarrel) { if (Math.abs(xspeed) > 0) { goframe = 25; } else { if (Math.abs(zspeed) > 0) { goframe = 25; } else { goframe = 24; } } } else { if (movement == 'down') { goframe = 35; } else { if (movement == 'getup') { goframe = 36; } else { if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } } } } } } } guy.gotoAndStop(goframe); if (Key.isDown(81)) { gotoAndPlay('r2r1change'); } if (Key.isDown(69)) { gotoAndPlay('r2r3change'); } if (Key.isDown(39)) { rightBut.gotoAndStop(2); } else { rightBut.gotoAndStop(1); } if (Key.isDown(68)) { dBut.gotoAndStop(2); } else { dBut.gotoAndStop(1); } if (Key.isDown(83)) { sBut.gotoAndStop(2); } else { sBut.gotoAndStop(1); } } }; } frame 17 { _root.abilityAnim = true; r1but.gotoAndStop(1); r2but.gotoAndStop(3); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 30 { gotoAndStop('r1show'); } frame 31 { _root.abilityAnim = true; r1but.gotoAndStop(3); r2but.gotoAndStop(3); r3but.gotoAndStop(1); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 45 { function attackstats(stat1, stat2, stat3, stat4, stat5, stat6, stat7) { attack = stat1; movetime = stat2; damager = stat3; stuntime = stat4; knockback = stat5; knockdown = stat6; knockup = stat7; } function stoprun() { if (robot == 2 && running == 2) { if (movement == 'free') { exitroll = 3; } spinjump = false; } running = 1; runtime = 0; } stop(); _root.abilityAnim = false; r1but.gotoAndStop(3); r2but.gotoAndStop(3); r3but.gotoAndStop(1); r1but.onRollOver = function () { r1but.useHandCursor = false; r1but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r1but.onRollOut = function () { r1but.gotoAndStop(3); }; r1but.onDragOut = function () { r1but.gotoAndStop(3); }; r1but.onRelease = function () { gotoAndPlay('r3r1change'); }; r2but.onRollOver = function () { r2but.useHandCursor = false; r2but.gotoAndStop(2); rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); }; r2but.onRollOut = function () { r2but.gotoAndStop(3); }; r2but.onDragOut = function () { r2but.gotoAndStop(3); }; r2but.onRelease = function () { gotoAndPlay('r3r2change'); }; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; robot = 3; z = -55; direct = 1; runtime = 0; running = 1; xspeed = 0; zspeed = 0; xmax = 10; zmax = 5; jump = -27; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; movetime = 0; attack = 'none'; holdbarrel = false; barrelheld = 'none'; windowtime = 5; exitroll = 0; damrat = 1; invuln = 0; alive = true; desptimer = 0; onEnterFrame = function () { if (_root.abilityAnim == false && _root.conapp == false) { xmove = 0; zmove = 0; if (Key.isDown(39) && movement == 'free') { xmove += 1; if (xspeed <= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (xmove != 0) { xspeed = xmove * xmax * running; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } if (runtime > 0 && !air) { runtime -= 1; if (runtime == 0) { stoprun(); } } else { if (!air) { stoprun(); } } punch = false; kick = false; if (_root.performdesp == false) { if (Key.isDown(68)) { punch = true; punchtime += 1; } if (Key.isDown(83)) { kick = true; kicktime += 1; } } if (!punch) { punchtime = 0; } if (!kick) { kicktime = 0; } if (robot == 2 && running == 2 && movement == 'free') { attackstats('roll', 0, 1, 12, 10, 0, 0); } else { if (movement != 'attack') { attack = 'none'; stuntime = 0; knockdown = 0; knockup = 0; } } if (movement != 'free' && movement != 'attack') { } else { if (holdbarrel) { if (kicktime == 1 && !air) { movement = 'putdown'; movetime = 9; attack = 'none'; } else { if (punchtime == 1) { movement = 'throw'; movetime = 6; barrelheld.hit.toss(); barrelheld = 'none'; holdbarrel = false; } } } else { if (robot == 1) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 13, 5, 0, 20, 12, 20); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && attack != 'desp' && _root.hp > 1) { attackstats('desp', 13, 5, 0, 20, 12, 20); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 9, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 5, 1, 0, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p3') { attackstats('p4', 5, 3, 2, 2, 0, 0); } else { if (attack == 'p2') { attackstats('p3', 5, 2, 0, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 6, 1, 0, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a17 == true) { attackstats('pkp', 19, 10, 0, 8, 36, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a8 == true) { attackstats('k2p', 11, 6, 5, 3, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a2 == true) { attackstats('kp', 12, 5, 7, 2, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 7, 12 + Math.abs(xspeed * 2), 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 8, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 8, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 8, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a11 == true) { attackstats('p2k', 12, 7, 0, 8, 0, 8); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a5 == true) { attackstats('pk', 10, 6, 8, 8, 0, 10); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a14 == true) { attackstats('kpk', 22, 8, 3, 8, 36, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'rp') { attackstats('rk', 11, 8, 0, 9, 36, 0); xspeed = direct * xmax * 2; } } } } } } } } } } } } } else { if (robot == 2) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 15, 5, 0, 20, 12, 0); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 15, 5, 0, 20, 12, 0); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rp', 11, 8, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 14, 5, 9, 5, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 14, 5, 5, 4, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 14, 5, 5, 2, 0, 0); } else { if (attack == 'pk') { if (_root.a16 == true) { attackstats('pkp', 32, 1, 0, 3, 0, 3); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k2') { if (_root.a7 == true) { attackstats('k2p', 15, 6, 5, 15, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k1') { if (_root.a1 == true) { attackstats('kp', 14, 1, 4, 1, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 8, 0, 0); stoprun(); } else { if (running == 2) { attackstats('rk', 11, 8, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 14, 3, 5, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 14, 3, 5, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 14, 3, 5, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a10 == true) { attackstats('p2k', 28, 7, 0, 8, 25, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a4 == true) { attackstats('pk', 16, 1, 0, 1, 0, 2); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a13 == true) { attackstats('kpk', 21, 1, 0, 1, 0, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } } } } } } } } } } } } else { if (robot == 3) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 11, 5, 0, 20, 12, 8); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 11, 5, 0, 20, 12, 8); } else { if (air && attack == 'none') { attackstats('jp', 12, 6, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 11, 8, 7, 10, 0, 12); } else { if (attack == 'none') { attackstats('p1', 11, 1, 1, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 10, 2, 2, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 10, 1, 3, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a18 == true) { attackstats('pkp', 14, 10, 0, 10, 0, 24); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a9 == true) { attackstats('k2p', 15, 6, 0, 12, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a3 == true) { attackstats('kp', 13, 5, 7, 2, 0, 0); } else { attackstats('p1', 11, 1, 1, 1, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 5, 7, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 12, 5, 5, 5, 0, 0); } else { if (attack == 'none') { attackstats('k1', 10, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 10, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 10, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a12 == true) { attackstats('p2k', 21, 7, 0, 8, 25, 0); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a6 == true) { attackstats('pk', 9, 6, 8, 8, 0, 6); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a15 == true) { attackstats('kpk', 19, 1, 5, -2, 0, 4); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } } } } } } } } } } } } } } } } if (!air) { if (attack == 'jp') { movement = 'free'; attack = 'none'; } else { if (attack == 'jk') { movement = 'free'; attack = 'none'; } } } z += zspeed; if (air && movement == 'attack') { } else { if (attack == 'rk' && movetime > 6) { } else { if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } } } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } } if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } guy.gotoAndStop(goframe); if (movement == 'transform') { if (gobot == 1) { goframe = 31; } else { if (gobot == 2) { goframe = 32; } else { if (gobot == 3) { goframe = 33; } } } } else { if (movement == 'pickup') { goframe = 23; } else { if (movement == 'throw') { goframe = 26; } else { if (movement == 'putdown') { goframe = 28; } else { if (movement == 'hurt') { goframe = 29; } else { if (movement == 'dead') { goframe = 30; } else { if (air) { if (holdbarrel) { goframe = 27; } else { if (attack == 'jp') { goframe = 21; } else { if (attack == 'jk') { goframe = 22; } else { if (!spinjump) { goframe = 4; } else { goframe = 5; if (robot == 2) { goframe = 3; } } } } } } else { if (holdbarrel) { if (Math.abs(xspeed) > 0) { goframe = 25; } else { if (Math.abs(zspeed) > 0) { goframe = 25; } else { goframe = 24; } } } else { if (movement == 'down') { goframe = 35; } else { if (movement == 'getup') { goframe = 36; } else { if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } } } } } } } guy.gotoAndStop(goframe); if (Key.isDown(81)) { gotoAndPlay('r3r1change'); } if (Key.isDown(87)) { gotoAndPlay('r3r2change'); } if (Key.isDown(39)) { rightBut.gotoAndStop(2); } else { rightBut.gotoAndStop(1); } if (Key.isDown(68)) { dBut.gotoAndStop(2); } else { dBut.gotoAndStop(1); } if (Key.isDown(83)) { sBut.gotoAndStop(2); } else { sBut.gotoAndStop(1); } } }; } frame 46 { _root.abilityAnim = true; r1but.gotoAndStop(3); r2but.gotoAndStop(3); r3but.gotoAndStop(1); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 59 { gotoAndStop('r3show'); } frame 60 { _root.abilityAnim = true; r1but.gotoAndStop(1); r2but.gotoAndStop(3); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 73 { gotoAndStop('r1show'); } frame 74 { _root.abilityAnim = true; r1but.gotoAndStop(3); r2but.gotoAndStop(1); r3but.gotoAndStop(3); r1but.onRollOver = function () { r1but.useHandCursor = false; }; r1but.onRollOut = function () {}; r1but.onDragOut = function () {}; r1but.onRelease = function () {}; r2but.onRollOver = function () { r2but.useHandCursor = false; }; r2but.onRollOut = function () {}; r2but.onDragOut = function () {}; r2but.onRelease = function () {}; r3but.onRollOver = function () { r3but.useHandCursor = false; }; r3but.onRollOut = function () {}; r3but.onDragOut = function () {}; r3but.onRelease = function () {}; } frame 87 { gotoAndStop('r2show'); } frame 88 { _root.abilityAnim = true; } frame 100 { gotoAndStop('r1show'); } frame 101 { _root.abilityAnim = true; } frame 128 { gotoAndStop('r1show'); } frame 129 { _root.abilityAnim = true; } frame 157 { gotoAndStop('r1show'); } frame 158 { _root.abilityAnim = true; } frame 173 { gotoAndStop('r1show'); } frame 174 { _root.abilityAnim = true; } frame 186 { gotoAndStop('r1show'); } frame 187 { _root.abilityAnim = true; } frame 207 { gotoAndStop('r1show'); } frame 208 { _root.abilityAnim = true; } frame 225 { gotoAndStop('r1show'); } frame 226 { _root.abilityAnim = true; } frame 258 { gotoAndStop('r1show'); } frame 259 { _root.abilityAnim = true; } frame 283 { gotoAndStop('r1show'); } frame 284 { _root.abilityAnim = true; } frame 298 { gotoAndStop('r2show'); } frame 299 { _root.abilityAnim = true; } frame 327 { gotoAndStop('r2show'); } frame 328 { _root.abilityAnim = true; } frame 354 { gotoAndStop('r2show'); } frame 355 { _root.abilityAnim = true; } frame 378 { gotoAndStop('r2show'); } frame 379 { _root.abilityAnim = true; } frame 406 { gotoAndStop('r2show'); } frame 407 { _root.abilityAnim = true; } frame 441 { gotoAndStop('r2show'); } frame 442 { _root.abilityAnim = true; } frame 491 { gotoAndStop('r2show'); } frame 492 { _root.abilityAnim = true; } frame 533 { gotoAndStop('r2show'); } frame 534 { _root.abilityAnim = true; } frame 589 { gotoAndStop('r2show'); } frame 590 { _root.abilityAnim = true; } frame 600 { gotoAndStop('r3show'); } frame 601 { _root.abilityAnim = true; } frame 629 { gotoAndStop('r3show'); } frame 630 { _root.abilityAnim = true; } frame 659 { gotoAndStop('r3show'); } frame 660 { _root.abilityAnim = true; } frame 680 { gotoAndStop('r3show'); } frame 681 { _root.abilityAnim = true; } frame 696 { gotoAndStop('r3show'); } frame 697 { _root.abilityAnim = true; } frame 725 { gotoAndStop('r3show'); } frame 726 { _root.abilityAnim = true; } frame 760 { gotoAndStop('r3show'); } frame 761 { _root.abilityAnim = true; } frame 795 { gotoAndStop('r3show'); } frame 796 { _root.abilityAnim = true; } frame 823 { gotoAndStop('r3show'); } } movieClip 4206 { frame 1 { stop(); } frame 2 { stopAllSounds(); _root.levelstart._alpha = 0; _root.conapp = false; } frame 7 { if (_root.showability == true) { if (_root.justlearned == 1 || _root.justlearned == 4 || _root.justlearned == 7 || _root.justlearned == 10 || _root.justlearned == 13 || _root.justlearned == 16) { executer.gotoAndStop('r2show'); } if (_root.justlearned == 2 || _root.justlearned == 5 || _root.justlearned == 8 || _root.justlearned == 11 || _root.justlearned == 14 || _root.justlearned == 17) { executer.gotoAndStop('r1show'); } if (_root.justlearned == 3 || _root.justlearned == 6 || _root.justlearned == 9 || _root.justlearned == 12 || _root.justlearned == 15 || _root.justlearned == 18) { executer.gotoAndStop('r3show'); } } else { if (_root.level.player.hit.robot == 1) { executer.gotoAndStop('r1show'); } if (_root.level.player.hit.robot == 2) { executer.gotoAndStop('r2show'); } if (_root.level.player.hit.robot == 3) { executer.gotoAndStop('r3show'); } } } frame 23 { stop(); _root.newability.gotoAndStop(1); _root.showability = false; } frame 27 { if (_root.currentLevel == 1) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level1loop'); _root.backgroundMusic.start(0, 999999); } if (_root.currentLevel == 2) { if (_root.bossShow == true && _root.bossDead == false) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss2loop'); _root.backgroundMusic.start(0, 999999); } else { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level2loop'); _root.backgroundMusic.start(0, 999999); } } if (_root.currentLevel == 3) { if (_root.bossShow == true && _root.bossDead == false) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss3loop'); _root.backgroundMusic.start(0, 999999); } else { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level3loop'); _root.backgroundMusic.start(0, 999999); } } if (_root.currentLevel == 4) { if (_root.bossShow == true && _root.bossDead == false) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss3loop'); _root.backgroundMusic.start(0, 999999); } else { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level4loop'); _root.backgroundMusic.start(0, 999999); } } if (_root.currentLevel == 5) { if (_root.bossShow == true && (_root.boss1Dead == false || _root.boss2Dead == false)) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss5loop'); _root.backgroundMusic.start(0, 999999); } else { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level5loop'); _root.backgroundMusic.start(0, 999999); } } if (_root.currentLevel == 6) { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level6loop'); _root.backgroundMusic.start(0, 999999); } _root.unlockAbility = false; } frame 35 { _root.justlearned = 0; } } movieClip 4210 { } movieClip 4222 { } movieClip 4229 { frame 1 { stop(); } frame 2 { stopAllSounds(); if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 7 { _root.level.player._alpha = 0; } frame 17 { if (_root.medal9 == false) { _root.medal9 = true; _root.savefile.data.medal9 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 124 { _root.gotoAndStop('puzzle1'); } } movieClip 4231 { } movieClip 4234 { } movieClip 4235 { } movieClip 4236 { } movieClip 4238 { } movieClip 4241 { } movieClip 4242 { } movieClip 4243 { } movieClip 4245 { } movieClip 4246 { } movieClip 4247 { frame 1 { if (_root.showX == false) { gotoAndPlay(2); } else { stop(); } } frame 10 { _root.showX = true; _root.savefile.data.showX = true; _root.savefile.flush(); } frame 127 { stop(); } } movieClip 4248 { frame 1 { _root.oktopause = false; } frame 17 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level1loop'); _root.backgroundMusic.start(0, 999999); } frame 38 { _root.oktopause = true; } frame 227 { stop(); } } frame 13 { stop(); } movieClip 4251 { } movieClip 4252 { frame 1 { stop(); _root.passBackGuess = 1; } frame 8 { stop(); _root.passBackGuess = 2; } frame 15 { stop(); _root.passBackGuess = 3; } frame 22 { stop(); _root.passBackGuess = 4; } frame 29 { stop(); _root.passBackGuess = 5; } frame 36 { stop(); _root.passBackGuess = 6; } frame 43 { stop(); _root.passBackGuess = 7; } frame 50 { stop(); _root.passBackGuess = 8; } frame 57 { stop(); _root.passBackGuess = 9; } frame 64 { stop(); _root.passBackGuess = 10; } frame 71 { stop(); _root.passBackGuess = 11; } frame 78 { stop(); _root.passBackGuess = 12; } frame 85 { stop(); _root.passBackGuess = 13; } frame 92 { stop(); _root.passBackGuess = 14; } frame 99 { stop(); _root.passBackGuess = 15; } frame 106 { stop(); _root.passBackGuess = 16; } frame 113 { stop(); _root.passBackGuess = 17; } frame 120 { stop(); _root.passBackGuess = 18; } frame 127 { stop(); _root.passBackGuess = 19; } frame 134 { stop(); _root.passBackGuess = 20; } frame 141 { stop(); _root.passBackGuess = 21; } frame 148 { stop(); _root.passBackGuess = 22; } frame 155 { stop(); _root.passBackGuess = 23; } frame 162 { stop(); _root.passBackGuess = 24; } frame 169 { gotoAndStop(1); _root.passBackGuess = 1; } } movieClip 4255 { } movieClip 4256 { frame 1 { stop(); _root.passFrontGuess = 24; } frame 8 { stop(); _root.passFrontGuess = 23; } frame 15 { stop(); _root.passFrontGuess = 22; } frame 22 { stop(); _root.passFrontGuess = 21; } frame 29 { stop(); _root.passFrontGuess = 20; } frame 36 { stop(); _root.passFrontGuess = 19; } frame 43 { stop(); _root.passFrontGuess = 18; } frame 50 { stop(); _root.passFrontGuess = 17; } frame 57 { stop(); _root.passFrontGuess = 16; } frame 64 { stop(); _root.passFrontGuess = 15; } frame 71 { stop(); _root.passFrontGuess = 14; } frame 78 { stop(); _root.passFrontGuess = 13; } frame 85 { stop(); _root.passFrontGuess = 12; } frame 92 { stop(); _root.passFrontGuess = 11; } frame 99 { stop(); _root.passFrontGuess = 10; } frame 106 { stop(); _root.passFrontGuess = 9; } frame 113 { stop(); _root.passFrontGuess = 8; } frame 120 { stop(); _root.passFrontGuess = 7; } frame 127 { stop(); _root.passFrontGuess = 6; } frame 134 { stop(); _root.passFrontGuess = 5; } frame 141 { stop(); _root.passFrontGuess = 4; } frame 148 { stop(); _root.passFrontGuess = 3; } frame 155 { stop(); _root.passFrontGuess = 2; } frame 162 { stop(); _root.passFrontGuess = 1; } frame 169 { gotoAndStop(1); _root.passFrontGuess = 24; } } movieClip 4262 { } movieClip 4270 { } movieClip 4277 { } movieClip 4278 { frame 48 { stop(); } frame 95 { stop(); _root.puzzstart.gotoAndPlay('start'); } frame 148 { stop(); ++_root.lives; if (_root.currentLevel == 1) { if (_root.medal6 == false) { _root.medal6 = true; _root.savefile.data.medal6 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.currentLevel == 2) { if (_root.medal7 == false) { _root.medal7 = true; _root.savefile.data.medal7 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } _root.puzzstart.gotoAndPlay('start'); } } movieClip 4282 { frame 8 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('elev1'); _root.backgroundMusic.start(0, 999999); } frame 48 { stop(); } } movieClip 4287 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4291 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4295 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4298 { } movieClip 4300 { } movieClip 4303 { } movieClip 4305 { } movieClip 4307 { frame 48 { _root.cantpressbut = false; stop(); } } movieClip 4309 { } movieClip 4312 { } movieClip 4317 { } movieClip 4320 { } movieClip 4322 { } movieClip 4324 { } movieClip 4325 { frame 1 { stop(); } frame 3 { _root.cantpressbut = true; } frame 21 { _root.cantpressbut = false; gotoAndStop(1); } frame 23 { _root.cantpressbut = true; } frame 32 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 41 { _root.cantpressbut = false; gotoAndStop(1); } frame 43 { _root.cantpressbut = true; } frame 52 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 61 { _root.cantpressbut = false; gotoAndStop(1); } frame 63 { _root.cantpressbut = true; } frame 72 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 81 { _root.cantpressbut = false; gotoAndStop(1); } frame 83 { _root.cantpressbut = true; } frame 101 { _root.cantpressbut = false; gotoAndStop(1); } frame 103 { _root.cantpressbut = true; } frame 121 { _root.cantpressbut = false; gotoAndStop(1); } frame 123 { _root.cantpressbut = true; } frame 132 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 141 { _root.cantpressbut = false; gotoAndStop(1); } frame 143 { _root.cantpressbut = true; } frame 152 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 161 { _root.cantpressbut = false; gotoAndStop(1); } frame 163 { _root.cantpressbut = true; } frame 172 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 181 { _root.cantpressbut = false; gotoAndStop(1); } frame 183 { _root.cantpressbut = true; } frame 201 { _root.cantpressbut = false; gotoAndStop(1); } frame 203 { _root.cantpressbut = true; } frame 221 { _root.cantpressbut = true; if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { _root.elev.marker.gotoAndPlay('success'); } else { _root.elev.marker.gotoAndPlay('fail'); } gotoAndStop(1); } frame 223 { _root.cantpressbut = true; } frame 241 { _root.cantpressbut = false; gotoAndStop(1); } frame 243 { _root.cantpressbut = true; } frame 252 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 261 { _root.cantpressbut = false; gotoAndStop(1); } frame 263 { _root.cantpressbut = true; } frame 272 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 281 { _root.cantpressbut = false; gotoAndStop(1); } frame 283 { _root.cantpressbut = true; } frame 292 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 301 { _root.cantpressbut = false; gotoAndStop(1); } frame 303 { _root.cantpressbut = true; } frame 321 { _root.cantpressbut = false; gotoAndStop(1); } frame 323 { _root.cantpressbut = true; } frame 341 { _root.cantpressbut = false; gotoAndStop(1); } frame 343 { _root.cantpressbut = true; } frame 352 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 361 { _root.cantpressbut = false; gotoAndStop(1); } frame 363 { _root.cantpressbut = true; } frame 372 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 381 { _root.cantpressbut = false; gotoAndStop(1); } frame 383 { _root.cantpressbut = true; } frame 392 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 401 { _root.cantpressbut = false; gotoAndStop(1); } frame 403 { _root.cantpressbut = true; } frame 421 { _root.cantpressbut = false; gotoAndStop(1); } frame 423 { _root.cantpressbut = true; } frame 441 { _root.cantpressbut = true; if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { _root.elev.marker.gotoAndPlay('success'); } else { _root.elev.marker.gotoAndPlay('fail'); } gotoAndStop(1); } frame 443 { _root.cantpressbut = true; } frame 461 { _root.cantpressbut = false; gotoAndStop(1); } frame 463 { _root.cantpressbut = true; } frame 472 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 481 { _root.cantpressbut = false; gotoAndStop(1); } frame 483 { _root.cantpressbut = true; } frame 492 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 501 { _root.cantpressbut = false; gotoAndStop(1); } frame 503 { _root.cantpressbut = true; } frame 512 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 521 { _root.cantpressbut = false; gotoAndStop(1); } frame 523 { _root.cantpressbut = true; } frame 541 { _root.cantpressbut = false; gotoAndStop(1); } frame 543 { _root.cantpressbut = true; } frame 561 { _root.cantpressbut = false; gotoAndStop(1); } frame 563 { _root.cantpressbut = true; } frame 572 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 581 { _root.cantpressbut = false; gotoAndStop(1); } frame 583 { _root.cantpressbut = true; } frame 592 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 601 { _root.cantpressbut = false; gotoAndStop(1); } frame 603 { _root.cantpressbut = true; } frame 612 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 621 { _root.cantpressbut = false; gotoAndStop(1); } frame 623 { _root.cantpressbut = true; } frame 641 { _root.cantpressbut = false; gotoAndStop(1); } frame 643 { _root.cantpressbut = true; } frame 661 { _root.cantpressbut = true; if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { _root.elev.marker.gotoAndPlay('success'); } else { _root.elev.marker.gotoAndPlay('fail'); } gotoAndStop(1); } } movieClip 4333 { } movieClip 4335 { } movieClip 4336 { frame 1 { bar.sign.gotoAndStop(_root.passFront); bar.signBG.gotoAndStop(_root.passBack); } } movieClip 4337 { } movieClip 4338 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4346 { } movieClip 4348 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4350 { } movieClip 4358 { } movieClip 4360 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4362 { } movieClip 4363 { frame 1 { stop(); if (_root.gotBarrel == true) { headB.gotoAndStop(2); } else { headB.stop(); } } frame 2 { stop(); if (_root.gotBarrel == true) { headY.gotoAndStop(2); } else { headY.stop(); } } frame 3 { stop(); if (_root.gotBarrel == true) { headR.gotoAndStop(2); } else { headR.stop(); } } } button 4365 { on (rollOver) { l3b.useHandCursor = false; l3slot.gotoAndStop(2); } on (rollOut) { l3slot.gotoAndStop(1); } on (dragOut) { l3slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressleft3'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressleft3'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressleft3'); } } } } button 4367 { on (rollOver) { d3b.useHandCursor = false; d3slot.gotoAndStop(2); } on (rollOut) { d3slot.gotoAndStop(1); } on (dragOut) { d3slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressdown3'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressdown3'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressdown3'); } } } } button 4369 { on (rollOver) { com.useHandCursor = false; if (_root.cantpressbut == false) { cslot.gotoAndStop(2); } } on (rollOut) { cslot.gotoAndStop(1); } on (dragOut) { cslot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1presscom'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2presscom'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3presscom'); } } } } movieClip 4371 { } movieClip 4373 { } button 4374 { on (rollOver) { ques.useHandCursor = false; quesexp.gotoAndPlay('openstuff'); } on (rollOut) { quesexp.gotoAndPlay('closestuff'); } on (dragOut) { quesexp.gotoAndPlay('closestuff'); } } movieClip 4376 { } movieClip 4379 { } movieClip 4380 { } movieClip 4381 { } movieClip 4384 { frame 1 { stop(); } frame 16 { stop(); } frame 24 { gotoAndStop('stay'); } } movieClip 4385 { frame 1 { stop(); _root.cantpressbut = true; s3.gotoAndStop('p10'); bgs3.gotoAndStop('p16'); rstill.gotoAndStop(_root.transitionbot); } } movieClip 4386 { frame 14 { stop(); } frame 30 { _root.gotoAndStop('achingame'); } } frame 14 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { if (_root.bossShow == true) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } else { level.enemy1.hit.newguy(guytype, startx, starty, startz); } } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } stop(); _root.currentLevel = 2; _root.dontmovedown = true; _root.bossHealthOn = false; _root.phase0timer = 0; _root.gotBarrel = false; if (_root.levelReplayed == true) { lives = rememberLives; _root.levelReplayed = false; } else { rememberLives = lives; } did = 1; hp = 100; maxhp = 100; turbo = 0; turboTimer = 0; turboMulti = 1; _root.passFront = random(24) + 1; _root.passBack = random(24) + 1; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.enemies < 0) { _root.enemies = 0; } ++_root.phase0timer; if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } } }; } movieClip 4391 { } movieClip 4397 { } movieClip 4398 { } movieClip 4399 { instance hit of movieClip 1721 { onClipEvent (enterFrame) { if (_parent.guy.hit.movement == 'dead') { _parent._alpha = 0; } else { if (!_parent.guy.hit.alive) { _parent._alpha = 0; } else { _parent._x = _parent.guy._x; _parent._alpha = 100; } } } } } movieClip 4400 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 20; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; if (_root.level.phase == 7 && player.hit.robot == 1) { mycolour = 1; } else { if (_root.level.phase == 7 && player.hit.robot == 2) { mycolour = 2; } else { if (_root.level.phase == 7 && player.hit.robot == 3) { mycolour = 3; } else { mycolour = random(3) + 1; } } } if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 0; healthType = 20; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 20; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 2008 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 4402 { } movieClip 4404 { } movieClip 4406 { } movieClip 4408 { } movieClip 4410 { } movieClip 4411 { } movieClip 4414 { } movieClip 4430 { } movieClip 4433 { } movieClip 4435 { } movieClip 4437 { } movieClip 4447 { } movieClip 4449 { } movieClip 4450 { } movieClip 4453 { } movieClip 4460 { frame 7 { prevFrame(); } } movieClip 4471 { } movieClip 4477 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 4486 { frame 10 { prevFrame(); } } movieClip 4490 { } movieClip 4493 { } movieClip 4495 { } movieClip 4497 { } movieClip 4499 { frame 8 { prevFrame(); } } movieClip 4510 { } movieClip 4522 { } movieClip 4528 { frame 7 { prevFrame(); } } movieClip 4529 { } movieClip 4530 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; _root.hp4.timer = fulltimer; } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; _root.bossDead = true; _root.bhs.gotoAndPlay('hide'); stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level2loop'); _root.backgroundMusic.start(0, 999999); } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 200; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; mycolour = 1; enemyColour = 1; } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 200; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 0.1; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 1) { player.hit.hurt(8 / _root.turboMulti, 1); punchtime = 20; } else { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 4529 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 4585 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a6taken == true) { ablearned._alpha = 100; } else { _root.a6taken = true; _root.savefile.data.a6taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 4586 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 4641 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a7taken == true) { ablearned._alpha = 100; } else { _root.a7taken = true; _root.savefile.data.a7taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 4642 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 4697 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a4taken == true) { ablearned._alpha = 100; } else { _root.a4taken = true; _root.savefile.data.a4taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 4698 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 4753 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a5taken == true) { ablearned._alpha = 100; } else { _root.a5taken = true; _root.savefile.data.a5taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 4754 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 4756 { } movieClip 4757 { instance shade of movieClip 1783 { onClipEvent (load) { guy = _root.level.player; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade6 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade7 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade8 of movieClip 4399 { onClipEvent (load) { guy = _root.level.enemy8; } } instance barrel1 of movieClip 1898 { onClipEvent (load) { z = -190; style = 1; } } instance enemy1 of movieClip 4400 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 4400 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 4400 { onClipEvent (load) { shade = _root.level.shade4; } } instance barrel5 of movieClip 1898 { onClipEvent (load) { z = -200; style = 1; } } instance barrel4 of movieClip 1898 { onClipEvent (load) { z = -200; style = 1; } } instance enemy5 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 4400 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 4400 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 4530 { onClipEvent (load) { shade = _root.level.shade8; } } instance barrel2 of movieClip 1898 { onClipEvent (load) { z = -190; style = 1; } } instance barrel3 of movieClip 1898 { onClipEvent (load) { z = -190; style = 1; } } instance barrel6 of movieClip 1898 { onClipEvent (load) { z = -200; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -197; } } instance of movieClip 3283 { onClipEvent (load) { z = -197; } } instance of movieClip 4586 { onClipEvent (load) { z = -148; } } instance of movieClip 3283 { onClipEvent (load) { z = -200; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -161; } } instance of movieClip 4642 { onClipEvent (load) { z = -100; style = 1; } } instance of movieClip 4698 { onClipEvent (load) { z = -175; } } instance of movieClip 4754 { onClipEvent (load) { z = -65; } } instance of movieClip 3393 { onClipEvent (load) { z = -200; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -200; style = 1; } } instance of movieClip 3561 { onClipEvent (load) { z = -115; } } instance of movieClip 3283 { onClipEvent (load) { z = -40; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -200; style = 1; } } } instance level of movieClip 4757 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 800; newlim = 800; gotoy = 0; phase = 0; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (_root.phase0timer == 120) { phase = 1; } if (phase == 1) { _root.spawn('standard', 900, 450, -10); _root.enemies = 1; phase = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } else { if (phase == 2) { if (_root.enemies == 0) { newlim = 2300; leftlim = 0; phase = 3; _root.gosign.timer = 50; } } else { if (phase == 3) { if (player._x > 1900) { if (_root.enemies == 0) { leftlim = 1500; newlim = 2300; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 1600, 0, -155); _root.spawn('standard', 1400, 450, -50); _root.spawn('standard', 2400, 450, -50); _root.enemies = 3; phase = 4; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } } else { if (phase == 4) { if (_root.enemies == 0) { leftlim = 1500; newlim = 4050; phase = 5; _root.gosign.timer = 50; } } else { if (phase == 5) { if (player._x > 3650) { leftlim = 3250; newlim = 4050; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 3300, 0, -165); _root.spawn('standard', 3350, 0, -30); _root.spawn('standard', 4200, 450, -30); _root.spawn('standard', 4150, 450, -70); _root.spawn('standard', 4150, 0, -165); _root.enemies = 5; phase = 6; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 6) { if (_root.enemies == 0) { leftlim = 3250; newlim = 5300; phase = 7; _root.gosign.timer = 50; } } else { if (phase == 7) { if (player._x > 4900) { leftlim = 4500; newlim = 5300; _root.spawn('standard', 5000, 0, -30); _root.enemies = 1; phase = 8; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 8) { if (_root.enemies == 0) { _root.spawn('standard', 5400, 450, -130); _root.spawn('standard', 4400, 450, -10); _root.enemies = 2; phase = 9; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 9) { if (_root.enemies == 0) { leftlim = 4500; newlim = 5600; phase = 10; _root.gosign.timer = 50; } } else { if (phase == 10) { if (player._x > 5200) { leftlim = 4800; newlim = 5600; _root.spawn('standard', 5700, 450, -150); _root.spawn('standard', 5720, 450, -50); _root.enemies = 2; phase = 11; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 11) { if (_root.enemies == 0) { _root.spawn('standard', 5300, 0, -100); _root.enemies = 1; phase = 12; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 12) { if (_root.enemies == 0) { leftlim = 4800; newlim = 6380; phase = 13; _root.gosign.timer = 50; } } else { if (phase == 13) { if (player._x > 5980) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.bossShow = true; _root.bossDead = false; stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss2loop'); _root.backgroundMusic.start(0, 999999); leftlim = 5580; newlim = 6380; _root.bhs.gotoAndPlay('show'); _root.spawn('standard', 6540, 450, -30); _root.enemies = 1; phase = 14; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 14) { if (_root.enemies == 0) { leftlim = 5580; newlim = 6672; phase = 15; } } } } } } } } } } } } } } } } } movieClip 4760 { frame 24 { _root.dontmovedown = false; } frame 31 { stop(); } } movieClip 4768 { frame 1 { stop(); } } instance hp4 of movieClip 4768 { onClipEvent (load) { goalhp = 200; fullhp = 200; myhp = 0; timer = 0; fulltimer = 120; _alpha = 100; } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } goalhp = _root.level.enemy8.hit.hp; fullhp = _root.level.enemy8.hit.maxhp; if (_root.bossShow == true && _root.bossDead == false && _root.bossHealthOn == true) { gotoAndStop(Math.round(goalhp * 100 / fullhp) + 21); } else { gotoAndStop(1); } } } } movieClip 4775 { frame 1 { stop(); } frame 22 { _root.bossHealthOn = true; gotoAndStop(1); } frame 44 { gotoAndStop(1); } } instance gosign of movieClip 3608 { onClipEvent (enterFrame) { if (timer > 0) { timer -= 1; if (timer == 0) { _alpha = 100; gotoAndPlay(1); } } if (_root.showability == true) { gotoAndStop(20); } else { play(); } } } instance genhp of movieClip 3626 { onClipEvent (load) { myhp = 100; } onClipEvent (enterFrame) { this.hptext.text = Math.round(myhp); if (this.hptext.text < 0) { this.hptext.text = 0; } this.turbotext.text = Math.round(_root.turbo); if (this.turbotext.text < 0) { this.turbotext.text = 0; } if (_root.hp > _root.maxhp) { _root.hp = _root.maxhp; } else { if (_root.hp < 0) { _root.hp = 0; } } if (myhp < _root.hp - 1) { myhp += 1; } else { if (myhp > _root.hp + 1) { myhp -= 1; } else { myhp = _root.hp; } } if (_root.hp <= myhp) { darkbar.gotoAndStop(Math.round(_root.hp + 1)); lightbar.gotoAndStop(Math.round(myhp + 1)); } else { lightbar.gotoAndStop(Math.round(_root.hp + 1)); darkbar.gotoAndStop(Math.round(myhp + 1)); } turbobar.gotoAndStop(_root.turbo + 1); } } instance hp3 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp2 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp1 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance of movieClip 3716 { onClipEvent (enterFrame) { gotoAndStop(_root.lives + 2); } } movieClip 4788 { frame 1 { stop(); } frame 2 { stopAllSounds(); if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 7 { _root.level.player._alpha = 0; } frame 17 { if (_root.medal10 == false) { _root.medal10 = true; _root.savefile.data.medal10 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 124 { _root.gotoAndStop('puzzle1'); } } movieClip 4790 { } movieClip 4793 { } movieClip 4794 { } movieClip 4795 { } movieClip 4796 { frame 1 { _root.oktopause = false; } frame 17 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level2loop'); _root.backgroundMusic.start(0, 999999); } frame 40 { _root.oktopause = true; } frame 147 { stop(); } } frame 15 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { if (level.phase == 3) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { level.enemy1.hit.newguy(guytype, startx, starty, startz); } } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } function spawnvort(vorttype, startx, starty, startz) { if (_root.vortexes == 1) { level.vort1.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 2) { level.vort2.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 3) { level.vort3.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 4) { level.vort4.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 5) { level.vort5.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 6) { level.vort6.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 7) { level.vort7.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 8) { level.vort8.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 9) { level.vort9.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 10) { level.vort10.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 11) { level.vort11.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 12) { level.vort12.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 13) { level.vort13.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 14) { level.vort14.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 15) { level.vort15.hit.newvort(vorttype, startx, starty, startz); } } } } } } } } } } } } } } } } stop(); _root.currentLevel = 3; _root.dontmovedown = true; _root.vortexes = 1; _root.betweenTimer = 0; _root.bossHealthOn = false; _root.phase0timer = 0; _root.gotBarrel = false; if (_root.levelReplayed == true) { lives = rememberLives; _root.levelReplayed = false; } else { rememberLives = lives; } did = 1; hp = 100; maxhp = 100; turbo = 0; turboTimer = 0; turboMulti = 1; _root.passFront = random(24) + 1; _root.passBack = random(24) + 1; _root.passFront2 = random(24) + 1; _root.passBack2 = random(24) + 1; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.enemies < 0) { _root.enemies = 0; } ++_root.phase0timer; if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } if (_root.bossShow == true) { if (level.phase == 15 || level.phase == 17 || level.phase == 19 || level.phase == 21) { ++_root.betweenTimer; } else { _root.betweenTimer = 0; } } } }; } movieClip 4797 { } movieClip 4799 { } movieClip 4815 { } movieClip 4817 { } movieClip 4819 { } movieClip 4848 { } movieClip 4850 { } movieClip 4856 { } movieClip 4882 { 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(); } } movieClip 4907 { 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(); } } movieClip 4908 { } movieClip 4909 { frame 1 { bar.sign.gotoAndStop(_root.passFront); bar.signBG.gotoAndStop(_root.passBack); } } movieClip 4922 { frame 14 { prevFrame(); } } movieClip 4923 { instance hit of movieClip 1721 { onClipEvent (load) { function toss() { thrown = true; _xscale = 150; _yscale = 150; _parent._x = player._x; z = player.hit.z + 1; player.hit.attack = 'none'; if (player.hit.robot == 1) { _parent._y = player._y - 140; xspeed = 15 * player.hit.direct + player.hit.xspeed; yspeed = -4; spin = 15 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; } else { if (player.hit.robot == 2) { _parent._y = player._y - 20; xspeed = 20 * player.hit.direct + player.hit.xspeed; yspeed = -12; spin = 6 * player.hit.direct; _parent.barrel._rotation = 75 * player.hit.direct; } else { if (player.hit.robot == 3) { _parent._y = player._y - 140; xspeed = 15 * player.hit.direct + player.hit.xspeed; yspeed = -8; spin = 12 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; } } } } function drop() { thrown = true; _xscale = 150; _parent._x = player._x; _parent._y = player._y - player.hit.tallness; z = player.hit.z + 1; spin = 15 * player.hit.direct; _parent.barrel._rotation = -75 * player.hit.direct; xspeed = 0; yspeed = -30; } function putdown() { unseen = false; pickupable = true; yspeed = 0; _parent.barrel._alpha = 100; _parent._x = player._x + player.hit.direct * 37; _parent._y = player._y; z = player.hit.z + 1; _parent.barrel._y = z - 43; _parent.barrel._x = z / 10 + wiggle; } function hurt(damage) { hp -= damage; showhp(); if (hp <= 0) { explode = true; movetime = 120; } } function wall(guy) {} _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; pickupable = true; hp = 10; wiggle = 0; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } if (_parent.style == undefined) { style = 1; } else { style = _parent.style; } } onClipEvent (enterFrame) { if (!_root.gamepause) { left = _parent._x - 20; right = _parent._x + 20; front = z + 10; back = z - 10; if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(player.hit.z - z) < player.hit.deepness + 20 && pickupable) { if (player.hit.hitTest(this)) { if (Math.abs(player.hit.z - z) < player.hit.deepness + 10) { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); } } if (player.hit.oldz > front + player.hit.deepness / 2) { player.hit.wallz(front + player.hit.deepness); } else { if (player.hit.oldz < back - player.hit.deepness / 2) { player.hit.wallz(back - player.hit.deepness); } } } if (player.hit.punchtime == 1 && player.hit.kicktime != 1 && !player.hit.holdbarrel && !player.hit.air && player.hit.movement == 'attack') { player.hit.movement = 'pickup'; player.hit.holdbarrel = true; player.hit.barrelheld = _parent; player.hit.movetime = 6; pickupable = false; } } if (_parent.barrel.punchable.hitTest(player.guy.carry.hit)) { if (lasthit != player.hit.attack) { hurt(player.hit.damager); lasthit = player.hit.attack; wiggle = 5; if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } } if (explode) { _parent.gotoAndStop(2 + style); pickupable = false; } else { if (thrown) { _parent.barrel._alpha = 100; _parent._x += xspeed; _parent._y += yspeed; yspeed += 3; _parent.barrel._rotation += spin; } else { if (unseen) { _parent.barrel._alpha = 0; } else { if (!pickupable) { unseen = true; } else { _parent._y += yspeed; yspeed += 3; } } } } if (Math.abs(wiggle) > 0.5) { wiggle *= -0.7; } _parent.barrel._y = z - 43; _parent.barrel._x = z / 10 + wiggle; _parent.barrel.gotoAndStop(style); _parent.swapDepths(10000 + z * 100 - did); } } } instance of movieClip 1721 { onClipEvent (load) { function barrel(other) { if (other.hit.hitTest(this) && Math.abs(other.hit.z - _parent.hit.z) < 60) { if (_parent != other) { if (other.hit.thrown) { other.hit.explode = true; } else { if (other.hit.pickupable) { other.hit.explode = true; } } } } } function enemy(one) { if (one.hitTest(this) && Math.abs(one.z - _parent.hit.z) < one.deepness + 60) { if (one.movement != 'down' && one.movement != 'dead') { one.hurt(15, 0, 48); } } } player = _root.level.player; time = 5; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (time > 0) { time -= 1; if (player.hit.hitTest(this) && Math.abs(player.hit.z - _parent.hit.z) < player.hit.deepness + 60) { player.hit.hurt(10, 50); } enemy(_root.level.enemy1.hit); enemy(_root.level.enemy2.hit); enemy(_root.level.enemy3.hit); enemy(_root.level.enemy4.hit); enemy(_root.level.enemy5.hit); enemy(_root.level.enemy6.hit); enemy(_root.level.enemy7.hit); enemy(_root.level.enemy8.hit); if (time == 1) { barrel(_root.level.barrel1); barrel(_root.level.barrel2); barrel(_root.level.barrel3); barrel(_root.level.barrel4); barrel(_root.level.barrel5); barrel(_root.level.barrel6); barrel(_root.level.barrel7); barrel(_root.level.barrel8); barrel(_root.level.barrel9); barrel(_root.level.barrel10); } } } } } instance carry of movieClip 1873 { onClipEvent (load) { _y = _parent.hit.z - 58; } onClipEvent (enterFrame) { if (_root.gamepause) { stop(); } else { play(); } } } instance carry of movieClip 4922 { onClipEvent (load) { _y = _parent.hit.z - 58; } onClipEvent (enterFrame) { if (_root.gamepause) { stop(); } else { play(); } } } } movieClip 4924 { instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 4925 { instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 4926 { instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 4927 { instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } frame 10 { prevFrame(); } } movieClip 4928 { instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } instance object of movieClip 4909 { onClipEvent (load) { gotoAndStop(_root.level.player.hit.barrelheld.hit.style); } } } movieClip 4929 { } movieClip 4930 { } movieClip 4931 { } movieClip 4932 { frame 11 { prevFrame(); } } movieClip 4933 { } movieClip 4934 { } movieClip 4935 { } movieClip 4936 { } movieClip 4937 { frame 11 { prevFrame(); } } movieClip 4938 { } movieClip 4939 { instance carry of movieClip 4927 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(31); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(32); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(31); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(31); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(37); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(37); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } } instance carry of movieClip 2572 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(39); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(3); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(3); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(13); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(59); } } } instance carry of movieClip 2622 { } instance carry of movieClip 2645 { } instance carry of movieClip 2880 { onClipEvent (enterFrame) { if (Key.isDown(68) && _root.pause == false) { _root.hobo.gotoAndStop(39); } else { if (Key.isDown(65) && _root.pause == false) { _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { _root.hobo.gotoAndStop(3); } else { if (Key.isDown(83) && _root.pause == false) { _root.hobo.gotoAndStop(3); } } } } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.punchallowed = false; _root.hobo.gotoAndStop(5); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.kickallowed = false; _root.hobo.gotoAndStop(13); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(59); } } } instance carry of movieClip 3001 { onClipEvent (enterFrame) { if (Key.isDown(65) && Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(2); } else { if (Key.isDown(87) && _root.pause == false) { } else { if (Key.isDown(83) && _root.pause == false) { } else { if (Key.isDown(68) && _root.pause == false) { } else { if (_root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } } } } } onClipEvent (enterFrame) { if (Key.isDown(68) == false && _root.pause == false) { _root.run = false; _root.hobo.gotoAndStop(7); } } onClipEvent (enterFrame) { if (Key.isDown(68) && _root.hobo._x > 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 40; _root.bg2._x -= 40; _root.fg1._x -= 60; _root.fg2._x -= 60; _root.fb1._x -= 20; _root.fb2._x -= 20; _root.trashcan._x -= 40; _root.trashcan2._x -= 40; _root.tire._x -= 40; _root.bottle1._x -= 40; _root.bottle2._x -= 40; _root.bottle3._x -= 40; _root.bottle4._x -= 40; _root.prop1._x -= 40; _root.prop2._x -= 40; _root.prop3._x -= 40; _root.prop4._x -= 40; _root.prop5._x -= 40; _root.enemy1._x -= 40; _root.enemy2._x -= 40; _root.enemy3._x -= 40; _root.enemy4._x -= 40; _root.enemy5._x -= 40; _root.hobo._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x == 200 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 200 && _root.hobo._x > 180 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.bg1._x -= 20; _root.bg2._x -= 20; _root.fg1._x -= 30; _root.fg2._x -= 30; _root.fb1._x -= 10; _root.fb2._x -= 10; _root.trashcan._x -= 20; _root.trashcan2._x -= 20; _root.tire._x -= 20; _root.bottle1._x -= 20; _root.bottle2._x -= 20; _root.bottle3._x -= 20; _root.bottle4._x -= 20; _root.prop1._x -= 20; _root.prop2._x -= 20; _root.prop3._x -= 20; _root.prop4._x -= 20; _root.prop5._x -= 20; _root.enemy1._x -= 20; _root.enemy2._x -= 20; _root.enemy3._x -= 20; _root.enemy4._x -= 20; _root.enemy5._x -= 20; } else { if (Key.isDown(68) && _root.hobo._x < 181 && _root.rightallowed == true && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } else { if (Key.isDown(68) && _root.rightallowed == false && _root.rightblock == false && _root.pause == false) { _root.hobo._x += 18; } } } } } } onClipEvent (enterFrame) { if (Key.isDown(87) && _root.upallowed == true && _root.pause == false) { _root.hobo._y -= 3; _root.bg1._y += 3; _root.bg2._y += 3; _root.fg1._y += 6; _root.fg2._y += 6; _root.fb1._y += 1.5; _root.fb2._y += 1.5; _root.trashcan._y += 3; _root.trashcan2._y += 3; _root.tire._y += 3; _root.bottle1._y += 3; _root.bottle2._y += 3; _root.bottle3._y += 3; _root.bottle4._y += 3; _root.prop1._y += 3; _root.prop2._y += 3; _root.prop3._y += 3; _root.prop4._y += 3; _root.prop5._y += 3; _root.enemy1._y += 3; _root.enemy2._y += 3; _root.enemy3._y += 3; _root.enemy4._y += 3; _root.enemy5._y += 3; } } onClipEvent (enterFrame) { if (Key.isDown(83) && _root.downallowed == true && _root.pause == false) { _root.hobo._y += 3; _root.bg1._y -= 3; _root.bg2._y -= 3; _root.fg1._y -= 6; _root.fg2._y -= 6; _root.fb1._y -= 1.5; _root.fb2._y -= 1.5; _root.trashcan._y -= 3; _root.trashcan2._y -= 3; _root.tire._y -= 3; _root.bottle1._y -= 3; _root.bottle2._y -= 3; _root.bottle3._y -= 3; _root.bottle4._y -= 3; _root.prop1._y -= 3; _root.prop2._y -= 3; _root.prop3._y -= 3; _root.prop4._y -= 3; _root.prop5._y -= 3; _root.enemy1._y -= 3; _root.enemy2._y -= 3; _root.enemy3._y -= 3; _root.enemy4._y -= 3; _root.enemy5._y -= 3; } } onClipEvent (enterFrame) { if (Key.isDown(72) && _root.punchallowed == true && _root.pause == false) { _root.run = false; _root.punchallowed = false; _root.hobo.gotoAndStop(9); } } onClipEvent (enterFrame) { if (Key.isDown(72) == false) { _root.punchallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(74) && _root.kickallowed == true && _root.pause == false) { _root.run = false; _root.kickallowed = false; _root.hobo.gotoAndStop(17); } } onClipEvent (enterFrame) { if (Key.isDown(74) == false) { _root.kickallowed = true; } } onClipEvent (enterFrame) { if (Key.isDown(75) && _root.pause == false) { _root.hobo.gotoAndStop(61); } } } } movieClip 4940 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function attackstats(stat1, stat2, stat3, stat4, stat5, stat6, stat7) { attack = stat1; movetime = stat2; damager = stat3; stuntime = stat4; knockback = stat5; knockdown = stat6; knockup = stat7; } function stoprun() { if (robot == 2 && running == 2) { if (movement == 'free') { exitroll = 3; } spinjump = false; } running = 1; runtime = 0; } function hurt(damage, stuntime) { if (movement != 'hurt' && movement != 'down' && movement != 'dead' && invuln == 0) { _root.hp -= damage * damrat; attack = 'none'; barrelheld.hit.drop(); barrelheld = 'none'; holdbarrel = false; if (movement == 'transform' && movetime <= 7) { trans(gobot); } if (_root.hp <= 0) { _root.lives -= 1; movement = 'dead'; alive = false; if (_root.lives >= 0) { movetime = 30; _root.performdesp = true; } else { movetime = 12500; _root.gameover = true; } } else { if (stuntime > 0) { movement = 'down'; movetime = 7 + stuntime; } else { movement = 'hurt'; movetime = 7; } } } } function trans(bot) { if (bot == 1) { robot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; } else { if (bot == 2) { robot = 2; xmax = 6; zmax = 3; _xscale = 200; deepness = 12; jump = -24; damrat = 0.8; } else { if (bot == 3) { robot = 3; xmax = 8; zmax = 4; _xscale = 150; deepness = 10; jump = -30; damrat = 1.2; } } } tallness = _height; fatness = _width / 2; } function resetshadow() { if (robot == 1) { shadrat = 1; } else { if (robot == 2) { shadrat = 1.2; } else { if (robot == 3) { shadrat = 0.8; } } } shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } if (_root.currentLevel == 1) { robot = 1; bot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; z = -55; } if (_root.currentLevel == 2 || _root.currentLevel == 3 || _root.currentLevel == 4) { z = -80; if (_root.transitionbot == 1) { robot = 1; bot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; } if (_root.transitionbot == 2) { robot = 2; bot = 2; xmax = 6; zmax = 3; _xscale = 200; deepness = 12; jump = -24; damrat = 0.8; } if (_root.transitionbot == 3) { robot = 3; bot = 3; xmax = 8; zmax = 4; _xscale = 150; deepness = 10; jump = -30; damrat = 1.2; } } if (_root.currentLevel == 5 || _root.currentLevel == 6) { z = -115; if (_root.transitionbot == 1) { robot = 1; bot = 1; xmax = 10; zmax = 5; _xscale = 150; deepness = 10; jump = -27; damrat = 1; } if (_root.transitionbot == 2) { robot = 2; bot = 2; xmax = 6; zmax = 3; _xscale = 200; deepness = 12; jump = -24; damrat = 0.8; } if (_root.transitionbot == 3) { robot = 3; bot = 3; xmax = 8; zmax = 4; _xscale = 150; deepness = 10; jump = -30; damrat = 1.2; } } direct = 1; runtime = 0; running = 1; xspeed = 0; yspeed = 0; zspeed = 0; air = false; tallness = _height; fatness = _width / 2; movement = 'free'; movetime = 0; attack = 'none'; holdbarrel = false; barrelheld = 'none'; windowtime = 5; exitroll = 0; invuln = 0; alive = true; guy = _parent.guy; shade = _parent._parent.shade; desptimer = 0; } onClipEvent (enterFrame) { if (Key.isDown(88) || Key.isDown(27)) { if (_root.oktopause == true) { if (_root.gameover == false) { if (_root.levComp == false) { if (_root.pauser._currentframe == 1) { _root.pauser.play(); _root.gamepause = true; } else { if (_root.pauser._currentframe == 23 && _root.conapp == false) { _root.pauser.play(); } } } } } } if (_root.pauser._currentframe == 45) { _root.gamepause = false; } if (!_root.gamepause) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (Key.isDown(39) && movement == 'free' && _root.dontmovedown == false) { xmove += 1; if (xspeed <= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (Key.isDown(37) && movement == 'free' && _root.dontmovedown == false) { xmove -= 1; if (xspeed >= 0) { stoprun(); } if (runtime < 3 && runtime > 0 && !holdbarrel) { running = 2; } runtime = 4; } if (Key.isDown(38) && movement == 'free' && _root.dontmovedown == false) { zmove -= 1; } if (Key.isDown(40) && movement == 'free' && _root.dontmovedown == false) { zmove += 1; } if (xmove != 0) { xspeed = xmove * xmax * running; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } if (runtime > 0 && !air) { runtime -= 1; if (runtime == 0) { stoprun(); } } else { if (!air) { stoprun(); } } punch = false; kick = false; if (_root.performdesp == false) { if (Key.isDown(68) && _root.dontmovedown == false) { punch = true; punchtime += 1; } if (Key.isDown(83) && _root.dontmovedown == false) { kick = true; kicktime += 1; } if (movement == 'free' && !punch && !kick && _root.dontmovedown == false) { if (Key.isDown(65)) { if (jumpkey) { if (robot == 1 && holdbarrel) { } else { if (robot == 3 && holdbarrel) { } else { if (!air) { yspeed = jump; air = true; if (running == 2) { spinjump = true; } else { spinjump = false; } } } } } jumpkey = false; } else { jumpkey = true; } } else { if (!air) { jumpkey = true; } } if (!air) { spinjump = false; } if (movement == 'free' && holdbarrel == false && !air && _root.dontmovedown == false) { if (Key.isDown(81) && robot != 1) { punch = false; kick = false; gobot = 1; movement = 'transform'; movetime = 14; invuln = 8; } else { if (Key.isDown(87) && robot != 2) { punch = false; kick = false; gobot = 2; movement = 'transform'; movetime = 14; invuln = 8; } else { if (Key.isDown(69) && robot != 3) { punch = false; kick = false; gobot = 3; movement = 'transform'; movetime = 14; invuln = 8; } } } } } if (!punch) { punchtime = 0; } if (!kick) { kicktime = 0; } if (robot == 2 && running == 2 && movement == 'free') { attackstats('roll', 0, 1, 12, 10, 0, 0); } else { if (movement != 'attack') { attack = 'none'; stuntime = 0; knockdown = 0; knockup = 0; } } if (movement != 'free' && movement != 'attack') { } else { if (holdbarrel) { if (kicktime == 1 && !air) { movement = 'putdown'; movetime = 11; attack = 'none'; } else { if (punchtime == 1) { movement = 'throw'; movetime = 6; barrelheld.hit.toss(); barrelheld = 'none'; holdbarrel = false; } } } else { if (robot == 1) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 13, 5, 0, 20, 12, 20); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && attack != 'desp' && _root.hp > 1) { attackstats('desp', 13, 5, 0, 20, 12, 20); } else { if (air && attack == 'none') { attackstats('jp', 12, 4, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 9, 5, 5, 7, 0, 0); } else { if (attack == 'none') { attackstats('p1', 5, 1, 0, 1, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p3') { attackstats('p4', 5, 3, 2, 12, 4, 0); } else { if (attack == 'p2') { attackstats('p3', 5, 2, 0, 1, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 6, 1, 0, 1, 0, 0); } else { if (attack == 'pk') { if (_root.a17 == true) { attackstats('pkp', 15, 14, 8, 20, 36, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k2') { if (_root.a8 == true) { attackstats('k2p', 11, 8, 5, 14, 12, 16); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } else { if (attack == 'k1') { if (_root.a2 == true) { attackstats('kp', 12, 5, 7, 2, 0, 0); } else { attackstats('p1', 5, 1, 0, 1, 0, 0); } } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 3, 0, 7, 12 + Math.abs(xspeed * 2), 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 11, 6, 0, 10, 24, 0); } else { if (attack == 'none') { attackstats('k1', 8, 2, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 8, 3, 2, 2, 0, 0); } else { if (attack == 'k1') { attackstats('k2', 8, 2, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a11 == true) { attackstats('p2k', 12, 10, 5, 18, 24, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a5 == true) { attackstats('pk', 10, 6, 8, 8, 0, 10); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a14 == true) { attackstats('kpk', 22, 12, 6, 20, 36, 0); } else { attackstats('k1', 8, 2, 0, 3, 0, 0); } } else { if (attack == 'rp') { attackstats('rk', 11, 6, 0, 10, 24, 0); xspeed = direct * xmax * 2; } } } } } } } } } } } } } else { if (robot == 2) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 15, 5, 0, 20, 12, 0); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 15, 5, 0, 20, 12, 0); } else { if (air && attack == 'none') { attackstats('jp', 12, 5, 3, 8, 0, 0); stoprun(); } else { if (running == 2 && !air) { attackstats('rp', 11, 7, 5, 9, 0, 0); } else { if (attack == 'none') { attackstats('p1', 14, 5, 9, 5, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 14, 5, 5, 4, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 14, 5, 5, 2, 0, 0); } else { if (attack == 'pk') { if (_root.a16 == true) { attackstats('pkp', 32, 3, 0, 3, 0, 3); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k2') { if (_root.a7 == true) { attackstats('k2p', 15, 8, 5, 15, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } else { if (attack == 'k1') { if (_root.a1 == true) { attackstats('kp', 14, 1, 4, 1, 0, 0); } else { attackstats('p1', 14, 5, 9, 5, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 4, 0, 8, 0, 0); stoprun(); } else { if (running == 2 && !air) { attackstats('rk', 11, 6, 0, 9, 36, 0); } else { if (attack == 'none') { attackstats('k1', 14, 3, 5, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 14, 3, 5, 12, 4, 0); } else { if (attack == 'k1') { attackstats('k2', 14, 3, 5, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a10 == true) { attackstats('p2k', 28, 10, 7, 16, 24, 14); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a4 == true) { attackstats('pk', 16, 2, 0, 1, 0, 2); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a13 == true) { attackstats('kpk', 21, 3, 0, 1, 0, 0); } else { attackstats('k1', 14, 3, 5, 3, 0, 0); } } } } } } } } } } } } } else { if (robot == 3) { if (_root.performdesp == true) { ++desptimer; if (desptimer == 10) { _root.dontdamage = true; punchtime = 1; kicktime = 1; movement = 'attack'; attackstats('desp', 11, 5, 0, 20, 12, 8); _root.performdesp = false; desptimer = 0; } } if (punchtime == 1) { movement = 'attack'; if (kicktime == 1 && _root.hp > 1) { attackstats('desp', 11, 5, 0, 20, 12, 8); } else { if (air && attack == 'none') { attackstats('jp', 12, 3, 3, 8, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rp', 11, 4, 7, 10, 10, 12); } else { if (attack == 'none') { attackstats('p1', 11, 1, 1, 2, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'p2') { attackstats('p3', 10, 2, 2, 5, 0, 0); } else { if (attack == 'p1') { attackstats('p2', 10, 2, 3, 3, 0, 0); } else { if (attack == 'pk') { if (_root.a18 == true) { attackstats('pkp', 14, 12, 0, 10, 0, 24); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } else { if (attack == 'k2') { if (_root.a9 == true) { attackstats('k2p', 15, 7, 6, 12, 14, 0); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } else { if (attack == 'k1') { if (_root.a3 == true) { attackstats('kp', 13, 5, 7, 2, 0, 0); } else { attackstats('p1', 11, 1, 1, 2, 0, 0); } } } } } } } } } } } } else { if (kicktime == 1) { movement = 'attack'; if (air && attack == 'none') { attackstats('jk', 12, 2, 5, 7, 0, 0); spinjump = false; } else { if (running == 2) { attackstats('rk', 12, 3, 5, 5, 0, 0); } else { if (attack == 'none') { attackstats('k1', 10, 1, 0, 3, 0, 0); } else { if (movetime <= windowtime) { if (attack == 'k2') { attackstats('k3', 10, 2, 2, 12, 4, 0); } else { if (attack == 'k1') { attackstats('k2', 10, 1, 0, 4, 0, 0); } else { if (attack == 'p2') { if (_root.a12 == true) { attackstats('p2k', 21, 9, 6, 14, 24, 0); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'p1') { if (_root.a6 == true) { attackstats('pk', 9, 6, 8, 8, 0, 6); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } else { if (attack == 'kp') { if (_root.a15 == true) { attackstats('kpk', 19, 2, 5, -2, 0, 4); } else { attackstats('k1', 10, 2, 0, 3, 0, 0); } } } } } } } } } } } } } } } } } if (!air) { if (attack == 'jp') { movement = 'free'; attack = 'none'; } else { if (attack == 'jk') { movement = 'free'; attack = 'none'; } } } _parent._x += xspeed; z += zspeed; if (air && movement == 'attack') { } else { if (attack == 'rk' && movetime > 6) { } else { if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } } } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; if (running == 2 && robot == 2) { spinjump = true; } } yspeed += 3; if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'pickup') { movement = 'free'; } else { if (movement == 'throw') { movement = 'free'; } else { if (movement == 'putdown') { movement = 'free'; barrelheld.hit.putdown(); barrelheld = 'none'; holdbarrel = false; } else { if (movement == 'hurt') { movement = 'free'; invuln = 4; } else { if (movement == 'dead') { movement = 'free'; _root.hp = _root.maxhp; _parent._y -= 400; invuln = 75; alive = true; } else { if (movement == 'transform') { movement = 'free'; trans(gobot); } else { if (movement == 'down') { movement = 'getup'; movetime = 7; } else { if (movement == 'getup') { movement = 'free'; invuln = 4; } } } } } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (_parent._x < _parent._parent.leftlim + 20) { _parent._x = _parent._parent.leftlim + 20; stoprun(); } else { if (_parent._x > _parent._parent.rightlim - 20) { _parent._x = _parent._parent.rightlim - 20; stoprun(); } } resetshadow(); if (invuln > 0) { invuln -= 1; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100); if (movement == 'transform') { if (gobot == 1) { goframe = 31; } else { if (gobot == 2) { goframe = 32; } else { if (gobot == 3) { goframe = 33; } } } } else { if (movement == 'pickup') { goframe = 23; } else { if (movement == 'throw') { goframe = 26; } else { if (movement == 'putdown') { goframe = 28; } else { if (movement == 'hurt') { goframe = 29; } else { if (movement == 'dead') { goframe = 30; } else { if (air) { if (holdbarrel) { goframe = 27; } else { if (attack == 'jp') { goframe = 21; } else { if (attack == 'jk') { goframe = 22; } else { if (!spinjump) { goframe = 4; } else { goframe = 5; if (robot == 2) { goframe = 3; } } } } } } else { if (holdbarrel) { if (Math.abs(xspeed) > 0) { goframe = 25; } else { if (Math.abs(zspeed) > 0) { goframe = 25; } else { goframe = 24; } } } else { if (movement == 'down') { goframe = 35; } else { if (movement == 'getup') { goframe = 36; } else { if (movement == 'attack') { if (attack == 'p1') { goframe = 6; } else { if (attack == 'p2') { goframe = 7; } else { if (attack == 'p3') { goframe = 8; } else { if (attack == 'p4') { goframe = 9; } else { if (attack == 'k1') { goframe = 10; } else { if (attack == 'k2') { goframe = 11; } else { if (attack == 'k3') { goframe = 12; } else { if (attack == 'p2k') { goframe = 13; } else { if (attack == 'pk') { goframe = 14; } else { if (attack == 'pkp') { goframe = 15; } else { if (attack == 'k2p') { goframe = 16; } else { if (attack == 'kp') { goframe = 17; } else { if (attack == 'kpk') { goframe = 18; } else { if (attack == 'rp') { goframe = 19; } else { if (attack == 'rk') { goframe = 20; } else { if (attack == 'desp') { goframe = 34; } } } } } } } } } } } } } } } } } else { if (exitroll > 0) { exitroll -= 1; goframe = 37; } else { if (Math.abs(xspeed) > xmax) { goframe = 3; } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } } } } } } } guy.gotoAndStop(goframe + 60 * (robot - 1)); } } } instance guy of movieClip 4939 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 4941 { } movieClip 4942 { frame 1 { bar.sign.gotoAndStop(_root.passFront); bar.signBG.gotoAndStop(_root.passBack); } } movieClip 4943 { } movieClip 4944 { frame 1 { bar.sign.gotoAndStop(_root.passFront2); bar.signBG.gotoAndStop(_root.passBack2); } } movieClip 4945 { } movieClip 4946 { } movieClip 4947 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 20; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; if (_root.level.phase == 7 && player.hit.robot == 1) { mycolour = 1; } else { if (_root.level.phase == 7 && player.hit.robot == 2) { mycolour = 2; } else { if (_root.level.phase == 7 && player.hit.robot == 3) { mycolour = 3; } else { mycolour = random(3) + 1; } } } if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 0; healthType = 20; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 20; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 4946 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 4951 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4967 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myhead + (_parent._parent._parent.hit.mycolour - 1) * 5); } 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(); } } movieClip 4968 { } movieClip 4969 { } movieClip 4975 { } movieClip 4976 { frame 8 { prevFrame(); } } movieClip 4983 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 4984 { } movieClip 4985 { frame 9 { prevFrame(); } } movieClip 4986 { frame 8 { prevFrame(); } } movieClip 4993 { } movieClip 4999 { } movieClip 5000 { frame 7 { prevFrame(); } } movieClip 5001 { } movieClip 5002 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 30; walklessen = 2; knockmore = random(26); xmax = 8 - walklessen; zmax = 4 - walklessen; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; mycolour = random(3) + 1; if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 30; healthType = 30; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 30; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 8; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 0) { player.hit.hurt(8 / _root.turboMulti, 1); punchtime = 22; } else { player.hit.hurt(6 / _root.turboMulti, 0); punchtime = 16; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 140) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 140) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 140) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 140) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5001 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5004 { } movieClip 5016 { frame 43 { stop(); } frame 44 { stop(); } frame 45 { prevFrame(); } } movieClip 5017 { } movieClip 5018 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5017 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5073 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a8taken == true) { ablearned._alpha = 100; } else { _root.a8taken = true; _root.savefile.data.a8taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5074 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5129 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a9taken == true) { ablearned._alpha = 100; } else { _root.a9taken = true; _root.savefile.data.a9taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5130 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5185 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a10taken == true) { ablearned._alpha = 100; } else { _root.a10taken = true; _root.savefile.data.a10taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5186 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5241 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a11taken == true) { ablearned._alpha = 100; } else { _root.a11taken = true; _root.savefile.data.a11taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5242 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5251 { } movieClip 5252 { } movieClip 5253 { instance shade of movieClip 1783 { onClipEvent (load) { guy = _root.level.player; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade6 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade7 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade8 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy8; } } instance barrel1 of movieClip 4923 { onClipEvent (load) { z = -195; style = 1; } } instance barrel4 of movieClip 4923 { onClipEvent (load) { z = -190; style = 1; } } instance barrel2 of movieClip 4923 { onClipEvent (load) { z = -195; style = 1; } } instance barrel3 of movieClip 4923 { onClipEvent (load) { z = -195; style = 1; } } instance barrel5 of movieClip 4923 { onClipEvent (load) { z = -190; style = 1; } } instance enemy1 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade4; } } instance enemy5 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade8; } } instance vort1 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort2 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort3 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort4 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort5 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort6 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort7 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort8 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort9 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort10 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort11 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort12 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort13 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort14 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance vort15 of movieClip 5018 { onClipEvent (load) { shade = _root.level.shade1; } } instance of movieClip 3283 { onClipEvent (load) { z = -60; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -150; } } instance of movieClip 5074 { onClipEvent (load) { z = -64; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3561 { onClipEvent (load) { z = -115; } } instance of movieClip 5130 { onClipEvent (load) { z = -125; style = 1; } } instance of movieClip 5186 { onClipEvent (load) { z = -151; } } instance of movieClip 3283 { onClipEvent (load) { z = -140; style = 1; } } instance of movieClip 3379 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -140; style = 1; } } instance of movieClip 5242 { onClipEvent (load) { z = -208; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } } instance level of movieClip 5253 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 800; newlim = 800; gotoy = 0; phase = 0; betweenTimer = 0; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (_root.phase0timer == 130) { phase = 1; } if (phase == 1) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 900, 450, -20); _root.spawn('standard', -100, 450, -20); _root.enemies = 2; phase = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } else { if (phase == 2) { if (_root.enemies == 0) { newlim = 2500; leftlim = 0; phase = 3; _root.gosign.timer = 50; } } else { if (phase == 3) { if (player._x > 2100) { if (_root.enemies == 0) { leftlim = 1700; newlim = 2500; _root.spawn('standard', 2600, 450, -80); _root.enemies = 1; phase = 4; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } } else { if (phase == 4) { if (_root.enemies == 0) { _root.spawn('standard', 1800, 0, -30); _root.spawn('standard', 2600, 450, -120); _root.enemies = 2; phase = 5; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 5) { if (_root.enemies == 0) { leftlim = 1700; newlim = 3650; phase = 6; _root.gosign.timer = 50; } } else { if (phase == 6) { if (player._x > 3250) { leftlim = 2850; newlim = 3650; phase = 7; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 2770, 0, -40); _root.spawn('standard', 2770, 0, -80); _root.spawn('standard', 3750, 0, -60); _root.enemies = 3; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 7) { if (_root.enemies == 0) { leftlim = 2850; newlim = 4600; phase = 8; _root.gosign.timer = 50; } } else { if (phase == 8) { if (player._x > 4200) { leftlim = 3800; newlim = 4600; phase = 9; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 4000, 0, -30); _root.spawn('standard', 4400, 0, -30); _root.spawn('standard', 3900, 0, -30); _root.spawn('standard', 4500, 0, -30); _root.enemies = 4; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 9) { if (_root.enemies == 0) { leftlim = 3800; newlim = 5565; phase = 10; _root.gosign.timer = 50; } } else { if (phase == 10) { if (player._x > 5165) { leftlim = 4765; newlim = 5565; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 5660, 450, -100); _root.spawn('standard', 5650, 450, -30); _root.enemies = 2; phase = 11; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 11) { if (_root.enemies == 0) { _root.spawn('standard', 5400, 0, -80); _root.spawn('standard', 4900, 0, -80); _root.enemies = 2; phase = 12; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 12) { if (_root.enemies == 0) { leftlim = 4765; newlim = 6380; phase = 13; _root.gosign.timer = 50; } } else { if (phase == 13) { if (player._x > 5980) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.bossShow = true; _root.bossDead = false; stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss3loop'); _root.backgroundMusic.start(0, 999999); leftlim = 5580; newlim = 6380; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); rand1stat1 = random(600) + 5680; rand1stat2 = -random(150) + 2; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); _root.spawn('standard', rand1stat1, 450, rand1stat2); _root.enemies = 1; phase = 14; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 14) { if (_root.enemies == 0) { phase = 15; } } else { if (phase == 15 && _root.betweenTimer == 40) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); rand1stat1 = random(600) + 5680; rand1stat2 = -random(150) + 2; rand2stat1 = random(600) + 5680; rand2stat2 = -random(150) + 2; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); _root.spawn('standard', rand1stat1, 450, rand1stat2); _root.spawnvort('standard', rand2stat1, 450, rand2stat2); _root.spawn('standard', rand2stat1, 450, rand2stat2); _root.enemies = 2; phase = 16; } } else { if (phase == 16) { if (_root.enemies == 0) { phase = 17; } } else { if (phase == 17 && _root.betweenTimer == 40) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); rand1stat1 = random(600) + 5680; rand1stat2 = -random(150) + 2; rand2stat1 = random(600) + 5680; rand2stat2 = -random(150) + 2; rand3stat1 = random(600) + 5680; rand3stat2 = -random(150) + 2; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); _root.spawn('standard', rand1stat1, 450, rand1stat2); _root.spawnvort('standard', rand2stat1, 450, rand2stat2); _root.spawn('standard', rand2stat1, 450, rand2stat2); _root.spawnvort('standard', rand3stat1, 450, rand3stat2); _root.spawn('standard', rand3stat1, 450, rand3stat2); _root.enemies = 3; phase = 18; } } else { if (phase == 18) { if (_root.enemies == 0) { phase = 19; } } else { if (phase == 19 && _root.betweenTimer == 40) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); rand1stat1 = random(600) + 5680; rand1stat2 = -random(150) + 2; rand2stat1 = random(600) + 5680; rand2stat2 = -random(150) + 2; rand3stat1 = random(600) + 5680; rand3stat2 = -random(150) + 2; rand4stat1 = random(600) + 5680; rand4stat2 = -random(150) + 2; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); _root.spawn('standard', rand1stat1, 450, rand1stat2); _root.spawnvort('standard', rand2stat1, 450, rand2stat2); _root.spawn('standard', rand2stat1, 450, rand2stat2); _root.spawnvort('standard', rand3stat1, 450, rand3stat2); _root.spawn('standard', rand3stat1, 450, rand3stat2); _root.spawnvort('standard', rand4stat1, 450, rand4stat2); _root.spawn('standard', rand4stat1, 450, rand4stat2); _root.enemies = 4; phase = 20; } } else { if (phase == 20) { if (_root.enemies == 0) { phase = 21; } } else { if (phase == 21 && _root.betweenTimer == 40) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); rand1stat1 = random(600) + 5680; rand1stat2 = -random(150) + 2; rand2stat1 = random(600) + 5680; rand2stat2 = -random(150) + 2; rand3stat1 = random(600) + 5680; rand3stat2 = -random(150) + 2; rand4stat1 = random(600) + 5680; rand4stat2 = -random(150) + 2; rand5stat1 = random(600) + 5680; rand5stat2 = -random(150) + 2; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); _root.spawn('standard', rand1stat1, 450, rand1stat2); _root.spawnvort('standard', rand2stat1, 450, rand2stat2); _root.spawn('standard', rand2stat1, 450, rand2stat2); _root.spawnvort('standard', rand3stat1, 450, rand3stat2); _root.spawn('standard', rand3stat1, 450, rand3stat2); _root.spawnvort('standard', rand4stat1, 450, rand4stat2); _root.spawn('standard', rand4stat1, 450, rand4stat2); _root.spawnvort('standard', rand5stat1, 450, rand5stat2); _root.spawn('standard', rand5stat1, 450, rand5stat2); _root.enemies = 5; phase = 22; } } else { if (phase == 22) { if (_root.enemies == 0) { leftlim = 5580; newlim = 6672; phase = 23; _root.bossDead = true; stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level3loop'); _root.backgroundMusic.start(0, 999999); } } } } } } } } } } } } } } } } } } } } } } } } } movieClip 5255 { } movieClip 5257 { frame 24 { _root.dontmovedown = false; } frame 31 { stop(); } } movieClip 5259 { } movieClip 5260 { frame 3 { if (this._alpha == 100 && _root.gamepause == false) { _root.goSound = new Sound(); _root.goSound.attachSound('gosound'); _root.goSound.start(); } } } instance gosign of movieClip 5260 { onClipEvent (enterFrame) { if (timer > 0) { timer -= 1; if (timer == 0) { _alpha = 100; gotoAndPlay(1); } } if (_root.showability == true) { gotoAndStop(20); } else { play(); } } } instance hp1 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } movieClip 5272 { } movieClip 5279 { frame 1 { stop(); } frame 2 { stopAllSounds(); if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 7 { _root.level.player._alpha = 0; } frame 17 { if (_root.medal11 == false) { _root.medal11 = true; _root.savefile.data.medal11 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 124 { _root.gotoAndStop('puzzle2'); } } movieClip 5281 { } movieClip 5284 { } movieClip 5285 { } movieClip 5286 { } movieClip 5288 { } movieClip 5291 { } movieClip 5292 { } movieClip 5293 { } movieClip 5294 { frame 1 { _root.oktopause = false; } frame 17 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level3loop'); _root.backgroundMusic.start(0, 999999); } frame 31 { _root.oktopause = true; } frame 147 { stop(); } } frame 16 { stop(); } movieClip 5295 { frame 4 { if (_root.currentLevel == 1) { _root.gotoAndStop('level1'); } if (_root.currentLevel == 2) { _root.gotoAndStop('level2'); } if (_root.currentLevel == 3) { _root.gotoAndStop('level3'); } if (_root.currentLevel == 4) { _root.gotoAndStop('level4'); } if (_root.currentLevel == 5) { _root.gotoAndStop('level5'); } if (_root.currentLevel == 6) { _root.gotoAndStop('level6'); } if (_root.currentLevel == 7) { _root.gotoAndStop('level7'); } } } frame 17 { stop(); } movieClip 5298 { } movieClip 5299 { frame 1 { stop(); _root.passBackGuess = 1; } frame 8 { stop(); _root.passBackGuess = 2; } frame 15 { stop(); _root.passBackGuess = 3; } frame 22 { stop(); _root.passBackGuess = 4; } frame 29 { stop(); _root.passBackGuess = 5; } frame 36 { stop(); _root.passBackGuess = 6; } frame 43 { stop(); _root.passBackGuess = 7; } frame 50 { stop(); _root.passBackGuess = 8; } frame 57 { stop(); _root.passBackGuess = 9; } frame 64 { stop(); _root.passBackGuess = 10; } frame 71 { stop(); _root.passBackGuess = 11; } frame 78 { stop(); _root.passBackGuess = 12; } frame 85 { stop(); _root.passBackGuess = 13; } frame 92 { stop(); _root.passBackGuess = 14; } frame 99 { stop(); _root.passBackGuess = 15; } frame 106 { stop(); _root.passBackGuess = 16; } frame 113 { stop(); _root.passBackGuess = 17; } frame 120 { stop(); _root.passBackGuess = 18; } frame 127 { stop(); _root.passBackGuess = 19; } frame 134 { stop(); _root.passBackGuess = 20; } frame 141 { stop(); _root.passBackGuess = 21; } frame 148 { stop(); _root.passBackGuess = 22; } frame 155 { stop(); _root.passBackGuess = 23; } frame 162 { stop(); _root.passBackGuess = 24; } frame 169 { gotoAndStop(1); _root.passBackGuess = 1; } } movieClip 5300 { frame 1 { stop(); _root.passBack2Guess = 1; } frame 8 { stop(); _root.passBack2Guess = 2; } frame 15 { stop(); _root.passBack2Guess = 3; } frame 22 { stop(); _root.passBack2Guess = 4; } frame 29 { stop(); _root.passBack2Guess = 5; } frame 36 { stop(); _root.passBack2Guess = 6; } frame 43 { stop(); _root.passBack2Guess = 7; } frame 50 { stop(); _root.passBack2Guess = 8; } frame 57 { stop(); _root.passBack2Guess = 9; } frame 64 { stop(); _root.passBack2Guess = 10; } frame 71 { stop(); _root.passBack2Guess = 11; } frame 78 { stop(); _root.passBack2Guess = 12; } frame 85 { stop(); _root.passBack2Guess = 13; } frame 92 { stop(); _root.passBack2Guess = 14; } frame 99 { stop(); _root.passBack2Guess = 15; } frame 106 { stop(); _root.passBack2Guess = 16; } frame 113 { stop(); _root.passBack2Guess = 17; } frame 120 { stop(); _root.passBack2Guess = 18; } frame 127 { stop(); _root.passBack2Guess = 19; } frame 134 { stop(); _root.passBack2Guess = 20; } frame 141 { stop(); _root.passBack2Guess = 21; } frame 148 { stop(); _root.passBack2Guess = 22; } frame 155 { stop(); _root.passBack2Guess = 23; } frame 162 { stop(); _root.passBack2Guess = 24; } frame 169 { gotoAndStop(1); _root.passBack2Guess = 1; } } movieClip 5303 { } movieClip 5304 { frame 1 { stop(); _root.passFrontGuess = 24; } frame 8 { stop(); _root.passFrontGuess = 23; } frame 15 { stop(); _root.passFrontGuess = 22; } frame 22 { stop(); _root.passFrontGuess = 21; } frame 29 { stop(); _root.passFrontGuess = 20; } frame 36 { stop(); _root.passFrontGuess = 19; } frame 43 { stop(); _root.passFrontGuess = 18; } frame 50 { stop(); _root.passFrontGuess = 17; } frame 57 { stop(); _root.passFrontGuess = 16; } frame 64 { stop(); _root.passFrontGuess = 15; } frame 71 { stop(); _root.passFrontGuess = 14; } frame 78 { stop(); _root.passFrontGuess = 13; } frame 85 { stop(); _root.passFrontGuess = 12; } frame 92 { stop(); _root.passFrontGuess = 11; } frame 99 { stop(); _root.passFrontGuess = 10; } frame 106 { stop(); _root.passFrontGuess = 9; } frame 113 { stop(); _root.passFrontGuess = 8; } frame 120 { stop(); _root.passFrontGuess = 7; } frame 127 { stop(); _root.passFrontGuess = 6; } frame 134 { stop(); _root.passFrontGuess = 5; } frame 141 { stop(); _root.passFrontGuess = 4; } frame 148 { stop(); _root.passFrontGuess = 3; } frame 155 { stop(); _root.passFrontGuess = 2; } frame 162 { stop(); _root.passFrontGuess = 1; } frame 169 { gotoAndStop(1); _root.passFrontGuess = 24; } } movieClip 5305 { frame 1 { stop(); _root.passFront2Guess = 24; } frame 8 { stop(); _root.passFront2Guess = 23; } frame 15 { stop(); _root.passFront2Guess = 22; } frame 22 { stop(); _root.passFront2Guess = 21; } frame 29 { stop(); _root.passFront2Guess = 20; } frame 36 { stop(); _root.passFront2Guess = 19; } frame 43 { stop(); _root.passFront2Guess = 18; } frame 50 { stop(); _root.passFront2Guess = 17; } frame 57 { stop(); _root.passFront2Guess = 16; } frame 64 { stop(); _root.passFront2Guess = 15; } frame 71 { stop(); _root.passFront2Guess = 14; } frame 78 { stop(); _root.passFront2Guess = 13; } frame 85 { stop(); _root.passFront2Guess = 12; } frame 92 { stop(); _root.passFront2Guess = 11; } frame 99 { stop(); _root.passFront2Guess = 10; } frame 106 { stop(); _root.passFront2Guess = 9; } frame 113 { stop(); _root.passFront2Guess = 8; } frame 120 { stop(); _root.passFront2Guess = 7; } frame 127 { stop(); _root.passFront2Guess = 6; } frame 134 { stop(); _root.passFront2Guess = 5; } frame 141 { stop(); _root.passFront2Guess = 4; } frame 148 { stop(); _root.passFront2Guess = 3; } frame 155 { stop(); _root.passFront2Guess = 2; } frame 162 { stop(); _root.passFront2Guess = 1; } frame 169 { gotoAndStop(1); _root.passFront2Guess = 24; } } movieClip 5312 { frame 48 { stop(); } frame 95 { stop(); _root.puzzstart.gotoAndPlay('start'); } frame 142 { stop(); _root.puzzstart.gotoAndPlay('start'); } frame 189 { stop(); _root.puzzstart.gotoAndPlay('start'); } frame 242 { stop(); ++_root.lives; if (_root.medal8 == false) { _root.medal8 = true; _root.savefile.data.medal8 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } _root.puzzstart.gotoAndPlay('start'); } } movieClip 5316 { frame 8 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('elev1'); _root.backgroundMusic.start(0, 999999); } frame 48 { stop(); } } movieClip 5321 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 5325 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 5329 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 5332 { } movieClip 5333 { } movieClip 5335 { } movieClip 5337 { } movieClip 5339 { } movieClip 5341 { } movieClip 5343 { } movieClip 5344 { frame 48 { _root.cantpressbut = false; stop(); } } movieClip 5345 { frame 1 { stop(); } frame 3 { _root.cantpressbut = true; } frame 21 { _root.cantpressbut = false; gotoAndStop(1); } frame 23 { _root.cantpressbut = true; } frame 32 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 41 { _root.cantpressbut = false; gotoAndStop(1); } frame 43 { _root.cantpressbut = true; } frame 52 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 61 { _root.cantpressbut = false; gotoAndStop(1); } frame 63 { _root.cantpressbut = true; } frame 72 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 81 { _root.cantpressbut = false; gotoAndStop(1); } frame 83 { _root.cantpressbut = true; } frame 101 { _root.cantpressbut = false; gotoAndStop(1); } frame 103 { _root.cantpressbut = true; } frame 121 { _root.cantpressbut = false; gotoAndStop(1); } frame 123 { _root.cantpressbut = true; } frame 132 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 141 { _root.cantpressbut = false; gotoAndStop(1); } frame 143 { _root.cantpressbut = true; } frame 152 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 161 { _root.cantpressbut = false; gotoAndStop(1); } frame 163 { _root.cantpressbut = true; } frame 172 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 181 { _root.cantpressbut = false; gotoAndStop(1); } frame 183 { _root.cantpressbut = true; } frame 201 { _root.cantpressbut = false; gotoAndStop(1); } frame 203 { _root.cantpressbut = true; } frame 221 { _root.cantpressbut = true; --_root.passFrontGuess; if (_root.passFrontGuess == 0) { _root.passFrontGuess = 24; } --_root.passBackGuess; if (_root.passBackGuess == 0) { _root.passBackGuess = 24; } ++_root.passFront2Guess; if (_root.passFront2Guess == 25) { _root.passFront2Guess = 1; } ++_root.passBack2Guess; if (_root.passBack2Guess == 25) { _root.passBack2Guess = 1; } if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { barrelGuess = true; } else { barrelGuess = false; } if (_root.passFront2Guess == _root.passFront2 && _root.passBack2Guess == _root.passBack2) { shieldGuess = true; } else { shieldGuess = false; } if (barrelGuess == true && shieldGuess == true) { _root.elev.marker.gotoAndPlay('success'); } else { if (barrelGuess == false && shieldGuess == true) { _root.elev.marker.gotoAndPlay('fail1'); } else { if (barrelGuess == true && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail2'); } else { if (barrelGuess == false && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail3'); } } } } gotoAndStop(1); } frame 223 { _root.cantpressbut = true; } frame 241 { _root.cantpressbut = false; gotoAndStop(1); } frame 243 { _root.cantpressbut = true; } frame 252 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 261 { _root.cantpressbut = false; gotoAndStop(1); } frame 263 { _root.cantpressbut = true; } frame 272 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 281 { _root.cantpressbut = false; gotoAndStop(1); } frame 283 { _root.cantpressbut = true; } frame 292 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 301 { _root.cantpressbut = false; gotoAndStop(1); } frame 303 { _root.cantpressbut = true; } frame 321 { _root.cantpressbut = false; gotoAndStop(1); } frame 323 { _root.cantpressbut = true; } frame 341 { _root.cantpressbut = false; gotoAndStop(1); } frame 343 { _root.cantpressbut = true; } frame 352 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 361 { _root.cantpressbut = false; gotoAndStop(1); } frame 363 { _root.cantpressbut = true; } frame 372 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 381 { _root.cantpressbut = false; gotoAndStop(1); } frame 383 { _root.cantpressbut = true; } frame 392 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 401 { _root.cantpressbut = false; gotoAndStop(1); } frame 403 { _root.cantpressbut = true; } frame 421 { _root.cantpressbut = false; gotoAndStop(1); } frame 423 { _root.cantpressbut = true; } frame 441 { _root.cantpressbut = true; --_root.passFrontGuess; if (_root.passFrontGuess == 0) { _root.passFrontGuess = 24; } --_root.passBackGuess; if (_root.passBackGuess == 0) { _root.passBackGuess = 24; } ++_root.passFront2Guess; if (_root.passFront2Guess == 25) { _root.passFront2Guess = 1; } ++_root.passBack2Guess; if (_root.passBack2Guess == 25) { _root.passBack2Guess = 1; } if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { barrelGuess = true; } else { barrelGuess = false; } if (_root.passFront2Guess == _root.passFront2 && _root.passBack2Guess == _root.passBack2) { shieldGuess = true; } else { shieldGuess = false; } if (barrelGuess == true && shieldGuess == true) { _root.elev.marker.gotoAndPlay('success'); } else { if (barrelGuess == false && shieldGuess == true) { _root.elev.marker.gotoAndPlay('fail1'); } else { if (barrelGuess == true && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail2'); } else { if (barrelGuess == false && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail3'); } } } } gotoAndStop(1); } frame 443 { _root.cantpressbut = true; } frame 461 { _root.cantpressbut = false; gotoAndStop(1); } frame 463 { _root.cantpressbut = true; } frame 472 { if (_root.elev.bgs2._currentframe == 1) { _root.elev.bgs2.gotoAndPlay('to2'); } if (_root.elev.bgs2._currentframe == 8) { _root.elev.bgs2.gotoAndPlay('to3'); } if (_root.elev.bgs2._currentframe == 15) { _root.elev.bgs2.gotoAndPlay('to4'); } if (_root.elev.bgs2._currentframe == 22) { _root.elev.bgs2.gotoAndPlay('to5'); } if (_root.elev.bgs2._currentframe == 29) { _root.elev.bgs2.gotoAndPlay('to6'); } if (_root.elev.bgs2._currentframe == 36) { _root.elev.bgs2.gotoAndPlay('to7'); } if (_root.elev.bgs2._currentframe == 43) { _root.elev.bgs2.gotoAndPlay('to8'); } if (_root.elev.bgs2._currentframe == 50) { _root.elev.bgs2.gotoAndPlay('to9'); } if (_root.elev.bgs2._currentframe == 57) { _root.elev.bgs2.gotoAndPlay('to10'); } if (_root.elev.bgs2._currentframe == 64) { _root.elev.bgs2.gotoAndPlay('to11'); } if (_root.elev.bgs2._currentframe == 71) { _root.elev.bgs2.gotoAndPlay('to12'); } if (_root.elev.bgs2._currentframe == 78) { _root.elev.bgs2.gotoAndPlay('to13'); } if (_root.elev.bgs2._currentframe == 85) { _root.elev.bgs2.gotoAndPlay('to14'); } if (_root.elev.bgs2._currentframe == 92) { _root.elev.bgs2.gotoAndPlay('to15'); } if (_root.elev.bgs2._currentframe == 99) { _root.elev.bgs2.gotoAndPlay('to16'); } if (_root.elev.bgs2._currentframe == 106) { _root.elev.bgs2.gotoAndPlay('to17'); } if (_root.elev.bgs2._currentframe == 113) { _root.elev.bgs2.gotoAndPlay('to18'); } if (_root.elev.bgs2._currentframe == 120) { _root.elev.bgs2.gotoAndPlay('to19'); } if (_root.elev.bgs2._currentframe == 127) { _root.elev.bgs2.gotoAndPlay('to20'); } if (_root.elev.bgs2._currentframe == 134) { _root.elev.bgs2.gotoAndPlay('to21'); } if (_root.elev.bgs2._currentframe == 141) { _root.elev.bgs2.gotoAndPlay('to22'); } if (_root.elev.bgs2._currentframe == 148) { _root.elev.bgs2.gotoAndPlay('to23'); } if (_root.elev.bgs2._currentframe == 155) { _root.elev.bgs2.gotoAndPlay('to24'); } if (_root.elev.bgs2._currentframe == 162) { _root.elev.bgs2.gotoAndPlay('to1'); } } frame 481 { _root.cantpressbut = false; gotoAndStop(1); } frame 483 { _root.cantpressbut = true; } frame 492 { if (_root.elev.bgs3._currentframe == 1) { _root.elev.bgs3.gotoAndPlay('to2'); } if (_root.elev.bgs3._currentframe == 8) { _root.elev.bgs3.gotoAndPlay('to3'); } if (_root.elev.bgs3._currentframe == 15) { _root.elev.bgs3.gotoAndPlay('to4'); } if (_root.elev.bgs3._currentframe == 22) { _root.elev.bgs3.gotoAndPlay('to5'); } if (_root.elev.bgs3._currentframe == 29) { _root.elev.bgs3.gotoAndPlay('to6'); } if (_root.elev.bgs3._currentframe == 36) { _root.elev.bgs3.gotoAndPlay('to7'); } if (_root.elev.bgs3._currentframe == 43) { _root.elev.bgs3.gotoAndPlay('to8'); } if (_root.elev.bgs3._currentframe == 50) { _root.elev.bgs3.gotoAndPlay('to9'); } if (_root.elev.bgs3._currentframe == 57) { _root.elev.bgs3.gotoAndPlay('to10'); } if (_root.elev.bgs3._currentframe == 64) { _root.elev.bgs3.gotoAndPlay('to11'); } if (_root.elev.bgs3._currentframe == 71) { _root.elev.bgs3.gotoAndPlay('to12'); } if (_root.elev.bgs3._currentframe == 78) { _root.elev.bgs3.gotoAndPlay('to13'); } if (_root.elev.bgs3._currentframe == 85) { _root.elev.bgs3.gotoAndPlay('to14'); } if (_root.elev.bgs3._currentframe == 92) { _root.elev.bgs3.gotoAndPlay('to15'); } if (_root.elev.bgs3._currentframe == 99) { _root.elev.bgs3.gotoAndPlay('to16'); } if (_root.elev.bgs3._currentframe == 106) { _root.elev.bgs3.gotoAndPlay('to17'); } if (_root.elev.bgs3._currentframe == 113) { _root.elev.bgs3.gotoAndPlay('to18'); } if (_root.elev.bgs3._currentframe == 120) { _root.elev.bgs3.gotoAndPlay('to19'); } if (_root.elev.bgs3._currentframe == 127) { _root.elev.bgs3.gotoAndPlay('to20'); } if (_root.elev.bgs3._currentframe == 134) { _root.elev.bgs3.gotoAndPlay('to21'); } if (_root.elev.bgs3._currentframe == 141) { _root.elev.bgs3.gotoAndPlay('to22'); } if (_root.elev.bgs3._currentframe == 148) { _root.elev.bgs3.gotoAndPlay('to23'); } if (_root.elev.bgs3._currentframe == 155) { _root.elev.bgs3.gotoAndPlay('to24'); } if (_root.elev.bgs3._currentframe == 162) { _root.elev.bgs3.gotoAndPlay('to1'); } } frame 501 { _root.cantpressbut = false; gotoAndStop(1); } frame 503 { _root.cantpressbut = true; } frame 512 { if (_root.elev.bgs4._currentframe == 1) { _root.elev.bgs4.gotoAndPlay('to2'); } if (_root.elev.bgs4._currentframe == 8) { _root.elev.bgs4.gotoAndPlay('to3'); } if (_root.elev.bgs4._currentframe == 15) { _root.elev.bgs4.gotoAndPlay('to4'); } if (_root.elev.bgs4._currentframe == 22) { _root.elev.bgs4.gotoAndPlay('to5'); } if (_root.elev.bgs4._currentframe == 29) { _root.elev.bgs4.gotoAndPlay('to6'); } if (_root.elev.bgs4._currentframe == 36) { _root.elev.bgs4.gotoAndPlay('to7'); } if (_root.elev.bgs4._currentframe == 43) { _root.elev.bgs4.gotoAndPlay('to8'); } if (_root.elev.bgs4._currentframe == 50) { _root.elev.bgs4.gotoAndPlay('to9'); } if (_root.elev.bgs4._currentframe == 57) { _root.elev.bgs4.gotoAndPlay('to10'); } if (_root.elev.bgs4._currentframe == 64) { _root.elev.bgs4.gotoAndPlay('to11'); } if (_root.elev.bgs4._currentframe == 71) { _root.elev.bgs4.gotoAndPlay('to12'); } if (_root.elev.bgs4._currentframe == 78) { _root.elev.bgs4.gotoAndPlay('to13'); } if (_root.elev.bgs4._currentframe == 85) { _root.elev.bgs4.gotoAndPlay('to14'); } if (_root.elev.bgs4._currentframe == 92) { _root.elev.bgs4.gotoAndPlay('to15'); } if (_root.elev.bgs4._currentframe == 99) { _root.elev.bgs4.gotoAndPlay('to16'); } if (_root.elev.bgs4._currentframe == 106) { _root.elev.bgs4.gotoAndPlay('to17'); } if (_root.elev.bgs4._currentframe == 113) { _root.elev.bgs4.gotoAndPlay('to18'); } if (_root.elev.bgs4._currentframe == 120) { _root.elev.bgs4.gotoAndPlay('to19'); } if (_root.elev.bgs4._currentframe == 127) { _root.elev.bgs4.gotoAndPlay('to20'); } if (_root.elev.bgs4._currentframe == 134) { _root.elev.bgs4.gotoAndPlay('to21'); } if (_root.elev.bgs4._currentframe == 141) { _root.elev.bgs4.gotoAndPlay('to22'); } if (_root.elev.bgs4._currentframe == 148) { _root.elev.bgs4.gotoAndPlay('to23'); } if (_root.elev.bgs4._currentframe == 155) { _root.elev.bgs4.gotoAndPlay('to24'); } if (_root.elev.bgs4._currentframe == 162) { _root.elev.bgs4.gotoAndPlay('to1'); } } frame 521 { _root.cantpressbut = false; gotoAndStop(1); } frame 523 { _root.cantpressbut = true; } frame 541 { _root.cantpressbut = false; gotoAndStop(1); } frame 543 { _root.cantpressbut = true; } frame 561 { _root.cantpressbut = false; gotoAndStop(1); } frame 563 { _root.cantpressbut = true; } frame 572 { if (_root.elev.s2._currentframe == 1) { _root.elev.s2.gotoAndPlay('to23'); } if (_root.elev.s2._currentframe == 8) { _root.elev.s2.gotoAndPlay('to22'); } if (_root.elev.s2._currentframe == 15) { _root.elev.s2.gotoAndPlay('to21'); } if (_root.elev.s2._currentframe == 22) { _root.elev.s2.gotoAndPlay('to20'); } if (_root.elev.s2._currentframe == 29) { _root.elev.s2.gotoAndPlay('to19'); } if (_root.elev.s2._currentframe == 36) { _root.elev.s2.gotoAndPlay('to18'); } if (_root.elev.s2._currentframe == 43) { _root.elev.s2.gotoAndPlay('to17'); } if (_root.elev.s2._currentframe == 50) { _root.elev.s2.gotoAndPlay('to16'); } if (_root.elev.s2._currentframe == 57) { _root.elev.s2.gotoAndPlay('to15'); } if (_root.elev.s2._currentframe == 64) { _root.elev.s2.gotoAndPlay('to14'); } if (_root.elev.s2._currentframe == 71) { _root.elev.s2.gotoAndPlay('to13'); } if (_root.elev.s2._currentframe == 78) { _root.elev.s2.gotoAndPlay('to12'); } if (_root.elev.s2._currentframe == 85) { _root.elev.s2.gotoAndPlay('to11'); } if (_root.elev.s2._currentframe == 92) { _root.elev.s2.gotoAndPlay('to10'); } if (_root.elev.s2._currentframe == 99) { _root.elev.s2.gotoAndPlay('to9'); } if (_root.elev.s2._currentframe == 106) { _root.elev.s2.gotoAndPlay('to8'); } if (_root.elev.s2._currentframe == 113) { _root.elev.s2.gotoAndPlay('to7'); } if (_root.elev.s2._currentframe == 120) { _root.elev.s2.gotoAndPlay('to6'); } if (_root.elev.s2._currentframe == 127) { _root.elev.s2.gotoAndPlay('to5'); } if (_root.elev.s2._currentframe == 134) { _root.elev.s2.gotoAndPlay('to4'); } if (_root.elev.s2._currentframe == 141) { _root.elev.s2.gotoAndPlay('to3'); } if (_root.elev.s2._currentframe == 148) { _root.elev.s2.gotoAndPlay('to2'); } if (_root.elev.s2._currentframe == 155) { _root.elev.s2.gotoAndPlay('to1'); } if (_root.elev.s2._currentframe == 162) { _root.elev.s2.gotoAndPlay('to24'); } } frame 581 { _root.cantpressbut = false; gotoAndStop(1); } frame 583 { _root.cantpressbut = true; } frame 592 { if (_root.elev.s3._currentframe == 1) { _root.elev.s3.gotoAndPlay('to23'); } if (_root.elev.s3._currentframe == 8) { _root.elev.s3.gotoAndPlay('to22'); } if (_root.elev.s3._currentframe == 15) { _root.elev.s3.gotoAndPlay('to21'); } if (_root.elev.s3._currentframe == 22) { _root.elev.s3.gotoAndPlay('to20'); } if (_root.elev.s3._currentframe == 29) { _root.elev.s3.gotoAndPlay('to19'); } if (_root.elev.s3._currentframe == 36) { _root.elev.s3.gotoAndPlay('to18'); } if (_root.elev.s3._currentframe == 43) { _root.elev.s3.gotoAndPlay('to17'); } if (_root.elev.s3._currentframe == 50) { _root.elev.s3.gotoAndPlay('to16'); } if (_root.elev.s3._currentframe == 57) { _root.elev.s3.gotoAndPlay('to15'); } if (_root.elev.s3._currentframe == 64) { _root.elev.s3.gotoAndPlay('to14'); } if (_root.elev.s3._currentframe == 71) { _root.elev.s3.gotoAndPlay('to13'); } if (_root.elev.s3._currentframe == 78) { _root.elev.s3.gotoAndPlay('to12'); } if (_root.elev.s3._currentframe == 85) { _root.elev.s3.gotoAndPlay('to11'); } if (_root.elev.s3._currentframe == 92) { _root.elev.s3.gotoAndPlay('to10'); } if (_root.elev.s3._currentframe == 99) { _root.elev.s3.gotoAndPlay('to9'); } if (_root.elev.s3._currentframe == 106) { _root.elev.s3.gotoAndPlay('to8'); } if (_root.elev.s3._currentframe == 113) { _root.elev.s3.gotoAndPlay('to7'); } if (_root.elev.s3._currentframe == 120) { _root.elev.s3.gotoAndPlay('to6'); } if (_root.elev.s3._currentframe == 127) { _root.elev.s3.gotoAndPlay('to5'); } if (_root.elev.s3._currentframe == 134) { _root.elev.s3.gotoAndPlay('to4'); } if (_root.elev.s3._currentframe == 141) { _root.elev.s3.gotoAndPlay('to3'); } if (_root.elev.s3._currentframe == 148) { _root.elev.s3.gotoAndPlay('to2'); } if (_root.elev.s3._currentframe == 155) { _root.elev.s3.gotoAndPlay('to1'); } if (_root.elev.s3._currentframe == 162) { _root.elev.s3.gotoAndPlay('to24'); } } frame 601 { _root.cantpressbut = false; gotoAndStop(1); } frame 603 { _root.cantpressbut = true; } frame 612 { if (_root.elev.s4._currentframe == 1) { _root.elev.s4.gotoAndPlay('to23'); } if (_root.elev.s4._currentframe == 8) { _root.elev.s4.gotoAndPlay('to22'); } if (_root.elev.s4._currentframe == 15) { _root.elev.s4.gotoAndPlay('to21'); } if (_root.elev.s4._currentframe == 22) { _root.elev.s4.gotoAndPlay('to20'); } if (_root.elev.s4._currentframe == 29) { _root.elev.s4.gotoAndPlay('to19'); } if (_root.elev.s4._currentframe == 36) { _root.elev.s4.gotoAndPlay('to18'); } if (_root.elev.s4._currentframe == 43) { _root.elev.s4.gotoAndPlay('to17'); } if (_root.elev.s4._currentframe == 50) { _root.elev.s4.gotoAndPlay('to16'); } if (_root.elev.s4._currentframe == 57) { _root.elev.s4.gotoAndPlay('to15'); } if (_root.elev.s4._currentframe == 64) { _root.elev.s4.gotoAndPlay('to14'); } if (_root.elev.s4._currentframe == 71) { _root.elev.s4.gotoAndPlay('to13'); } if (_root.elev.s4._currentframe == 78) { _root.elev.s4.gotoAndPlay('to12'); } if (_root.elev.s4._currentframe == 85) { _root.elev.s4.gotoAndPlay('to11'); } if (_root.elev.s4._currentframe == 92) { _root.elev.s4.gotoAndPlay('to10'); } if (_root.elev.s4._currentframe == 99) { _root.elev.s4.gotoAndPlay('to9'); } if (_root.elev.s4._currentframe == 106) { _root.elev.s4.gotoAndPlay('to8'); } if (_root.elev.s4._currentframe == 113) { _root.elev.s4.gotoAndPlay('to7'); } if (_root.elev.s4._currentframe == 120) { _root.elev.s4.gotoAndPlay('to6'); } if (_root.elev.s4._currentframe == 127) { _root.elev.s4.gotoAndPlay('to5'); } if (_root.elev.s4._currentframe == 134) { _root.elev.s4.gotoAndPlay('to4'); } if (_root.elev.s4._currentframe == 141) { _root.elev.s4.gotoAndPlay('to3'); } if (_root.elev.s4._currentframe == 148) { _root.elev.s4.gotoAndPlay('to2'); } if (_root.elev.s4._currentframe == 155) { _root.elev.s4.gotoAndPlay('to1'); } if (_root.elev.s4._currentframe == 162) { _root.elev.s4.gotoAndPlay('to24'); } } frame 621 { _root.cantpressbut = false; gotoAndStop(1); } frame 623 { _root.cantpressbut = true; } frame 641 { _root.cantpressbut = false; gotoAndStop(1); } frame 643 { _root.cantpressbut = true; } frame 661 { _root.cantpressbut = true; --_root.passFrontGuess; if (_root.passFrontGuess == 0) { _root.passFrontGuess = 24; } --_root.passBackGuess; if (_root.passBackGuess == 0) { _root.passBackGuess = 24; } ++_root.passFront2Guess; if (_root.passFront2Guess == 25) { _root.passFront2Guess = 1; } ++_root.passBack2Guess; if (_root.passBack2Guess == 25) { _root.passBack2Guess = 1; } if (_root.passFrontGuess == _root.passFront && _root.passBackGuess == _root.passBack) { barrelGuess = true; } else { barrelGuess = false; } if (_root.passFront2Guess == _root.passFront2 && _root.passBack2Guess == _root.passBack2) { shieldGuess = true; } else { shieldGuess = false; } if (barrelGuess == true && shieldGuess == true) { _root.elev.marker.gotoAndPlay('success'); } else { if (barrelGuess == false && shieldGuess == true) { _root.elev.marker.gotoAndPlay('fail1'); } else { if (barrelGuess == true && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail2'); } else { if (barrelGuess == false && shieldGuess == false) { _root.elev.marker.gotoAndPlay('fail3'); } } } } gotoAndStop(1); } } movieClip 5346 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5348 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5350 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5351 { frame 1 { stop(); if (_root.gotBarrel == true) { headB.gotoAndStop(2); } else { headB.stop(); } } frame 2 { stop(); if (_root.gotBarrel == true) { headY.gotoAndStop(2); } else { headY.stop(); } } frame 3 { stop(); if (_root.gotBarrel == true) { headR.gotoAndStop(2); } else { headR.stop(); } } } button 5352 { on (rollOver) { l2b.useHandCursor = false; l2slot.gotoAndStop(2); } on (rollOut) { l2slot.gotoAndStop(1); } on (dragOut) { l2slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressleft2'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressleft2'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressleft2'); } } } } button 5353 { on (rollOver) { d2b.useHandCursor = false; d2slot.gotoAndStop(2); } on (rollOut) { d2slot.gotoAndStop(1); } on (dragOut) { d2slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressdown2'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressdown2'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressdown2'); } } } } button 5354 { on (rollOver) { l4b.useHandCursor = false; l4slot.gotoAndStop(2); } on (rollOut) { l4slot.gotoAndStop(1); } on (dragOut) { l4slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressleft4'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressleft4'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressleft4'); } } } } button 5355 { on (rollOver) { d4b.useHandCursor = false; d4slot.gotoAndStop(2); } on (rollOut) { d4slot.gotoAndStop(1); } on (dragOut) { d4slot.gotoAndStop(1); } on (release) { if (_root.cantpressbut == false) { if (_root.transitionbot == 1) { hand.gotoAndPlay('r1pressdown4'); } if (_root.transitionbot == 2) { hand.gotoAndPlay('r2pressdown4'); } if (_root.transitionbot == 3) { hand.gotoAndPlay('r3pressdown4'); } } } } movieClip 5356 { frame 1 { stop(); _root.cantpressbut = true; s2.gotoAndStop('p10'); bgs2.gotoAndStop('p16'); s4.gotoAndStop('p16'); bgs4.gotoAndStop('p20'); rstill.gotoAndStop(_root.transitionbot); } } movieClip 5357 { frame 14 { stop(); } frame 30 { _root.gotoAndStop('achingame'); } } frame 18 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { if (_root.bossShow == true) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } else { if (level.phase == 1) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (level.phase == 7 && !level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (level.phase == 7 && level.enemy6.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (level.phase == 11 && !level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { level.enemy1.hit.newguy(guytype, startx, starty, startz); } } } } } } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } stop(); _root.currentLevel = 4; _root.levelbeaten = false; _root.dontmovedown = true; _root.bossHealthOn = false; _root.bossShow = false; _root.phase0timer = 0; if (_root.levelReplayed == true) { lives = rememberLives; _root.levelReplayed = false; } else { rememberLives = lives; } did = 1; hp = 100; maxhp = 100; turbo = 0; turboTimer = 0; turboMulti = 1; _root.passFront = random(24) + 1; _root.passBack = random(24) + 1; _root.passFront2 = random(24) + 1; _root.passBack2 = random(24) + 1; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.enemies < 0) { _root.enemies = 0; } ++_root.phase0timer; if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } } }; } movieClip 5359 { } movieClip 5361 { } movieClip 5369 { } movieClip 5371 { } movieClip 5372 { instance hit of movieClip 5371 { onClipEvent (enterFrame) { if (_root.levelbeaten == true) { _parent._alpha = 0; } else { if (_parent.guy.hit.movement == 'dead') { _parent._alpha = 0; } else { if (!_parent.guy.hit.alive) { _parent._alpha = 0; } else { _parent._x = _parent.guy._x; _parent._alpha = 100; } } } } } } movieClip 5374 { } movieClip 5375 { instance hit of movieClip 1721 { onClipEvent (enterFrame) { if (_parent.guy.hit.movement == 'dead') { _parent._alpha = 0; } else { if (!_parent.guy.hit.alive) { _parent._alpha = 0; } else { _parent._x = _parent.guy._x; _parent._alpha = 100; } } } } } movieClip 5379 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 5383 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myhead + (_parent._parent._parent.hit.mycolour - 1) * 5); } 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(); } } movieClip 5387 { frame 1 { gotoAndStop(_parent._parent._parent.hit.mycolour); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 5388 { } movieClip 5389 { } movieClip 5390 { frame 47 { prevFrame(); } } movieClip 5397 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 17 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 19 { stop(); } frame 20 { prevFrame(); } } movieClip 5398 { frame 103 { prevFrame(); } } movieClip 5399 { frame 8 { prevFrame(); } } movieClip 5400 { } movieClip 5401 { frame 7 { prevFrame(); } } movieClip 5402 { } movieClip 5403 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy - 90; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy - 90; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy - 90; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy - 90; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 10; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; mycolour = random(3) + 1; if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 45; healthType = 10; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 10; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5402 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5405 { } movieClip 5407 { } movieClip 5409 { } movieClip 5411 { } movieClip 5413 { } movieClip 5414 { } movieClip 5415 { } movieClip 5423 { } movieClip 5424 { frame 8 { prevFrame(); } } movieClip 5431 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 5432 { } movieClip 5433 { frame 9 { prevFrame(); } } movieClip 5434 { frame 8 { prevFrame(); } } movieClip 5440 { } movieClip 5447 { } movieClip 5448 { frame 7 { prevFrame(); } } movieClip 5450 { } movieClip 5451 { } movieClip 5452 { } movieClip 5453 { } movieClip 5454 { } movieClip 5455 { frame 8 { prevFrame(); } } movieClip 5462 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 5463 { } movieClip 5464 { frame 9 { prevFrame(); } } movieClip 5465 { frame 8 { prevFrame(); } } movieClip 5471 { } movieClip 5472 { frame 7 { prevFrame(); } } movieClip 5473 { } movieClip 5474 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; _root.hp4.timer = fulltimer; } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead' && attacktype != 2 && movement != 'change') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; _root.bossDead = true; _root.bhs.gotoAndPlay('hide'); stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level4loop'); _root.backgroundMusic.start(0, 999999); } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 300; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; mycolour = 2; enemyColour = 2; } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } changehappen = false; did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 30; healthType = 300; var shotTimer = 0; var donthurt; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 300; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 8; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { ++shotTimer; if (movement != 'dead') { if (hp < 150 && changehappen == false) { changehappen = true; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } if (shotTimer == 100 || shotTimer == 300 || shotTimer == 500 || shotTimer == 700 || shotTimer == 900 || shotTimer == 1100 || shotTimer == 1300 || shotTimer == 1500 || shotTimer == 1700 || shotTimer == 1900 || shotTimer == 2100 || shotTimer == 2300 || shotTimer == 2500 || shotTimer == 2700 || shotTimer == 2900 || shotTimer == 3100 || shotTimer == 3300 || shotTimer == 3500 || shotTimer == 3700 || shotTimer == 3900 || shotTimer == 4100 || shotTimer == 4300 || shotTimer == 4500 || shotTimer == 4700 || shotTimer == 4900) { if (movement != 'change') { movement = 'attack'; attacktype = 2; movetime = 20; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 2) { player.hit.hurt(10 / _root.turboMulti, 3); punchtime = 20; } else { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 8; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 150) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 150) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(2); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 150) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 150) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(2); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'change') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { if (changehappen == false) { goframe = 4; } else { goframe = 24; } } else { ++_root.blockingTimes; if (changehappen == false) { goframe = 11; } else { goframe = 31; } } } else { if (movement == 'dead') { if (changehappen == false) { goframe = 5; } else { goframe = 25; } } else { if (movement == 'change') { goframe = 12; } else { if (movement == 'down') { if (blockMode == false) { if (changehappen == false) { goframe = 7; } else { goframe = 27; } } else { if (changehappen == false) { goframe = 11; } else { goframe = 31; } } } else { if (movement == 'getup') { if (changehappen == false) { goframe = 8; } else { goframe = 28; } } else { if (air) { if (changehappen == false) { goframe = 6; } else { goframe = 26; } } else { if (movement == 'attack') { if (attacktype == 0) { if (changehappen == false) { goframe = 3; } else { goframe = 23; } } else { if (attacktype == 1) { if (changehappen == false) { goframe = 9; } else { goframe = 29; } } else { if (changehappen == false) { goframe = 10; } else { goframe = 30; } } } } else { if (Math.abs(xspeed) > 0) { if (changehappen == false) { goframe = 2; } else { goframe = 22; } } else { if (Math.abs(zspeed) > 0) { if (changehappen == false) { goframe = 2; } else { goframe = 22; } } else { if (changehappen == false) { goframe = 1; } else { goframe = 21; } } } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5473 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5529 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a12taken == true) { ablearned._alpha = 100; } else { _root.a12taken = true; _root.savefile.data.a12taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5530 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5585 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a13taken == true) { ablearned._alpha = 100; } else { _root.a13taken = true; _root.savefile.data.a13taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5586 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5641 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a14taken == true) { ablearned._alpha = 100; } else { _root.a14taken = true; _root.savefile.data.a14taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5642 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5697 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a15taken == true) { ablearned._alpha = 100; } else { _root.a15taken = true; _root.savefile.data.a15taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 5698 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { takable = false; } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 5699 { instance shade of movieClip 5372 { onClipEvent (load) { guy = _root.level.player; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade6 of movieClip 5375 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade7 of movieClip 5375 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade8 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy8; } } instance barrel1 of movieClip 4923 { onClipEvent (load) { z = -195; style = 1; } } instance barrel4 of movieClip 4923 { onClipEvent (load) { z = -160; style = 1; } } instance barrel2 of movieClip 4923 { onClipEvent (load) { z = -195; style = 1; } } instance barrel3 of movieClip 4923 { onClipEvent (load) { z = -175; style = 1; } } instance barrel5 of movieClip 4923 { onClipEvent (load) { z = -175; style = 1; } } instance enemy1 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade4; } } instance enemy5 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 5403 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 5403 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 5474 { onClipEvent (load) { shade = _root.level.shade8; } } instance of movieClip 5530 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3393 { onClipEvent (load) { z = -64; } } instance of movieClip 3561 { onClipEvent (load) { z = -115; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 5586 { onClipEvent (load) { z = -63; } } instance of movieClip 5642 { onClipEvent (load) { z = -206; } } instance of movieClip 5698 { onClipEvent (load) { z = -206; } } instance of movieClip 3283 { onClipEvent (load) { z = -206; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } instance of movieClip 3283 { onClipEvent (load) { z = -195; style = 1; } } } instance level of movieClip 5699 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 800; newlim = 800; gotoy = 0; phase = 0; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x <= 1200) { gotoy = 0; } if (player._x > 1200) { gotoy = 100; } if (player._x > 2400) { gotoy = 200; } if (player._x > 3700) { gotoy = 300; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (_root.phase0timer == 120) { phase = 1; } if (phase == 1) { newlim = 800; leftlim = 0; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; eagleSound = new Sound(); eagleSound.attachSound('eagle'); eagleSound.start(0, 1); _root.spawn('standard', 900, 450, -50); _root.enemies = 1; phase = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } else { if (phase == 2) { if (_root.enemies == 0) { newlim = 2080; leftlim = 0; phase = 3; _root.gosign.timer = 50; } } else { if (phase == 3) { if (player._x > 1680) { leftlim = 1280; newlim = 2080; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.spawn('standard', 1220, 100, -80); _root.spawn('standard', 2140, 100, -80); _root.enemies = 2; phase = 4; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 4) { if (_root.enemies == 0) { _root.spawn('standard', 1320, 0, -140); _root.spawn('standard', 1680, 0, -180); _root.spawn('standard', 2040, 0, -140); _root.enemies = 3; phase = 5; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 5) { if (_root.enemies == 0) { _root.spawn('standard', 1560, 0, -180); _root.spawn('standard', 1800, 0, -180); _root.enemies = 2; phase = 6; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 6) { if (_root.enemies == 0) { leftlim = 1280; newlim = 3250; phase = 7; _root.gosign.timer = 50; } } else { if (phase == 7) { if (player._x > 2850) { leftlim = 2450; newlim = 3250; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; eagleSound = new Sound(); eagleSound.attachSound('eagle'); eagleSound.start(0, 1); _root.spawn('standard', 2350, 0, -70); _root.spawn('standard', 3350, 0, -90); _root.enemies = 2; phase = 8; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 8) { if (_root.enemies == 0) { _root.spawn('standard', 3350, 0, -110); _root.spawn('standard', 2350, 0, -50); _root.enemies = 2; phase = 9; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 9) { if (_root.enemies == 0) { _root.spawn('standard', 2650, -300, -150); _root.spawn('standard', 2850, -300, -100); _root.spawn('standard', 3050, -300, -50); _root.enemies = 3; phase = 10; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 10) { if (_root.enemies == 0) { leftlim = 2450; newlim = 4570; phase = 11; _root.gosign.timer = 50; } } else { if (phase == 11) { if (player._x > 4170) { leftlim = 3770; newlim = 4570; _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; eagleSound = new Sound(); eagleSound.attachSound('eagle'); eagleSound.start(0, 1); _root.spawn('standard', 4670, 0, -60); _root.spawn('standard', 3670, 0, -60); _root.spawn('standard', 3670, 0, -20); _root.enemies = 3; phase = 12; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 12) { if (_root.enemies == 0) { _root.spawn('standard', 4670, 0, -70); _root.spawn('standard', 4670, 0, -20); _root.enemies = 2; phase = 13; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 13) { if (_root.enemies == 0) { leftlim = 3770; newlim = 4980; phase = 14; _root.gosign.timer = 50; } } else { if (phase == 14) { if (player._x > 4580) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.bossShow = true; _root.bossDead = false; stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss3loop'); _root.backgroundMusic.start(0, 999999); leftlim = 4180; newlim = 4980; _root.bhs.gotoAndPlay('show'); _root.spawn('standard', 5080, 0, -30); _root.enemies = 1; phase = 15; _root.gosign._alpha = 0; _root.gosign.timer = 0; } } else { if (phase == 15) { if (_root.enemies == 0) { leftlim = 4180; newlim = 5272; phase = 16; } } } } } } } } } } } } } } } } } } movieClip 5700 { frame 24 { _root.dontmovedown = false; } frame 31 { stop(); } } movieClip 5708 { frame 1 { stop(); } } instance hp4 of movieClip 5708 { onClipEvent (load) { goalhp = 300; fullhp = 300; myhp = 0; timer = 0; fulltimer = 120; _alpha = 100; } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } goalhp = _root.level.enemy8.hit.hp; fullhp = _root.level.enemy8.hit.maxhp; if (_root.bossShow == true && _root.bossDead == false && _root.bossHealthOn == true) { gotoAndStop(Math.round(goalhp * 100 / fullhp) + 21); } else { gotoAndStop(1); } } } } movieClip 5715 { frame 1 { stop(); } frame 22 { _root.bossHealthOn = true; gotoAndStop(1); } frame 44 { gotoAndStop(1); } } instance gosign of movieClip 5260 { onClipEvent (enterFrame) { if (timer > 0) { timer -= 1; if (timer == 0) { _alpha = 100; gotoAndPlay(1); } } if (_root.showability == true) { gotoAndStop(20); } else { play(); } } } instance genhp of movieClip 3626 { onClipEvent (load) { myhp = 100; } onClipEvent (enterFrame) { this.hptext.text = Math.round(myhp); if (this.hptext.text < 0) { this.hptext.text = 0; } this.turbotext.text = Math.round(_root.turbo); if (this.turbotext.text < 0) { this.turbotext.text = 0; } if (_root.hp > _root.maxhp) { _root.hp = _root.maxhp; } else { if (_root.hp < 0) { _root.hp = 0; } } if (myhp < _root.hp - 1) { myhp += 1; } else { if (myhp > _root.hp + 1) { myhp -= 1; } else { myhp = _root.hp; } } if (_root.hp <= myhp) { darkbar.gotoAndStop(Math.round(_root.hp + 1)); lightbar.gotoAndStop(Math.round(myhp + 1)); } else { lightbar.gotoAndStop(Math.round(_root.hp + 1)); darkbar.gotoAndStop(Math.round(myhp + 1)); } turbobar.gotoAndStop(_root.turbo + 1); } } instance hp3 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp2 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp1 of movieClip 3698 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance of movieClip 3716 { onClipEvent (enterFrame) { gotoAndStop(_root.lives + 2); } } movieClip 5716 { frame 1 { stop(); } frame 2 { stopAllSounds(); if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 3 { _root.level.player._alpha = 0; _root.levelbeaten = true; } frame 23 { if (_root.medal12 == false) { _root.medal12 = true; _root.savefile.data.medal12 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 53 { _root.gotoAndStop('achingame'); } } movieClip 5718 { } movieClip 5721 { } movieClip 5722 { } movieClip 5723 { } movieClip 5724 { frame 1 { _root.oktopause = false; } frame 17 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level4loop'); _root.backgroundMusic.start(0, 999999); } frame 31 { _root.oktopause = true; } frame 147 { stop(); } } frame 19 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { if (_root.bossShow == true && !level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (_root.bossShow == true && level.enemy7.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } else { level.enemy1.hit.newguy(guytype, startx, starty, startz); } } } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } function spawnvort(vorttype, startx, starty, startz) { if (_root.vortexes == 1) { level.vort1.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 2) { level.vort2.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 3) { level.vort3.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 4) { level.vort4.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 5) { level.vort5.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 6) { level.vort6.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 7) { level.vort7.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 8) { level.vort8.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 9) { level.vort9.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 10) { level.vort10.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 11) { level.vort11.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 12) { level.vort12.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 13) { level.vort13.hit.newvort(vorttype, startx, starty, startz); } else { if (_root.vortexes == 14) { level.vort14.hit.newvort(vorttype, startx, starty, startz); } } } } } } } } } } } } } } } stop(); _root.currentLevel = 5; _root.vortexes = 1; _root.dontmovedown = true; _root.boss1HealthOn = false; _root.boss2HealthOn = false; _root.boss1Dead = false; _root.boss2Dead = false; _root.bossShow = false; _root.phase0timer = 0; if (_root.levelReplayed == true) { lives = rememberLives; _root.levelReplayed = false; } else { rememberLives = lives; } did = 1; hp = 100; maxhp = 100; turbo = 0; turboTimer = 0; turboMulti = 1; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.enemies < 0) { _root.enemies = 0; } elevbg._y += 2; if (elevbg._y > 0) { elevbg._y = -658; } elevbg2._y += 0.6; if (elevbg2._y > 0) { elevbg2._y = -485.2; } if (_root.enemies == 0) { if (level.phase == 3 || level.phase == 5 || level.phase == 7 || level.phase == 10 || level.phase == 12 || level.phase == 15 || level.phase == 17 || level.phase == 19 || level.phase == 22 || level.phase == 24) { ++_root.betweenTimer; } else { _root.betweenTimer = 0; } } ++_root.phase0timer; if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } } }; } movieClip 5727 { } movieClip 5730 { } movieClip 5731 { } movieClip 5732 { instance of movieClip 1721 { onClipEvent (load) { function bot(one) { if (one.hitTest(this)) { if (one.oldy <= top && one.yspeed >= 0) { one.ground(top); } else { if (one.oldx < left - one.fatness / 2) { one.wall(left - one.fatness); } else { if (one.oldx > right + one.fatness / 2) { one.wall(right + one.fatness); } } } } } _parent._alpha = 0; player = _root.level.player; top = _parent._y - _parent._yscale / 5; bottom = _parent._y + _parent._yscale / 5; right = _parent._x + _parent._xscale / 5; left = _parent._x - _parent._xscale / 5; } onClipEvent (enterFrame) { if (player.hit.hitTest(this)) { if (player.hit.oldy <= top && player.hit.yspeed >= 0) { player.hit.ground(top); } else { if (player.hit.oldy >= bottom + player.hit.tallness && player.hit.yspeed <= 0) { player.hit.ceiling(bottom); } else { if (player.hit.oldx < left - player.hit.fatness / 2) { player.hit.wall(left - player.hit.fatness); player.hit.stoprun(); } else { if (player.hit.oldx > right + player.hit.fatness / 2) { player.hit.wall(right + player.hit.fatness); player.hit.stoprun(); } } } } } bot(_root.level.enemy1.hit); bot(_root.level.enemy2.hit); bot(_root.level.enemy3.hit); bot(_root.level.enemy4.hit); bot(_root.level.enemy5.hit); bot(_root.level.enemy6.hit); bot(_root.level.enemy7.hit); bot(_root.level.enemy8.hit); } } } movieClip 5734 { } movieClip 5751 { frame 1 { gotoAndStop(_parent._parent._parent.hit.myhead + (_parent._parent._parent.hit.mycolour - 1) * 5); } 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(); } } movieClip 5752 { } movieClip 5753 { } movieClip 5760 { } movieClip 5761 { frame 8 { prevFrame(); } } movieClip 5768 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 5769 { } movieClip 5770 { frame 9 { prevFrame(); } } movieClip 5771 { frame 8 { prevFrame(); } } movieClip 5778 { } movieClip 5785 { } movieClip 5786 { frame 7 { prevFrame(); } } movieClip 5787 { } movieClip 5788 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 40; walklessen = 0; knockmore = random(26); xmax = 5 - walklessen; zmax = 3 - walklessen; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; mycolour = random(3) + 1; if (mycolour == 1) { enemyColour = 1; } if (mycolour == 2) { enemyColour = 2; } if (mycolour == 3) { enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 60; healthType = 50; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 50; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 5; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 0) { player.hit.hurt(8 / _root.turboMulti, 1); punchtime = 22; } else { player.hit.hurt(6 / _root.turboMulti, 0); punchtime = 16; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 140) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 140) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 140) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 140) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5787 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5790 { } movieClip 5792 { } movieClip 5794 { } movieClip 5796 { } movieClip 5798 { } movieClip 5800 { } movieClip 5802 { } movieClip 5804 { } movieClip 5805 { } movieClip 5822 { } movieClip 5839 { } movieClip 5846 { frame 7 { prevFrame(); } } movieClip 5863 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 5865 { } movieClip 5877 { frame 10 { prevFrame(); } } movieClip 5886 { frame 8 { prevFrame(); } } movieClip 5902 { } movieClip 5909 { } movieClip 5922 { } movieClip 5928 { frame 7 { prevFrame(); } } movieClip 5929 { } movieClip 5930 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; _root.hp4.timer = fulltimer; } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead' && attacktype != 2) { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; _root.boss1Dead = true; _root.bhs4.gotoAndPlay('hide'); } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 150; walklessen = random(11) / 5; knockmore = random(26); xmax = 6 - walklessen; zmax = 3 - walklessen / 2; shadrat = 1; mycolour = 3; enemyColour = 3; } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 150; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 5; zmax = 0.2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 0 || attacktype == 2) { player.hit.hurt(10 / _root.turboMulti, 1); punchtime = 17; } else { player.hit.hurt(10 / _root.turboMulti, 0); punchtime = 17; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5929 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5931 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; _root.hp5.timer = fulltimer; } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead' && attacktype != 2) { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; _root.boss2Dead = true; _root.bhs5.gotoAndPlay('hide'); } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 150; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; mycolour = 3; enemyColour = 3; } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 150; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 0.1; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 0 || attacktype == 2) { player.hit.hurt(10 / _root.turboMulti, 1); punchtime = 17; } else { player.hit.hurt(10 / _root.turboMulti, 0); punchtime = 17; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 200) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 200) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 17; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 5929 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 5936 { } movieClip 5948 { frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } } movieClip 5949 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL51._x = _root.level.vort1._x; _root.level.pickupL51._y = _root.level.vort1._y; _root.level.pickupL51.z = -70; } } movieClip 5950 { } movieClip 5951 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5950 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5954 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL52._x = _root.level.vort2._x; _root.level.pickupL52._y = _root.level.vort2._y; _root.level.pickupL52.z = -130; } } movieClip 5955 { } movieClip 5956 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5955 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5959 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL53._x = _root.level.vort3._x; _root.level.pickupL53._y = _root.level.vort3._y; _root.level.pickupL53.z = -70; } } movieClip 5960 { } movieClip 5961 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5960 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5964 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL54._x = _root.level.vort4._x; _root.level.pickupL54._y = _root.level.vort4._y; _root.level.pickupL54.z = -130; } } movieClip 5965 { } movieClip 5966 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5965 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5969 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL55._x = _root.level.vort5._x; _root.level.pickupL55._y = _root.level.vort5._y; _root.level.pickupL55.z = -130; } } movieClip 5970 { } movieClip 5971 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5970 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5974 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL56._x = _root.level.vort6._x; _root.level.pickupL56._y = _root.level.vort6._y; _root.level.pickupL56.z = -70; } } movieClip 5975 { } movieClip 5976 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5975 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5979 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL57._x = _root.level.vort7._x; _root.level.pickupL57._y = _root.level.vort7._y; _root.level.pickupL57.z = -130; } } movieClip 5980 { } movieClip 5981 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5980 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5984 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL58._x = _root.level.vort8._x; _root.level.pickupL58._y = _root.level.vort8._y; _root.level.pickupL58.z = -130; } } movieClip 5985 { } movieClip 5986 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5985 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5989 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL59._x = _root.level.vort9._x; _root.level.pickupL59._y = _root.level.vort9._y; _root.level.pickupL59.z = -130; } } movieClip 5990 { } movieClip 5991 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5990 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5994 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL510._x = _root.level.vort10._x; _root.level.pickupL510._y = _root.level.vort10._y; _root.level.pickupL510.z = -70; } } movieClip 5995 { } movieClip 5996 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 5995 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 5999 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL511._x = _root.level.vort11._x; _root.level.pickupL511._y = _root.level.vort11._y; _root.level.pickupL511.z = -130; } } movieClip 6000 { } movieClip 6001 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 6000 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 6004 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL512._x = _root.level.vort12._x; _root.level.pickupL512._y = _root.level.vort12._y; _root.level.pickupL512.z = -130; } } movieClip 6005 { } movieClip 6006 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 6005 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 6009 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL513._x = _root.level.vort13._x; _root.level.pickupL513._y = _root.level.vort13._y; _root.level.pickupL513.z = -130; } } movieClip 6010 { } movieClip 6011 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 6010 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 6014 { frame 1 { preventstop = true; } frame 80 { preventstop = false; } frame 89 { stop(); _root.level.pickupL514._x = _root.level.vort14._x; _root.level.pickupL514._y = _root.level.vort14._y; _root.level.pickupL514.z = -130; } } movieClip 6015 { } movieClip 6016 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function newvort(newtype, newx, newy, newz) { vorttype = newtype; alive = true; _parent._x = newx; _parent._y = newy; ++_root.vortexes; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (vorttype == 'standard') { walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; } } did = _root.did; _root.did += 1; alive = false; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; vort = _parent.vort; player = _root.level.player; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { oldx = _parent._x; oldy = _parent._y; oldz = z; xmove = 0; zmove = 0; if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (player.guy.vuln.hitTest(_parent.vort.carry.hit)) { player.hit.hurt(20 / _root.turboMulti, 50); punchtime = 5; } } vort._y = z; vort._x = z / 10; vort._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); vort.gotoAndStop(1); } } } } instance vort of movieClip 6015 { onClipEvent (enterFrame) { if (carry.preventstop == true) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } } movieClip 6071 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a16taken == true) { ablearned._alpha = 100; } else { _root.a16taken = true; _root.savefile.data.a16taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 6072 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; } } } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6073 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; _root.hp += 20; } } } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6074 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; _root.hp += 50; } } } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6075 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; _root.lives += 1; } } } _parent.barrel._y = z; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6130 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a17taken == true) { ablearned._alpha = 100; } else { _root.a17taken = true; _root.savefile.data.a17taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 6131 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; } } } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6186 { frame 55 { gotoAndPlay(1); } frame 60 { if (_root.a18taken == true) { ablearned._alpha = 100; } else { _root.a18taken = true; _root.savefile.data.a18taken = true; _root.savefile.data.flush(); _root.newability.gotoAndPlay('start'); _root.gamepause = true; } } } movieClip 6187 { instance hit of movieClip 1721 { onClipEvent (load) { _parent.stop(); player = _root.level.player; did = _root.did; _root.did += 1; takable = true; if (_parent.z == undefined) { z = -50; } else { z = _parent.z; } } onClipEvent (enterFrame) { if (!_root.gamepause) { if (player.hit.hitTest(this) && Math.abs(player.hit.z - z) < player.hit.deepness + 20 && takable) { if (player.hit.movement != 'down') { if (player.hit.movement != 'dead') { takable = false; } } } _parent.barrel._y = z - 20; _parent.barrel._x = z / 10; if (!takable) { _parent.barrel.gotoAndStop('get'); } _parent.swapDepths(10000 + z * 100 - did); } } } } movieClip 6188 { instance shade8 of movieClip 4399 { onClipEvent (load) { guy = _root.level.enemy8; } } instance shade7 of movieClip 4399 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade6 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade of movieClip 1783 { onClipEvent (load) { guy = _root.level.player; } } instance enemy1 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 5788 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 3258 { onClipEvent (load) { shade = _root.level.shade4; } } instance enemy5 of movieClip 5002 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 4947 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 5930 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 5931 { onClipEvent (load) { shade = _root.level.shade8; } } instance vort1 of movieClip 5951 { } instance vort2 of movieClip 5956 { } instance pickupL52 of movieClip 6072 { onClipEvent (load) { z = -130; } } instance pickupL57 of movieClip 6073 { onClipEvent (load) { z = -80; } } instance pickupL51 of movieClip 6074 { onClipEvent (load) { z = -70; } } instance pickupL53 of movieClip 6075 { onClipEvent (load) { z = -50; } } instance pickupL54 of movieClip 6131 { onClipEvent (load) { z = -100; } } instance pickupL55 of movieClip 6074 { onClipEvent (load) { z = -150; } } instance pickupL56 of movieClip 6187 { onClipEvent (load) { z = -40; } } instance pickupL59 of movieClip 6073 { onClipEvent (load) { z = -160; } } instance pickupL58 of movieClip 6074 { onClipEvent (load) { z = -120; } } instance pickupL510 of movieClip 6073 { onClipEvent (load) { z = -35; } } instance pickupL512 of movieClip 6073 { onClipEvent (load) { z = -105; } } instance pickupL511 of movieClip 6074 { onClipEvent (load) { z = -70; } } instance pickupL514 of movieClip 6073 { onClipEvent (load) { z = -175; } } instance pickupL513 of movieClip 6074 { onClipEvent (load) { z = -140; } } } instance level of movieClip 6188 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 800; newlim = 800; gotoy = -50; phase = 0; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (_root.phase0timer == 200) { phase = 1; } if (phase == 1) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.enemies = 1; phase = 2; _root.gosign._alpha = 0; _root.gosign.timer = 0; } else { if (phase == 2) { if (_root.enemies == 0) { phase = 3; } } else { if (phase == 3 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.enemies = 2; phase = 4; } } else { if (phase == 4) { if (_root.enemies == 0) { phase = 5; } } else { if (phase == 5 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.enemies = 2; phase = 6; } } else { if (phase == 6) { if (_root.enemies == 0) { phase = 7; } } else { if (phase == 7 && _root.betweenTimer == 80) { if (_root.enemies == 0) { rand1stat1 = random(520) + 140; rand1stat2 = -70; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); rand2stat1 = random(520) + 140; rand2stat2 = -130; _root.spawnvort('standard', rand2stat1, 450, rand2stat2); } } else { if (phase == 7 && _root.betweenTimer == 300) { if (_root.enemies == 0) { phase = 8; } } else { if (phase == 8) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.enemies = 3; phase = 9; } } else { if (phase == 9) { if (_root.enemies == 0) { phase = 10; } } else { if (phase == 10 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.enemies = 3; phase = 11; } } else { if (phase == 11) { if (_root.enemies == 0) { phase = 12; } } else { if (phase == 12 && _root.betweenTimer == 80) { if (_root.enemies == 0) { rand1stat1 = random(520) + 140; rand1stat2 = -50; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); rand2stat1 = random(520) + 140; rand2stat2 = -100; _root.spawnvort('standard', rand2stat1, 450, rand2stat2); rand3stat1 = random(520) + 140; rand3stat2 = -150; _root.spawnvort('standard', rand3stat1, 450, rand3stat2); } } else { if (phase == 12 && _root.betweenTimer == 300) { if (_root.enemies == 0) { phase = 13; } } else { if (phase == 13) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.enemies = 3; phase = 14; } } else { if (phase == 14) { if (_root.enemies == 0) { phase = 15; } } else { if (phase == 15 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.enemies = 3; phase = 16; } } else { if (phase == 16) { if (_root.enemies == 0) { phase = 17; } } else { if (phase == 17 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.enemies = 2; phase = 18; } } else { if (phase == 18) { if (_root.enemies == 0) { phase = 19; } } else { if (phase == 19 && _root.betweenTimer == 80) { if (_root.enemies == 0) { rand1stat1 = random(520) + 140; rand1stat2 = -40; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); rand2stat1 = random(520) + 140; rand2stat2 = -80; _root.spawnvort('standard', rand2stat1, 450, rand2stat2); rand3stat1 = random(520) + 140; rand3stat2 = -120; _root.spawnvort('standard', rand3stat1, 450, rand3stat2); rand4stat1 = random(520) + 140; rand4stat2 = -180; _root.spawnvort('standard', rand4stat1, 450, rand4stat2); } } else { if (phase == 19 && _root.betweenTimer == 300) { if (_root.enemies == 0) { phase = 20; } } else { if (phase == 20) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; rand4stat1 = random(520) + 140; rand4stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.spawn('standard', rand4stat1, 0, rand4stat2); _root.enemies = 4; phase = 21; } } else { if (phase == 21) { if (_root.enemies == 0) { phase = 22; } } else { if (phase == 22 && _root.betweenTimer == 80) { _root.betweenTimer = 0; if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; rand1stat1 = random(520) + 140; rand1stat2 = -random(200) + 2; rand2stat1 = random(520) + 140; rand2stat2 = -random(200) + 2; rand3stat1 = random(520) + 140; rand3stat2 = -random(200) + 2; rand4stat1 = random(520) + 140; rand4stat2 = -random(200) + 2; rand5stat1 = random(520) + 140; rand5stat2 = -random(200) + 2; rand6stat1 = random(520) + 140; rand6stat2 = -random(200) + 2; _root.spawn('standard', rand1stat1, 0, rand1stat2); _root.spawn('standard', rand2stat1, 0, rand2stat2); _root.spawn('standard', rand3stat1, 0, rand3stat2); _root.spawn('standard', rand4stat1, 0, rand4stat2); _root.spawn('standard', rand5stat1, 0, rand5stat2); _root.spawn('standard', rand6stat1, 0, rand6stat2); _root.enemies = 6; phase = 23; } } else { if (phase == 23) { if (_root.enemies == 0) { phase = 24; } } else { if (phase == 24 && _root.betweenTimer == 80) { if (_root.enemies == 0) { rand1stat1 = random(520) + 140; rand1stat2 = -35; _root.spawnvort('standard', rand1stat1, 450, rand1stat2); rand2stat1 = random(520) + 140; rand2stat2 = -70; _root.spawnvort('standard', rand2stat1, 450, rand2stat2); rand3stat1 = random(520) + 140; rand3stat2 = -105; _root.spawnvort('standard', rand3stat1, 450, rand3stat2); rand4stat1 = random(520) + 140; rand4stat2 = -140; _root.spawnvort('standard', rand4stat1, 450, rand4stat2); rand5stat1 = random(520) + 140; rand5stat2 = -175; _root.spawnvort('standard', rand5stat1, 450, rand5stat2); } } else { if (phase == 24 && _root.betweenTimer == 400) { if (_root.enemies == 0) { phase = 25; } } else { if (phase == 25) { if (_root.enemies == 0) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.bossShow = true; _root.boss1Dead = false; _root.boss2Dead = false; stopAllSounds(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('boss5loop'); _root.backgroundMusic.start(0, 999999); _root.bhs4.gotoAndPlay('show'); _root.bhs5.gotoAndPlay('show'); _root.spawn('standard', 200, 0, -100); _root.spawn('standard', 600, 0, -100); _root.enemies = 2; phase = 26; } } else { if (phase == 26) { if (_root.enemies == 0) { _root.backgroundMusic.stop(); _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('elev1'); _root.backgroundMusic.start(0, 999999); _root.oktopause = false; _root.levelcomplete.gotoAndPlay('start'); phase = 27; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } movieClip 6193 { frame 1 { stop(); } } instance hp5 of movieClip 6193 { onClipEvent (load) { goalhp = 150; fullhp = 150; myhp = 0; timer = 0; fulltimer = 120; _alpha = 100; } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } goalhp = _root.level.enemy8.hit.hp; fullhp = _root.level.enemy8.hit.maxhp; if (_root.bossShow == true && _root.boss2Dead == false && _root.boss2HealthOn == true) { gotoAndStop(Math.round(goalhp * 100 / fullhp) + 21); } else { gotoAndStop(1); } } } } movieClip 6196 { frame 1 { stop(); } } instance hp4 of movieClip 6196 { onClipEvent (load) { goalhp = 150; fullhp = 150; myhp = 0; timer = 0; fulltimer = 120; _alpha = 100; } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } goalhp = _root.level.enemy7.hit.hp; fullhp = _root.level.enemy7.hit.maxhp; if (_root.bossShow == true && _root.boss1Dead == false && _root.boss1HealthOn == true) { gotoAndStop(Math.round(goalhp * 100 / fullhp) + 21); } else { gotoAndStop(1); } } } } movieClip 6201 { frame 1 { stop(); } frame 22 { _root.boss2HealthOn = true; gotoAndStop(1); } frame 44 { gotoAndStop(1); } } movieClip 6206 { frame 1 { stop(); } frame 22 { _root.boss1HealthOn = true; gotoAndStop(1); } frame 44 { gotoAndStop(1); } } movieClip 6207 { frame 1 { stop(); } frame 25 { if (_root.medal13 == false) { _root.medal13 = true; _root.savefile.data.medal13 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } frame 123 { stopAllSounds(); if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 124 { stopAllSounds(); _root.gotoAndStop('achingame'); } } movieClip 6209 { } movieClip 6211 { } movieClip 6213 { } movieClip 6215 { } movieClip 6217 { } movieClip 6219 { } movieClip 6221 { } movieClip 6223 { } movieClip 6225 { } movieClip 6227 { } movieClip 6229 { } movieClip 6231 { } movieClip 6233 { } movieClip 6235 { } movieClip 6237 { } movieClip 6239 { } movieClip 6241 { } movieClip 6243 { } movieClip 6245 { } movieClip 6248 { } movieClip 6249 { } movieClip 6250 { } movieClip 6252 { } movieClip 6255 { } movieClip 6256 { } movieClip 6257 { frame 1 { _root.oktopause = false; } frame 2 { _root.level.player._alpha = 0; _root.level.lev5platform._alpha = 0; } frame 25 { enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); _root.level.player._alpha = 100; _root.level.lev5platform._alpha = 100; } frame 31 { _root.dontmovedown = false; } frame 39 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level5loop'); _root.backgroundMusic.start(0, 999999); } frame 53 { _root.oktopause = true; } frame 169 { stop(); } } frame 20 { function spawn(guytype, startx, starty, startz) { if (!level.enemy1.hit.alive) { level.enemy1.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy2.hit.alive) { level.enemy2.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy3.hit.alive) { level.enemy3.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy4.hit.alive) { level.enemy4.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy5.hit.alive) { level.enemy5.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy6.hit.alive) { level.enemy6.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy7.hit.alive) { level.enemy7.hit.newguy(guytype, startx, starty, startz); } else { if (!level.enemy8.hit.alive) { level.enemy8.hit.newguy(guytype, startx, starty, startz); } } } } } } } } } stop(); _root.currentLevel = 6; moveextra = 1; circanimstart = false; _root.sendenemy = true; _root.gotoybegin = false; _root.dontmovedown = true; _root.bossHealthOn = false; _root.bossShow = false; _root.bossDead = false; _root.phase0timer = 0; if (_root.levelReplayed == true) { lives = rememberLives; _root.levelReplayed = false; } else { rememberLives = lives; } did = 1; hp = 100; maxhp = 100; turbo = 0; turboTimer = 0; turboMulti = 1; _root.gameover = false; _root.shouldnotpause = false; _root.performdesp = false; _root.dontdamage = false; _root.unlockAbility = false; _root.showability = false; _root.gamepause = false; _root.bossShow = false; _root.levComp = false; _root.soundFX = new Sound(); onEnterFrame = function () { if (_root.gamepause == false) { if (_root.abils > 8 && _root.abils < 18) { if (_root.medal4 == false) { _root.medal4 = true; _root.savefile.data.medal4 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.abils == 18) { if (_root.medal5 == false) { _root.medal5 = true; _root.savefile.data.medal5 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.lives > 8) { if (_root.medal16 == false) { _root.medal16 = true; _root.savefile.data.medal16 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } if (_root.gotoybegin == true) { if (circanimstart == false) { circanimstart = true; _root.circanim.gotoAndPlay('begin'); } moveextra += 0.1; _root.level.gotoy += 0.5 * moveextra; _root.spikes._y += 0.5 * moveextra; _root.circanim._y += 0.5 * moveextra; } if (_root.enemies < 0) { _root.enemies = 0; } skybg._x -= 8; if (skybg._x < -800) { skybg._x = 0; } ++_root.phase0timer; if (turbo >= 100) { turbo = 100; ++turboTimer; turboMulti = 2; } if (turboTimer > 375) { _root.turbooutSound = new Sound(); _root.turbooutSound.attachSound('turboout'); _root.turbooutSound.start(); turbo = 0; turboTimer = 0; turboMulti = 1; } if (turboTimer == 1) { _root.turboSound = new Sound(); _root.turboSound.attachSound('turbo'); _root.turboSound.start(); } } }; } movieClip 6260 { } movieClip 6262 { } movieClip 6263 { instance hit of movieClip 5371 { onClipEvent (enterFrame) { if (_root.noshadow == true) { _parent._alpha = 0; } else { if (_parent.guy.hit.movement == 'dead') { _parent._alpha = 0; } else { if (!_parent.guy.hit.alive) { _parent._alpha = 0; } else { _parent._x = _parent.guy._x; _parent._alpha = 100; } } } } } } movieClip 6266 { } movieClip 6272 { } movieClip 6283 { } movieClip 6288 { } movieClip 6297 { } movieClip 6299 { } movieClip 6301 { } movieClip 6302 { frame 8 { prevFrame(); } } movieClip 6315 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 6317 { } movieClip 6325 { frame 9 { prevFrame(); } } movieClip 6334 { frame 8 { prevFrame(); } } movieClip 6343 { } movieClip 6379 { } movieClip 6384 { frame 7 { prevFrame(); } } movieClip 6387 { } movieClip 6396 { } movieClip 6403 { } movieClip 6405 { } movieClip 6407 { } movieClip 6409 { } movieClip 6410 { } movieClip 6414 { } movieClip 6422 { } movieClip 6426 { } movieClip 6431 { } movieClip 6433 { } movieClip 6435 { } movieClip 6437 { } movieClip 6439 { } movieClip 6440 { } movieClip 6453 { } movieClip 6460 { } movieClip 6496 { } movieClip 6497 { } movieClip 6505 { } movieClip 6515 { } movieClip 6518 { } movieClip 6520 { } movieClip 6522 { } movieClip 6524 { } movieClip 6526 { } movieClip 6528 { } movieClip 6530 { } movieClip 6532 { } movieClip 6534 { } movieClip 6536 { } movieClip 6538 { } movieClip 6540 { } movieClip 6542 { } movieClip 6544 { } movieClip 6546 { } movieClip 6548 { } movieClip 6551 { } movieClip 6556 { } movieClip 6560 { } movieClip 6562 { } movieClip 6564 { } movieClip 6566 { } movieClip 6568 { } movieClip 6569 { frame 8 { prevFrame(); } } movieClip 6576 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 6578 { } movieClip 6579 { frame 9 { prevFrame(); } } movieClip 6580 { frame 8 { prevFrame(); } } movieClip 6594 { } movieClip 6596 { } movieClip 6606 { } movieClip 6625 { } movieClip 6628 { frame 7 { prevFrame(); } } movieClip 6642 { } movieClip 6645 { } movieClip 6657 { } movieClip 6664 { } movieClip 6688 { } movieClip 6689 { } movieClip 6704 { } movieClip 6707 { } movieClip 6709 { } movieClip 6711 { } movieClip 6713 { } movieClip 6715 { } movieClip 6717 { } movieClip 6719 { } movieClip 6721 { } movieClip 6724 { } movieClip 6726 { } movieClip 6733 { } movieClip 6735 { } movieClip 6737 { } movieClip 6739 { } movieClip 6740 { frame 8 { prevFrame(); } } movieClip 6743 { } movieClip 6747 { } movieClip 6758 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 6760 { } movieClip 6762 { } movieClip 6764 { } movieClip 6765 { } movieClip 6766 { frame 9 { prevFrame(); } } movieClip 6774 { frame 8 { prevFrame(); } } movieClip 6778 { } movieClip 6780 { } movieClip 6787 { } movieClip 6813 { } movieClip 6814 { frame 7 { prevFrame(); } } movieClip 6828 { } movieClip 6841 { } movieClip 6846 { } movieClip 6852 { } movieClip 6876 { } movieClip 6877 { } movieClip 6878 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; _root.hp4.timer = fulltimer; } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead' && attacktype != 3 && movement != 'change') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { _root.sendenemy = false; thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; _root.bossDead = true; _root.bhs.gotoAndPlay('hide'); _root.levelcomplete.gotoAndPlay('start'); stopAllSounds(); } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 500; walklessen = random(11) / 5; knockmore = random(26); xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; shadrat = 1; mycolour = 2; enemyColour = 2; } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } bossBot = 2; did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 30; healthType = 500; speedfix = 2; var shotTimer = 0; var donthurt; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 500; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 8 * speedfix; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (alive) { ++shotTimer; if (movement != 'dead') { if (shotTimer == 100 || shotTimer == 400 || shotTimer == 700 || shotTimer == 1000 || shotTimer == 1300 || shotTimer == 1600 || shotTimer == 1900 || shotTimer == 2200 || shotTimer == 2500 || shotTimer == 2800 || shotTimer == 3100 || shotTimer == 3400 || shotTimer == 3700 || shotTimer == 4000 || shotTimer == 4300 || shotTimer == 4600 || shotTimer == 4900 || shotTimer == 5200 || shotTimer == 5500 || shotTimer == 5800 || shotTimer == 6100 || shotTimer == 6400 || shotTimer == 6700 || shotTimer == 7000 || shotTimer == 7300 || shotTimer == 7600 || shotTimer == 7900 || shotTimer == 8200 || shotTimer == 8500 || shotTimer == 8800 || shotTimer == 9100 || shotTimer == 9400 || shotTimer == 9700 || shotTimer == 10000 || shotTimer == 10300 || shotTimer == 10600 || shotTimer == 10900 || shotTimer == 11200 || shotTimer == 11500 || shotTimer == 11800) { if (_root.enemies < 2) { _root.sendenemy = true; movement = 'attack'; attacktype = 3; movetime = 30; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else { _root.sendenemy = false; } } if (shotTimer == 200 || shotTimer == 500 || shotTimer == 800 || shotTimer == 1100 || shotTimer == 1400 || shotTimer == 1700 || shotTimer == 2000 || shotTimer == 2300 || shotTimer == 2600 || shotTimer == 2900 || shotTimer == 3200 || shotTimer == 3500 || shotTimer == 3800 || shotTimer == 4100 || shotTimer == 4400 || shotTimer == 4700 || shotTimer == 5000 || shotTimer == 5300 || shotTimer == 5600 || shotTimer == 5900 || shotTimer == 6200 || shotTimer == 6500 || shotTimer == 6800 || shotTimer == 7100 || shotTimer == 7400 || shotTimer == 7700 || shotTimer == 8000 || shotTimer == 8300 || shotTimer == 8600 || shotTimer == 8900 || shotTimer == 9200 || shotTimer == 9500 || shotTimer == 9800 || shotTimer == 10100 || shotTimer == 10400 || shotTimer == 10700 || shotTimer == 11000 || shotTimer == 11300 || shotTimer == 11600 || shotTimer == 11900) { movement = 'attack'; attacktype = 4; movetime = 25; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } if (shotTimer == 300 || shotTimer == 600 || shotTimer == 900 || shotTimer == 1200 || shotTimer == 1500 || shotTimer == 1800 || shotTimer == 2100 || shotTimer == 2400 || shotTimer == 2700 || shotTimer == 3000 || shotTimer == 3300 || shotTimer == 3600 || shotTimer == 3900 || shotTimer == 4200 || shotTimer == 4500 || shotTimer == 4800 || shotTimer == 5100 || shotTimer == 5400 || shotTimer == 5700 || shotTimer == 6000 || shotTimer == 6300 || shotTimer == 6600 || shotTimer == 6900 || shotTimer == 7200 || shotTimer == 7500 || shotTimer == 7800 || shotTimer == 8100 || shotTimer == 8400 || shotTimer == 8700 || shotTimer == 9000 || shotTimer == 9300 || shotTimer == 9600 || shotTimer == 9900 || shotTimer == 10200 || shotTimer == 10500 || shotTimer == 10800 || shotTimer == 11100 || shotTimer == 11400 || shotTimer == 11700 || shotTimer == 12000) { if (player.hit.robot == 1) { if (bossBot == 2) { bossBot = 1; mycolour = 1; enemyColour = 1; speedfix = 1.5; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 1; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else { if (bossBot == 3) { bossBot = 1; mycolour = 1; enemyColour = 1; speedfix = 1.5; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 2; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else {} } } else { if (player.hit.robot == 2) { if (bossBot == 1) { bossBot = 2; mycolour = 2; enemyColour = 2; speedfix = 2; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 3; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else { if (bossBot == 3) { bossBot = 2; mycolour = 2; enemyColour = 2; speedfix = 2; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 4; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else {} } } else { if (player.hit.robot == 3) { if (bossBot == 1) { bossBot = 3; mycolour = 3; enemyColour = 3; speedfix = 1; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 5; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else { if (bossBot == 2) { bossBot = 3; mycolour = 3; enemyColour = 3; speedfix = 1; xmax = (5 - walklessen) * speedfix; zmax = (2.5 - walklessen / 2) * speedfix; transtype = 6; movement = 'change'; movetime = 14; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } else {} } } } } } } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { if (attacktype == 3) { player.hit.hurt(10 / _root.turboMulti, 3); punchtime = 20; } else { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 8; } } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 150) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 150) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 150) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 150) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'change') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { if (bossBot == 2) { goframe = 4; } if (bossBot == 3) { goframe = 24; } else { if (bossBot == 1) { goframe = 44; } } } else { ++_root.blockingTimes; if (bossBot == 2) { goframe = 11; } if (bossBot == 3) { goframe = 31; } else { if (bossBot == 1) { goframe = 51; } } } } else { if (movement == 'dead') { if (bossBot == 2) { goframe = 5; } if (bossBot == 3) { goframe = 25; } else { if (bossBot == 1) { goframe = 45; } } } else { if (movement == 'change') { if (transtype == 1) { goframe = 13; } if (transtype == 2) { goframe = 33; } if (transtype == 3) { goframe = 52; } if (transtype == 4) { goframe = 32; } if (transtype == 5) { goframe = 53; } if (transtype == 6) { goframe = 12; } } else { if (movement == 'down') { if (blockMode == false) { if (bossBot == 2) { goframe = 7; } if (bossBot == 3) { goframe = 27; } else { if (bossBot == 1) { goframe = 47; } } } else { if (bossBot == 2) { goframe = 11; } if (bossBot == 3) { goframe = 31; } else { if (bossBot == 1) { goframe = 51; } } } } else { if (movement == 'getup') { if (bossBot == 2) { goframe = 8; } if (bossBot == 3) { goframe = 28; } else { if (bossBot == 1) { goframe = 48; } } } else { if (air) { if (bossBot == 2) { goframe = 6; } if (bossBot == 3) { goframe = 26; } else { if (bossBot == 1) { goframe = 46; } } } else { if (movement == 'attack') { if (attacktype == 0) { if (bossBot == 2) { goframe = 3; } if (bossBot == 3) { goframe = 23; } else { if (bossBot == 1) { goframe = 43; } } } else { if (attacktype == 1) { if (bossBot == 2) { goframe = 9; } if (bossBot == 3) { goframe = 29; } else { if (bossBot == 1) { goframe = 49; } } } else { if (attacktype == 2) { if (bossBot == 2) { goframe = 14; } if (bossBot == 3) { goframe = 34; } else { if (bossBot == 1) { goframe = 54; } } } else { if (attacktype == 3) { if (bossBot == 2) { goframe = 10; } if (bossBot == 3) { goframe = 30; } else { if (bossBot == 1) { goframe = 50; } } } else { if (bossBot == 2) { goframe = 15; } if (bossBot == 3) { goframe = 35; } else { if (bossBot == 1) { goframe = 55; } } } } } } } else { if (Math.abs(xspeed) > 0) { if (bossBot == 2) { goframe = 2; } if (bossBot == 3) { goframe = 22; } else { if (bossBot == 1) { goframe = 42; } } } else { if (Math.abs(zspeed) > 0) { if (bossBot == 2) { goframe = 2; } if (bossBot == 3) { goframe = 22; } else { if (bossBot == 1) { goframe = 42; } } } else { if (bossBot == 2) { goframe = 1; } if (bossBot == 3) { goframe = 21; } else { if (bossBot == 1) { goframe = 41; } } } } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 6877 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 6894 { frame 2 { if (_root.level.player.hit.robot == 1) { ++_root.bluekilled; } if (_root.level.player.hit.robot == 2) { ++_root.yellowkilled; } if (_root.level.player.hit.robot == 3) { ++_root.redkilled; } } frame 21 { if (_parent._parent.hit.thisEnemyDead != true) { --_root.enemies; } } frame 23 { stop(); } frame 24 { prevFrame(); } } movieClip 6895 { } movieClip 6896 { instance hit of movieClip 1721 { onClipEvent (load) { function ground(dats) { _parent._y = dats; air = false; yspeed = 0; } function ceiling(dats) { _parent._y = dats + tallness; yspeed = 0; } function wall(dats) { _parent._x = dats; } function wallz(dats) { z = dats; } function showhp() { fulltimer = 125; if (_root.hp1.myguy == this) { _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == this) { _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == this) { _root.hp3.timer = fulltimer; } else { if (_root.hp1.myguy == 'free') { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { if (_root.hp2.myguy == 'free') { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { if (_root.hp3.myguy == 'free') { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } else { if (_root.hp1.timer < _root.hp2.timer) { if (_root.hp1.timer < _root.hp3.timer) { _root.hp1.myguy = this; _root.hp1.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } else { if (_root.hp2.timer < _root.hp3.timer) { _root.hp2.myguy = this; _root.hp2.timer = fulltimer; } else { _root.hp3.myguy = this; _root.hp3.timer = fulltimer; } } } } } } } } } function hurt(damage, stuntime, knockdown, knockup) { if (movement != 'dead') { if (blockMode == false) { if (_root.turbo >= 100) { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(62); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(62); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(62); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(62); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(62); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(62); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(62); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(62); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(62); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(62); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(2); _root.hitamount1.hit.number.text = damage; _root.hitamount1._x = _parent._x + _root.level._x - 50; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(2); _root.hitamount2.hit.number.text = damage; _root.hitamount2._x = _parent._x + _root.level._x - 50 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(2); _root.hitamount3.hit.number.text = damage; _root.hitamount3._x = _parent._x + _root.level._x - 50 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount4._currentframe == 1) { _root.hitamount4.gotoAndPlay(2); _root.hitamount4.hit.number.text = damage; _root.hitamount4._x = _parent._x + _root.level._x - 50 - 21 * direct; _root.hitamount4._y = this.z + 350 + 21 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount5._currentframe == 1) { _root.hitamount5.gotoAndPlay(2); _root.hitamount5.hit.number.text = damage; _root.hitamount5._x = _parent._x + _root.level._x - 50 - 28 * direct; _root.hitamount5._y = this.z + 350 + 28 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount6._currentframe == 1) { _root.hitamount6.gotoAndPlay(2); _root.hitamount6.hit.number.text = damage; _root.hitamount6._x = _parent._x + _root.level._x - 50 - 35 * direct; _root.hitamount6._y = this.z + 350 + 35 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount7._currentframe == 1) { _root.hitamount7.gotoAndPlay(2); _root.hitamount7.hit.number.text = damage; _root.hitamount7._x = _parent._x + _root.level._x - 50 - 42 * direct; _root.hitamount7._y = this.z + 350 + 42 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount8._currentframe == 1) { _root.hitamount8.gotoAndPlay(2); _root.hitamount8.hit.number.text = damage; _root.hitamount8._x = _parent._x + _root.level._x - 50 - 49 * direct; _root.hitamount8._y = this.z + 350 + 49 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount9._currentframe == 1) { _root.hitamount9.gotoAndPlay(2); _root.hitamount9.hit.number.text = damage; _root.hitamount9._x = _parent._x + _root.level._x - 50 - 56 * direct; _root.hitamount9._y = this.z + 350 + 56 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } else { if (_root.hitamount10._currentframe == 1) { _root.hitamount10.gotoAndPlay(2); _root.hitamount10.hit.number.text = damage; _root.hitamount10._x = _parent._x + _root.level._x - 50 - 63 * direct; _root.hitamount10._y = this.z + 350 + 63 + _parent._y - 450 + _root.level.gotoy; hp -= damage; _root.turbo += 1; } } } } } } } } } } } } else { if (_root.hitamount1._currentframe == 1) { _root.hitamount1.gotoAndPlay(32); _root.hitamount1._x = _parent._x + _root.level._x - 40; _root.hitamount1._y = this.z + 350 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount2._currentframe == 1) { _root.hitamount2.gotoAndPlay(32); _root.hitamount2._x = _parent._x + _root.level._x - 40 - 7 * direct; _root.hitamount2._y = this.z + 350 + 7 + _parent._y - 450 + _root.level.gotoy; } else { if (_root.hitamount3._currentframe == 1) { _root.hitamount3.gotoAndPlay(32); _root.hitamount3._x = _parent._x + _root.level._x - 40 - 14 * direct; _root.hitamount3._y = this.z + 350 + 14 + _parent._y - 450 + _root.level.gotoy; } } } } showhp(); if (hp > 0) { if (knockdown != 0 && blockMode == false) { movement = 'down'; movetime = 7 + knockdown + knockmore; } else { movement = 'hurt'; movetime = 7 + stuntime; _parent.guy.carry.gotoAndPlay(1); } if (knockup > 0) { yspeed = -knockup; _parent._y += 1; air = true; } } else { if (hp <= 0) { thisEnemyDead = true; --_root.enemies; movement = 'dead'; movetime = 25; } } } } function resetshadow() { shade._x = _parent._x; shade.shade._y = z; shade.shade._x = z / 10; shadechange = 100 + (_parent._y - shade._y) / 3; shade.shade._xscale = shadechange * shadrat; shade.shade._yscale = shadechange * shadrat; shade.shade._alpha = shadechange; } function newguy(newtype, newx, newy, newz) { guytype = newtype; alive = true; _parent._x = newx; _parent._y = newy; z = newz; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; movement = 'free'; if (guytype == 'standard') { hp = 20; walklessen = random(11) / 5; knockmore = random(26); xmax = 5 - walklessen; zmax = 2.5 - walklessen / 2; shadrat = 1; myhead = random(5) + 1; myjoint = random(3) + 1; mytorso = random(3) + 1; mycrotch = random(3) + 1; myleg = random(3) + 1; myfoot = random(3) + 1; mycolour = random(3) + 1; if (mycolour == 1) { var v2 = new flash.filters.GlowFilter(); v2.color = 65535; v2.knockout = true; v2.blurX = 15; v2.blurY = 15; v2.strength = 1.1; _parent.guy.filters = [v2]; enemyColour = 1; } if (mycolour == 2) { v2 = new flash.filters.GlowFilter(); v2.color = 16763904; v2.knockout = true; v2.blurX = 15; v2.blurY = 15; v2.strength = 1.1; _parent.guy.filters = [v2]; enemyColour = 2; } if (mycolour == 3) { v2 = new flash.filters.GlowFilter(); v2.color = 16724736; v2.knockout = true; v2.blurX = 15; v2.blurY = 15; v2.strength = 1.1; _parent.guy.filters = [v2]; enemyColour = 3; } } maxhp = hp; } function others(guy) { if (_parent != guy && guy.hit.alive) { if (guy.hit.hitTest(this) && Math.abs(guy.hit.z - z) <= 15) { if (guy._x > _parent._x) { guy._x += 1; _parent._x -= 1; } else { if (guy._x < _parent._x) { guy._x -= 1; _parent._x += 1; } } if (z > guy.hit.z) { z += 1; guy.hit.z -= 1; } else { if (z > guy.hit.z) { z -= 1; guy.hit.z += 1; } } } } } did = _root.did; _root.did += 1; thisEnemyDead = false; iconFix = 0; healthType = 20; var enemyColour; var blockMode; alive = false; guytype = 'standard'; hp = 20; maxhp = hp; z = -100; direct = 1; xspeed = 0; yspeed = 0; zspeed = 0; xmax = 4; zmax = 2; air = false; tallness = _height; fatness = _width / 2; deepness = 10; movement = 'free'; strategy = 'approach'; movetime = 0; punchtime = 0; attack = 'none'; attackdelay = 0; attacktype = 0; turnhit = 2; guy = _parent.guy; player = _root.level.player; shade = _parent.shade; } onClipEvent (enterFrame) { if (!_root.gamepause) { if (_root.bossDead == true) { thisEnemyDead = true; --_root.enemies; hp = 0; movement = 'dead'; movetime = 25; } if (alive) { if (_parent._x > _root.level.newlim + 110) { _parent._x = _root.level.newlim + 110; } if (_parent._x < _root.level.leftlim - 110) { _parent._x = _root.level.leftlim - 110; } oldx = _parent._x; oldy = _parent._y; oldz = z; if (enemyColour == 1 && player.hit.robot == 1 || enemyColour == 2 && player.hit.robot == 2 || enemyColour == 3 && player.hit.robot == 3) { if (movement == 'down') { blockMode = false; } else { blockMode = true; } } else { blockMode = false; } if (player.hit.attack == 'none') { lasthit = undefined; } if (Math.abs(z - player.hit.z) < player.hit.deepness + deepness) { if (_parent.guy.vuln.hitTest(player.guy.carry.hit) && movement != 'dead' && movement != 'down') { if (lasthit != player.hit.attack) { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); lasthit = player.hit.attack; } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); lasthit = player.hit.attack; } if (player.hit.attack == 'desp') { if (_root.dontdamage == false && player.hit.invuln == 0) { if (_root.hp > 10) { _root.hp -= 6; } else { _root.hp = 1; } } if (_root.dontdamage == true) { _root.hp = 100; } _root.dontdamage = false; } if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } } } else { if (_parent.guy.vuln.hitTest(player.guy.carry.hit2) && movement != 'dead' && movement != 'down') { if (blockMode == false) { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, player.hit.knockdown, player.hit.knockup); } else { hurt(player.hit.damager * _root.turboMulti, player.hit.stuntime, 0, player.hit.knockup); } if (blockMode == true) { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback * 2; } else { knockback = -player.hit.knockback * 2; } } } else { if (player.hit.robot == 2) { if (_parent._x > player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } if (player.hit.robot == 3) { if (_parent._x < player._x) { knockback = player.hit.knockback; } else { knockback = -player.hit.knockback; } turnhit -= 1; if (turnhit == 0) { direct *= -1; turnhit = 2; } } } } else { if (player.guy.vuln.hitTest(_parent.guy.carry.hit)) { player.hit.hurt(8 / _root.turboMulti, 0); punchtime = 16; } } } } if (player.hit.direct * (player._x - _parent._x) < 0) { facing = true; } else { facing = false; } xdif = Math.abs(player._x - _parent._x); xmove = 0; zmove = 0; if (movement == 'free') { if (guytype == 'standard') { attackdelay -= 1; if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } else { if (guytype == 'smart') { if (player.hit.movement == 'attack' && xdif < 150) { if (facing) { strategy = 'avoid'; avoidtime -= 1; attackdelay = 5; if (avoidtime <= 0) { xmove = -player.hit.direct; if (Math.abs(z - player.hit.z) < 40) { if (z > player.hit.z) { zmove = 1; } else { zmove = -1; } } } } else { if (Math.abs(player._x - _parent._x) < 50) { xmove = -player.hit.direct; strategy = 'avoid'; attackdelay = 8; } else { attackdelay = 0; } } } else { attackdelay -= 1; } if (attackdelay <= 0) { strategy = 'approach'; } if (strategy == 'approach' && !air) { avoidtime = 4; if (player._x > _parent._x + 90) { xmove = 1; xgood = false; } else { if (player._x < _parent._x - 90) { xmove = -1; xgood = false; } else { xgood = true; } } if (player._y > _parent._y + 30) { ygood = false; } else { if (player._y < _parent._y - 30) { ygood = false; } else { ygood = true; } } if (xdif < 200) { if (player.hit.z > z + 20) { zmove = 1; zgood = false; } else { if (player.hit.z < z - 20) { zmove = -1; zgood = false; } else { zgood = true; } } } else { zgood = false; } if (xgood && zgood && ygood && punchtime == 0) { movement = 'attack'; attacktype = random(3); movetime = 8; if (player._x > _parent._x) { direct = 1; } else { direct = -1; } } } if (xmove != 0 && oldxdif == xdif) { stucktime -= 1; if (stucktime <= 0) { zmove = 1; } } else { stucktime = 6; } oldxdif = xdif; } } } else { if (movement == 'down') { } } if (xmove != 0) { xspeed = xmove * xmax; direct = xmove; } if (zmove != 0) { zspeed = zmove * zmax; } _parent._x += xspeed; z += zspeed; if (xspeed > xmax / 4) { xspeed -= xmax / 4; } else { if (xspeed < -xmax / 4) { xspeed += xmax / 4; } else { xspeed = 0; } } if (zspeed > zmax / 4) { zspeed -= zmax / 4; } else { if (zspeed < -zmax / 4) { zspeed += zmax / 4; } else { zspeed = 0; } } _parent._x += knockback; if (knockback > 0) { knockback -= 1; } else { if (knockback < 0) { knockback += 1; } } if (yspeed == undefined) { yspeed = 0; } _parent._y += yspeed; if (_parent._y >= 450) { air = false; _parent._y = 450; yspeed = 0; } if (yspeed > 3) { air = true; } yspeed += 3; if (punchtime > 0) { punchtime -= 1; } if (movetime > 0) { movetime -= 1; } else { if (movement == 'attack') { movement = 'free'; attack = 'none'; } else { if (movement == 'hurt') { movement = 'free'; } else { if (movement == 'dead') { movement = 'free'; alive = false; } else { if (movement == 'down') { if (blockMode == false) { movement = 'getup'; movetime = 7; } else { movement = 'free'; } } else { if (movement == 'getup') { movement = 'free'; } } } } } } if (z > -10) { z = -10; } else { if (z < -210) { z = -210; } } others(_root.level.player); others(_root.level.enemy1); others(_root.level.enemy2); others(_root.level.enemy3); others(_root.level.enemy4); others(_root.level.enemy5); others(_root.level.enemy6); others(_root.level.enemy7); others(_root.level.enemy8); } else { _parent._y = -4000; } guy._y = z; guy._x = z / 10; guy._xscale = direct * 100; _parent.swapDepths(10000 + z * 100 - did); if (!alive) { goframe = 59; } else { if (movement == 'hurt') { if (blockMode == false) { goframe = 4; } else { ++_root.blockingTimes; goframe = 11; } } else { if (movement == 'dead') { goframe = 5; } else { if (movement == 'down') { if (blockMode == false) { goframe = 7; } else { if (_root.level.phase == 5) { ++_root.blockingTimes; } goframe = 11; } } else { if (movement == 'getup') { goframe = 8; } else { if (air) { goframe = 6; } else { if (movement == 'attack') { if (attacktype == 0) { goframe = 3; } else { if (attacktype == 1) { goframe = 9; } else { goframe = 10; } } } else { if (Math.abs(xspeed) > 0) { goframe = 2; } else { if (Math.abs(zspeed) > 0) { goframe = 2; } else { goframe = 1; } } } } } } } } } guy.gotoAndStop(goframe + 0); } } } instance guy of movieClip 6895 { onClipEvent (enterFrame) { if (!_root.gamepause) { carry.play(); } else { carry.stop(); } } } } movieClip 6897 { instance shade8 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy8; } } instance shade7 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy7; } } instance shade6 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy6; } } instance shade5 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy5; } } instance shade4 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy4; } } instance shade3 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy3; } } instance shade2 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy2; } } instance shade1 of movieClip 1783 { onClipEvent (load) { guy = _root.level.enemy1; } } instance shade of movieClip 6263 { onClipEvent (load) { guy = _root.level.player; } } instance enemy1 of movieClip 6878 { onClipEvent (load) { shade = _root.level.shade1; } } instance enemy2 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade2; } } instance enemy3 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade3; } } instance enemy4 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade4; } } instance enemy5 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade5; } } instance enemy6 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade6; } } instance enemy7 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade7; } } instance enemy8 of movieClip 6896 { onClipEvent (load) { shade = _root.level.shade8; } } } instance level of movieClip 6897 { onClipEvent (load) { _root.enemies = 0; leftlim = 0; rightlim = 800; newlim = 800; gotoy = -50; phase = 0; } onClipEvent (enterFrame) { if (_root.enemies < 0) { _root.enemies = 0; } if (player._x < leftlim + 400) { _x = -leftlim; } else { if (player._x > rightlim - 400) { _x = -rightlim + 800; } else { _x = -player._x + 400; } } _x = _x + 10; if (_y < gotoy - 10) { _y = _y + 10; } else { if (_y > gotoy + 10) { _y = _y - 10; } else { _y = gotoy; } } if (rightlim < newlim - 20) { rightlim += 20; } else { rightlim = newlim; } if (_root.phase0timer == 150) { phase = 1; } if (phase == 1) { _root.level.enemy1.hit.alive = false; _root.level.enemy2.hit.alive = false; _root.level.enemy3.hit.alive = false; _root.level.enemy4.hit.alive = false; _root.level.enemy5.hit.alive = false; _root.level.enemy6.hit.alive = false; _root.level.enemy7.hit.alive = false; _root.level.enemy8.hit.alive = false; _root.bossShow = true; _root.bossDead = false; _root.bhs.gotoAndPlay('show'); _root.spawn('standard', 600, 0, -100); _root.enemies = 1; phase = 2; } else { if (phase == 2) { if (_root.enemies == 0) { phase = 3; } } } if (_root.phase0timer == 275 || _root.phase0timer == 575 || _root.phase0timer == 875 || _root.phase0timer == 1175 || _root.phase0timer == 1475 || _root.phase0timer == 1775 || _root.phase0timer == 2075 || _root.phase0timer == 2375 || _root.phase0timer == 2675 || _root.phase0timer == 2975 || _root.phase0timer == 3275 || _root.phase0timer == 3575 || _root.phase0timer == 3875 || _root.phase0timer == 4175 || _root.phase0timer == 4475 || _root.phase0timer == 4775 || _root.phase0timer == 5075 || _root.phase0timer == 5375 || _root.phase0timer == 5675 || _root.phase0timer == 5975 || _root.phase0timer == 6275 || _root.phase0timer == 6575 || _root.phase0timer == 6875 || _root.phase0timer == 7175 || _root.phase0timer == 7475 || _root.phase0timer == 7775 || _root.phase0timer == 8075 || _root.phase0timer == 8375 || _root.phase0timer == 8675 || _root.phase0timer == 8975 || _root.phase0timer == 9275 || _root.phase0timer == 9575 || _root.phase0timer == 9875 || _root.phase0timer == 10175 || _root.phase0timer == 10475 || _root.phase0timer == 10775 || _root.phase0timer == 11075 || _root.phase0timer == 11375 || _root.phase0timer == 11675 || _root.phase0timer == 11975) { if (_root.sendenemy == true) { ++_root.enemies; enemshowSound = new Sound(); enemshowSound.attachSound('enemshow'); enemshowSound.start(0, 1); _root.spawn('standard', 400, 0, -100); } } } } movieClip 6899 { } movieClip 6901 { } movieClip 6902 { } movieClip 6903 { frame 1 { stop(); } frame 148 { stop(); } } movieClip 6905 { } movieClip 6913 { frame 1 { stop(); } } instance hp4 of movieClip 6913 { onClipEvent (load) { goalhp = 500; fullhp = 500; myhp = 0; timer = 0; fulltimer = 120; _alpha = 100; } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } goalhp = _root.level.enemy1.hit.hp; fullhp = _root.level.enemy1.hit.maxhp; if (_root.bossShow == true && _root.bossDead == false && _root.bossHealthOn == true) { gotoAndStop(Math.round(goalhp * 100 / fullhp) + 21); } else { gotoAndStop(1); } } } } movieClip 6920 { frame 1 { stop(); } frame 22 { _root.bossHealthOn = true; gotoAndStop(1); } frame 44 { gotoAndStop(1); } } movieClip 6925 { } instance hp3 of movieClip 6925 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp2 of movieClip 6925 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } instance hp1 of movieClip 6925 { onClipEvent (load) { myhp = 0; timer = 0; fulltimer = 120; myguy = 'free'; if (myguy.healthType == 20) { goalhp = 20; fullhp = 20; } if (myguy.healthType == 30) { goalhp = 30; fullhp = 30; } } onClipEvent (enterFrame) { if (!_root.gamepause) { this.hptext.text = goalhp; if (this.hptext.text < 0) { this.hptext.text = 0; } if (myguy == 'free') { _alpha = 0; } else { goalhp = myguy.hp; fullhp = myguy.maxhp; myhead = myguy.myhead + (myguy.mycolour - 1) * 5 + myguy.iconFix; if (myguy != lastguy) { myhp = goalhp; } if (myhp < goalhp) { myhp += 1; } else { if (myhp > goalhp) { myhp -= 1; } } gotoAndStop(Math.round(myhp * 100 / fullhp) + 1); _alpha = 100; timer -= 1; if (timer <= 0) { myguy = 'free'; } if (timer > 10 && myhp <= 0) { timer = 10; } } lastguy = myguy; } } } movieClip 6927 { frame 1 { stop(); } frame 2 { stopAllSounds(); _root.endbitSound = new Sound(); _root.endbitSound.attachSound('endsong'); _root.endbitSound.start(); _root.oktopause = false; if (_root.level.player.hit.robot == 1) { _root.transitionbot = 1; } if (_root.level.player.hit.robot == 2) { _root.transitionbot = 2; } if (_root.level.player.hit.robot == 3) { _root.transitionbot = 3; } } frame 3 { if (_root.medal14 == false) { _root.medal14 = true; _root.savefile.data.medal14 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } if (_root.replayedlevel == false) { if (_root.medal15 == false) { _root.medal15 = true; _root.savefile.data.medal15 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } } _root.gotoybegin = true; } frame 191 { _root.gotoAndStop('finalAnim'); } } movieClip 6930 { } movieClip 6932 { } movieClip 6933 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 6934 { frame 1 { stop(); } } movieClip 6936 { } movieClip 6937 { } movieClip 6939 { } movieClip 6942 { } movieClip 6943 { } movieClip 6944 { frame 1 { _root.oktopause = false; trb1.trb2.trb3.trb4.gotoAndStop(_root.transitionbot); } frame 2 { _root.noshadow = true; _root.level.player._alpha = 0; _root.level.lev6platform._alpha = 0; _root.spikes._alpha = 0; } frame 14 { _root.backgroundMusic = new Sound(); _root.backgroundMusic.attachSound('level6loop'); _root.backgroundMusic.start(0, 999999); } frame 60 { _root.oktopause = true; _root.noshadow = false; _root.level.player._alpha = 100; _root.level.lev6platform._alpha = 100; _root.spikes._alpha = 100; _root.dontmovedown = false; } frame 96 { stop(); } } frame 21 { stop(); _root.oktopause = true; onEnterFrame = function () {}; } movieClip 6946 { } movieClip 6974 { } movieClip 6991 { } movieClip 6997 { } movieClip 6999 { } movieClip 7002 { } movieClip 7004 { } movieClip 7006 { } movieClip 7008 { } movieClip 7010 { } movieClip 7012 { } movieClip 7014 { } movieClip 7016 { } movieClip 7018 { } movieClip 7020 { } movieClip 7024 { } movieClip 7026 { } movieClip 7028 { } movieClip 7031 { } movieClip 7033 { } movieClip 7035 { } movieClip 7037 { } movieClip 7040 { } movieClip 7043 { } movieClip 7045 { } movieClip 7048 { } movieClip 7050 { } movieClip 7053 { } movieClip 7055 { } movieClip 7058 { } movieClip 7060 { } movieClip 7063 { } movieClip 7065 { } movieClip 7068 { } movieClip 7070 { } movieClip 7073 { } movieClip 7076 { } movieClip 7079 { } movieClip 7081 { } movieClip 7084 { } movieClip 7087 { } movieClip 7089 { } movieClip 7092 { } movieClip 7094 { } movieClip 7096 { } movieClip 7099 { } movieClip 7101 { } movieClip 7103 { } movieClip 7105 { } movieClip 7107 { } movieClip 7110 { } movieClip 7113 { } movieClip 7115 { } movieClip 7118 { } movieClip 7120 { } movieClip 7123 { } movieClip 7126 { } movieClip 7131 { } movieClip 7133 { } movieClip 7138 { } movieClip 7140 { } movieClip 7144 { } movieClip 7147 { } movieClip 7150 { } movieClip 7153 { } movieClip 7156 { } movieClip 7160 { } movieClip 7164 { } movieClip 7166 { frame 21 { stop(); } } movieClip 7168 { } button 7169 { on (rollOver) { mm.useHandCursor = false; rolloverSound = new Sound(); rolloverSound.attachSound('butupsound'); rolloverSound.start(0, 1); } on (release) { if (mamupressed == false) { mamupressed = true; stopAllSounds(); gotoAndPlay('aftermamu'); } } } movieClip 7176 { frame 1 { stop(); } frame 11 { stopAllSounds(); mamupressed = false; bluediedtext.text = _root.bluedied; yellowdiedtext.text = _root.yellowdied; reddiedtext.text = _root.reddied; bluekilledtext.text = _root.bluekilled; yellowkilledtext.text = _root.yellowkilled; redkilledtext.text = _root.redkilled; } frame 23 { stop(); _root.credSound = new Sound(); _root.credSound.attachSound('credLoop'); _root.credSound.start(0, 99); } frame 42 { _root.bluedied = 0; _root.yellowdied = 0; _root.reddied = 0; _root.bluekilled = 0; _root.yellowkilled = 0; _root.redkilled = 0; } frame 45 { _root.gotoAndStop('mainmenu'); } } movieClip 7177 { frame 292 { stop(); initiateclose1 = false; initiateclose2 = true; onEnterFrame = function () { creditsUp._y -= 1; tribotsUp._y -= 1; if (creditsUp._y < -1000) { if (_root.medal3 == false) { _root.medal3 = true; _root.savefile.data.medal3 = true; _root.savefile.flush(); ++_root.medals; ++_root.savefile.data.medals; _root.savefile.flush(); } initiateclose1 = true; } if (initiateclose1 == true && initiateclose2 == true) { closescreen.gotoAndPlay('begin'); initiateclose2 = false; } }; } }




https://swfchan.com/54/267980/info.shtml
Created: 11/6 -2026 11:04:22 Last modified: 11/6 -2026 11:04:22 Server time: 07/07 -2026 18:11:30