Combined Code
frame 1 {
function itemHandler1(obj, item) {
_quality = 'LOW';
}
function itemHandler2(obj, item) {
_quality = 'MEDIUM';
}
function itemHandler3(obj, item) {
_quality = 'HIGH';
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
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;
__com_mochibot__('0efdb893', this, 10301, true);
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 7 {
}
movieClip 9 {
}
button 11 {
on (rollOver) {
fjf.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=logo&utm_campaign=tribotfighter', '_blank');
}
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 40 {
}
button 42 {
on (rollOver) {
devb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.ratherrandomreality.com', '_blank');
}
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 60 {
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 66 {
}
movieClip 67 {
}
movieClip 70 {
}
movieClip 73 {
}
movieClip 75 {
}
button 77 {
on (rollOver) {
pl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('continue');
}
}
movieClip 82 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar1._xscale = PercentLoaded;
bar2._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
frame 15 {
}
frame 23 {
_root.play();
}
}
frame 2 {
stop();
}
movieClip 106 {
frame 1 {
stop();
}
}
movieClip 109 {
}
movieClip 112 {
}
movieClip 115 {
}
movieClip 118 {
}
movieClip 121 {
}
movieClip 124 {
}
movieClip 127 {
}
movieClip 130 {
}
movieClip 134 {
}
movieClip 140 {
}
movieClip 147 {
}
movieClip 148 {
}
button 150 {
on (rollOver) {
fj.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=splash&utm_campaign=tribotfighter', '_blank');
}
}
movieClip 153 {
}
movieClip 155 {
}
movieClip 157 {
}
movieClip 159 {
}
movieClip 161 {
}
movieClip 163 {
}
movieClip 165 {
}
movieClip 167 {
}
movieClip 168 {
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 174 {
}
movieClip 175 {
frame 11 {
prevFrame();
}
}
movieClip 178 {
}
movieClip 180 {
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 186 {
}
movieClip 188 {
}
movieClip 190 {
}
movieClip 193 {
}
movieClip 195 {
}
movieClip 201 {
}
movieClip 203 {
}
movieClip 205 {
}
movieClip 208 {
}
movieClip 210 {
}
movieClip 212 {
}
movieClip 214 {
}
movieClip 216 {
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 222 {
}
movieClip 224 {
}
movieClip 226 {
}
movieClip 228 {
}
movieClip 230 {
}
movieClip 231 {
}
movieClip 233 {
}
movieClip 235 {
}
movieClip 237 {
}
movieClip 239 {
}
movieClip 240 {
}
movieClip 242 {
}
movieClip 244 {
}
movieClip 246 {
}
movieClip 248 {
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 256 {
}
movieClip 258 {
}
movieClip 260 {
}
movieClip 262 {
}
movieClip 264 {
}
movieClip 266 {
}
movieClip 268 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 277 {
}
movieClip 279 {
}
movieClip 280 {
frame 20 {
gotoAndPlay(4);
}
}
movieClip 281 {
frame 4 {
prevFrame();
}
}
movieClip 283 {
}
movieClip 285 {
}
movieClip 287 {
}
movieClip 289 {
}
movieClip 291 {
}
movieClip 293 {
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 299 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 309 {
}
movieClip 311 {
}
movieClip 313 {
}
movieClip 315 {
}
movieClip 317 {
}
movieClip 319 {
}
movieClip 321 {
}
movieClip 323 {
}
movieClip 325 {
}
movieClip 327 {
}
movieClip 329 {
}
movieClip 331 {
}
movieClip 333 {
}
movieClip 334 {
}
movieClip 336 {
}
movieClip 338 {
}
movieClip 340 {
}
movieClip 342 {
}
movieClip 344 {
}
movieClip 346 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 351 {
instance of movieClip 336 {
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 353 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 358 {
frame 11 {
prevFrame();
}
}
movieClip 360 {
}
movieClip 361 {
}
movieClip 364 {
frame 192 {
_root.play();
}
}
frame 3 {
stop();
}
movieClip 366 {
}
movieClip 370 {
}
movieClip 372 {
}
movieClip 374 {
}
movieClip 376 {
}
movieClip 378 {
}
movieClip 380 {
}
movieClip 382 {
}
movieClip 384 {
}
movieClip 386 {
}
movieClip 388 {
}
movieClip 390 {
}
movieClip 392 {
}
movieClip 394 {
}
movieClip 396 {
}
movieClip 398 {
}
movieClip 400 {
}
movieClip 402 {
}
movieClip 404 {
}
movieClip 406 {
}
movieClip 408 {
}
movieClip 410 {
}
movieClip 411 {
}
movieClip 413 {
}
movieClip 415 {
}
movieClip 417 {
}
movieClip 419 {
}
movieClip 421 {
}
movieClip 423 {
}
movieClip 424 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 426 {
}
movieClip 430 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 434 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 438 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
button 440 {
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 443 {
frame 191 {
_root.play();
}
}
frame 4 {
stop();
musicplaying = true;
introskippressed = false;
}
movieClip 445 {
}
movieClip 447 {
}
movieClip 449 {
}
movieClip 451 {
}
movieClip 453 {
}
movieClip 455 {
}
movieClip 457 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 14 {
_root.intro.gotoAndPlay('skipafter');
}
}
movieClip 459 {
}
movieClip 462 {
}
movieClip 464 {
}
movieClip 466 {
}
movieClip 468 {
}
movieClip 470 {
}
movieClip 471 {
}
movieClip 472 {
}
movieClip 474 {
}
movieClip 476 {
}
movieClip 478 {
}
movieClip 479 {
}
movieClip 481 {
}
button 483 {
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 486 {
}
movieClip 512 {
}
movieClip 513 {
}
movieClip 527 {
}
movieClip 535 {
}
movieClip 537 {
}
movieClip 540 {
}
movieClip 542 {
}
movieClip 545 {
}
movieClip 547 {
}
movieClip 550 {
}
movieClip 551 {
}
movieClip 560 {
}
movieClip 562 {
}
movieClip 564 {
}
movieClip 566 {
}
movieClip 568 {
}
movieClip 571 {
}
movieClip 574 {
}
movieClip 577 {
}
movieClip 579 {
}
movieClip 592 {
}
movieClip 595 {
}
movieClip 601 {
}
movieClip 603 {
}
movieClip 605 {
}
movieClip 608 {
}
movieClip 610 {
}
movieClip 611 {
}
movieClip 612 {
}
movieClip 615 {
}
movieClip 619 {
}
movieClip 621 {
}
movieClip 624 {
}
movieClip 626 {
}
movieClip 629 {
}
movieClip 631 {
}
movieClip 635 {
}
movieClip 638 {
}
movieClip 640 {
}
movieClip 642 {
}
movieClip 644 {
}
movieClip 646 {
}
movieClip 648 {
}
movieClip 654 {
}
movieClip 655 {
}
movieClip 658 {
}
movieClip 660 {
}
movieClip 662 {
}
movieClip 664 {
}
movieClip 667 {
}
movieClip 676 {
}
movieClip 680 {
}
movieClip 685 {
}
movieClip 687 {
}
movieClip 694 {
}
movieClip 696 {
}
movieClip 703 {
}
movieClip 705 {
}
movieClip 707 {
}
movieClip 709 {
}
movieClip 712 {
}
movieClip 721 {
}
movieClip 777 {
}
movieClip 833 {
}
movieClip 889 {
}
movieClip 945 {
}
movieClip 1001 {
}
movieClip 1057 {
}
movieClip 1113 {
}
movieClip 1114 {
}
movieClip 1115 {
}
movieClip 1116 {
}
movieClip 1117 {
}
movieClip 1124 {
}
movieClip 1128 {
}
movieClip 1131 {
}
movieClip 1139 {
}
movieClip 1141 {
}
movieClip 1143 {
}
movieClip 1146 {
}
button 1147 {
on (rollOver) {
sk.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
}
movieClip 1148 {
}
movieClip 1150 {
}
movieClip 1154 {
}
movieClip 1159 {
frame 150 {
stop();
}
}
movieClip 1161 {
}
movieClip 1165 {
}
movieClip 1170 {
frame 150 {
stop();
}
}
movieClip 1172 {
}
movieClip 1176 {
}
movieClip 1181 {
frame 150 {
stop();
}
}
movieClip 1186 {
}
movieClip 1188 {
}
movieClip 1190 {
}
movieClip 1192 {
}
movieClip 1194 {
}
movieClip 1196 {
}
movieClip 1198 {
}
movieClip 1200 {
}
movieClip 1202 {
}
movieClip 1204 {
}
movieClip 1206 {
}
movieClip 1208 {
}
movieClip 1210 {
}
movieClip 1212 {
}
movieClip 1214 {
}
movieClip 1217 {
}
movieClip 1219 {
}
movieClip 1221 {
}
movieClip 1223 {
}
movieClip 1225 {
}
movieClip 1227 {
}
movieClip 1229 {
}
movieClip 1231 {
}
movieClip 1233 {
}
movieClip 1235 {
}
movieClip 1237 {
}
movieClip 1239 {
}
movieClip 1241 {
}
movieClip 1243 {
}
movieClip 1245 {
}
movieClip 1247 {
}
movieClip 1248 {
}
movieClip 1250 {
}
movieClip 1252 {
}
movieClip 1255 {
}
movieClip 1257 {
}
movieClip 1259 {
}
movieClip 1261 {
}
movieClip 1263 {
}
movieClip 1265 {
}
movieClip 1267 {
}
movieClip 1269 {
}
movieClip 1271 {
}
movieClip 1273 {
}
movieClip 1274 {
}
movieClip 1276 {
}
movieClip 1279 {
}
movieClip 1280 {
}
movieClip 1281 {
}
movieClip 1284 {
}
movieClip 1286 {
}
movieClip 1288 {
}
movieClip 1290 {
}
movieClip 1292 {
}
movieClip 1294 {
}
movieClip 1296 {
}
movieClip 1298 {
}
movieClip 1300 {
}
movieClip 1301 {
}
movieClip 1302 {
}
movieClip 1304 {
}
movieClip 1305 {
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 1308 {
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 1310 {
}
movieClip 1312 {
}
button 1314 {
on (rollOver) {
ag.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.ratherrandomreality.com', '_blank');
}
}
button 1315 {
on (rollOver) {
mg.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=moregames&utm_campaign=tribotfighter', '_blank');
}
}
button 1316 {
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 1318 {
}
button 1319 {
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 1320 {
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 1321 {
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 1323 {
on (rollOver) {
spons.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=logo&utm_campaign=tribotfighter', '_blank');
}
}
movieClip 1325 {
}
button 1327 {
on (rollOver) {
addt.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/game-downloads/tribotfighter.zip', '_blank');
}
}
movieClip 1328 {
frame 8 {
stop();
}
}
movieClip 1330 {
}
button 1331 {
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 1332 {
frame 8 {
stop();
}
}
movieClip 1333 {
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 1335 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 22 {
_root.gotoAndPlay('gameintro');
}
}
movieClip 1338 {
}
movieClip 1340 {
}
movieClip 1341 {
}
movieClip 1343 {
}
movieClip 1345 {
}
movieClip 1346 {
}
movieClip 1347 {
frame 1 {
stop();
}
frame 24 {
gotoAndStop(1);
}
frame 47 {
gotoAndStop(1);
}
}
frame 6 {
stop();
}
movieClip 1349 {
}
movieClip 1351 {
}
button 1352 {
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 1355 {
}
button 1357 {
on (rollOver) {
fjs.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=logo&utm_campaign=tribotfighter', '_blank');
}
}
movieClip 1360 {
}
movieClip 1362 {
}
movieClip 1364 {
}
button 1365 {
on (rollOver) {
adc.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.ratherrandomreality.com', '_blank');
}
}
movieClip 1367 {
}
movieClip 1369 {
}
button 1370 {
on (rollOver) {
ap.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.mcsmstudios.com', '_blank');
}
}
movieClip 1372 {
}
movieClip 1374 {
}
movieClip 1376 {
}
movieClip 1378 {
}
movieClip 1380 {
}
movieClip 1382 {
}
movieClip 1384 {
}
movieClip 1386 {
}
movieClip 1388 {
}
movieClip 1390 {
}
movieClip 1392 {
}
button 1393 {
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 1395 {
}
button 1396 {
on (rollOver) {
ac2.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.symphonyofspecters.com/', '_blank');
}
}
movieClip 1398 {
}
button 1399 {
on (rollOver) {
ac3.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://davidorr.net', '_blank');
}
}
movieClip 1401 {
}
button 1402 {
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 1404 {
}
button 1405 {
on (rollOver) {
ac5.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://deathkllr84.newgrounds.com/', '_blank');
}
}
movieClip 1407 {
}
button 1408 {
on (rollOver) {
ac6.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.hearmick.com/', '_blank');
}
}
movieClip 1409 {
}
movieClip 1410 {
}
movieClip 1412 {
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 1413 {
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 1415 {
}
movieClip 1417 {
}
button 1422 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri1to2');
}
}
button 1427 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
}
movieClip 1429 {
}
movieClip 1431 {
}
movieClip 1433 {
}
movieClip 1434 {
}
movieClip 1437 {
}
movieClip 1439 {
}
movieClip 1440 {
}
button 1441 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri2to3');
}
}
button 1445 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri2to1');
}
}
movieClip 1447 {
}
movieClip 1450 {
}
movieClip 1452 {
}
movieClip 1453 {
}
button 1454 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri3to4');
}
}
button 1455 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri3to2');
}
}
movieClip 1457 {
}
movieClip 1460 {
}
movieClip 1462 {
}
movieClip 1463 {
}
button 1464 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri4to5');
}
}
button 1465 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri4to3');
}
}
movieClip 1467 {
}
movieClip 1470 {
}
movieClip 1474 {
}
movieClip 1482 {
}
movieClip 1483 {
instance of movieClip 1474 {
}
}
movieClip 1484 {
}
button 1485 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri5to6');
}
}
button 1486 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri5to4');
}
}
movieClip 1488 {
}
movieClip 1491 {
}
movieClip 1494 {
}
movieClip 1495 {
}
movieClip 1496 {
}
movieClip 1497 {
}
button 1501 {
on (rollOver) {
br.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
}
button 1502 {
on (rollOver) {
bl.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('tri6to5');
}
}
movieClip 1504 {
}
movieClip 1506 {
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 1507 {
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 1508 {
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 1510 {
}
movieClip 1512 {
}
movieClip 1514 {
}
movieClip 1516 {
}
button 1517 {
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 1519 {
}
movieClip 1520 {
}
movieClip 1521 {
}
button 1522 {
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 1523 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1524 {
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 1526 {
}
movieClip 1527 {
}
movieClip 1528 {
}
button 1529 {
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 1530 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1531 {
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 1533 {
}
movieClip 1534 {
}
movieClip 1535 {
}
button 1536 {
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 1537 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1538 {
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 1540 {
}
movieClip 1542 {
}
movieClip 1543 {
}
movieClip 1544 {
}
movieClip 1545 {
}
button 1546 {
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 1547 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1548 {
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 1550 {
}
movieClip 1552 {
}
movieClip 1553 {
}
movieClip 1554 {
}
movieClip 1555 {
}
button 1556 {
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 1557 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1558 {
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 1560 {
}
movieClip 1562 {
}
movieClip 1563 {
}
movieClip 1564 {
}
movieClip 1565 {
}
button 1566 {
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 1567 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1568 {
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 1570 {
}
movieClip 1572 {
}
movieClip 1573 {
}
movieClip 1574 {
}
movieClip 1575 {
}
button 1576 {
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 1577 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1578 {
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 1580 {
}
movieClip 1581 {
}
movieClip 1582 {
}
button 1583 {
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 1584 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1585 {
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 1587 {
}
movieClip 1588 {
}
movieClip 1589 {
}
button 1590 {
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 1591 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1592 {
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 1594 {
}
movieClip 1595 {
}
movieClip 1596 {
}
button 1597 {
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 1598 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1599 {
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 1601 {
}
movieClip 1602 {
}
movieClip 1603 {
}
button 1604 {
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 1605 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1606 {
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 1608 {
}
movieClip 1610 {
}
movieClip 1611 {
}
movieClip 1612 {
}
button 1613 {
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 1614 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1615 {
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 1617 {
}
movieClip 1619 {
}
movieClip 1620 {
}
movieClip 1621 {
}
button 1622 {
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 1623 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1624 {
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 1626 {
}
movieClip 1627 {
}
movieClip 1628 {
}
button 1629 {
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 1630 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1631 {
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 1633 {
}
movieClip 1634 {
}
movieClip 1635 {
}
button 1636 {
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 1637 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 1638 {
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 1640 {
}
movieClip 1641 {
}
movieClip 1642 {
}
button 1643 {
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 1644 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1661 {
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 1663 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1680 {
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 1682 {
}
// unknown tag 88 length 123
movieClip 1686 {
}
movieClip 1687 {
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 1690 {
}
button 1693 {
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 1694 {
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 1695 {
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 1697 {
}
movieClip 1700 {
}
movieClip 1702 {
}
movieClip 1704 {
}
movieClip 1707 {
}
movieClip 1709 {
}
movieClip 1710 {
}
movieClip 1711 {
frame 1 {
if (_root.a5 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1713 {
}
movieClip 1715 {
}
movieClip 1718 {
}
movieClip 1720 {
}
movieClip 1721 {
}
movieClip 1722 {
frame 1 {
if (_root.a2 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1724 {
}
movieClip 1726 {
}
movieClip 1729 {
}
movieClip 1731 {
}
movieClip 1732 {
}
movieClip 1733 {
frame 1 {
if (_root.a8 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1735 {
}
movieClip 1737 {
}
movieClip 1740 {
}
movieClip 1742 {
}
movieClip 1743 {
}
movieClip 1744 {
frame 1 {
if (_root.a11 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1746 {
}
movieClip 1748 {
}
movieClip 1751 {
}
movieClip 1753 {
}
movieClip 1754 {
}
movieClip 1755 {
frame 1 {
if (_root.a14 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1757 {
}
movieClip 1759 {
}
movieClip 1762 {
}
movieClip 1763 {
}
movieClip 1764 {
frame 1 {
if (_root.a17 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1766 {
}
movieClip 1768 {
}
movieClip 1771 {
}
movieClip 1773 {
}
movieClip 1774 {
}
movieClip 1775 {
frame 1 {
if (_root.a1 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1777 {
}
movieClip 1779 {
}
movieClip 1782 {
}
movieClip 1784 {
}
movieClip 1785 {
}
movieClip 1786 {
}
movieClip 1787 {
frame 1 {
if (_root.a4 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1789 {
}
movieClip 1791 {
}
movieClip 1793 {
}
movieClip 1794 {
frame 1 {
if (_root.a7 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1796 {
}
movieClip 1798 {
}
movieClip 1801 {
}
movieClip 1803 {
}
movieClip 1804 {
}
movieClip 1805 {
frame 1 {
if (_root.a10 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1807 {
}
movieClip 1809 {
}
movieClip 1811 {
}
movieClip 1812 {
frame 1 {
if (_root.a16 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1814 {
}
movieClip 1816 {
}
movieClip 1818 {
}
movieClip 1819 {
frame 1 {
if (_root.a13 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1821 {
}
movieClip 1823 {
}
movieClip 1826 {
}
movieClip 1828 {
}
movieClip 1830 {
}
movieClip 1831 {
}
movieClip 1832 {
frame 1 {
if (_root.a3 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1834 {
}
movieClip 1836 {
}
movieClip 1839 {
}
movieClip 1841 {
}
movieClip 1842 {
}
movieClip 1843 {
frame 1 {
if (_root.a6 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1845 {
}
movieClip 1847 {
}
movieClip 1850 {
}
movieClip 1851 {
}
movieClip 1852 {
frame 1 {
if (_root.a9 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1854 {
}
movieClip 1856 {
}
movieClip 1859 {
}
movieClip 1860 {
}
movieClip 1861 {
frame 1 {
if (_root.a12 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1863 {
}
movieClip 1865 {
}
movieClip 1867 {
}
movieClip 1868 {
frame 1 {
if (_root.a15 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1870 {
}
movieClip 1872 {
}
movieClip 1875 {
}
movieClip 1876 {
}
movieClip 1877 {
frame 1 {
if (_root.a18 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 1878 {
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 1880 {
}
movieClip 1882 {
}
movieClip 1884 {
}
movieClip 1886 {
}
movieClip 1888 {
}
movieClip 1890 {
}
movieClip 1892 {
}
movieClip 1894 {
}
movieClip 1896 {
}
movieClip 1898 {
}
movieClip 1900 {
}
movieClip 1902 {
}
movieClip 1904 {
}
movieClip 1906 {
}
movieClip 1908 {
}
movieClip 1910 {
}
movieClip 1912 {
}
movieClip 1914 {
}
movieClip 1916 {
}
movieClip 1918 {
}
movieClip 1920 {
}
movieClip 1922 {
}
movieClip 1924 {
}
movieClip 1927 {
}
movieClip 1928 {
}
movieClip 1929 {
}
movieClip 1931 {
}
movieClip 1933 {
}
movieClip 1934 {
}
movieClip 1936 {
}
movieClip 1938 {
}
movieClip 1940 {
}
movieClip 1942 {
}
movieClip 1944 {
}
button 1945 {
on (rollOver) {
gob.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
gotoAndPlay('after');
}
}
movieClip 1946 {
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 1948 {
instance of movieClip 279 {
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 1949 {
instance of movieClip 279 {
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 1950 {
instance of movieClip 279 {
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 1951 {
instance of movieClip 279 {
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 1952 {
instance of movieClip 279 {
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 1960 {
}
movieClip 1964 {
}
movieClip 1965 {
}
movieClip 1975 {
}
movieClip 1977 {
}
movieClip 1979 {
}
movieClip 1981 {
}
movieClip 2005 {
}
movieClip 2007 {
}
movieClip 2008 {
instance hit of movieClip 279 {
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 2034 {
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 2059 {
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 2060 {
}
movieClip 2061 {
frame 1 {
bar.sign.gotoAndStop(_root.passFront);
bar.signBG.gotoAndStop(_root.passBack);
}
}
movieClip 2063 {
}
movieClip 2065 {
}
movieClip 2067 {
}
movieClip 2069 {
}
movieClip 2071 {
}
movieClip 2073 {
}
movieClip 2075 {
}
movieClip 2077 {
}
movieClip 2079 {
}
movieClip 2081 {
}
movieClip 2083 {
}
movieClip 2085 {
}
movieClip 2087 {
}
movieClip 2089 {
}
movieClip 2091 {
}
movieClip 2093 {
}
movieClip 2095 {
}
movieClip 2097 {
}
movieClip 2098 {
frame 11 {
prevFrame();
}
}
movieClip 2102 {
}
movieClip 2105 {
}
movieClip 2108 {
}
movieClip 2111 {
}
movieClip 2114 {
}
movieClip 2117 {
}
movieClip 2120 {
}
movieClip 2122 {
frame 11 {
prevFrame();
}
}
movieClip 2123 {
instance hit of movieClip 279 {
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 279 {
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 2098 {
onClipEvent (load) {
_y = _parent.hit.z - 58;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
stop();
} else {
play();
}
}
}
instance carry of movieClip 2122 {
onClipEvent (load) {
_y = _parent.hit.z - 58;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
stop();
} else {
play();
}
}
}
}
movieClip 2133 {
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 2137 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2147 {
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 2163 {
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 2173 {
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 2183 {
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 2187 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2197 {
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 2198 {
}
movieClip 2199 {
}
movieClip 2200 {
}
movieClip 2202 {
frame 8 {
prevFrame();
}
}
movieClip 2211 {
}
movieClip 2213 {
}
movieClip 2215 {
}
movieClip 2217 {
}
movieClip 2219 {
}
movieClip 2221 {
}
movieClip 2223 {
}
movieClip 2225 {
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 2226 {
}
movieClip 2227 {
frame 9 {
prevFrame();
}
}
movieClip 2228 {
frame 8 {
prevFrame();
}
}
movieClip 2229 {
}
movieClip 2230 {
}
movieClip 2232 {
frame 7 {
prevFrame();
}
}
movieClip 2233 {
}
movieClip 2234 {
instance hit of movieClip 279 {
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 2233 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 2236 {
}
movieClip 2238 {
}
movieClip 2240 {
}
movieClip 2241 {
}
movieClip 2242 {
frame 12 {
gotoAndPlay(4);
}
}
movieClip 2244 {
}
movieClip 2247 {
}
movieClip 2250 {
}
movieClip 2252 {
}
movieClip 2254 {
}
movieClip 2255 {
}
movieClip 2257 {
}
movieClip 2259 {
}
movieClip 2262 {
}
movieClip 2263 {
}
movieClip 2265 {
}
movieClip 2267 {
}
movieClip 2269 {
}
movieClip 2271 {
}
movieClip 2272 {
}
movieClip 2274 {
}
movieClip 2276 {
}
movieClip 2279 {
}
movieClip 2280 {
}
movieClip 2282 {
}
movieClip 2284 {
}
movieClip 2286 {
}
movieClip 2287 {
}
movieClip 2289 {
}
movieClip 2291 {
}
movieClip 2293 {
}
movieClip 2294 {
}
movieClip 2296 {
}
movieClip 2298 {
}
movieClip 2300 {
}
movieClip 2301 {
}
movieClip 2303 {
}
movieClip 2305 {
}
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 2334 {
}
movieClip 2336 {
}
movieClip 2337 {
}
movieClip 2339 {
}
movieClip 2341 {
}
movieClip 2343 {
}
movieClip 2345 {
}
movieClip 2348 {
}
movieClip 2350 {
}
movieClip 2352 {
}
movieClip 2355 {
}
movieClip 2357 {
}
movieClip 2359 {
}
movieClip 2361 {
}
movieClip 2363 {
}
movieClip 2364 {
}
movieClip 2366 {
}
movieClip 2368 {
}
movieClip 2371 {
}
movieClip 2373 {
}
movieClip 2375 {
}
movieClip 2377 {
}
movieClip 2379 {
}
movieClip 2381 {
}
movieClip 2383 {
}
movieClip 2385 {
}
movieClip 2387 {
}
movieClip 2389 {
}
movieClip 2391 {
}
movieClip 2393 {
}
movieClip 2395 {
}
movieClip 2396 {
}
movieClip 2398 {
}
movieClip 2400 {
}
movieClip 2402 {
}
movieClip 2404 {
}
movieClip 2407 {
}
movieClip 2410 {
}
movieClip 2412 {
}
movieClip 2414 {
}
movieClip 2416 {
}
movieClip 2418 {
}
movieClip 2420 {
}
movieClip 2422 {
}
movieClip 2424 {
}
movieClip 2426 {
}
movieClip 2428 {
}
movieClip 2430 {
}
movieClip 2432 {
}
movieClip 2434 {
}
movieClip 2436 {
}
movieClip 2437 {
}
movieClip 2439 {
}
movieClip 2441 {
}
movieClip 2443 {
}
movieClip 2445 {
}
movieClip 2447 {
}
movieClip 2449 {
}
movieClip 2451 {
}
movieClip 2453 {
}
movieClip 2454 {
}
movieClip 2456 {
}
movieClip 2458 {
}
movieClip 2461 {
}
movieClip 2463 {
}
movieClip 2465 {
}
movieClip 2467 {
}
movieClip 2469 {
}
movieClip 2471 {
}
movieClip 2473 {
}
movieClip 2475 {
}
movieClip 2477 {
}
movieClip 2479 {
}
movieClip 2481 {
}
movieClip 2483 {
}
movieClip 2485 {
}
movieClip 2487 {
}
movieClip 2489 {
}
movieClip 2491 {
}
movieClip 2493 {
}
movieClip 2495 {
}
movieClip 2497 {
}
movieClip 2499 {
}
movieClip 2501 {
}
movieClip 2503 {
}
movieClip 2504 {
}
movieClip 2506 {
}
movieClip 2508 {
}
movieClip 2510 {
}
movieClip 2512 {
}
movieClip 2514 {
}
movieClip 2516 {
}
movieClip 2518 {
}
movieClip 2519 {
}
movieClip 2521 {
}
movieClip 2523 {
}
movieClip 2525 {
}
movieClip 2527 {
}
movieClip 2529 {
}
movieClip 2531 {
}
movieClip 2533 {
}
movieClip 2535 {
}
movieClip 2537 {
}
movieClip 2539 {
}
movieClip 2540 {
}
movieClip 2542 {
}
movieClip 2544 {
}
movieClip 2546 {
}
movieClip 2548 {
}
movieClip 2550 {
}
movieClip 2552 {
}
movieClip 2554 {
}
movieClip 2556 {
}
movieClip 2557 {
}
movieClip 2559 {
}
movieClip 2561 {
}
movieClip 2562 {
}
movieClip 2564 {
}
movieClip 2566 {
}
movieClip 2567 {
}
movieClip 2569 {
}
movieClip 2571 {
}
movieClip 2573 {
}
movieClip 2575 {
}
movieClip 2577 {
}
movieClip 2579 {
}
movieClip 2581 {
}
movieClip 2583 {
}
movieClip 2585 {
}
movieClip 2587 {
}
movieClip 2588 {
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 2590 {
}
movieClip 2592 {
}
movieClip 2593 {
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 2595 {
}
movieClip 2597 {
}
movieClip 2599 {
}
movieClip 2601 {
}
movieClip 2603 {
}
movieClip 2604 {
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 2606 {
}
movieClip 2608 {
}
movieClip 2610 {
}
movieClip 2612 {
}
movieClip 2614 {
}
movieClip 2616 {
}
movieClip 2617 {
}
movieClip 2619 {
}
movieClip 2621 {
}
movieClip 2622 {
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
frame 10 {
prevFrame();
}
}
movieClip 2623 {
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
instance object of movieClip 2061 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 2624 {
}
movieClip 2626 {
}
movieClip 2629 {
}
movieClip 2636 {
instance of movieClip 2624 {
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 2637 {
}
movieClip 2638 {
}
movieClip 2639 {
}
movieClip 2640 {
}
movieClip 2641 {
}
movieClip 2643 {
}
movieClip 2644 {
}
movieClip 2646 {
}
movieClip 2648 {
}
movieClip 2650 {
}
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 2684 {
}
movieClip 2686 {
}
movieClip 2688 {
}
movieClip 2689 {
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 2690 {
}
movieClip 2692 {
}
movieClip 2694 {
}
movieClip 2696 {
}
movieClip 2698 {
}
movieClip 2700 {
}
movieClip 2702 {
}
movieClip 2704 {
}
movieClip 2706 {
}
movieClip 2708 {
}
movieClip 2710 {
}
movieClip 2712 {
}
movieClip 2714 {
}
movieClip 2716 {
}
movieClip 2718 {
}
movieClip 2719 {
}
movieClip 2740 {
}
movieClip 2753 {
frame 9 {
prevFrame();
}
}
movieClip 2763 {
frame 9 {
prevFrame();
}
}
movieClip 2765 {
}
movieClip 2767 {
}
movieClip 2769 {
}
movieClip 2771 {
}
movieClip 2773 {
}
movieClip 2775 {
}
movieClip 2777 {
}
movieClip 2779 {
}
movieClip 2781 {
}
movieClip 2783 {
}
movieClip 2785 {
}
movieClip 2787 {
}
movieClip 2789 {
}
movieClip 2791 {
}
movieClip 2793 {
}
movieClip 2794 {
}
movieClip 2796 {
}
movieClip 2798 {
}
movieClip 2800 {
}
movieClip 2802 {
}
movieClip 2803 {
frame 11 {
prevFrame();
}
frame 12 {
stop();
}
}
movieClip 2804 {
}
movieClip 2806 {
}
movieClip 2808 {
}
movieClip 2810 {
}
movieClip 2812 {
}
movieClip 2814 {
}
movieClip 2817 {
}
movieClip 2819 {
}
movieClip 2820 {
}
movieClip 2821 {
}
movieClip 2823 {
}
movieClip 2824 {
}
movieClip 2825 {
}
movieClip 2827 {
}
movieClip 2845 {
}
movieClip 2847 {
}
movieClip 2849 {
}
movieClip 2852 {
}
movieClip 2854 {
}
movieClip 2855 {
}
movieClip 2857 {
}
movieClip 2859 {
}
movieClip 2861 {
}
movieClip 2862 {
}
movieClip 2863 {
}
movieClip 2865 {
}
movieClip 2870 {
}
movieClip 2876 {
}
movieClip 2885 {
}
movieClip 2887 {
}
movieClip 2889 {
}
movieClip 2892 {
}
movieClip 2894 {
}
movieClip 2896 {
}
movieClip 2898 {
}
movieClip 2899 {
}
movieClip 2901 {
}
movieClip 2920 {
}
movieClip 2930 {
}
movieClip 2932 {
}
movieClip 2933 {
}
movieClip 2935 {
}
movieClip 2937 {
}
movieClip 2939 {
}
movieClip 2940 {
}
movieClip 2941 {
}
movieClip 2942 {
}
movieClip 2943 {
}
movieClip 2944 {
}
movieClip 2946 {
}
movieClip 2947 {
frame 11 {
prevFrame();
}
}
movieClip 2948 {
}
movieClip 2950 {
}
movieClip 2952 {
}
movieClip 2953 {
}
movieClip 2955 {
}
movieClip 2957 {
}
movieClip 2959 {
}
movieClip 2961 {
}
movieClip 2963 {
}
movieClip 2965 {
}
movieClip 2967 {
}
movieClip 2969 {
}
movieClip 2971 {
}
movieClip 2973 {
}
movieClip 2975 {
}
movieClip 2977 {
}
movieClip 2979 {
}
movieClip 2981 {
}
movieClip 2983 {
}
movieClip 2985 {
}
movieClip 2987 {
}
movieClip 2988 {
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 2989 {
}
movieClip 2994 {
}
movieClip 2997 {
}
movieClip 2999 {
}
movieClip 3014 {
}
movieClip 3017 {
frame 12 {
prevFrame();
}
}
movieClip 3018 {
}
movieClip 3020 {
}
movieClip 3022 {
}
movieClip 3023 {
}
movieClip 3025 {
}
movieClip 3027 {
}
movieClip 3029 {
}
movieClip 3031 {
}
movieClip 3033 {
}
movieClip 3035 {
}
movieClip 3037 {
}
movieClip 3039 {
}
movieClip 3041 {
}
movieClip 3043 {
}
movieClip 3045 {
}
movieClip 3047 {
}
movieClip 3049 {
}
movieClip 3051 {
}
movieClip 3053 {
}
movieClip 3055 {
}
movieClip 3057 {
}
movieClip 3059 {
}
movieClip 3061 {
}
movieClip 3063 {
}
movieClip 3065 {
}
movieClip 3067 {
}
movieClip 3068 {
}
movieClip 3069 {
frame 11 {
gotoAndPlay(3);
}
}
movieClip 3070 {
}
movieClip 3071 {
}
movieClip 3072 {
}
movieClip 3073 {
}
movieClip 3075 {
}
movieClip 3077 {
}
movieClip 3078 {
}
movieClip 3079 {
}
movieClip 3100 {
}
movieClip 3109 {
}
movieClip 3117 {
}
movieClip 3128 {
}
movieClip 3139 {
}
movieClip 3158 {
}
movieClip 3172 {
}
movieClip 3175 {
}
movieClip 3177 {
}
movieClip 3185 {
}
movieClip 3186 {
}
movieClip 3188 {
}
movieClip 3190 {
}
movieClip 3192 {
}
movieClip 3193 {
}
movieClip 3195 {
}
movieClip 3197 {
}
movieClip 3200 {
}
movieClip 3201 {
}
movieClip 3203 {
}
movieClip 3205 {
}
movieClip 3206 {
}
movieClip 3207 {
}
movieClip 3208 {
}
movieClip 3209 {
}
movieClip 3210 {
frame 11 {
prevFrame();
}
}
movieClip 3211 {
}
movieClip 3213 {
}
movieClip 3214 {
}
movieClip 3216 {
}
movieClip 3218 {
}
movieClip 3220 {
}
movieClip 3222 {
}
movieClip 3224 {
}
movieClip 3226 {
}
movieClip 3227 {
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 3228 {
}
movieClip 3239 {
}
movieClip 3253 {
frame 10 {
prevFrame();
}
}
movieClip 3254 {
}
movieClip 3255 {
instance carry of movieClip 2622 {
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 2690 {
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 2740 {
}
instance carry of movieClip 2763 {
}
instance carry of movieClip 334 {
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 201 {
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 3256 {
instance hit of movieClip 279 {
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 3255 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 3260 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
}
movieClip 3276 {
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 3277 {
}
movieClip 3278 {
}
movieClip 3279 {
}
movieClip 3280 {
frame 8 {
prevFrame();
}
}
movieClip 3287 {
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 3288 {
}
movieClip 3289 {
frame 9 {
prevFrame();
}
}
movieClip 3290 {
frame 8 {
prevFrame();
}
}
movieClip 3291 {
}
movieClip 3296 {
}
movieClip 3306 {
}
movieClip 3307 {
frame 7 {
prevFrame();
}
}
movieClip 3308 {
}
movieClip 3309 {
instance hit of movieClip 279 {
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 3308 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 3328 {
frame 9 {
stop();
}
}
movieClip 3330 {
}
movieClip 3331 {
frame 31 {
stop();
}
}
movieClip 3333 {
frame 9 {
gotoAndPlay(1);
}
}
movieClip 3334 {
instance hit of movieClip 279 {
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 3391 {
}
movieClip 3392 {
frame 51 {
stop();
}
}
movieClip 3394 {
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 3395 {
instance hit of movieClip 279 {
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 3424 {
frame 9 {
stop();
}
}
movieClip 3426 {
}
movieClip 3427 {
frame 31 {
stop();
}
}
movieClip 3429 {
frame 15 {
gotoAndPlay(1);
}
}
movieClip 3430 {
instance hit of movieClip 279 {
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 3441 {
}
movieClip 3442 {
frame 31 {
stop();
}
}
movieClip 3443 {
frame 9 {
gotoAndPlay(1);
}
}
movieClip 3444 {
instance hit of movieClip 279 {
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 3499 {
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 3500 {
instance hit of movieClip 279 {
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 3555 {
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 3556 {
instance hit of movieClip 279 {
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 3611 {
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 3612 {
instance hit of movieClip 279 {
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 3628 {
}
movieClip 3629 {
}
movieClip 3630 {
}
movieClip 3633 {
}
movieClip 3634 {
}
movieClip 3635 {
frame 1 {
stop();
}
frame 152 {
stop();
}
}
movieClip 3636 {
instance shade of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade6 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade7 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade8 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance barrel1 of movieClip 2123 {
onClipEvent (load) {
z = -30;
style = 1;
}
}
instance barrel3 of movieClip 2123 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance barrel2 of movieClip 2123 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance enemy1 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance barrel5 of movieClip 2123 {
onClipEvent (load) {
z = -40;
style = 1;
}
}
instance barrel4 of movieClip 2123 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance enemy5 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 2234 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -55;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -55;
}
}
instance of movieClip 3395 {
onClipEvent (load) {
z = -175;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -31;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -31;
style = 1;
}
}
instance of movieClip 3430 {
onClipEvent (load) {
z = -78;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -80;
}
}
instance of movieClip 3500 {
onClipEvent (load) {
z = -88;
}
}
instance of movieClip 3556 {
onClipEvent (load) {
z = -148;
}
}
instance of movieClip 3612 {
onClipEvent (load) {
z = -115;
}
}
}
instance level of movieClip 3636 {
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;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
movieClip 3639 {
}
button 3640 {
on (rollOver) {
fjin.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=logo&utm_campaign=tribotfighter', '_blank');
}
}
button 3643 {
on (rollOver) {
enemcheck.useHandCursor = false;
}
}
movieClip 3645 {
}
movieClip 3647 {
}
movieClip 3649 {
}
movieClip 3650 {
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 3653 {
}
movieClip 3654 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3656 {
}
movieClip 3658 {
}
movieClip 3660 {
frame 10 {
stop();
}
}
movieClip 3661 {
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 3663 {
frame 3 {
if (this._alpha == 100 && _root.gamepause == false) {
_root.goSound = new Sound();
_root.goSound.attachSound('gosound');
_root.goSound.start();
}
}
}
instance gosign of movieClip 3663 {
onClipEvent (enterFrame) {
if (timer > 0) {
timer -= 1;
if (timer == 0) {
_alpha = 100;
gotoAndPlay(1);
}
}
if (_root.showability == true) {
gotoAndStop(20);
} else {
play();
}
}
}
movieClip 3668 {
}
movieClip 3671 {
}
movieClip 3678 {
}
movieClip 3679 {
}
movieClip 3682 {
instance of movieClip 3668 {
onClipEvent (enterFrame) {
if (_root.level.player.hit.movement == 'transform') {
gotoAndStop(4);
} else {
gotoAndStop(_root.level.player.hit.robot);
}
}
}
}
instance genhp of movieClip 3682 {
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 3748 {
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 3750 {
}
movieClip 3754 {
instance of movieClip 3748 {
onClipEvent (enterFrame) {
gotoAndStop(_parent.myhead);
}
}
instance of movieClip 3750 {
onClipEvent (enterFrame) {
if (_parent.myhp <= 0 && _parent._alpha == 100) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
}
instance hp3 of movieClip 3754 {
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 3754 {
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 3754 {
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 3772 {
instance of movieClip 3750 {
onClipEvent (enterFrame) {
if (_parent.myhp <= 0 && _parent._alpha == 100) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
}
instance of movieClip 3772 {
onClipEvent (enterFrame) {
gotoAndStop(_root.lives + 2);
}
}
movieClip 3776 {
}
movieClip 3777 {
}
movieClip 3780 {
}
movieClip 3781 {
}
movieClip 3784 {
}
movieClip 3785 {
}
movieClip 3788 {
}
movieClip 3789 {
}
movieClip 3792 {
}
movieClip 3793 {
}
movieClip 3794 {
}
movieClip 3797 {
}
movieClip 3798 {
}
movieClip 3801 {
}
movieClip 3802 {
}
movieClip 3805 {
}
movieClip 3806 {
}
movieClip 3809 {
}
movieClip 3810 {
}
movieClip 3813 {
}
movieClip 3814 {
}
movieClip 3817 {
}
movieClip 3818 {
}
movieClip 3821 {
}
movieClip 3822 {
}
movieClip 3825 {
}
movieClip 3826 {
}
movieClip 3829 {
}
movieClip 3830 {
}
movieClip 3833 {
}
movieClip 3834 {
}
movieClip 3837 {
}
movieClip 3838 {
}
movieClip 3841 {
}
movieClip 3842 {
}
movieClip 3845 {
}
movieClip 3846 {
}
movieClip 3847 {
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 3849 {
}
movieClip 3851 {
}
movieClip 3852 {
}
movieClip 3855 {
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 3859 {
}
button 3860 {
on (rollOver) {
mg.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
getURL('http://www.flashjolt.com/?utm_source=flashgame&utm_medium=moregames&utm_campaign=tribotfighter', '_blank');
}
}
button 3861 {
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 3863 {
}
movieClip 3866 {
}
movieClip 3867 {
}
movieClip 3868 {
}
button 3869 {
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 3872 {
}
movieClip 3874 {
}
movieClip 3876 {
}
movieClip 3877 {
}
movieClip 3883 {
}
movieClip 3886 {
}
movieClip 3887 {
}
movieClip 3900 {
}
movieClip 3901 {
}
movieClip 3907 {
}
movieClip 3920 {
}
movieClip 3921 {
}
movieClip 3929 {
}
movieClip 3935 {
}
movieClip 3936 {
}
movieClip 3937 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3944 {
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 3946 {
on (rollOver) {
covbut1.useHandCursor = false;
}
}
movieClip 3949 {
}
button 3952 {
on (rollOver) {
backb.useHandCursor = false;
rolloverSound = new Sound();
rolloverSound.attachSound('butupsound');
rolloverSound.start(0, 1);
}
on (release) {
if (_root.conback == false) {
gotoAndPlay('backt');
}
}
}
movieClip 3953 {
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 3955 {
}
movieClip 3957 {
}
movieClip 3960 {
}
movieClip 3961 {
}
button 3964 {
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 3966 {
}
movieClip 3970 {
}
movieClip 3972 {
}
movieClip 3974 {
}
movieClip 3976 {
}
movieClip 3978 {
}
movieClip 3979 {
}
movieClip 3982 {
}
movieClip 3984 {
}
movieClip 3985 {
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 3992 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a2demo');
}
}
}
movieClip 3993 {
}
button 3995 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a3demo');
}
}
}
movieClip 3996 {
}
button 3999 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a4demo');
}
}
}
movieClip 4001 {
frame 1 {
if (_root.a2 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4003 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a5demo');
}
}
}
movieClip 4005 {
frame 1 {
if (_root.a5 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4007 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a6demo');
}
}
}
movieClip 4009 {
frame 1 {
if (_root.a8 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4011 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a7demo');
}
}
}
movieClip 4013 {
frame 1 {
if (_root.a11 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4015 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a8demo');
}
}
}
movieClip 4017 {
frame 1 {
if (_root.a14 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4019 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a9demo');
}
}
}
movieClip 4021 {
frame 1 {
if (_root.a17 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4023 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r1a1demo');
}
}
}
movieClip 4024 {
}
movieClip 4025 {
}
movieClip 4027 {
}
movieClip 4028 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4030 {
}
movieClip 4031 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4033 {
}
movieClip 4034 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4042 {
}
movieClip 4055 {
}
movieClip 4056 {
instance carry of movieClip 4055 {
}
}
movieClip 4058 {
}
movieClip 4061 {
}
movieClip 4062 {
}
movieClip 4065 {
}
movieClip 4066 {
}
movieClip 4068 {
}
movieClip 4071 {
}
movieClip 4072 {
}
movieClip 4073 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4075 {
}
movieClip 4078 {
}
movieClip 4079 {
}
movieClip 4080 {
}
movieClip 4083 {
}
movieClip 4084 {
}
movieClip 4086 {
}
movieClip 4089 {
}
movieClip 4090 {
}
movieClip 4091 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4093 {
}
movieClip 4096 {
}
movieClip 4097 {
}
movieClip 4098 {
}
movieClip 4101 {
}
movieClip 4102 {
}
movieClip 4104 {
}
movieClip 4107 {
}
movieClip 4108 {
}
movieClip 4109 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4117 {
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 4122 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a2demo');
}
}
}
movieClip 4123 {
}
button 4125 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a3demo');
}
}
}
movieClip 4126 {
}
button 4128 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a4demo');
}
}
}
movieClip 4130 {
frame 1 {
if (_root.a1 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4132 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a5demo');
}
}
}
movieClip 4134 {
frame 1 {
if (_root.a4 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4136 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a6demo');
}
}
}
movieClip 4138 {
frame 1 {
if (_root.a7 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4140 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a7demo');
}
}
}
movieClip 4142 {
frame 1 {
if (_root.a10 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4144 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a8demo');
}
}
}
movieClip 4146 {
frame 1 {
if (_root.a13 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4148 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a9demo');
}
}
}
movieClip 4150 {
frame 1 {
if (_root.a16 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4152 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r2a1demo');
}
}
}
movieClip 4153 {
}
movieClip 4154 {
}
movieClip 4171 {
}
movieClip 4172 {
instance carry of movieClip 334 {
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 4185 {
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 4190 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a2demo');
}
}
}
movieClip 4191 {
}
button 4193 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a3demo');
}
}
}
movieClip 4194 {
}
button 4197 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a4demo');
}
}
}
movieClip 4199 {
frame 1 {
if (_root.a3 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4202 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a5demo');
}
}
}
movieClip 4204 {
frame 1 {
if (_root.a6 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4207 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a6demo');
}
}
}
movieClip 4209 {
frame 1 {
if (_root.a9 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4212 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a7demo');
}
}
}
movieClip 4214 {
frame 1 {
if (_root.a12 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4217 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a8demo');
}
}
}
movieClip 4219 {
frame 1 {
if (_root.a15 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4222 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a9demo');
}
}
}
movieClip 4224 {
frame 1 {
if (_root.a18 == false) {
stop();
} else {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
button 4226 {
on (rollOver) {
demo.useHandCursor = false;
}
on (release) {
if (_root.abilityAnim == false) {
_root.pauser.executer.gotoAndPlay('r3a1demo');
}
}
}
movieClip 4227 {
}
movieClip 4228 {
}
movieClip 4240 {
}
movieClip 4241 {
instance carry of movieClip 201 {
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 4261 {
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 4262 {
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 4266 {
}
movieClip 4278 {
}
movieClip 4285 {
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 4287 {
}
movieClip 4290 {
}
movieClip 4291 {
}
movieClip 4292 {
}
movieClip 4294 {
}
movieClip 4297 {
}
movieClip 4298 {
}
movieClip 4299 {
}
movieClip 4301 {
}
movieClip 4302 {
}
movieClip 4303 {
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 4304 {
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 4307 {
}
movieClip 4308 {
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 4311 {
}
movieClip 4312 {
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 4318 {
}
movieClip 4326 {
}
movieClip 4333 {
}
movieClip 4334 {
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 4338 {
frame 8 {
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound('elev1');
_root.backgroundMusic.start(0, 999999);
}
frame 48 {
stop();
}
}
movieClip 4343 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4347 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4351 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 4354 {
}
movieClip 4356 {
}
movieClip 4359 {
}
movieClip 4361 {
}
movieClip 4363 {
frame 48 {
_root.cantpressbut = false;
stop();
}
}
movieClip 4365 {
}
movieClip 4368 {
}
movieClip 4373 {
}
movieClip 4376 {
}
movieClip 4378 {
}
movieClip 4380 {
}
movieClip 4381 {
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 4389 {
}
movieClip 4391 {
}
movieClip 4392 {
frame 1 {
bar.sign.gotoAndStop(_root.passFront);
bar.signBG.gotoAndStop(_root.passBack);
}
}
movieClip 4393 {
}
movieClip 4394 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4402 {
}
movieClip 4404 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4406 {
}
movieClip 4414 {
}
movieClip 4416 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4418 {
}
movieClip 4419 {
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 4421 {
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 4423 {
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 4425 {
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 4427 {
}
movieClip 4429 {
}
button 4430 {
on (rollOver) {
ques.useHandCursor = false;
quesexp.gotoAndPlay('openstuff');
}
on (rollOut) {
quesexp.gotoAndPlay('closestuff');
}
on (dragOut) {
quesexp.gotoAndPlay('closestuff');
}
}
movieClip 4432 {
}
movieClip 4435 {
}
movieClip 4436 {
}
movieClip 4437 {
}
movieClip 4440 {
frame 1 {
stop();
}
frame 16 {
stop();
}
frame 24 {
gotoAndStop('stay');
}
}
movieClip 4441 {
frame 1 {
stop();
_root.cantpressbut = true;
s3.gotoAndStop('p10');
bgs3.gotoAndStop('p16');
rstill.gotoAndStop(_root.transitionbot);
}
}
movieClip 4442 {
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 4447 {
}
movieClip 4453 {
}
movieClip 4454 {
}
movieClip 4455 {
instance hit of movieClip 279 {
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 4456 {
instance hit of movieClip 279 {
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 2233 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 4458 {
}
movieClip 4460 {
}
movieClip 4462 {
}
movieClip 4464 {
}
movieClip 4466 {
}
movieClip 4467 {
}
movieClip 4470 {
}
movieClip 4486 {
}
movieClip 4489 {
}
movieClip 4491 {
}
movieClip 4493 {
}
movieClip 4503 {
}
movieClip 4505 {
}
movieClip 4506 {
}
movieClip 4509 {
}
movieClip 4516 {
frame 7 {
prevFrame();
}
}
movieClip 4527 {
}
movieClip 4533 {
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 4542 {
frame 10 {
prevFrame();
}
}
movieClip 4546 {
}
movieClip 4549 {
}
movieClip 4551 {
}
movieClip 4553 {
}
movieClip 4555 {
frame 8 {
prevFrame();
}
}
movieClip 4566 {
}
movieClip 4578 {
}
movieClip 4584 {
frame 7 {
prevFrame();
}
}
movieClip 4585 {
}
movieClip 4586 {
instance hit of movieClip 279 {
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 4585 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 4641 {
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 4642 {
instance hit of movieClip 279 {
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.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 4698 {
instance hit of movieClip 279 {
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.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 4754 {
instance hit of movieClip 279 {
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 4809 {
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 4810 {
instance hit of movieClip 279 {
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 4812 {
}
movieClip 4813 {
instance shade of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade6 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade7 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade8 of movieClip 4455 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance barrel1 of movieClip 2123 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance enemy1 of movieClip 4456 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 4456 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 4456 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance barrel5 of movieClip 2123 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance barrel4 of movieClip 2123 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance enemy5 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 4456 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 4456 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 4586 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
instance barrel2 of movieClip 2123 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance barrel3 of movieClip 2123 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance barrel6 of movieClip 2123 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -197;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -197;
}
}
instance of movieClip 4642 {
onClipEvent (load) {
z = -148;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -161;
}
}
instance of movieClip 4698 {
onClipEvent (load) {
z = -100;
style = 1;
}
}
instance of movieClip 4754 {
onClipEvent (load) {
z = -175;
}
}
instance of movieClip 4810 {
onClipEvent (load) {
z = -65;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
instance of movieClip 3612 {
onClipEvent (load) {
z = -115;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -40;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -200;
style = 1;
}
}
}
instance level of movieClip 4813 {
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 4816 {
frame 24 {
_root.dontmovedown = false;
}
frame 31 {
stop();
}
}
movieClip 4824 {
frame 1 {
stop();
}
}
instance hp4 of movieClip 4824 {
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 4831 {
frame 1 {
stop();
}
frame 22 {
_root.bossHealthOn = true;
gotoAndStop(1);
}
frame 44 {
gotoAndStop(1);
}
}
instance gosign of movieClip 3663 {
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 3682 {
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 3754 {
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 3754 {
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 3754 {
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 3772 {
onClipEvent (enterFrame) {
gotoAndStop(_root.lives + 2);
}
}
movieClip 4844 {
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 4846 {
}
movieClip 4849 {
}
movieClip 4850 {
}
movieClip 4851 {
}
movieClip 4852 {
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 4853 {
}
movieClip 4855 {
}
movieClip 4871 {
}
movieClip 4873 {
}
movieClip 4875 {
}
movieClip 4904 {
}
movieClip 4906 {
}
movieClip 4912 {
}
movieClip 4938 {
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 4963 {
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 4964 {
}
movieClip 4965 {
frame 1 {
bar.sign.gotoAndStop(_root.passFront);
bar.signBG.gotoAndStop(_root.passBack);
}
}
movieClip 4978 {
frame 14 {
prevFrame();
}
}
movieClip 4979 {
instance hit of movieClip 279 {
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 279 {
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 2098 {
onClipEvent (load) {
_y = _parent.hit.z - 58;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
stop();
} else {
play();
}
}
}
instance carry of movieClip 4978 {
onClipEvent (load) {
_y = _parent.hit.z - 58;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
stop();
} else {
play();
}
}
}
}
movieClip 4980 {
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 4981 {
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 4982 {
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 4983 {
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
frame 10 {
prevFrame();
}
}
movieClip 4984 {
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
instance object of movieClip 4965 {
onClipEvent (load) {
gotoAndStop(_root.level.player.hit.barrelheld.hit.style);
}
}
}
movieClip 4985 {
}
movieClip 4986 {
}
movieClip 4987 {
}
movieClip 4988 {
frame 11 {
prevFrame();
}
}
movieClip 4989 {
}
movieClip 4990 {
}
movieClip 4991 {
}
movieClip 4992 {
}
movieClip 4993 {
frame 11 {
prevFrame();
}
}
movieClip 4994 {
}
movieClip 4995 {
instance carry of movieClip 4983 {
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 2690 {
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 2740 {
}
instance carry of movieClip 2763 {
}
instance carry of movieClip 334 {
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 201 {
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 4996 {
instance hit of movieClip 279 {
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 4995 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 4997 {
}
movieClip 4998 {
frame 1 {
bar.sign.gotoAndStop(_root.passFront);
bar.signBG.gotoAndStop(_root.passBack);
}
}
movieClip 4999 {
}
movieClip 5000 {
frame 1 {
bar.sign.gotoAndStop(_root.passFront2);
bar.signBG.gotoAndStop(_root.passBack2);
}
}
movieClip 5001 {
}
movieClip 5002 {
}
movieClip 5003 {
instance hit of movieClip 279 {
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 5002 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5007 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5023 {
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 5024 {
}
movieClip 5025 {
}
movieClip 5031 {
}
movieClip 5032 {
frame 8 {
prevFrame();
}
}
movieClip 5039 {
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 5040 {
}
movieClip 5041 {
frame 9 {
prevFrame();
}
}
movieClip 5042 {
frame 8 {
prevFrame();
}
}
movieClip 5049 {
}
movieClip 5055 {
}
movieClip 5056 {
frame 7 {
prevFrame();
}
}
movieClip 5057 {
}
movieClip 5058 {
instance hit of movieClip 279 {
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 5057 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5060 {
}
movieClip 5072 {
frame 43 {
stop();
}
frame 44 {
stop();
}
frame 45 {
prevFrame();
}
}
movieClip 5073 {
}
movieClip 5074 {
instance hit of movieClip 279 {
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 5073 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5129 {
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 5130 {
instance hit of movieClip 279 {
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.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 5186 {
instance hit of movieClip 279 {
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.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 5242 {
instance hit of movieClip 279 {
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 5297 {
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 5298 {
instance hit of movieClip 279 {
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 5307 {
}
movieClip 5308 {
}
movieClip 5309 {
instance shade of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade6 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade7 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade8 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance barrel1 of movieClip 4979 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance barrel4 of movieClip 4979 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance barrel2 of movieClip 4979 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance barrel3 of movieClip 4979 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance barrel5 of movieClip 4979 {
onClipEvent (load) {
z = -190;
style = 1;
}
}
instance enemy1 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance enemy5 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
instance vort1 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort2 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort3 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort4 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort5 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort6 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort7 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort8 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort9 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort10 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort11 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort12 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort13 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort14 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance vort15 of movieClip 5074 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -60;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -150;
}
}
instance of movieClip 5130 {
onClipEvent (load) {
z = -64;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3612 {
onClipEvent (load) {
z = -115;
}
}
instance of movieClip 5186 {
onClipEvent (load) {
z = -125;
style = 1;
}
}
instance of movieClip 5242 {
onClipEvent (load) {
z = -151;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -140;
style = 1;
}
}
instance of movieClip 3430 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -140;
style = 1;
}
}
instance of movieClip 5298 {
onClipEvent (load) {
z = -208;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
}
instance level of movieClip 5309 {
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 5311 {
}
movieClip 5313 {
frame 24 {
_root.dontmovedown = false;
}
frame 31 {
stop();
}
}
movieClip 5315 {
}
movieClip 5316 {
frame 3 {
if (this._alpha == 100 && _root.gamepause == false) {
_root.goSound = new Sound();
_root.goSound.attachSound('gosound');
_root.goSound.start();
}
}
}
instance gosign of movieClip 5316 {
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 3754 {
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 5328 {
}
movieClip 5335 {
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 5337 {
}
movieClip 5339 {
}
movieClip 5340 {
}
movieClip 5341 {
}
movieClip 5343 {
}
movieClip 5346 {
}
movieClip 5347 {
}
movieClip 5348 {
}
movieClip 5349 {
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 5350 {
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 5353 {
}
movieClip 5354 {
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 5355 {
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 5358 {
}
movieClip 5359 {
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 5360 {
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 5367 {
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 5371 {
frame 8 {
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound('elev1');
_root.backgroundMusic.start(0, 999999);
}
frame 48 {
stop();
}
}
movieClip 5376 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5380 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5384 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5387 {
}
movieClip 5388 {
}
movieClip 5390 {
}
movieClip 5392 {
}
movieClip 5394 {
}
movieClip 5396 {
}
movieClip 5398 {
}
movieClip 5399 {
frame 48 {
_root.cantpressbut = false;
stop();
}
}
movieClip 5400 {
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 5401 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 5403 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 5405 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 5406 {
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 5407 {
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 5408 {
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 5409 {
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 5410 {
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 5411 {
frame 1 {
stop();
_root.cantpressbut = true;
s2.gotoAndStop('p10');
bgs2.gotoAndStop('p16');
s4.gotoAndStop('p16');
bgs4.gotoAndStop('p20');
rstill.gotoAndStop(_root.transitionbot);
}
}
movieClip 5412 {
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 5414 {
}
movieClip 5416 {
}
movieClip 5424 {
}
movieClip 5426 {
}
movieClip 5427 {
instance hit of movieClip 5426 {
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 5429 {
}
movieClip 5430 {
instance hit of movieClip 279 {
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 5434 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5438 {
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 5442 {
frame 1 {
gotoAndStop(_parent._parent._parent.hit.mycolour);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 5443 {
}
movieClip 5444 {
}
movieClip 5445 {
frame 47 {
prevFrame();
}
}
movieClip 5452 {
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 5453 {
frame 103 {
prevFrame();
}
}
movieClip 5454 {
frame 8 {
prevFrame();
}
}
movieClip 5455 {
}
movieClip 5456 {
frame 7 {
prevFrame();
}
}
movieClip 5457 {
}
movieClip 5458 {
instance hit of movieClip 279 {
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 5457 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5460 {
}
movieClip 5462 {
}
movieClip 5464 {
}
movieClip 5466 {
}
movieClip 5468 {
}
movieClip 5469 {
}
movieClip 5470 {
}
movieClip 5478 {
}
movieClip 5479 {
frame 8 {
prevFrame();
}
}
movieClip 5486 {
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 5487 {
}
movieClip 5488 {
frame 9 {
prevFrame();
}
}
movieClip 5489 {
frame 8 {
prevFrame();
}
}
movieClip 5495 {
}
movieClip 5502 {
}
movieClip 5503 {
frame 7 {
prevFrame();
}
}
movieClip 5505 {
}
movieClip 5506 {
}
movieClip 5507 {
}
movieClip 5508 {
}
movieClip 5509 {
}
movieClip 5510 {
frame 8 {
prevFrame();
}
}
movieClip 5517 {
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 5518 {
}
movieClip 5519 {
frame 9 {
prevFrame();
}
}
movieClip 5520 {
frame 8 {
prevFrame();
}
}
movieClip 5526 {
}
movieClip 5527 {
frame 7 {
prevFrame();
}
}
movieClip 5528 {
}
movieClip 5529 {
instance hit of movieClip 279 {
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 5528 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5584 {
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 5585 {
instance hit of movieClip 279 {
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 5640 {
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 5641 {
instance hit of movieClip 279 {
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 5696 {
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 5697 {
instance hit of movieClip 279 {
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 5752 {
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 5753 {
instance hit of movieClip 279 {
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 5754 {
instance shade of movieClip 5427 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade6 of movieClip 5430 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade7 of movieClip 5430 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade8 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance barrel1 of movieClip 4979 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance barrel4 of movieClip 4979 {
onClipEvent (load) {
z = -160;
style = 1;
}
}
instance barrel2 of movieClip 4979 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance barrel3 of movieClip 4979 {
onClipEvent (load) {
z = -175;
style = 1;
}
}
instance barrel5 of movieClip 4979 {
onClipEvent (load) {
z = -175;
style = 1;
}
}
instance enemy1 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance enemy5 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 5458 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 5458 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 5529 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
instance of movieClip 5585 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3444 {
onClipEvent (load) {
z = -64;
}
}
instance of movieClip 3612 {
onClipEvent (load) {
z = -115;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 5641 {
onClipEvent (load) {
z = -63;
}
}
instance of movieClip 5697 {
onClipEvent (load) {
z = -206;
}
}
instance of movieClip 5753 {
onClipEvent (load) {
z = -206;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -206;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
instance of movieClip 3334 {
onClipEvent (load) {
z = -195;
style = 1;
}
}
}
instance level of movieClip 5754 {
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 5755 {
frame 24 {
_root.dontmovedown = false;
}
frame 31 {
stop();
}
}
movieClip 5763 {
frame 1 {
stop();
}
}
instance hp4 of movieClip 5763 {
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 5770 {
frame 1 {
stop();
}
frame 22 {
_root.bossHealthOn = true;
gotoAndStop(1);
}
frame 44 {
gotoAndStop(1);
}
}
instance gosign of movieClip 5316 {
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 3682 {
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 3754 {
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 3754 {
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 3754 {
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 3772 {
onClipEvent (enterFrame) {
gotoAndStop(_root.lives + 2);
}
}
movieClip 5771 {
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 5773 {
}
movieClip 5776 {
}
movieClip 5777 {
}
movieClip 5778 {
}
movieClip 5779 {
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 5782 {
}
movieClip 5785 {
}
movieClip 5786 {
}
movieClip 5787 {
instance of movieClip 279 {
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 5789 {
}
movieClip 5806 {
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 5807 {
}
movieClip 5808 {
}
movieClip 5815 {
}
movieClip 5816 {
frame 8 {
prevFrame();
}
}
movieClip 5823 {
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 5824 {
}
movieClip 5825 {
frame 9 {
prevFrame();
}
}
movieClip 5826 {
frame 8 {
prevFrame();
}
}
movieClip 5833 {
}
movieClip 5840 {
}
movieClip 5841 {
frame 7 {
prevFrame();
}
}
movieClip 5842 {
}
movieClip 5843 {
instance hit of movieClip 279 {
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 5842 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5845 {
}
movieClip 5847 {
}
movieClip 5849 {
}
movieClip 5851 {
}
movieClip 5853 {
}
movieClip 5855 {
}
movieClip 5857 {
}
movieClip 5859 {
}
movieClip 5860 {
}
movieClip 5877 {
}
movieClip 5894 {
}
movieClip 5901 {
frame 7 {
prevFrame();
}
}
movieClip 5918 {
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 5920 {
}
movieClip 5932 {
frame 10 {
prevFrame();
}
}
movieClip 5941 {
frame 8 {
prevFrame();
}
}
movieClip 5957 {
}
movieClip 5964 {
}
movieClip 5977 {
}
movieClip 5983 {
frame 7 {
prevFrame();
}
}
movieClip 5984 {
}
movieClip 5985 {
instance hit of movieClip 279 {
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 5984 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5986 {
instance hit of movieClip 279 {
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 5984 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 5991 {
}
movieClip 6003 {
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
}
movieClip 6004 {
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 6005 {
}
movieClip 6006 {
instance hit of movieClip 279 {
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.pickupL52._x = _root.level.vort2._x;
_root.level.pickupL52._y = _root.level.vort2._y;
_root.level.pickupL52.z = -130;
}
}
movieClip 6010 {
}
movieClip 6011 {
instance hit of movieClip 279 {
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.pickupL53._x = _root.level.vort3._x;
_root.level.pickupL53._y = _root.level.vort3._y;
_root.level.pickupL53.z = -70;
}
}
movieClip 6015 {
}
movieClip 6016 {
instance hit of movieClip 279 {
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 6019 {
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 6020 {
}
movieClip 6021 {
instance hit of movieClip 279 {
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 6020 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6024 {
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 6025 {
}
movieClip 6026 {
instance hit of movieClip 279 {
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 6025 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6029 {
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 6030 {
}
movieClip 6031 {
instance hit of movieClip 279 {
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 6030 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6034 {
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 6035 {
}
movieClip 6036 {
instance hit of movieClip 279 {
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 6035 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6039 {
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 6040 {
}
movieClip 6041 {
instance hit of movieClip 279 {
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 6040 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6044 {
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 6045 {
}
movieClip 6046 {
instance hit of movieClip 279 {
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 6045 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6049 {
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 6050 {
}
movieClip 6051 {
instance hit of movieClip 279 {
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 6050 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6054 {
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 6055 {
}
movieClip 6056 {
instance hit of movieClip 279 {
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 6055 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6059 {
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 6060 {
}
movieClip 6061 {
instance hit of movieClip 279 {
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 6060 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6064 {
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 6065 {
}
movieClip 6066 {
instance hit of movieClip 279 {
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 6065 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6069 {
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 6070 {
}
movieClip 6071 {
instance hit of movieClip 279 {
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 6070 {
onClipEvent (enterFrame) {
if (carry.preventstop == true) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
}
movieClip 6126 {
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 6127 {
instance hit of movieClip 279 {
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 6128 {
instance hit of movieClip 279 {
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 6129 {
instance hit of movieClip 279 {
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 6130 {
instance hit of movieClip 279 {
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 6185 {
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 6186 {
instance hit of movieClip 279 {
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 6241 {
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 6242 {
instance hit of movieClip 279 {
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 6243 {
instance shade8 of movieClip 4455 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance shade7 of movieClip 4455 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade6 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance enemy1 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 5843 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 3309 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance enemy5 of movieClip 5058 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 5003 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 5985 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 5986 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
instance vort1 of movieClip 6006 {
}
instance vort2 of movieClip 6011 {
}
instance pickupL52 of movieClip 6127 {
onClipEvent (load) {
z = -130;
}
}
instance pickupL57 of movieClip 6128 {
onClipEvent (load) {
z = -80;
}
}
instance pickupL51 of movieClip 6129 {
onClipEvent (load) {
z = -70;
}
}
instance pickupL53 of movieClip 6130 {
onClipEvent (load) {
z = -50;
}
}
instance pickupL54 of movieClip 6186 {
onClipEvent (load) {
z = -100;
}
}
instance pickupL55 of movieClip 6129 {
onClipEvent (load) {
z = -150;
}
}
instance pickupL56 of movieClip 6242 {
onClipEvent (load) {
z = -40;
}
}
instance pickupL59 of movieClip 6128 {
onClipEvent (load) {
z = -160;
}
}
instance pickupL58 of movieClip 6129 {
onClipEvent (load) {
z = -120;
}
}
instance pickupL510 of movieClip 6128 {
onClipEvent (load) {
z = -35;
}
}
instance pickupL512 of movieClip 6128 {
onClipEvent (load) {
z = -105;
}
}
instance pickupL511 of movieClip 6129 {
onClipEvent (load) {
z = -70;
}
}
instance pickupL514 of movieClip 6128 {
onClipEvent (load) {
z = -175;
}
}
instance pickupL513 of movieClip 6129 {
onClipEvent (load) {
z = -140;
}
}
}
instance level of movieClip 6243 {
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 6248 {
frame 1 {
stop();
}
}
instance hp5 of movieClip 6248 {
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 6251 {
frame 1 {
stop();
}
}
instance hp4 of movieClip 6251 {
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 6256 {
frame 1 {
stop();
}
frame 22 {
_root.boss2HealthOn = true;
gotoAndStop(1);
}
frame 44 {
gotoAndStop(1);
}
}
movieClip 6261 {
frame 1 {
stop();
}
frame 22 {
_root.boss1HealthOn = true;
gotoAndStop(1);
}
frame 44 {
gotoAndStop(1);
}
}
movieClip 6262 {
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 6264 {
}
movieClip 6266 {
}
movieClip 6268 {
}
movieClip 6270 {
}
movieClip 6272 {
}
movieClip 6274 {
}
movieClip 6276 {
}
movieClip 6278 {
}
movieClip 6280 {
}
movieClip 6282 {
}
movieClip 6284 {
}
movieClip 6286 {
}
movieClip 6288 {
}
movieClip 6290 {
}
movieClip 6292 {
}
movieClip 6294 {
}
movieClip 6296 {
}
movieClip 6298 {
}
movieClip 6300 {
}
movieClip 6302 {
}
movieClip 6303 {
}
movieClip 6304 {
}
movieClip 6306 {
}
movieClip 6309 {
}
movieClip 6310 {
}
movieClip 6311 {
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 6314 {
}
movieClip 6316 {
}
movieClip 6317 {
instance hit of movieClip 5426 {
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 6320 {
}
movieClip 6326 {
}
movieClip 6337 {
}
movieClip 6342 {
}
movieClip 6351 {
}
movieClip 6353 {
}
movieClip 6355 {
}
movieClip 6356 {
frame 8 {
prevFrame();
}
}
movieClip 6369 {
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 6371 {
}
movieClip 6379 {
frame 9 {
prevFrame();
}
}
movieClip 6388 {
frame 8 {
prevFrame();
}
}
movieClip 6397 {
}
movieClip 6433 {
}
movieClip 6438 {
frame 7 {
prevFrame();
}
}
movieClip 6441 {
}
movieClip 6450 {
}
movieClip 6457 {
}
movieClip 6459 {
}
movieClip 6461 {
}
movieClip 6463 {
}
movieClip 6464 {
}
movieClip 6468 {
}
movieClip 6476 {
}
movieClip 6480 {
}
movieClip 6485 {
}
movieClip 6487 {
}
movieClip 6489 {
}
movieClip 6491 {
}
movieClip 6493 {
}
movieClip 6494 {
}
movieClip 6507 {
}
movieClip 6514 {
}
movieClip 6550 {
}
movieClip 6551 {
}
movieClip 6559 {
}
movieClip 6569 {
}
movieClip 6572 {
}
movieClip 6574 {
}
movieClip 6576 {
}
movieClip 6578 {
}
movieClip 6580 {
}
movieClip 6582 {
}
movieClip 6584 {
}
movieClip 6586 {
}
movieClip 6588 {
}
movieClip 6590 {
}
movieClip 6592 {
}
movieClip 6594 {
}
movieClip 6596 {
}
movieClip 6598 {
}
movieClip 6600 {
}
movieClip 6602 {
}
movieClip 6605 {
}
movieClip 6610 {
}
movieClip 6614 {
}
movieClip 6616 {
}
movieClip 6618 {
}
movieClip 6620 {
}
movieClip 6622 {
}
movieClip 6623 {
frame 8 {
prevFrame();
}
}
movieClip 6630 {
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 6632 {
}
movieClip 6633 {
frame 9 {
prevFrame();
}
}
movieClip 6634 {
frame 8 {
prevFrame();
}
}
movieClip 6648 {
}
movieClip 6650 {
}
movieClip 6660 {
}
movieClip 6679 {
}
movieClip 6682 {
frame 7 {
prevFrame();
}
}
movieClip 6696 {
}
movieClip 6699 {
}
movieClip 6711 {
}
movieClip 6718 {
}
movieClip 6742 {
}
movieClip 6743 {
}
movieClip 6758 {
}
movieClip 6761 {
}
movieClip 6763 {
}
movieClip 6765 {
}
movieClip 6767 {
}
movieClip 6769 {
}
movieClip 6771 {
}
movieClip 6773 {
}
movieClip 6775 {
}
movieClip 6778 {
}
movieClip 6780 {
}
movieClip 6787 {
}
movieClip 6789 {
}
movieClip 6791 {
}
movieClip 6793 {
}
movieClip 6794 {
frame 8 {
prevFrame();
}
}
movieClip 6797 {
}
movieClip 6801 {
}
movieClip 6812 {
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 6814 {
}
movieClip 6816 {
}
movieClip 6818 {
}
movieClip 6819 {
}
movieClip 6820 {
frame 9 {
prevFrame();
}
}
movieClip 6828 {
frame 8 {
prevFrame();
}
}
movieClip 6832 {
}
movieClip 6834 {
}
movieClip 6841 {
}
movieClip 6867 {
}
movieClip 6868 {
frame 7 {
prevFrame();
}
}
movieClip 6882 {
}
movieClip 6895 {
}
movieClip 6900 {
}
movieClip 6906 {
}
movieClip 6930 {
}
movieClip 6931 {
}
movieClip 6932 {
instance hit of movieClip 279 {
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 6931 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 6948 {
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 6949 {
}
movieClip 6950 {
instance hit of movieClip 279 {
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 6949 {
onClipEvent (enterFrame) {
if (!_root.gamepause) {
carry.play();
} else {
carry.stop();
}
}
}
}
movieClip 6951 {
instance shade8 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy8;
}
}
instance shade7 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy7;
}
}
instance shade6 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy6;
}
}
instance shade5 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy5;
}
}
instance shade4 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy4;
}
}
instance shade3 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy3;
}
}
instance shade2 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy2;
}
}
instance shade1 of movieClip 2008 {
onClipEvent (load) {
guy = _root.level.enemy1;
}
}
instance shade of movieClip 6317 {
onClipEvent (load) {
guy = _root.level.player;
}
}
instance enemy1 of movieClip 6932 {
onClipEvent (load) {
shade = _root.level.shade1;
}
}
instance enemy2 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade2;
}
}
instance enemy3 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade3;
}
}
instance enemy4 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade4;
}
}
instance enemy5 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade5;
}
}
instance enemy6 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade6;
}
}
instance enemy7 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade7;
}
}
instance enemy8 of movieClip 6950 {
onClipEvent (load) {
shade = _root.level.shade8;
}
}
}
instance level of movieClip 6951 {
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 6953 {
}
movieClip 6955 {
}
movieClip 6956 {
}
movieClip 6957 {
frame 1 {
stop();
}
frame 148 {
stop();
}
}
movieClip 6959 {
}
movieClip 6967 {
frame 1 {
stop();
}
}
instance hp4 of movieClip 6967 {
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 6974 {
frame 1 {
stop();
}
frame 22 {
_root.bossHealthOn = true;
gotoAndStop(1);
}
frame 44 {
gotoAndStop(1);
}
}
movieClip 6979 {
}
instance hp3 of movieClip 6979 {
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 6979 {
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 6979 {
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 6981 {
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 6984 {
}
movieClip 6986 {
}
movieClip 6987 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 6988 {
frame 1 {
stop();
}
}
movieClip 6990 {
}
movieClip 6991 {
}
movieClip 6993 {
}
movieClip 6996 {
}
movieClip 6997 {
}
movieClip 6998 {
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 7000 {
}
movieClip 7028 {
}
movieClip 7045 {
}
movieClip 7051 {
}
movieClip 7053 {
}
movieClip 7056 {
}
movieClip 7058 {
}
movieClip 7060 {
}
movieClip 7062 {
}
movieClip 7064 {
}
movieClip 7066 {
}
movieClip 7068 {
}
movieClip 7070 {
}
movieClip 7072 {
}
movieClip 7074 {
}
movieClip 7078 {
}
movieClip 7080 {
}
movieClip 7082 {
}
movieClip 7085 {
}
movieClip 7087 {
}
movieClip 7089 {
}
movieClip 7091 {
}
movieClip 7094 {
}
movieClip 7097 {
}
movieClip 7099 {
}
movieClip 7102 {
}
movieClip 7104 {
}
movieClip 7107 {
}
movieClip 7109 {
}
movieClip 7112 {
}
movieClip 7114 {
}
movieClip 7117 {
}
movieClip 7119 {
}
movieClip 7122 {
}
movieClip 7124 {
}
movieClip 7127 {
}
movieClip 7130 {
}
movieClip 7133 {
}
movieClip 7135 {
}
movieClip 7138 {
}
movieClip 7141 {
}
movieClip 7143 {
}
movieClip 7146 {
}
movieClip 7148 {
}
movieClip 7150 {
}
movieClip 7153 {
}
movieClip 7155 {
}
movieClip 7157 {
}
movieClip 7159 {
}
movieClip 7161 {
}
movieClip 7164 {
}
movieClip 7167 {
}
movieClip 7169 {
}
movieClip 7172 {
}
movieClip 7174 {
}
movieClip 7177 {
}
movieClip 7180 {
}
movieClip 7185 {
}
movieClip 7187 {
}
movieClip 7192 {
}
movieClip 7194 {
}
movieClip 7198 {
}
movieClip 7201 {
}
movieClip 7204 {
}
movieClip 7207 {
}
movieClip 7210 {
}
movieClip 7214 {
}
movieClip 7218 {
}
movieClip 7220 {
frame 21 {
stop();
}
}
movieClip 7222 {
}
button 7223 {
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 7224 {
frame 1 {
stop();
}
frame 11 {
stopAllSounds();
mamupressed = false;
}
frame 23 {
stop();
_root.credSound = new Sound();
_root.credSound.attachSound('credLoop');
_root.credSound.start(0, 99);
}
frame 45 {
_root.gotoAndStop('mainmenu');
}
}
movieClip 7225 {
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;
}
};
}
}